UNPKG

@dnb/eufemia

Version:

DNB Eufemia Design System UI Library

702 lines (669 loc) 15.1 kB
@charset "UTF-8"; /** * Import basis core parts * */ /* * Scopes * */ /* * Document Reset * */ /* * Scopes * */ 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"] 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 */ /** * Add the correct sizing in Firefox. */ } .dnb-core-style hr { height: 0; /* 1 */ overflow: visible; /* 2 */ } .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 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 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 { /* * Restore the coloring and remove text shadow on text selections (opinionated). */ } .dnb-core-style ::selection { background-color: #b3d4fc; color: var(--color-black); 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 { /** * Change the fill color to match the text color in all browsers (opinionated). */ } .dnb-core-style svg:not([fill]) { fill: currentcolor; } .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 { /** * Remove the inheritance of text transform in Firefox. */ } .dnb-core-style button { text-transform: none; } .dnb-core-style { /** * Safari did inherit the break-word from html root */ } .dnb-core-style input { word-break: normal; } .dnb-core-style { /** * Correct the color inheritance from `fieldset` elements. */ } .dnb-core-style legend { color: inherit; display: table; max-width: 100%; white-space: normal; } .dnb-core-style { /** * Add the correct vertical alignment in Chrome, Firefox, and Opera. */ } .dnb-core-style progress { display: inline-block; vertical-align: baseline; } .dnb-core-style { /** * Remove the inheritance of text transform in Firefox. */ } .dnb-core-style select { text-transform: none; } .dnb-core-style { /** * Change the resize direction on textareas in all browsers (opinionated). */ } .dnb-core-style textarea { resize: vertical; } .dnb-core-style { /** * Correct the odd appearance in Chrome and Safari. */ } .dnb-core-style input[type=search] { -webkit-appearance: textfield; appearance: textfield; outline-offset: -2px; } .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 { /** * Change font properties to inherit in Safari. */ } .dnb-core-style ::-webkit-file-upload-button { font: inherit; 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 all browsers. */ } .dnb-core-style summary { display: list-item; } .dnb-core-style { /* Scripting */ /** * Add the correct display in all browsers. */ } .dnb-core-style template { display: none; } .dnb-core-style { /* User interaction */ /* * 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] { touch-action: manipulation; } .dnb-core-style { /** * Add the correct display in all browsers. */ } .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-path: inset(100%); 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(--token-color-text-neutral, #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 */ -webkit-text-size-adjust: 100%; word-break: break-word; --eufemia-version: '11.0.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(--token-color-text-neutral, #333); } /* * Helper Classes * */ /* * Utilities */ /* * 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 { 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); } } /* * Helper Classes * */ /* * Utilities */ /* * Utilities */ .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; }