/* Table of Contents ================================================== # Variables # Alert # Colors */ /* # Variables ================================================== */ $onblack-colors: ( dark-haze: $color-dark-haze, haze: $color-haze, light-haze: $color-light-haze ); $ongray-colors: ( white: $color-white ); $onwhite-colors: ( dark-black: $color-dark-black, black: $color-black, light-black: $color-light-black, dark-gray: $color-dark-gray, gray: $color-gray, light-gray: $color-light-gray, lime: $color-lime, green: $color-green, teal: $color-teal, blue: $color-blue, indigo: $color-indigo, purple: $color-purple, pink: $color-pink, red: $color-red, orange: $color-orange, yellow: $color-yellow ); /* # Alert ================================================== */ .alert-fixed { left: 0; position: fixed; right: 0; top: 0; z-index: 1040; } .alert { background: $color-gray; border-bottom: 1px solid darken($color-gray, 5%); box-sizing: border-box; color: $color-white; display: block; font-size: 16px; line-height: 20px; margin: 0; padding: 10px 20px; width: 100%; } .alert > a { border-bottom: 1px dotted $color-white; color: $color-white; font-style: italic; } .alert-bordered { border: 1px solid darken($color-gray, 5%); } .alert > .alert-close { border: 0; color: $color-white; float: right; font-size: 18px; line-height: 23px; } /* # Colors ================================================== */ @each $name, $color in $onblack-colors { .alert-#{$name} { background: $color; border-color: darken($color, 5%); color: $color-black; } .alert-#{$name} > a { border-bottom-color: $color-black; color: $color-black; } .alert-#{$name} .alert-close { color: $color-black; } } @each $name, $color in $ongray-colors { .alert-#{$name} { background: $color; border-color: darken($color, 5%); color: $color-gray; } .alert-#{$name} > a { border-bottom-color: $color-gray; color: $color-gray; } .alert-#{$name} .alert-close { color: $color-gray; } } @each $name, $color in $onwhite-colors { .alert-#{$name} { background: $color; border-color: darken($color, 5%); } }