@dnb/eufemia
Version:
DNB Eufemia Design System UI Library
75 lines • 1.69 kB
CSS
/*
* FormStatus component
*
*/
/*
* Utilities
*/
.dnb-form-status {
--form-status-radius: 0.25rem;
display: flex;
opacity: 1;
}
.dnb-form-status__shell {
display: flex;
justify-content: flex-start;
align-items: flex-start;
min-width: inherit;
border-radius: var(--form-status-radius);
}
.dnb-form-status__text {
max-width: var(--prose-max-width);
padding: 0.625rem 1rem;
cursor: text;
}
button .dnb-form-status__text {
cursor: inherit;
}
.dnb-form-status__text {
color: inherit;
line-height: var(--line-height-small);
font-size: var(--font-size-small);
}
.dnb-form-status__text .dnb-ul,
.dnb-form-status__text .dnb-anchor {
font-size: inherit;
}
.dnb-form-status__text .dnb-ul:not([class*=dnb-space__left]) {
padding-left: 1rem;
}
.dnb-spacing .dnb-form-status__text .dnb-ul:not([class*=dnb-space__bottom]) .dnb-li {
margin-top: 0.5rem;
margin-bottom: 0.5rem;
}
.dnb-spacing .dnb-form-status__text .dnb-ul:not([class*=dnb-space__bottom]) {
margin-bottom: 0.5rem;
}
.dnb-form-status__text {
white-space: normal;
}
.dnb-icon + .dnb-form-status__text {
padding-left: 0.5rem;
}
.dnb-form-status__shell > .dnb-icon {
display: flex;
justify-content: center;
align-items: center;
margin: 0.3333333em 0.3333333em 0.3333333em 0.6666666em;
}
.dnb-form-status__size--large .dnb-form-status__text {
padding-top: 1.125rem;
padding-bottom: 1.125rem;
}
.dnb-form-status__size--large .dnb-form-status__shell > .dnb-icon {
margin-top: 0.6666666em;
margin-bottom: 0.6666666em;
}
.dnb-form-status--stretch {
flex-grow: 1;
}
.dnb-form-status--stretch .dnb-form-status__shell {
width: 100%;
}
.dnb-form-status[hidden] {
display: none;
}