/*------------------------------------* $PATTERN LAB-SPECIFIC STYLES \*------------------------------------*/ /** * This stylesheet is for styles you want to include only when the interface is being viewed within Pattern Lab. * This is helpful for displaying demo styles for grids, animations, color swatches, etc * It's also helpful for overriding context-specific styles like fixed or absolutely positioned elements * These styles will not be your production CSS. */ /* Style Guide Interface Colors */ /* Typography */ /* Defaults */ /* Dimensions */ /* Breakpoints */ .demo { overflow: hidden; margin-bottom: 1rem; } .demo .gi, .demo .demo-block { background: #ddd; color: #808080; text-align: center; margin-bottom: 0.5em; padding: 1em !important; } .demo .gi:nth-of-type(2n), .demo .demo-block:nth-of-type(2n) { color: #ddd; background: #808080; } .demo .gi .gi, .demo .demo-block .gi { background: rgba(0, 0, 0, 0.1); color: #ddd; } .demo .gi .gi:nth-of-type(2n), .demo .demo-block .gi:nth-of-type(2n) { background: rgba(0, 0, 0, 0.3); } .demo-animate { background: #ddd; padding: 1em; margin-bottom: 1em; text-align: center; } .animate-move { position: relative; } .animate-move .demo-shape { position: absolute; top: 0; left: 0; bottom: 0; width: 20px; background: #808080; } .animate-move:hover > .demo-shape { left: 100%; margin-left: -20px; } .sg-colors { overflow: hidden; display: flex; flex-direction: row; flex-wrap: wrap; justify-content: flex-start; align-content: center; align-items: flex-start; } .sg-colors li { box-sizing: border-box; overflow: hidden; margin: 0 0 1em 0; flex-grow: 0; flex-shrink: 1; width: 100%; } @media all and (min-width: 24em) { .sg-colors li { width: calc(50% - 1em); margin-right: 1em; } } @media all and (min-width: 48em) { .sg-colors li { width: calc(25% - 1em); margin-right: 1em; } } @media all and (min-width: 72em) { .sg-colors li { width: calc(15% - 1em); margin-right: 1em; } } .sg-swatch { display: block; height: 120px; border-radius: 2px; margin-bottom: 10px; margin-right: 0.3em; box-shadow: inset 0 0 1px rgba(0, 0, 0, 0.2); } .sg-label { display: block; line-height: 1; font-family: monospace; font-size: 80%; } .sg-grid-example .col { height: 150px; border: 1px solid #eee; margin-bottom: 20px; text-align: center; padding: 20px; font-size: .75em; } .sg-icons { list-style-type: none; padding-left: 0; } .sg-icons li { text-align: center; } .sg-icons li .icon { display: inline-block; margin: 0 auto; } .sg-icons li .icon:before { position: relative; top: -10px; left: 3px; } .sg-icons li .codes { position: relative; font-family: monospace; border-radius: 2px; height: 30px; line-height: 30px; color: rgba(0, 0, 0, 0.3); font-size: 80%; } .sg-icons li .codes:nth-child(odd) { margin-top: -15px; } .sg-icons .bit-4 { width: 17%; float: left; margin: 0 1.5%; margin-bottom: 40px; }