UNPKG

nav-frontend-core

Version:

Variabler og andre felleselementer for NAV-frontend.

672 lines (671 loc) 13.3 kB
/*! * Bootstrap v3.3.7 (http://getbootstrap.com) * Copyright 2011-2016 Twitter, Inc. * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE) */ :export { navRod: #c30000; navOransje: #ff9100; navLimeGronn: #a2ad00; navGronn: #06893a; navLilla: #634689; navDypBla: #005b82; navBla: #0067c5; navLysBla: #66cbec; navMorkGra: #262626; navGra80: #4f4f4f; navGra60: #6a6a6a; navGra40: #a0a0a0; navGra20: #c9c9c9; navLysGra: #f1f1f1; navBakgrunn: #ffffff; navGraBakgrunn: #f1f1f1; fokusFarge: #00347d; redError: #ba3a26; white: #fff; grayBackground: #f1f1f1; grayIcon: #a0a0a0; grayModia: #333333; grayInactive: #6a6a6a; pinkErrorBg: #f3e3e3; navGronnLighten80: #ccf1d6; navGronnLighten60: #99dead; navGronnLighten40: #66c786; navGronnLighten20: #33aa5f; navGronnDarken20: #007c2e; navGronnDarken40: #006a23; navGronnDarken60: #005519; navGronnDarken80: #003b0f; navLimeGronnLighten80: #f9fccc; navLimeGronnLighten60: #ecf399; navLimeGronnLighten40: #d9e366; navLimeGronnLighten20: #c1cb33; navLimeGronnDarken20: #939e00; navLimeGronnDarken40: #7f8900; navLimeGronnDarken60: #666e00; navLimeGronnDarken80: #474e00; navLysBlaLighten80: #d8f9ff; navLysBlaLighten60: #b5f1ff; navLysBlaLighten40: #97e6ff; navLysBlaLighten20: #7cdaf8; navLysBlaDarken20: #4cadcd; navLysBlaDarken40: #368da8; navLysBlaDarken60: #236b7d; navLysBlaDarken80: #134852; navBlaLighten80: #cce1ff; navBlaLighten60: #99c3ff; navBlaLighten40: #66a5f4; navBlaLighten20: #3386e0; navBlaDarken20: #0056b4; navBlaDarken40: #00459c; navBlaDarken60: #00347d; navBlaDarken80: #002252; navDypBlaLighten80: #cce2f0; navDypBlaLighten60: #99c4dd; navDypBlaLighten40: #66a3c4; navDypBlaLighten20: #3380a5; navDypBlaDarken20: #005077; navDypBlaDarken40: #004367; navDypBlaDarken60: #003453; navDypBlaDarken80: #00243a; navLillaLighten80: #e0d8e9; navLillaLighten60: #c0b2d2; navLillaLighten40: #a18dbb; navLillaLighten20: #8269a2; navLillaDarken20: #523874; navLillaDarken40: #412b5d; navLillaDarken60: #301f46; navLillaDarken80: #1f142f; redErrorLighten80: #f9d2cc; redErrorLighten60: #efa89d; redErrorLighten40: #e18071; redErrorLighten20: #d05c4a; redErrorDarken20: #a32a17; redErrorDarken40: #881d0c; redErrorDarken60: #6a1204; redErrorDarken80: #480900; navOransjeLighten80: #ffeccc; navOransjeLighten60: #ffd799; navOransjeLighten40: #ffc166; navOransjeLighten20: #ffaa33; navOransjeDarken20: #d47b00; navOransjeDarken40: #a86400; navOransjeDarken60: #7d4c00; navOransjeDarken80: #523300; screenSm: 768px; screenSmMin: 768px; screenTablet: 768px; screenMd: 992px; screenMdMin: 992px; screenDesktop: 992px; screenLg: 1200px; screenLgMin: 1200px; screenLgDesktop: 1200px; screenXsMax: 767px; screenSmMax: 991px; screenMdMax: 1199px; containerTablet: 736px; containerSm: 736px; containerDesktop: 956px; containerMd: 956px; containerLargeDesktop: 1156px; containerLg: 1156px; gridColumns: 12; gridGutterWidth: 16px; gridFloatBreakpoint: 768px; gridFloatBreakpointMax: 767px; paddingBaseVertical: 6px; paddingBaseHorizontal: 12px; paddingLargeVertical: 10px; paddingLargeHorizontal: 16px; paddingSmallVertical: 5px; paddingSmallHorizontal: 10px; paddingXsVertical: 1px; paddingXsHorizontal: 5px; lineHeightLarge: 1.3333333; lineHeightSmall: 1.5; borderRadiusSmall: 2px; borderRadiusBase: 4px; borderRadiusLarge: 6px; } /* --------------- FARGER --------------- */ /* --------------- BREKKPUNKTER --------------- */ /* -------------- CONTAINER -------------- */ /* --------------- GRID --------------- */ /* ------------- CLEARFIX ------------- */ /* stylelint-disable */ /* stylelint-enable */ /*! normalize.css v8.0.1 | MIT License | github.com/necolas/normalize.css */ /* Document ========================================================================== */ /** * 1. Correct the line height in all browsers. * 2. Prevent adjustments of font size after orientation changes in iOS. */ html { line-height: 1.15; /* 1 */ -webkit-text-size-adjust: 100%; /* 2 */ font-family: sans-serif; /* 3 */ } /* Sections ========================================================================== */ /** * Remove the margin in all browsers. */ body { margin: 0; } /** * Render the `main` element consistently in IE. */ main { display: block; } /** * Correct the font size and margin on `h1` elements within `section` and * `article` contexts in Chrome, Firefox, and Safari. */ h1 { font-size: 2em; margin: 0.67em 0; } /* Grouping content ========================================================================== */ /** * 1. Add the correct box sizing in Firefox. * 2. Show the overflow in Edge and IE. */ hr { box-sizing: content-box; /* 1 */ height: 0; /* 1 */ overflow: visible; /* 2 */ } /** * 1. Correct the inheritance and scaling of font size in all browsers. * 2. Correct the odd `em` font sizing in all browsers. */ pre { font-family: monospace, monospace; /* 1 */ font-size: 1em; /* 2 */ } /* Text-level semantics ========================================================================== */ /** * Remove the gray background on active links in IE 10. */ a { background-color: transparent; } /** * 1. Remove the bottom border in Chrome 57- * 2. Add the correct text decoration in Chrome, Edge, IE, Opera, and Safari. */ abbr[title] { border-bottom: none; /* 1 */ text-decoration: underline; /* 2 */ text-decoration: underline dotted; /* 2 */ } /** * Add the correct font weight in Chrome, Edge, and Safari. */ b, strong { font-weight: bolder; } /** * 1. Correct the inheritance and scaling of font size in all browsers. * 2. Correct the odd `em` font sizing in all browsers. */ code, kbd, samp { font-family: monospace, monospace; /* 1 */ font-size: 1em; /* 2 */ } /** * Add the correct font size in all browsers. */ small { font-size: 80%; } /** * Prevent `sub` and `sup` elements from affecting the line height in * all browsers. */ sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } /* Embedded content ========================================================================== */ /** * Remove the border on images inside links in IE 10. */ img { border-style: none; } /* Forms ========================================================================== */ /** * 1. Change the font styles in all browsers. * 2. Remove the margin in Firefox and Safari. */ button, input, optgroup, select, textarea { font-family: inherit; /* 1 */ font-size: 100%; /* 1 */ line-height: 1.15; /* 1 */ margin: 0; /* 2 */ } /** * Show the overflow in IE. * 1. Show the overflow in Edge. */ button, input { /* 1 */ overflow: visible; } /** * Remove the inheritance of text transform in Edge, Firefox, and IE. * 1. Remove the inheritance of text transform in Firefox. */ button, select { /* 1 */ text-transform: none; } /** * Correct the inability to style clickable types in iOS and Safari. */ button, [type="button"], [type="reset"], [type="submit"] { -webkit-appearance: button; } /** * Remove the inner border and padding in Firefox. */ button::-moz-focus-inner, [type="button"]::-moz-focus-inner, [type="reset"]::-moz-focus-inner, [type="submit"]::-moz-focus-inner { border-style: none; padding: 0; } /** * Restore the focus styles unset by the previous rule. */ button:-moz-focusring, [type="button"]:-moz-focusring, [type="reset"]:-moz-focusring, [type="submit"]:-moz-focusring { outline: 1px dotted ButtonText; } /** * Correct the padding in Firefox. */ fieldset { padding: 0.35em 0.75em 0.625em; } /** * 1. Correct the text wrapping in Edge and IE. * 2. Correct the color inheritance from `fieldset` elements in IE. * 3. Remove the padding so developers are not caught out when they zero out * `fieldset` elements in all browsers. */ legend { box-sizing: border-box; /* 1 */ color: inherit; /* 2 */ display: table; /* 1 */ max-width: 100%; /* 1 */ padding: 0; /* 3 */ white-space: normal; /* 1 */ } /** * Add the correct vertical alignment in Chrome, Firefox, and Opera. */ progress { vertical-align: baseline; } /** * Remove the default vertical scrollbar in IE 10+. */ textarea { overflow: auto; } /** * 1. Add the correct box sizing in IE 10. * 2. Remove the padding in IE 10. */ [type="checkbox"], [type="radio"] { box-sizing: border-box; /* 1 */ padding: 0; /* 2 */ } /** * Correct the cursor style of increment and decrement buttons in Chrome. */ [type="number"]::-webkit-inner-spin-button, [type="number"]::-webkit-outer-spin-button { height: auto; } /** * 1. Correct the odd appearance in Chrome and Safari. * 2. Correct the outline style in Safari. */ [type="search"] { -webkit-appearance: textfield; /* 1 */ outline-offset: -2px; /* 2 */ } /** * Remove the inner padding in Chrome and Safari on macOS. */ [type="search"]::-webkit-search-decoration { -webkit-appearance: none; } /** * 1. Correct the inability to style clickable types in iOS and Safari. * 2. Change font properties to `inherit` in Safari. */ ::-webkit-file-upload-button { -webkit-appearance: button; /* 1 */ font: inherit; /* 2 */ } /* Interactive ========================================================================== */ /* * Add the correct display in Edge, IE 10+, and Firefox. */ details { display: block; } /* * Add the correct display in all browsers. */ summary { display: list-item; } /* Misc ========================================================================== */ /** * Add the correct display in IE 10+. */ template { display: none; } /** * Add the correct display in IE 10. */ [hidden] { display: none; } /*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */ @media print { *, *::before, *::after { background: transparent !important; color: #000 !important; box-shadow: none !important; text-shadow: none !important; } a, a:visited { text-decoration: underline; } a[href]::after { content: " (" attr(href) ")"; } abbr[title]::after { content: " (" attr(title) ")"; } a[href^="#"]::after, a[href^="javascript:"]::after { content: ""; } pre, blockquote { border: 1px solid #999; page-break-inside: avoid; } thead { display: table-header-group; } tr, img { page-break-inside: avoid; } img { max-width: 100% !important; } p, h2, h3 { orphans: 3; widows: 3; } h2, h3 { page-break-after: avoid; } } * { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } *::before, *::after { -webkit-box-sizing: border-box; -moz-box-sizing: border-box; box-sizing: border-box; } html { font-size: 100%; font-family: sans-serif; -webkit-tap-highlight-color: rgba(0, 0, 0, 0); } input, button, select, textarea { font-family: inherit; font-size: inherit; line-height: inherit; } figure { margin: 0; } img { vertical-align: middle; } .img-responsive { display: block; max-width: 100%; height: auto; } .img-rounded { border-radius: 6px; } .img-circle { border-radius: 50%; } .sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); border: 0; white-space: nowrap; } .sr-only-focusable:active, .sr-only-focusable:focus { position: static; width: auto; height: auto; margin: 0; overflow: visible; clip: auto; } [role="button"] { cursor: pointer; } body .clearfix::before, body .clearfix::after { content: " "; display: table; } body .clearfix::after { clear: both; } body .center-block { display: block; margin-left: auto; margin-right: auto; } body .pull-right { float: right !important; } body .pull-left { float: left !important; } body .hide { display: none !important; } body .show { display: block !important; } body .hidden { display: none !important; } body .invisible { visibility: hidden; } body .text-hide { font: 0/0 a; color: transparent; text-shadow: none; background-color: transparent; border: 0; } body .ustilet { margin: 0; padding: 0; list-style: none; } body .blokk { margin-bottom: 2rem; } body .blokk-null { margin-bottom: 0; } body .blokk-xxxs { margin-bottom: 4px; } body .blokk-xxs { margin-bottom: 0.5rem; } body .blokk-xs { margin-bottom: 1rem; } body .blokk-s { margin-bottom: 20px; } body .blokk-m { margin-bottom: 2rem; } body .blokk-l { margin-bottom: 2.5rem; } body .blokk-xl { margin-bottom: 4rem; } @-ms-viewport { width: device-width; } @media (max-width: 767px) { .hidden-xs { display: none !important; } } @media (min-width: 768px) and (max-width: 991px) { .hidden-sm { display: none !important; } } @media (min-width: 992px) and (max-width: 1199px) { .hidden-md { display: none !important; } } @media (min-width: 1200px) { .hidden-lg { display: none !important; } }