Skip to content

Speakr is a personal, self-hosted web application designed for transcribing audio recordings

Python

Add .btn--quiet to the .btn--icon :not() chain so combining .btn--icon.btn--quiet doesn't override the quiet variant's foreground / hover background — pre-emptive, no current site combines them but the pattern is consistent with .btn--primary / .btn--danger / .btn--ghost; zero cost

Murtaza Nasir321bb43910c6
diff --git a/static/css/primitives.css b/static/css/primitives.css
index 5632820e..cb5a8e22 100644
--- a/static/css/primitives.css
+++ b/static/css/primitives.css
@@ -552,15 +552,15 @@ html.dark {
padding: 0;
}
/* Default colours for a bare .btn--icon (no colour variant). When
- combined with .btn--primary / .btn--danger / .btn--ghost the
- variant's own colour rules apply — otherwise the muted icon colour
- below would override the variant's foreground (and the hover rule
- would override its background), which produced a dark icon on a
+ combined with .btn--primary / .btn--danger / .btn--ghost / .btn--quiet
+ the variant's own colour rules apply — otherwise the muted icon
+ colour below would override the variant's foreground (and the hover
+ rule would override its background), which produced a dark icon on a
coloured primary fill in light mode. */
-.btn--icon:not(.btn--primary):not(.btn--danger):not(.btn--ghost) {
+.btn--icon:not(.btn--primary):not(.btn--danger):not(.btn--ghost):not(.btn--quiet) {
color: var(--text-muted);
}
-.btn--icon:not(.btn--primary):not(.btn--danger):not(.btn--ghost):hover:not(:disabled) {
+.btn--icon:not(.btn--primary):not(.btn--danger):not(.btn--ghost):not(.btn--quiet):hover:not(:disabled) {
background: var(--bg-tertiary);
color: var(--text-primary);
}