/* 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/skin/design-system/text-and-typography.css"); :host { display: flex; flex-direction: column; gap: var(--space-xxsmall); --checkbox-space-offset: calc(var(--checkbox-size) + var(--space-small)); --icon-space-offset: calc(var(--icon-size-default) + var(--space-small)); } label { display: flex; gap: var(--space-small); align-items: start; } input { min-width: var(--checkbox-size); height: var(--checkbox-size); accent-color: var(--color-accent-primary); -moz-theme: non-native; font-size: inherit; /* Bug 1901865: Due to the "MS Shell Dlg 2" font, we need inherits to * keep the checkbox aligned */ font-family: inherit; line-height: inherit; } input, .icon { margin: calc((1lh - var(--checkbox-size)) / 2) 0; } .label-content { display: flex; position: relative; } .icon { -moz-context-properties: fill, fill-opacity, stroke; fill: currentColor; stroke: currentColor; width: var(--icon-size-default); height: var(--icon-size-default); position: absolute; & + .text { text-indent: var(--icon-space-offset) } } .description { margin-inline-start: var(--checkbox-space-offset); } .label { padding-inline-end: var(--space-xsmall); }