UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

760 lines (743 loc) 17 kB
@charset "UTF-8"; /** * Import basis core parts * */ /* * Scopes * */ /* * Document Reset * */ html:not([data-visual-test]) { scroll-behavior: smooth; } @media (prefers-reduced-motion: reduce) { html:not([data-visual-test]) { scroll-behavior: auto; } } html { font-size: 100%; } @supports (-webkit-touch-callout: none) { @supports (font: -apple-system-body) { html { font: -apple-system-body; /* stylelint-disable-line */ } } } html[xmlns="http://www.w3.org/1999/xhtml"] .dnb-anchor--active { color: var(--color-mint-green) !important; } html[xmlns="http://www.w3.org/1999/xhtml"] .dnb-anchor--contrast:not(:hover) { color: var(--color-white) !important; } html[xmlns="http://www.w3.org/1999/xhtml"] a.dnb-button--primary { color: var(--color-white); } html[xmlns="http://www.w3.org/1999/xhtml"] .dnb-ul { list-style: initial; } html[xmlns="http://www.w3.org/1999/xhtml"] .dnb-p { overflow: initial; text-align: inherit; background-color: initial; } html[xmlns="http://www.w3.org/1999/xhtml"] i { font-style: italic; } html[xmlns="http://www.w3.org/1999/xhtml"] #column_left, html[xmlns="http://www.w3.org/1999/xhtml"] #root { width: 100%; } html[xmlns="http://www.w3.org/1999/xhtml"] body#dnbLayoutDefault #wrapper, html[xmlns="http://www.w3.org/1999/xhtml"] body#dnbLayoutDefaultStartPage #wrapper { width: 100%; padding: 0; } html[xmlns="http://www.w3.org/1999/xhtml"] #column_content { box-shadow: none; } body { margin: 0; } .dnb-core-style { /** * 1. Remove repeating backgrounds in all browsers (opinionated). * 2. Add border box sizing in all browsers (opinionated). */ } .dnb-core-style *, .dnb-core-style ::before, .dnb-core-style ::after { background-repeat: no-repeat; /* 1 */ box-sizing: border-box; /* 2 */ } .dnb-core-style { /** * 1. Add text decoration inheritance in all browsers (opinionated). * 2. Add vertical alignment inheritance in all browsers (opinionated). */ } .dnb-core-style ::before, .dnb-core-style ::after { text-decoration: inherit; /* 1 */ vertical-align: inherit; /* 2 */ } .dnb-core-style { /* Grouping content */ /** * 1. Add the correct sizing in Firefox. * 2. Show the overflow in Edge and IE. */ } .dnb-core-style hr { height: 0; /* 1 */ overflow: visible; /* 2 */ } .dnb-core-style { /** * Add the correct display in IE. */ } .dnb-core-style main { display: block; } .dnb-core-style { /** * Remove the list style on navigation lists in all browsers (opinionated). */ } .dnb-core-style nav ol, .dnb-core-style nav ul { list-style: none; } .dnb-core-style { /* Text-level semantics */ /** * Add the correct text decoration in Edge, IE, Opera, and Safari. */ } .dnb-core-style abbr[title] { text-decoration: underline; -webkit-text-decoration: underline dotted; text-decoration: underline dotted; } .dnb-core-style { /** * Add the correct font weight in Chrome, Edge, and Safari. */ } .dnb-core-style b, .dnb-core-style strong { font-weight: bolder; } .dnb-core-style { /** * 1. Use the default monospace user interface font * in all browsers (opinionated). */ } .dnb-core-style pre, .dnb-core-style code, .dnb-core-style kbd, .dnb-core-style samp { font-family: var(--font-family-monospace); /* 1 */ } .dnb-core-style { /* * Remove the text shadow on text selections in Firefox 61- (opinionated). * 1. Restore the coloring undone by defining the text shadow * in all browsers (opinionated). */ } .dnb-core-style ::selection { background-color: #b3d4fc; /* 1 */ color: #000; /* 1 */ text-shadow: none; } .dnb-core-style { /* Embedded content */ /* * Change the alignment on media elements in all browsers (opinionated). */ } .dnb-core-style audio, .dnb-core-style canvas, .dnb-core-style iframe, .dnb-core-style img, .dnb-core-style svg, .dnb-core-style video { vertical-align: middle; } .dnb-core-style { /** * Add the correct display in IE 9-. */ } .dnb-core-style audio, .dnb-core-style video { display: inline-block; } .dnb-core-style { /** * Add the correct display in iOS 4-7. */ } .dnb-core-style audio:not([controls]) { display: none; height: 0; } .dnb-core-style { /** * Remove the border on images inside links in IE 10-. */ } .dnb-core-style img { border-style: none; } .dnb-core-style { /** * Change the fill color to match the text color in all browsers (opinionated). */ } .dnb-core-style svg:not([fill]) { fill: currentcolor; } .dnb-core-style { /** * Hide the overflow in IE. */ } .dnb-core-style svg:not(:root) { overflow: hidden; } .dnb-core-style { /* Tabular data */ /** * Collapse border spacing in all browsers (opinionated). */ } .dnb-core-style table { border-collapse: collapse; } .dnb-core-style { /* Forms */ /** * Inherit styling in all browsers (opinionated). */ } .dnb-core-style button, .dnb-core-style input, .dnb-core-style select, .dnb-core-style textarea { font-family: inherit; font-size: inherit; line-height: inherit; } .dnb-core-style { /** * Remove the margin in Safari. */ } .dnb-core-style figure, .dnb-core-style button, .dnb-core-style input, .dnb-core-style select { margin: 0; } .dnb-core-style { /** * 1. Show the overflow in IE. * 2. Remove the inheritance of text transform in Edge, Firefox, and IE. */ } .dnb-core-style button { overflow: visible; /* 1 */ text-transform: none; /* 2 */ } .dnb-core-style { /** * Show the overflow in Edge and IE. * 1. Safari did inherit the break-word from html root */ } .dnb-core-style input { overflow: visible; word-break: normal; /* 1 */ } .dnb-core-style { /** * 1. Correct the text wrapping in Edge and IE. * 2. Correct the color inheritance from `fieldset` elements in IE. */ } .dnb-core-style legend { color: inherit; /* 2 */ display: table; /* 1 */ max-width: 100%; /* 1 */ white-space: normal; /* 1 */ } .dnb-core-style { /** * 1. Add the correct display in Edge and IE. * 2. Add the correct vertical alignment in Chrome, Firefox, and Opera. */ } .dnb-core-style progress { display: inline-block; /* 1 */ vertical-align: baseline; /* 2 */ } .dnb-core-style { /** * Remove the inheritance of text transform in Firefox. */ } .dnb-core-style select { text-transform: none; } .dnb-core-style { /** * 2. Remove the default vertical scrollbar in IE. * 3. Change the resize direction on textareas in all browsers (opinionated). */ } .dnb-core-style textarea { overflow: auto; /* 2 */ resize: vertical; /* 3 */ } .dnb-core-style { /** * Remove the padding in IE 10-. */ } .dnb-core-style [type=checkbox], .dnb-core-style [type=radio] { padding: 0; } .dnb-core-style { /** * 1. Correct the odd appearance in Chrome and Safari. * 2. Correct the outline style in Safari. */ } .dnb-core-style input[type=search] { -webkit-appearance: textfield; appearance: textfield; /* 1 */ outline-offset: -2px; /* 2 */ } .dnb-core-style { /** * Correct the cursor style of increment and decrement buttons in Safari. */ } .dnb-core-style ::-webkit-inner-spin-button, .dnb-core-style ::-webkit-outer-spin-button { height: auto; } .dnb-core-style { /** * Remove the inner padding in Chrome and Safari on macOS. */ } .dnb-core-style ::-webkit-search-decoration { -webkit-appearance: none; appearance: none; } .dnb-core-style { /** * 1. Change font properties to `inherit` in Safari. */ } .dnb-core-style ::-webkit-file-upload-button { font: inherit; /* 1 */ background-color: transparent; border: none; } .dnb-core-style { /** * Remove the inner border and padding of focus outlines in Firefox. */ } .dnb-core-style ::-moz-focus-inner { border-style: none; padding: 0; } .dnb-core-style { /* Interactive */ /* * Add the correct display in Edge and IE. */ } .dnb-core-style details { display: block; } .dnb-core-style { /* * Add the correct display in all browsers. */ } .dnb-core-style summary { display: list-item; } .dnb-core-style { /* Scripting */ /** * Add the correct display in IE 9-. */ } .dnb-core-style canvas { display: inline-block; } .dnb-core-style { /** * Add the correct display in IE. */ } .dnb-core-style template { display: none; } .dnb-core-style { /* User interaction */ /* * 1. Remove the tapping delay in IE 10. * 2. Remove the tapping delay on clickable elements in all browsers (opinionated). */ } .dnb-core-style a, .dnb-core-style area, .dnb-core-style button, .dnb-core-style input, .dnb-core-style label, .dnb-core-style select, .dnb-core-style summary, .dnb-core-style textarea, .dnb-core-style [tabindex] { /* 1 */ touch-action: manipulation; /* 2 */ } .dnb-core-style { /** * Add the correct display in IE 10-. */ } .dnb-core-style [hidden] { display: none; } .dnb-core-style { /* Accessibility */ /** * Change the cursor on busy elements in all browsers (opinionated). */ } .dnb-core-style [aria-busy=true] { cursor: progress; } .dnb-core-style { /* * Change the cursor on control elements in all browsers (opinionated). */ } .dnb-core-style [aria-controls]:not(input) { cursor: pointer; } .dnb-core-style { /* * Change the cursor on disabled, not-editable, or otherwise * inoperable elements in all browsers (opinionated). */ } .dnb-core-style [aria-disabled=true], .dnb-core-style [disabled] { cursor: not-allowed; } .dnb-core-style { /* * Change the display on visually hidden accessible elements * in all browsers (opinionated). */ } .dnb-core-style [aria-hidden=false][hidden]:not(:focus) { clip: rect(0, 0, 0, 0); display: inherit; position: absolute; } .dnb-core-style { font-family: var(--font-family-default); font-weight: var(--font-weight-basis); font-size: var(--font-size-small); font-style: normal; line-height: var(--line-height-basis); color: var(--theme-color-body, var(--color-black-80, #333)); /* stylelint-disable-next-line */ -moz-osx-font-smoothing: grayscale; /* stylelint-disable-next-line */ -webkit-font-smoothing: antialiased; /* stylelint-disable-next-line */ -webkit-tap-highlight-color: rgba(0, 0, 0, 0); /** * Ensure consistency and use the same as HTML reset -> html {...} * between base and code package */ tab-size: 4; /* stylelint-disable-next-line */ -moz-tab-size: 4; /* stylelint-disable-next-line */ -ms-text-size-adjust: 100%; /* stylelint-disable-next-line */ -webkit-text-size-adjust: 100%; word-break: break-word; --eufemia-version: '10.104.0'; } @media print { .dnb-core-style { background-color: white; color: black; } } .dnb-core-style .eufemia-theme { font-family: var(--font-family-default); font-weight: var(--font-weight-basis); font-size: var(--font-size-small); font-style: normal; line-height: var(--line-height-basis); color: var(--theme-color-body, var(--color-black-80, #333)); } /* * Helper Classes * */ /* * Utilities */ .dnb-no-focus { outline: none; } .dnb-tab-focus { outline: none; } .dnb-tab-focus:focus { outline: none; } html[data-whatinput=keyboard] .dnb-tab-focus:focus { --border-color: var(--focus-ring-color); --border-width: var(--focus-ring-width); box-shadow: 0 0 0 var(--border-width) var(--border-color); border-color: transparent; } .dnb-mouse-focus { outline: none; } .dnb-mouse-focus:focus { outline: none; } html[data-whatinput=mouse] .dnb-mouse-focus:focus { --border-color: var(--focus-ring-color); --border-width: var(--focus-ring-width); box-shadow: 0 0 0 var(--border-width) var(--border-color); border-color: transparent; } .dnb-focus-ring { --border-color: var(--focus-ring-color); --border-width: var(--focus-ring-width); box-shadow: 0 0 0 var(--border-width) var(--border-color) !important; border-color: transparent; } .dnb-scrollbar-appearance { -webkit-overflow-scrolling: touch; -ms-overflow-style: auto; scrollbar-color: var(--scrollbar-thumb-color, #888) transparent; } @supports not (scrollbar-color: auto) { .dnb-scrollbar-appearance::-webkit-scrollbar:vertical { width: var(--scrollbar-track-width, 0.5rem); } .dnb-scrollbar-appearance::-webkit-scrollbar:horizontal { height: var(--scrollbar-track-width, 0.5rem); } .dnb-scrollbar-appearance::-webkit-scrollbar { border-radius: var(--scrollbar-thumb-width, 0.5rem); background-color: var(--scrollbar-track-color, #eee); } .dnb-scrollbar-appearance::-webkit-scrollbar-thumb { background-color: var(--scrollbar-thumb-color, #888); } .dnb-scrollbar-appearance::-webkit-scrollbar-thumb:hover { background-color: var(--scrollbar-thumb-hover-color, #666); } .dnb-scrollbar-appearance::-webkit-scrollbar-thumb { border-radius: var(--scrollbar-thumb-width, 0.5rem); } } .dnb-skip-link { position: absolute; z-index: 0; top: -100vh; opacity: 0.3; transition: opacity 0.3s ease-out; } .dnb-skip-link--active, .dnb-skip-link:focus { position: fixed; z-index: 9999; top: 5%; left: 40%; margin: 0; padding: 0.5rem 1rem; white-space: nowrap; font-size: var(--font-size-basis); color: var(--skip-link-color); -webkit-text-decoration: none; text-decoration: none; text-align: center; user-select: none; /* stylelint-disable-next-line */ -webkit-user-select: none; outline: none; background-color: transparent; border-radius: 0; border: none; box-shadow: none; } .dnb-skip-link--active::after, .dnb-skip-link:focus::after { content: ""; position: absolute; z-index: -2; left: -200vw; top: -200vh; width: 150vw; height: 150vh; background-color: rgba(255, 255, 255, 0.85); box-shadow: 150vw 150vh 0 0 rgba(255, 255, 255, 0.85); } .dnb-skip-link--active::before, .dnb-skip-link:focus::before { content: ""; position: absolute; z-index: -1; left: 0; top: 0; width: 100%; height: 100%; border-radius: 1.5rem; background-color: var(--skip-link-background); outline: none; } html[data-whatinput=mouse] .dnb-skip-link--active::before, html[data-whatinput=mouse] .dnb-skip-link:focus::before { --border-color: var(--focus-ring-color); --border-width: var(--focus-ring-width); box-shadow: 0 0 0 var(--border-width) var(--border-color); border-color: transparent; } .dnb-skip-link--active:hover::before, .dnb-skip-link:focus:hover::before { background-color: var(--skip-link-background--hover); } .dnb-skip-link--active:active::before, .dnb-skip-link:focus:active::before { background-color: var(--skip-link-background--active); } .dnb-skip-link--active:focus:not(:active)::before, .dnb-skip-link:focus:focus:not(:active)::before { outline: none; } html[data-whatinput=keyboard] .dnb-skip-link--active:focus:not(:active)::before, html[data-whatinput=keyboard] .dnb-skip-link:focus:focus:not(:active)::before { --border-color: var(--focus-ring-color); --border-width: var(--focus-ring-width); box-shadow: 0 0 0 var(--border-width) var(--border-color); border-color: transparent; } .dnb-skip-link--active:focus, .dnb-skip-link:focus:focus { opacity: 1; } .dnb-skip-link--active:hover, .dnb-skip-link:focus:hover { color: var(--skip-link-color--hover); background-color: transparent; box-shadow: none; } .dnb-skip-link--active:focus:not(:hover):not(:active), .dnb-skip-link:focus:focus:not(:hover):not(:active) { color: var(--skip-link-color); background-color: transparent; box-shadow: none; } .dnb-skip-link--active:active, .dnb-skip-link:focus:active { color: var(--skip-link-color--active); background-color: transparent; } html[data-whatintent=touch] .dnb-skip-link { display: none; } .dnb-alignment-helper { display: inline-block; width: 0; height: 0; font-size: var(--font-size-small); speak: none; } .dnb-alignment-helper::before { content: "⁠"; display: inline-block; width: 0; height: 0; font-size: var(--font-size-small); speak: none; height: 100%; opacity: 0; } .dnb-alignment-helper--pseudo-element-only::before { content: "⁠"; display: inline-block; width: 0; height: 0; font-size: var(--font-size-small); speak: none; height: 100%; opacity: 0; } .dnb-drop-shadow { box-shadow: var(--shadow-default); } .dnb-sharp-drop-shadow { box-shadow: var(--shadow-sharp); } .dnb-sr-only { -webkit-user-select: none !important; user-select: none !important; -webkit-touch-callout: none !important; pointer-events: none !important; position: absolute !important; clip-path: inset(50%) !important; max-width: 1px !important; max-height: 1px !important; overflow: hidden !important; white-space: nowrap !important; padding: 0 !important; margin: 0 !important; border: 0 !important; } .dnb-suffix { padding-left: 0.5rem; font-size: var(--font-size-basis); line-height: var(--line-height-basis); word-break: normal; }