@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
457 lines (453 loc) • 10.6 kB
CSS
/**
* Import reset and body scope
*
*/
/*
* Scopes
*
*/
/*
* Document Reset
*
*/
/*
* Scopes
*
*/
/**
* 1. Use the default cursor in all browsers (opinionated).
* 2. Use the default user interface font in all browsers (opinionated).
* 3. Correct the line height in all browsers.
* 4. Use a 4-space tab width in all browsers (opinionated).
* 5. Prevent adjustments of font size after orientation changes in iOS.
* 6. Breaks words to prevent overflow in all browsers (opinionated).
*/
html {
cursor: default; /* 1 */
font-family: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, Cantarell, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji"; /* 2 */
line-height: var(--line-height-basis); /* 3 */ /* 4 */
tab-size: 4; /* 4 */ /* 5 */
-webkit-text-size-adjust: 100%;
-moz-text-size-adjust: 100%;
text-size-adjust: 100%; /* 5 */
word-break: break-word; /* 6 */
}
/**
* Remove the margin in all browsers (opinionated).
*/
body {
margin: 0;
}
html:not([data-visual-test]) .eufemia-scope--11_0_0 {
scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
html:not([data-visual-test]) .eufemia-scope--11_0_0 {
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"] .eufemia-scope--11_0_0 .dnb-anchor--active {
color: var(--color-mint-green) ;
}
html[xmlns="http://www.w3.org/1999/xhtml"] .eufemia-scope--11_0_0 a.dnb-button--primary {
color: var(--color-white);
}
html[xmlns="http://www.w3.org/1999/xhtml"] .eufemia-scope--11_0_0 .dnb-ul {
list-style: initial;
}
html[xmlns="http://www.w3.org/1999/xhtml"] .eufemia-scope--11_0_0 .dnb-p {
overflow: initial;
text-align: inherit;
background-color: initial;
}
html[xmlns="http://www.w3.org/1999/xhtml"] .eufemia-scope--11_0_0 i {
font-style: italic;
}
html[xmlns="http://www.w3.org/1999/xhtml"] .eufemia-scope--11_0_0 #column_left,
html[xmlns="http://www.w3.org/1999/xhtml"] .eufemia-scope--11_0_0 #root {
width: 100%;
}
html[xmlns="http://www.w3.org/1999/xhtml"] body .eufemia-scope--11_0_0 #dnbLayoutDefault #wrapper,
html[xmlns="http://www.w3.org/1999/xhtml"] body .eufemia-scope--11_0_0 #dnbLayoutDefaultStartPage #wrapper {
width: 100%;
padding: 0;
}
html[xmlns="http://www.w3.org/1999/xhtml"] .eufemia-scope--11_0_0 #column_content {
box-shadow: none;
}
body {
/**
* 1. Remove repeating backgrounds in all browsers (opinionated).
* 2. Add border box sizing in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 *,
body .eufemia-scope--11_0_0 ::before,
body .eufemia-scope--11_0_0 ::after {
background-repeat: no-repeat; /* 1 */
box-sizing: border-box; /* 2 */
}
body {
/**
* 1. Add text decoration inheritance in all browsers (opinionated).
* 2. Add vertical alignment inheritance in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 ::before,
body .eufemia-scope--11_0_0 ::after {
text-decoration: inherit; /* 1 */
vertical-align: inherit; /* 2 */
}
body {
/* Grouping content
*/
/**
* Add the correct sizing in Firefox.
*/
}
body .eufemia-scope--11_0_0 hr {
height: 0; /* 1 */
overflow: visible; /* 2 */
}
body {
/**
* Remove the list style on navigation lists in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 nav ol,
body .eufemia-scope--11_0_0 nav ul {
list-style: none;
}
body {
/* Text-level semantics
*/
/**
* Add the correct text decoration in Opera and Safari.
*/
}
body .eufemia-scope--11_0_0 abbr[title] {
text-decoration: underline;
-webkit-text-decoration: underline dotted;
text-decoration: underline dotted;
}
body {
/**
* Add the correct font weight in Chrome and Safari.
*/
}
body .eufemia-scope--11_0_0 b,
body .eufemia-scope--11_0_0 strong {
font-weight: bolder;
}
body {
/**
* 1. Use the default monospace user interface font
* in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 pre,
body .eufemia-scope--11_0_0 code,
body .eufemia-scope--11_0_0 kbd,
body .eufemia-scope--11_0_0 samp {
font-family: var(--font-family-monospace); /* 1 */
}
body {
/*
* Restore the coloring and remove text shadow on text selections (opinionated).
*/
}
body .eufemia-scope--11_0_0 ::selection {
background-color: #b3d4fc;
color: var(--color-black);
text-shadow: none;
}
body {
/* Embedded content
*/
/*
* Change the alignment on media elements in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 audio,
body .eufemia-scope--11_0_0 canvas,
body .eufemia-scope--11_0_0 iframe,
body .eufemia-scope--11_0_0 img,
body .eufemia-scope--11_0_0 svg,
body .eufemia-scope--11_0_0 video {
vertical-align: middle;
}
body {
/**
* Change the fill color to match the text color in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 svg:not([fill]) {
fill: currentcolor;
}
body {
/* Tabular data
*/
/**
* Collapse border spacing in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 table {
border-collapse: collapse;
}
body {
/* Forms
*/
/**
* Inherit styling in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 button,
body .eufemia-scope--11_0_0 input,
body .eufemia-scope--11_0_0 select,
body .eufemia-scope--11_0_0 textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
body {
/**
* Remove the margin in Safari.
*/
}
body .eufemia-scope--11_0_0 figure,
body .eufemia-scope--11_0_0 button,
body .eufemia-scope--11_0_0 input,
body .eufemia-scope--11_0_0 select {
margin: 0;
}
body {
/**
* Remove the inheritance of text transform in Firefox.
*/
}
body .eufemia-scope--11_0_0 button {
text-transform: none;
}
body {
/**
* Safari did inherit the break-word from html root
*/
}
body .eufemia-scope--11_0_0 input {
word-break: normal;
}
body {
/**
* Correct the color inheritance from `fieldset` elements.
*/
}
body .eufemia-scope--11_0_0 legend {
color: inherit;
display: table;
max-width: 100%;
white-space: normal;
}
body {
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
}
body .eufemia-scope--11_0_0 progress {
display: inline-block;
vertical-align: baseline;
}
body {
/**
* Remove the inheritance of text transform in Firefox.
*/
}
body .eufemia-scope--11_0_0 select {
text-transform: none;
}
body {
/**
* Change the resize direction on textareas in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 textarea {
resize: vertical;
}
body {
/**
* Correct the odd appearance in Chrome and Safari.
*/
}
body .eufemia-scope--11_0_0 input[type=search] {
-webkit-appearance: textfield;
appearance: textfield;
outline-offset: -2px;
}
body {
/**
* Correct the cursor style of increment and decrement buttons in Safari.
*/
}
body .eufemia-scope--11_0_0 ::-webkit-inner-spin-button,
body .eufemia-scope--11_0_0 ::-webkit-outer-spin-button {
height: auto;
}
body {
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
}
body .eufemia-scope--11_0_0 ::-webkit-search-decoration {
-webkit-appearance: none;
appearance: none;
}
body {
/**
* Change font properties to inherit in Safari.
*/
}
body .eufemia-scope--11_0_0 ::-webkit-file-upload-button {
font: inherit;
background-color: transparent;
border: none;
}
body {
/**
* Remove the inner border and padding of focus outlines in Firefox.
*/
}
body .eufemia-scope--11_0_0 ::-moz-focus-inner {
border-style: none;
padding: 0;
}
body {
/* Interactive
*/
/*
* Add the correct display in all browsers.
*/
}
body .eufemia-scope--11_0_0 summary {
display: list-item;
}
body {
/* Scripting
*/
/**
* Add the correct display in all browsers.
*/
}
body .eufemia-scope--11_0_0 template {
display: none;
}
body {
/* User interaction
*/
/*
* Remove the tapping delay on clickable elements in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 a,
body .eufemia-scope--11_0_0 area,
body .eufemia-scope--11_0_0 button,
body .eufemia-scope--11_0_0 input,
body .eufemia-scope--11_0_0 label,
body .eufemia-scope--11_0_0 select,
body .eufemia-scope--11_0_0 summary,
body .eufemia-scope--11_0_0 textarea,
body .eufemia-scope--11_0_0 [tabindex] {
touch-action: manipulation;
}
body {
/**
* Add the correct display in all browsers.
*/
}
body .eufemia-scope--11_0_0 [hidden] {
display: none;
}
body {
/* Accessibility
*/
/**
* Change the cursor on busy elements in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 [aria-busy=true] {
cursor: progress;
}
body {
/*
* Change the cursor on control elements in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 [aria-controls]:not(input) {
cursor: pointer;
}
body {
/*
* Change the cursor on disabled, not-editable, or otherwise
* inoperable elements in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 [aria-disabled=true],
body .eufemia-scope--11_0_0 [disabled] {
cursor: not-allowed;
}
body {
/*
* Change the display on visually hidden accessible elements
* in all browsers (opinionated).
*/
}
body .eufemia-scope--11_0_0 [aria-hidden=false][hidden]:not(:focus) {
clip-path: inset(100%);
display: inherit;
position: absolute;
}
body {
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 {
body {
background-color: white;
color: black;
}
}
body .eufemia-scope--11_0_0 .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);
}