mirror of
https://github.com/hydralauncher/hydra.git
synced 2025-02-09 03:37:45 +03:00
feat: add disabled state styles for checkbox component
This commit is contained in:
parent
8cb231329b
commit
eed28d7444
@ -7,6 +7,11 @@
|
||||
gap: globals.$spacing-unit;
|
||||
cursor: pointer;
|
||||
|
||||
&:has(input:disabled) {
|
||||
cursor: not-allowed;
|
||||
opacity: globals.$disabled-opacity;
|
||||
}
|
||||
|
||||
&__checkbox {
|
||||
width: 20px;
|
||||
height: 20px;
|
||||
@ -18,7 +23,8 @@
|
||||
position: relative;
|
||||
transition: all ease 0.2s;
|
||||
border: solid 1px globals.$border-color;
|
||||
&:hover {
|
||||
|
||||
&:hover:not(:has(input:disabled)) {
|
||||
border-color: rgba(255, 255, 255, 0.5);
|
||||
}
|
||||
}
|
||||
@ -31,9 +37,17 @@
|
||||
padding: 0;
|
||||
opacity: 0;
|
||||
cursor: pointer;
|
||||
|
||||
&:disabled {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
|
||||
&__label {
|
||||
cursor: pointer;
|
||||
|
||||
&:has(+ input:disabled) {
|
||||
cursor: not-allowed;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user