Skip to content

Commit

Permalink
fix: apply only medium contrast tinting for bold text scidsg#573
Browse files Browse the repository at this point in the history
For Roadmap Item scidsg#533
  • Loading branch information
rmlibre committed Sep 15, 2024
1 parent a236353 commit 55d0a5d
Showing 1 changed file with 7 additions and 4 deletions.
11 changes: 7 additions & 4 deletions hushline/static/css/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,11 @@
--color-brand-min-contrast: oklch(
from var(--color-brand) clamp(0.1, l, 0.6) c h
);
--color-brand-mid-contrast: oklch(
from var(--color-brand-min-contrast) max(l - 0.125, 0.1) calc(1.25 * c) h
);
--color-brand-max-contrast: oklch(
from var(--color-brand-min-contrast) max(l - 0.175, 0.1) calc(1.25 * c) h
from var(--color-brand-min-contrast) max(l - 0.25, 0.1) calc(1.25 * c) h
);
--color-brand-dark: oklch( /* was #ecdafa now slightly more saturated */
from var(--color-brand)
Expand Down Expand Up @@ -198,15 +201,15 @@
.btn,
input[type="file"]::file-selector-button {
border: 0px;
background-color: var(--color-brand-min-contrast);
background-color: var(--color-brand-mid-contrast);
color: white;
}

.formBody input[type="submit"],
.formBody button,
.btn {
background-color: white;
color: var(--color-brand-max-contrast);
color: var(--color-brand-mid-contrast);
border: 1px solid var(--color-brand-min-contrast);
box-shadow: 0px 2px 0px 0px oklch( /* rgba(125, 37, 193, 0.25) */
from var(--color-brand) min(l, 0.95) c h / 0.25
Expand Down Expand Up @@ -238,7 +241,7 @@

p.badge {
background-color: white;
color: var(--color-brand-max-contrast);
color: var(--color-brand-mid-contrast);
border: 1px solid var(--color-brand-min-contrast);
}

Expand Down

0 comments on commit 55d0a5d

Please sign in to comment.