Progmasoft Git

progmaweb

The site and account service of Progmasoft: a Next.js frontend and an ASP.NET Core API.

Clonegit clone https://git.progmasoft.com/progmaweb

Take the colour of a small button from its kind

Codacy flagged the !important on .button-small. It also hid a bug: the
new rule painted every small button in the paper colour, including the
secondary one of Allowed applications, whose background is transparent,
so its label vanished. Both !important colours are gone; a small button
takes its colour from .button or .button-secondary, and the header
button keeps the paper colour on hover through .site-header
.button-small:hover. Measured on progmasoft.com, account and console.
Commit
ebc5fd1a3585cee1c8219c9832a336261b06d53f
Author
Leitwolf11 ·
Parents
55f483706402

Files · Download .tar.gz

Changes

 apps/web/app/globals.css | 6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/apps/web/app/globals.css b/apps/web/app/globals.css
index 46f14cb..632b7bd 100644
--- a/apps/web/app/globals.css
+++ b/apps/web/app/globals.css
@@ -445,7 +445,6 @@ a {
 .button-small {
   min-height: 36px;
   padding: 8px 15px;
-  color: white !important;
 }
 
 .button-secondary {
@@ -1584,10 +1583,6 @@ h1 {
   box-shadow: none;
 }
 
-.button-small {
-  color: var(--surface) !important;
-}
-
 .button-secondary {
   border-color: var(--line-strong);
   background: transparent;
@@ -1642,6 +1637,7 @@ textarea {
 
 .site-header .button-small:hover {
   background: color-mix(in srgb, var(--ink-950) 82%, var(--surface));
+  color: var(--surface);
 }
 
 .preference-controls button,