web/buttons: add hover state to active button
This commit is contained in:
parent
205494b367
commit
8193e8c14d
2 changed files with 12 additions and 2 deletions
|
@ -49,6 +49,10 @@
|
|||
padding: var(--switcher-padding);
|
||||
}
|
||||
|
||||
.switcher :global(.button.active) {
|
||||
pointer-events: none;
|
||||
}
|
||||
|
||||
.switcher.big :global(.button) {
|
||||
width: 100%;
|
||||
/* [base button height] - ([switcher padding] * [padding factor to accommodate for]) */
|
||||
|
|
|
@ -65,6 +65,7 @@
|
|||
|
||||
--button: #f4f4f4;
|
||||
--button-hover: #e8e8e8;
|
||||
--button-active-hover: #2a2a2a;
|
||||
--button-hover-transparent: rgba(0, 0, 0, 0.06);
|
||||
--button-stroke: rgba(0, 0, 0, 0.06);
|
||||
--button-text: #282828;
|
||||
|
@ -119,6 +120,7 @@
|
|||
|
||||
--button: #191919;
|
||||
--button-hover: #2a2a2a;
|
||||
--button-active-hover: #f9f9f9;
|
||||
--button-hover-transparent: rgba(225, 225, 225, 0.1);
|
||||
--button-stroke: rgba(255, 255, 255, 0.05);
|
||||
--button-text: #e1e1e1;
|
||||
|
@ -267,21 +269,25 @@
|
|||
}
|
||||
|
||||
:global(.button.active) {
|
||||
background: var(--secondary);
|
||||
color: var(--primary);
|
||||
background-color: var(--secondary);
|
||||
}
|
||||
|
||||
/* important is used because active class is toggled by state */
|
||||
/* and added to the end of the list, taking priority */
|
||||
:global(.active:focus-visible) {
|
||||
background: var(--blue) !important;
|
||||
color: var(--sidebar-highlight) !important;
|
||||
background-color: var(--blue) !important;
|
||||
}
|
||||
|
||||
@media (hover: hover) {
|
||||
:global(button:hover) {
|
||||
background-color: var(--button-hover);
|
||||
}
|
||||
|
||||
:global(.button.active:hover) {
|
||||
background-color: var(--button-active-hover);
|
||||
}
|
||||
}
|
||||
|
||||
:global(.center-column-container) {
|
||||
|
|
Loading…
Reference in a new issue