mirror of
https://github.com/picocss/pico.git
synced 2025-04-25 18:56:15 -04:00
feat: disabled groups (fieldset)
This commit is contained in:
parent
43cacb0b93
commit
19d2ffad02
18 changed files with 42 additions and 29 deletions
|
@ -175,7 +175,8 @@ input[type="reset"],
|
|||
|
||||
// Button [disabled]
|
||||
// Links without href are disabled by default
|
||||
:where(button, input[type="submit"], input[type="reset"], [role="button"])[disabled],
|
||||
:where(button, [type="submit"], [type="button"], [type="reset"], [role="button"])[disabled],
|
||||
:where([disabled]) :is(button, [type="submit"], [type="button"], [type="reset"], [role="button"]),
|
||||
a[role="button"]:not([href]) {
|
||||
opacity: 0.5;
|
||||
pointer-events: none;
|
||||
|
|
|
@ -198,14 +198,14 @@ textarea {
|
|||
}
|
||||
|
||||
// Disabled
|
||||
input:not([type="submit"]):not([type="button"]):not([type="reset"]),
|
||||
select,
|
||||
textarea {
|
||||
&[disabled] {
|
||||
--background-color: var(--form-element-disabled-background-color);
|
||||
--border-color: var(--form-element-disabled-border-color);
|
||||
opacity: var(--form-element-disabled-opacity);
|
||||
}
|
||||
input:not([type="submit"]):not([type="button"]):not([type="reset"])[disabled],
|
||||
select[disabled],
|
||||
textarea[disabled],
|
||||
:where([disabled]) :is(input:not([type="submit"]):not([type="button"]):not([type="reset"]), select, textarea) {
|
||||
--background-color: var(--form-element-disabled-background-color);
|
||||
--border-color: var(--form-element-disabled-border-color);
|
||||
opacity: var(--form-element-disabled-opacity);
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
// Aria-invalid
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue