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/. */
@import url("chrome://global/content/elements/moz-badge.tokens.css");
.moz-badge {
display: flex;
align-items: center;
gap: var(--space-xsmall);
padding: var(--space-xsmall) var(--space-small);
width: fit-content;
color: var(--badge-text-color);
border: 1px solid var(--badge-border-color);
border-radius: var(--border-radius-small);
}
.moz-badge-icon {
width: var(--icon-size-xsmall);
height: var(--icon-size-xsmall);
-moz-context-properties: fill, stroke;
fill: var(--icon-color);
stroke: var(--icon-color);
}
.moz-badge-label {
font-size: var(--font-size-small);
}
:host([type="new"]) {
.moz-badge {
color: var(--badge-text-color-filled);
background-color: var(--badge-background-color-filled);
border-color: var(--badge-border-color-filled);
}
}