Source code

Revision control

Copy as Markdown

Other Tools

/* 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;
}