2024-12-17 02:02:30 -05:00
|
|
|
:host {
|
|
|
|
|
display: contents;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
:where([part~='base']) {
|
|
|
|
|
all: inherit;
|
|
|
|
|
display: inline-flex;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.prefix,
|
|
|
|
|
.suffix,
|
|
|
|
|
.label {
|
2024-12-12 12:30:13 -05:00
|
|
|
display: inline-flex;
|
|
|
|
|
position: relative;
|
|
|
|
|
align-items: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/* We use a hidden input so constraint validation errors work, since they don't appear to show when used with buttons.
|
|
|
|
|
We can't actually hide it, though, otherwise the messages will be suppressed by the browser. */
|
|
|
|
|
.hidden-input {
|
|
|
|
|
all: unset;
|
|
|
|
|
position: absolute;
|
|
|
|
|
top: 0;
|
|
|
|
|
left: 0;
|
|
|
|
|
bottom: 0;
|
|
|
|
|
right: 0;
|
|
|
|
|
outline: dotted 1px red;
|
|
|
|
|
opacity: 0;
|
|
|
|
|
z-index: -1;
|
|
|
|
|
}
|
2024-12-17 02:02:30 -05:00
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
* Checked buttons
|
|
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
:host([checked]) {
|
|
|
|
|
--background-color: var(--wa-color-brand-fill-quiet);
|
|
|
|
|
--background-color-hover: var(--background-color);
|
|
|
|
|
--border-color: var(--wa-form-control-activated-color);
|
2024-12-17 10:39:47 -05:00
|
|
|
--text-color: var(--wa-color-brand-on-normal);
|
2024-12-17 02:02:30 -05:00
|
|
|
--indicator-color: var(--border-color);
|
|
|
|
|
--indicator-width: var(--wa-border-width-s);
|
|
|
|
|
|
|
|
|
|
box-shadow:
|
|
|
|
|
var(--box-shadow, 0 0 transparent),
|
|
|
|
|
inset 0 0 0 var(--indicator-width) var(--indicator-color);
|
|
|
|
|
}
|