@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
457 lines (453 loc) • 8.93 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]) {
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) ;
}
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 {
/**
* 1. Remove repeating backgrounds in all browsers (opinionated).
* 2. Add border box sizing in all browsers (opinionated).
*/
}
body *,
body ::before,
body ::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 ::before,
body ::after {
text-decoration: inherit; /* 1 */
vertical-align: inherit; /* 2 */
}
body {
/* Grouping content
*/
/**
* Add the correct sizing in Firefox.
*/
}
body hr {
height: 0; /* 1 */
overflow: visible; /* 2 */
}
body {
/**
* Remove the list style on navigation lists in all browsers (opinionated).
*/
}
body nav ol,
body nav ul {
list-style: none;
}
body {
/* Text-level semantics
*/
/**
* Add the correct text decoration in Opera and Safari.
*/
}
body 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 b,
body strong {
font-weight: bolder;
}
body {
/**
* 1. Use the default monospace user interface font
* in all browsers (opinionated).
*/
}
body pre,
body code,
body kbd,
body samp {
font-family: var(--font-family-monospace); /* 1 */
}
body {
/*
* Restore the coloring and remove text shadow on text selections (opinionated).
*/
}
body ::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 audio,
body canvas,
body iframe,
body img,
body svg,
body video {
vertical-align: middle;
}
body {
/**
* Change the fill color to match the text color in all browsers (opinionated).
*/
}
body svg:not([fill]) {
fill: currentcolor;
}
body {
/* Tabular data
*/
/**
* Collapse border spacing in all browsers (opinionated).
*/
}
body table {
border-collapse: collapse;
}
body {
/* Forms
*/
/**
* Inherit styling in all browsers (opinionated).
*/
}
body button,
body input,
body select,
body textarea {
font-family: inherit;
font-size: inherit;
line-height: inherit;
}
body {
/**
* Remove the margin in Safari.
*/
}
body figure,
body button,
body input,
body select {
margin: 0;
}
body {
/**
* Remove the inheritance of text transform in Firefox.
*/
}
body button {
text-transform: none;
}
body {
/**
* Safari did inherit the break-word from html root
*/
}
body input {
word-break: normal;
}
body {
/**
* Correct the color inheritance from `fieldset` elements.
*/
}
body legend {
color: inherit;
display: table;
max-width: 100%;
white-space: normal;
}
body {
/**
* Add the correct vertical alignment in Chrome, Firefox, and Opera.
*/
}
body progress {
display: inline-block;
vertical-align: baseline;
}
body {
/**
* Remove the inheritance of text transform in Firefox.
*/
}
body select {
text-transform: none;
}
body {
/**
* Change the resize direction on textareas in all browsers (opinionated).
*/
}
body textarea {
resize: vertical;
}
body {
/**
* Correct the odd appearance in Chrome and Safari.
*/
}
body input[type=search] {
-webkit-appearance: textfield;
appearance: textfield;
outline-offset: -2px;
}
body {
/**
* Correct the cursor style of increment and decrement buttons in Safari.
*/
}
body ::-webkit-inner-spin-button,
body ::-webkit-outer-spin-button {
height: auto;
}
body {
/**
* Remove the inner padding in Chrome and Safari on macOS.
*/
}
body ::-webkit-search-decoration {
-webkit-appearance: none;
appearance: none;
}
body {
/**
* Change font properties to inherit in Safari.
*/
}
body ::-webkit-file-upload-button {
font: inherit;
background-color: transparent;
border: none;
}
body {
/**
* Remove the inner border and padding of focus outlines in Firefox.
*/
}
body ::-moz-focus-inner {
border-style: none;
padding: 0;
}
body {
/* Interactive
*/
/*
* Add the correct display in all browsers.
*/
}
body summary {
display: list-item;
}
body {
/* Scripting
*/
/**
* Add the correct display in all browsers.
*/
}
body template {
display: none;
}
body {
/* User interaction
*/
/*
* Remove the tapping delay on clickable elements in all browsers (opinionated).
*/
}
body a,
body area,
body button,
body input,
body label,
body select,
body summary,
body textarea,
body [tabindex] {
touch-action: manipulation;
}
body {
/**
* Add the correct display in all browsers.
*/
}
body [hidden] {
display: none;
}
body {
/* Accessibility
*/
/**
* Change the cursor on busy elements in all browsers (opinionated).
*/
}
body [aria-busy=true] {
cursor: progress;
}
body {
/*
* Change the cursor on control elements in all browsers (opinionated).
*/
}
body [aria-controls]:not(input) {
cursor: pointer;
}
body {
/*
* Change the cursor on disabled, not-editable, or otherwise
* inoperable elements in all browsers (opinionated).
*/
}
body [aria-disabled=true],
body [disabled] {
cursor: not-allowed;
}
body {
/*
* Change the display on visually hidden accessible elements
* in all browsers (opinionated).
*/
}
body [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-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);
}