@charset "UTF-8"; /*------------------------------------*\ #PATTERN LAB STYLES \*------------------------------------*/ /** * NOTES: * 1) These styles are specific to Pattern Lab and should not be modified. * All project styles should be modified in /source/css/ * * 2) Any !important declarations are to prevent brand styles from overriding * style guide styles */ /*------------------------------------*\ #TABLE OF CONTENTS \*------------------------------------*/ /** * PATTERN LAB VARIABLES * Fonts....................... * Colors...................... * Typography.................. * Spacing & Padding........... * Breakpoints................. * Animation................... * Borders..................... * * RESET.......................CSS reset * * UTILITY CLASSES.............Establish global styles * * GLOBAL ELEMENTS.............Establish global styles * -----Main * -----Headings * -----Text-related elements (p, blockquote, lists) * -----Defaults * -----Breakpoints * STYLE GUIDE INTERFACE------------------CSS for the Pattern Lab Container. * -----Header * -----Navigation * -----Controls * -----Main Container * -----Viewport * -----Section Headers * -----Code View */ /*------------------------------------*\ #VARIABLES \*------------------------------------*/ /** * These variables are specific to the Pattern Lab shell and exist * indepenedently of any project-specific styles */ /*------------------------------------*\ #RESET \*------------------------------------*/ /** * Apply border-box to all elements * * 1) This is a broadly-applied style that affects every * element on the screen. This can bleed into user's styles * but since it's been a best practice for years now we're * going to default to this. */ * { -webkit-box-sizing: border-box; box-sizing: border-box; } /*------------------------------------*\ #UTILITIES \*------------------------------------*/ /** * Visibilly hidden but still accessible to screen readers */ .is-vishidden { position: absolute !important; overflow: hidden; width: 1px; height: 1px; padding: 0; border: 0; clip: rect(1px, 1px, 1px, 1px); } /*------------------------------------*\ #PATTERN LAB INTERFACE \*------------------------------------*/ /** * html & body tag */ #patternlab-html, #patternlab-body { margin: 0; padding: 0; background: #ddd; -webkit-text-size-adjust: 100%; } /*------------------------------------*\ #HEADER \*------------------------------------*/ /** * Pattern Lab's header is fixed across the top of the viewport and * contains the primary pattern navigation, viewport resizing items, * and tools. */ .sg-header { background: #000; color: #fff; font-family: "HelveticaNeue", "Helvetica", "Arial", sans-serif; text-transform: uppercase; position: fixed; top: 0; left: 0; z-index: 4; width: 100%; /** * All lists appearing in the header */ /** * All links appearing in the header */ } .sg-header ul { padding: 0; margin: 0; list-style: none; } .sg-header a { font-size: 70%; color: #808080; text-decoration: none; line-height: 1; padding: 1em 0.7em; -webkit-transition: background 0.1s ease-out; transition: background 0.1s ease-out; -webkit-transition: color 0.1s ease-out; transition: color 0.1s ease-out; } .sg-header a:hover, .sg-header a:focus, .sg-header a.active { color: #fff; background: #222; } /*------------------------------------*\ #NAVIGATION \*------------------------------------*/ /** * Nav toggle expands and collapses .sg-nav * 1) On larger viewports, the toggle gets hidden and * the full nav is displayed across the top. */ .sg-nav-toggle { display: inline-block; position: relative; text-transform: uppercase; z-index: 2; } @media all and (min-width: 42em) { .sg-nav-toggle { display: none; } } /** * Navigation container */ @media all and (max-width: 42em) { .sg-nav-container { overflow: hidden; max-height: 0; -webkit-transition: max-height 0.1s ease-out; transition: max-height 0.1s ease-out; } .sg-nav-container.active { max-height: 50em; } } /** * Nav list * 1) appears as an