trisquel-icecat/icecat/toolkit/content/widgets/moz-radio-group/moz-radio.css

43 lines
867 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/. */
:host {
--radio-size: var(--size-item-small);
}
input {
font-size: inherit;
min-height: var(--radio-size);
min-width: var(--radio-size);
flex-shrink: 0;
}
input,
.icon {
margin: calc((1lh - var(--radio-size)) / 2) 0;
}
label {
display: flex;
align-items: flex-start;
gap: var(--space-small);
}
.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: calc(var(--radio-size) + var(--space-small));
}
}