make buttons disablable
Signed-off-by: Tobias Erbshäußer <tobias@tesoft.dev>
This commit is contained in:
@@ -27,13 +27,17 @@
|
||||
font-weight: 800;
|
||||
}
|
||||
|
||||
button:focus, a:focus {
|
||||
:host([disabled]) button, :host([disabled]) a {
|
||||
color: var(--gray);
|
||||
}
|
||||
|
||||
:host(:not([disabled])) button:focus, :host(:not([disabled])) a:focus {
|
||||
outline-color: var(--gold);
|
||||
outline-offset: 0.2rem;
|
||||
outline-style: solid;
|
||||
}
|
||||
|
||||
button:hover, a:hover {
|
||||
:host(:not([disabled])) button:hover, :host(:not([disabled])) a:hover {
|
||||
background-color: var(--gold) !important;
|
||||
color: var(--gray);
|
||||
cursor: pointer;
|
||||
@@ -43,11 +47,11 @@
|
||||
fill: var(--light-gray);
|
||||
}
|
||||
|
||||
:host([selected]) ::slotted(svg) {
|
||||
:host([selected]) ::slotted(svg), :host([disabled]) ::slotted(svg) {
|
||||
fill: var(--gray);
|
||||
}
|
||||
|
||||
button:hover ::slotted(svg), a:hover ::slotted(svg) {
|
||||
:host(:not([disabled])) button:hover ::slotted(svg), :host(:not([disabled])) a:hover ::slotted(svg) {
|
||||
fill: var(--gray);
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user