@utrecht/components
Version:
Components for the Municipality of Utrecht based on the NL Design System architecture
46 lines • 2.4 kB
CSS
/**
* @license EUPL-1.2
* Copyright (c) 2020-2022 Gemeente Utrecht
* Copyright (c) 2020-2022 Frameless B.V.
*/
/**
* @license EUPL-1.2
* Copyright (c) 2020-2022 Gemeente Utrecht
* Copyright (c) 2020-2022 Frameless B.V.
*/
/**
* @license EUPL-1.2
* Copyright (c) 2020-2022 Gemeente Utrecht
* Copyright (c) 2020-2022 Frameless B.V.
*/
.utrecht-badge-counter {
/* Limit size to `max-content`, so the badge will not be stretched out of proportion inside a flexbox */
background-color: var(--utrecht-badge-counter-background-color, var(--utrecht-badge-background-color, hsl(0, 0%, 0%)));
border-radius: var(--utrecht-badge-counter-border-radius, var(--utrecht-badge-border-radius, 0.5ch));
color: var(--utrecht-badge-counter-color, var(--utrecht-badge-color, hsl(0, 0%, 100%)));
display: inline-block;
font-family: var(--utrecht-badge-counter-font-family, var(--utrecht-badge-font-family, var(--utrecht-document-font-family, sans-serif)));
font-size: var(--utrecht-badge-counter-font-size, var(--utrecht-badge-font-size));
font-style: var(--utrecht-badge-counter-font-style, normal); /* no inheritance */
font-weight: var(--utrecht-badge-counter-font-weight, var(--utrecht-badge-font-weight, bold)); /* no inheritance */
line-height: 1;
max-block-size: max-content;
max-inline-size: max-content;
min-block-size: var(--utrecht-badge-counter-min-block-size, var(--utrecht-badge-counter-min-inline-size, var(--utrecht-badge-counter-min-size, 1em)));
min-inline-size: var(--utrecht-badge-counter-min-inline-size, var(--utrecht-badge-counter-min-size, 1em));
padding-block-end: var(--utrecht-badge-counter-padding-block, var(--utrecht-badge-padding-block, 0.5ex));
padding-block-start: var(--utrecht-badge-counter-padding-block, var(--utrecht-badge-padding-block, 0.5ex));
padding-inline-end: var(--utrecht-badge-counter-padding-inline, var(--utrecht-badge-padding-inline, 0.5ch));
padding-inline-start: var(--utrecht-badge-counter-padding-inline, var(--utrecht-badge-padding-inline, 0.5ch));
text-align: center;
text-decoration: none; /* no inheritance */
white-space: nowrap;
}
@media screen and (-ms-high-contrast: active), screen and (forced-colors: active) {
.utrecht-badge-counter {
border-color: currentColor;
border-style: solid;
/* Warning: there layout difference because of the added 1px border */
border-width: 1px;
}
}