web/DialogButtons: move elevated button styling to layout
This commit is contained in:
parent
778190b2b3
commit
7411f358d2
2 changed files with 17 additions and 19 deletions
|
@ -8,7 +8,7 @@
|
|||
<div class="popup-buttons">
|
||||
{#each buttons as button}
|
||||
<button
|
||||
class="button popup-button {button.color}"
|
||||
class="button elevated popup-button {button.color}"
|
||||
class:color={button.color}
|
||||
class:active={button.main}
|
||||
on:click={async () => {
|
||||
|
@ -41,22 +41,4 @@
|
|||
background-color: var(--red);
|
||||
color: var(--white);
|
||||
}
|
||||
|
||||
.popup-button:not(.active) {
|
||||
background-color: var(--button-elevated);
|
||||
}
|
||||
|
||||
.popup-button:not(.active):active {
|
||||
background-color: var(--button-elevated-hover);
|
||||
}
|
||||
|
||||
.popup-button:not(:focus-visible) {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
.popup-button:not(.active):hover {
|
||||
background-color: var(--button-elevated-hover);
|
||||
}
|
||||
}
|
||||
</style>
|
||||
|
|
|
@ -333,6 +333,18 @@
|
|||
background-color: var(--button-hover);
|
||||
}
|
||||
|
||||
:global(.button.elevated) {
|
||||
background-color: var(--button-elevated);
|
||||
}
|
||||
|
||||
:global(.button.elevated:active) {
|
||||
background-color: var(--button-elevated-hover);
|
||||
}
|
||||
|
||||
:global(.button.elevated:not(:focus-visible)) {
|
||||
box-shadow: none;
|
||||
}
|
||||
|
||||
:global(.button.active) {
|
||||
color: var(--primary);
|
||||
background-color: var(--secondary);
|
||||
|
@ -354,6 +366,10 @@
|
|||
background-color: var(--button-hover);
|
||||
}
|
||||
|
||||
:global(.button.elevated:hover) {
|
||||
background-color: var(--button-elevated-hover);
|
||||
}
|
||||
|
||||
:global(.button.active:not(.color):hover) {
|
||||
background-color: var(--button-active-hover);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue