// Name: Overlay // Description: Defines styles for image overlays // // Component: `overlay` // // Sub-objects: `overlay-figure` // `overlay-panel` // `overlay-hover` // `overlay-icon` // `overlay-anchor` // // Modifier: `overlay-background` // `overlay-image` // `overlay-top` // `overlay-bottom` // `overlay-left` // `overlay-right` // `overlay-fade` // `overlay-scale` // `overlay-spin` // `overlay-grayscale` // `overlay-slide-top` // `overlay-slide-bottom` // `overlay-slide-left` // // Markup: // // // // //
//
// // ======================================================================== // Variables // ======================================================================== $overlay-panel-color: $inverse !default; $overlay-panel-background: rgba(0, 0, 0, 0.5) !default; $overlay-icon-color: $inverse !default; $overlay-panel-link-color: inherit !default; /* Sub-object `overlay-panel` ========================================================================== */ .overlay-panel { color: $overlay-panel-color; a:not([class]) { color: $overlay-panel-link-color; } } /* Modifier `overlay-background` ========================================================================== */ .overlay-background { background: $overlay-panel-background; } /* Modifier `overlay-shade` ========================================================================== */ .overlay-shade { background: rgba(0, 0, 0, 0) linear-gradient(to bottom, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.87) 90%, #fff 100%) repeat scroll 0 0; } /* Sub-object `overlay-icon` ========================================================================== */ .overlay-icon { .icon { color: $overlay-icon-color; } }