1 /* This Source Code Form is subject to the terms of the Mozilla Public
2 * License, v. 2.0. If a copy of the MPL was not distributed with this
3 * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
6 * A radiogroup styled to hide the radio buttons
7 * and present tab-like labels as buttons
12 min-height: var
(--button-min-height-small
);
20 background-color: var
(--button-background-color
);
25 inset-inline-start: -100px;
28 .toggle-group-label-iconic::before {
29 width: var
(--icon-size-default
);
30 height: var
(--icon-size-default
);
31 margin-inline-end: 5px;
32 -moz-context-properties: fill
;
36 .toggle-group-label:first-of-type {
37 border-start-start-radius: var
(--border-radius-small
);
38 border-end-start-radius: var
(--border-radius-small
);
41 .toggle-group-label:last-of-type {
42 border-start-end-radius: var
(--border-radius-small
);
43 border-end-end-radius: var
(--border-radius-small
);
46 .toggle-group-input:disabled + .toggle-group-label {
50 .toggle-group-input:enabled + .toggle-group-label:hover {
51 background-color: var
(--button-background-color-hover
);
52 color: var
(--button-text-color-hover
);
55 .toggle-group-input:enabled + .toggle-group-label:hover:active {
56 background-color: var
(--button-background-color-active
);
57 color: var
(--button-text-color-active
);
60 .toggle-group-input:focus-visible + .toggle-group-label {
61 outline: var
(--focus-outline
);
62 outline-offset: var
(--focus-outline-offset
);
66 .toggle-group-input:checked + .toggle-group-label {
67 background-color: var
(--button-background-color-primary
);
68 color: var
(--button-text-color-primary
);
71 .toggle-group-input:enabled:checked + .toggle-group-label:hover {
72 background-color: var
(--button-background-color-primary-hover
);
73 color: var
(--button-text-color-primary-hover
);
76 .toggle-group-input:enabled:checked + .toggle-group-label:hover:active {
77 background-color: var
(--button-background-color-primary-active
);
78 color: var
(--button-text-color-primary-active
);