// ----------------------------------------------------------------------------- // Global Helpers // ----------------------------------------------------------------------------- // This stylesheet is for placeholder selectors (for extends) and mixins only. // Anything other than placeholders will result in duplication of styles // in every stylesheet that imports this file. /******************************************************************************* * Global Container *******************************************************************************/ %container { margin: 0 auto; max-width: 1269px; padding-left: 10px; padding-right: 10px; @media screen and (max-width: 480px) { padding-left: 10px; padding-right: 10px; } } /******************************************************************************* * Clearfix *******************************************************************************/ %clearfix { &:after { clear: both; content: ''; display: block; } } /******************************************************************************* * Image Replacement *******************************************************************************/ %ir { display: block; height: 0; overflow: hidden; text-indent: 100%; width: 0; } /******************************************************************************* * Extended background * Use to create a background that extends beyond the bounds of a parent element * container *******************************************************************************/ @mixin bg-extended($color) { @media screen and (min-width: 1025px) { clear: both; position: relative; &:before { background: $color; content: ''; margin-left: -200%; position: absolute; top: 0; bottom: 0; width: 400%; } // All child elements need position: relative. Uncomment below or add manually > * { // position: relative; } } } /******************************************************************************* * Retina *******************************************************************************/ $mq-retina: '(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dppx)'; @mixin retina { @media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dppx) { @content; } } /******************************************************************************* * DO Sprites *******************************************************************************/ %do-sprite { background-image: url(../images/do-sprites.png); content: ''; } // render retina sprite file at 200% // background-size needs to be updated whenever the sprite sheet changes size // retina background size is 50% of actual sprite sheet dimensions @media #{$mq-retina} { %do-sprite { background-image: url(../images/do-sprites@2x.png); background-size: 139px 225px; } } /******************************************************************************* * Buttons - Primary *******************************************************************************/ %btn-primary { background-color: #78CCCC; border-radius: 5px; border: 2px solid #78CCCC; color: $t-white; font-family: $lato; font-size: 20px; font-weight: 400; line-height: 1; padding: 15px 30px; text-transform: uppercase; @media screen and (max-width: 767px) { font-size: 18px; } @media screen and (max-width: 480px) { font-size: 16px; } } %btn-primary--hover { background-color: #339999; border-color: #339999; color: $t-white !important; } %btn-primary--active { background-color: #006666; border-color: #006666; } /******************************************************************************* * Buttons - Primary - Blue Background & White Text *******************************************************************************/ %btn-outlined { background-color: transparent; border-radius: 5px; border: 2px solid #000; color: $t-black; font-family: $lato; font-size: 20px; font-weight: 400; line-height: 1; padding: 15px 30px; text-transform: uppercase; } %btn-outlined--hover { background-color: transparent; border-color: $blue; color: $blue !important; } /******************************************************************************* * Buttons - Outlined - White Border & Text *******************************************************************************/ %btn-outlined-white { background-color: transparent; border-radius: 5px; border: 2px solid #FFF; color: $t-white; font-family: $lato; font-size: 20px; font-weight: 400; line-height: 1; padding: 15px 30px; text-transform: uppercase; } %btn-outlined-white--hover { background-color: transparent; border-color: $blue; color: $blue !important; } /******************************************************************************* * Buttons - As a Link, Not a Button (.button2) *******************************************************************************/ %btn-as-link { background-color: transparent; background-image: none; border-radius: 0; border: none; color: $link-blue; font-family: $lato; font-size: 20px; font-weight: 400; padding: 0; text-decoration: none; text-transform: none; transition: initial; } %btn-as-link--hover { background-color: transparent; background-image: none; border: none; color: $link-blue-hover; text-decoration: underline; text-transform: none; } /******************************************************************************* * Buttons - Custom - Transparent w/ white border/text *******************************************************************************/ %btn-white-border { background-color: transparent; border-radius: 2px; border: 3px solid #FFF; color: $t-white; font-family: $lato; font-size: 18px; font-weight: 700; padding: 5px 10px; text-transform: uppercase; } %btn-white-border--hover { background-color: transparent; border-color: $link-blue-hover; color: $link-blue-hover; outline-color: transparent; } /******************************************************************************* * Buttons - Custom - Transparent w/ black border/text *******************************************************************************/ %btn-black-border { background-color: transparent; border-radius: 2px; border: 3px solid #000; color: $t-black; font-family: $lato; font-size: 18px; font-weight: 700; padding: 5px 10px; text-transform: uppercase; } %btn-black-border--hover { background-color: transparent; border-color: $link-blue-hover; color: $link-blue-hover; outline-color: transparent; } /******************************************************************************* * Form - Inputs *******************************************************************************/ %input-base { background-color: #FFF; border: 1px solid #e2e2e1; // border-radius: 0; font-size: $f-size-default-text-s; font-weight: 400; transition: all .5s ease; &:focus { outline-color: $link-blue; } } /******************************************************************************* * List styles *******************************************************************************/ %li-base { color: $t-black; font-family: $lato; font-size: $f-size-default-text; font-style: normal; line-height: 1.5; } // Branded lists %ul-branded { list-style: none; li { margin-left: 24px; position: relative; &:before { content: '\2022'; color: $link-blue; position: absolute; left: -24px; } } } %dl-branded { list-style: none; dt { margin-left: 0; &:before { content: '\2022'; color: $link-blue; margin-right: 5px; } } dd { margin-left: 13px; } } /******************************************************************************* * Column Layout - Individual Columns *******************************************************************************/ %column-content { float: left; margin-bottom: 0; margin-left: 0; outline: 0; text-align: center; &:before { content: none; } } /******************************************************************************* * Column Layout - 2 Columns *******************************************************************************/ %columns-section-2 { @extend %clearfix; .column-content { width: 50%; @extend %column-content; @media screen and (max-width: 770px) { width: 100%; } } } /******************************************************************************* * Column Layout - 3 Columns *******************************************************************************/ %columns-section-3 { @extend %clearfix; .column-content { @extend %column-content; // width: 396; width: 31.705%; margin-left: 2.401%; &:first-child { margin-left: 0; } @media screen and (max-width: 770px) { margin-left: 0; width: 100%; } } }