@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
80 lines • 2.59 kB
CSS
/*
* Icon component
*
*/
/*
* Utilities
*/
.eufemia-scope--10_104_0 .dnb-icon {
display: inline-block;
vertical-align: middle;
font-size: 1rem;
line-height: 1rem;
color: inherit;
width: 1em;
height: 1em;
}
.eufemia-scope--10_104_0 .dnb-icon img, .eufemia-scope--10_104_0 :where(.dnb-core-style) .dnb-icon img, .eufemia-scope--10_104_0 .dnb-icon svg, .eufemia-scope--10_104_0 :where(.dnb-core-style) .dnb-icon svg {
width: inherit;
height: inherit;
shape-rendering: geometricprecision;
vertical-align: top;
}
.eufemia-scope--10_104_0 .dnb-icon svg[width="100%"] {
width: inherit;
}
.eufemia-scope--10_104_0 .dnb-icon svg[height="100%"] {
height: inherit;
}
.eufemia-scope--10_104_0 .dnb-icon--inherit-color svg:not([fill]), .eufemia-scope--10_104_0 .dnb-icon--inherit-color svg [fill] {
fill: currentcolor;
}
.eufemia-scope--10_104_0 .dnb-icon--inherit-color svg [stroke] {
stroke: currentcolor;
}
.eufemia-scope--10_104_0 .dnb-icon--small {
font-size: 0.75rem;
}
.eufemia-scope--10_104_0 .dnb-icon--default {
font-size: 1rem;
}
.eufemia-scope--10_104_0 .dnb-icon--medium {
font-size: 1.5rem;
}
.eufemia-scope--10_104_0 .dnb-icon--large {
font-size: 2rem;
}
.eufemia-scope--10_104_0 .dnb-icon--x-large {
font-size: 2.5rem;
}
.eufemia-scope--10_104_0 .dnb-icon--xx-large {
font-size: 3rem;
}
.eufemia-scope--10_104_0 .dnb-icon--custom-size {
width: auto;
height: auto;
line-height: 0;
}
.eufemia-scope--10_104_0 .dnb-icon--auto {
font-size: 1em;
}
.eufemia-scope--10_104_0 .dnb-icon--custom-size svg[width="24"] path, .eufemia-scope--10_104_0 .dnb-icon--auto svg[width="24"] path, .eufemia-scope--10_104_0 .dnb-icon--large svg[width="24"] path, .eufemia-scope--10_104_0 .dnb-icon--x-large svg[width="24"] path, .eufemia-scope--10_104_0 .dnb-icon--xx-large svg[width="24"] path {
vector-effect: non-scaling-stroke;
}
.eufemia-scope--10_104_0 .dnb-icon--auto > .dnb-icon--wrapper {
display: inline-flex;
align-items: center;
justify-content: center;
}
.eufemia-scope--10_104_0 h1 > .dnb-icon, .eufemia-scope--10_104_0 h2 > .dnb-icon, .eufemia-scope--10_104_0 h3 > .dnb-icon, .eufemia-scope--10_104_0 h4 > .dnb-icon, .eufemia-scope--10_104_0 h5 > .dnb-icon, .eufemia-scope--10_104_0 h6 > .dnb-icon {
vertical-align: middle;
}
.eufemia-scope--10_104_0 p > .dnb-icon {
vertical-align: inherit;
}
.eufemia-scope--10_104_0 .dnb-icon.dnb-skeleton::before, .eufemia-scope--10_104_0 .dnb-icon.dnb-skeleton::after {
content: none ;
}
.eufemia-scope--10_104_0 .dnb-icon.dnb-skeleton {
color: var(--skeleton-color) ;
}