style(next): restyle icon buttons

This commit is contained in:
Adorian Doran 2025-01-30 22:44:11 +02:00
parent b170c234ce
commit 3311f4f01c
4 changed files with 41 additions and 0 deletions

View File

@ -31,6 +31,10 @@
--cmd-button-keyboard-shortcut-color: white;
--cmd-button-disabled-opacity: .5;
--icon-button-color: currentColor;
--icon-button-hover-background: var(--hover-item-background-color);
--icon-button-hover-color: var(--hover-item-text-color);
--muted-text-color: #bbb;
--input-background-color: #ffffff12;

View File

@ -31,6 +31,10 @@
--cmd-button-keyboard-shortcut-color: black;
--cmd-button-disabled-opacity: .5;
--icon-button-color: currentColor;
--icon-button-hover-background: var(--hover-item-background-color);
--icon-button-hover-color: var(--hover-item-text-color);
--muted-text-color: #666;
--input-background-color: #00000012;

View File

@ -58,6 +58,9 @@
--help-backdrop-blur: 10px;
--icon-button-size: 32px;
--icon-button-icon-ratio: .65;
/* Theme capabilities */
--tab-note-icons: true;
}

View File

@ -74,6 +74,36 @@ button.btn.btn-success kbd {
letter-spacing: .5pt;
}
/*
* Icon buttons
*/
:root .icon-action:not(.global-menu-button) {
width: var(--icon-button-size);
height: var(--icon-button-size);
border: unset;
border-radius: 8px;
padding: 0;
text-align: center;
color: var(--icon-button-color);
}
/* The icon */
:root .icon-action:not(.global-menu-button)::before {
display: block;
line-height: var(--icon-button-size);
font-size: calc(var(--icon-button-size) * var(--icon-button-icon-ratio));
}
:root .icon-action:not(.global-menu-button):hover {
background: var(--icon-button-hover-background);
color: var(--icon-button-hover-color);
}
:root .icon-action:not(.global-menu-button):active::before {
transform: scale(.85);
}
/*
* Input boxes
*/