// This file is meant for general styles and containers // that apply everywhere throughout the website. Add more // always repeating elements right below. // Default structural element .block { background-color: var(--color-white); margin: 0 auto; max-width: $width-max-layout; position: relative; } // Block padding exceptions // This class is useful when we have multiple blocks stacked with same background-color // stylelint-disable-next-line selector-max-class, selector-max-specificity .block.has-unified-padding-if-stacked + .block.has-unified-padding-if-stacked .container { overflow: visible; padding-top: 0; } // Global link helper // This is useful in services -type of areas where the whole block is a link // Remember to define aria-label or screen-reader-text for accessibility .global-link { height: 100%; left: 0; position: absolute; top: 0; width: 100%; z-index: 3; } // Site wrapper .site { margin-left: auto; margin-right: auto; max-width: 100%; overflow: hidden; position: relative; } // Containers .container { margin: 0 auto; margin-left: auto; margin-right: auto; max-width: $width-grid-base; padding-bottom: var(--padding-container-vertical); padding-left: var(--padding-container-horizontal); padding-right: var(--padding-container-horizontal); padding-top: var(--padding-container-vertical); // If base grid is larger than Macbook Air screen @if $width-grid-base > 1440 { @media (min-width: $container-ipad-landscape) and (max-width: 140rem + 6.4rem) { padding-left: var(--padding-container-horizontal-large); padding-right: var(--padding-container-horizontal-large); } } } // Better edit link .edit-link { --color-link-edit-background-hover: var(--color-pattens-blue); --color-link-edit-border: var(--color-pattens-blue); --color-link-edit-text: color.adjust(#eaf1f8, -20%); --color-link-edit-text-hover: var(--color-east-bay); clear: both; display: block; margin-bottom: 0; margin-top: 2rem; max-width: 100%; min-width: 0; overflow: hidden; text-align: left; transition: all $transition-duration; width: 100%; a { background-color: var(--color-white); border: 2px dashed var(--color-link-edit-border); clear: both; color: var(--color-link-edit-text); display: block; margin: 0; padding: 2rem; text-align: center; text-decoration: none; transition: all $transition-duration; } &:focus, a:hover { background-color: var(--color-link-edit-background-hover); color: var(--color-link-edit-text-hover); } } // Hide/show helpers // stylelint-disable-next-line a11y/no-display-none .hide-on-desktop { @media (min-width: $container-mobile) { // Forced to use important here, because makes no sense to write too specific selectors here // stylelint-disable-next-line declaration-no-important display: none !important; } } // Forced to use important here, because makes no sense to write too specific selectors here // stylelint-disable-next-line a11y/no-display-none .hide-on-mobile { @media (max-width: $container-mobile) { // stylelint-disable-next-line declaration-no-important display: none !important; } } // Only function of these is to force hide content based on the view // Forced to use important here, because makes no sense to write too specific selectors here // stylelint-disable-next-line a11y/no-display-none .hide-on-mobile-nav-view { @media (max-width: $width-max-mobile) { // stylelint-disable-next-line declaration-no-important display: none !important; } } // Forced to use important here, because makes no sense to write too specific selectors here // stylelint-disable-next-line a11y/no-display-none .hide-on-desktop-nav-view { @media (min-width: $width-max-mobile) { // stylelint-disable-next-line declaration-no-important display: none !important; } } // Forced to use important here, because makes no sense to write too specific selectors here // stylelint-disable-next-line a11y/no-display-none .hide-completely { // stylelint-disable-next-line declaration-no-important display: none !important; }