1
0
Fork 0
firefox/toolkit/themes/shared/design-system/text-and-typography.css
Daniel Baumann 5e9a113729
Adding upstream version 140.0.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
2025-06-25 09:37:52 +02:00

45 lines
1,002 B
CSS

/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
/* Typography scale */
:root {
font: message-box;
}
h1,
.heading-xlarge {
font-weight: var(--font-weight-bold);
font-size: var(--font-size-xxlarge);
}
h2,
.heading-large {
font-weight: var(--font-weight-bold);
font-size: var(--font-size-xlarge);
}
h3,
.heading-medium {
font-weight: var(--font-weight-bold);
font-size: var(--font-size-large);
}
/* Text helpers */
.text-deemphasized {
font-size: var(--font-size-small);
color: var(--text-color-deemphasized);
}
.text-error {
color: var(--text-color-error);
font-weight: var(--font-weight-bold);
}
.text-truncated-ellipsis {
/* Will not work on `display: flex` items
unless you wrap its contents with another element that has this class. */
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}