From a300940313247f5efe1a80c0adbead2ad968dd75 Mon Sep 17 00:00:00 2001 From: Luke Fretwell Date: Thu, 29 Oct 2026 10:02:18 -0700 Subject: [PATCH] Unify button styles into two variants with a shared icon and state rule --- _includes/actions.html | 40 +++-- _includes/cta.html | 27 +--- _includes/feedback.html | 2 +- public/css/scangov.css | 351 ++++++++-------------------------------- 4 files changed, 95 insertions(+), 325 deletions(-) diff --git a/_includes/actions.html b/_includes/actions.html index 7a4535b..d0e29a7 100644 --- a/_includes/actions.html +++ b/_includes/actions.html @@ -30,24 +30,22 @@ #} {% set actionsSocialSites = ["https://scangov.com", "https://scangov.org", "https://docs.scangov.org", "https://standards.scangov.org", "https://data.scangov.org"] %} {% set actionsEmailSites = ["https://scangov.com", "https://scangov.org", "https://standards.scangov.org", "https://docs.scangov.org", "https://data.scangov.org"] %} - + + diff --git a/_includes/cta.html b/_includes/cta.html index 3d0e20f..69f2d08 100644 --- a/_includes/cta.html +++ b/_includes/cta.html @@ -23,36 +23,17 @@ margin-top: 0; margin-bottom: 0; } - - /* The crown has its own icon color rules (gold in dark mode, body color in - light mode); inside the primary button it should match the button text, - like the rocket in the hero */ - .cta-band .btn.btn-primary svg.fa-crown, - .cta-band .btn.btn-primary i.fa-crown { - color: inherit !important; - fill: currentColor !important; - } - - /* Some icons (the link icon, for one) keep a fixed color on hover in light - mode; inside the outline buttons they should follow the button text */ - .cta-band .btn.btn-outline-primary:hover svg, - .cta-band .btn.btn-outline-primary:focus svg, - .cta-band .btn.btn-outline-primary:hover i, - .cta-band .btn.btn-outline-primary:focus i { - color: inherit !important; - fill: currentColor !important; - }
- Plans + Plans - Demo + Demo + Link + Text
diff --git a/_includes/feedback.html b/_includes/feedback.html index 99574aa..0e73e71 100644 --- a/_includes/feedback.html +++ b/_includes/feedback.html @@ -1,7 +1,7 @@