Skip to content

Commit ff09c0a

Browse files
authored
Reserve the red announcement banner for prerelease and fix its contrast (#2276)
1 parent 81a83c7 commit ff09c0a

4 files changed

Lines changed: 14 additions & 10 deletions

File tree

‎_quarto-prerelease-docs.yml‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,5 @@ format:
1818
html:
1919
toc: true
2020
theme:
21-
light: [cosmo, theme.scss, theme-prerelease-docs.scss]
21+
light: [cosmo, theme.scss, theme-prerelease-banner.scss]
22+
dark: [cosmo, theme-dark.scss, theme-prerelease-banner.scss]

‎theme-dark.scss‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -183,7 +183,7 @@ details > summary {
183183
font-size: 1em;
184184
font-weight: bold;
185185
color: $white;
186-
background-color: #ff0039;
186+
background-color: #447099;
187187
}
188188

189189
#quarto-announcement a {

‎theme-prerelease-banner.scss‎

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
/*-- scss:rules --*/
2+
3+
// Red marks the prerelease site, in light and dark mode.
4+
// #e60033 gives white text 4.76:1 (WCAG 1.4.3 needs 4.5:1).
5+
// Cosmo's $danger (#ff0039) gives only 3.95:1.
6+
#quarto-announcement {
7+
font-size: 1em;
8+
font-weight: bold;
9+
color: $white;
10+
background-color: #e60033;
11+
}

‎theme-prerelease-docs.scss‎

Lines changed: 0 additions & 8 deletions
This file was deleted.

0 commit comments

Comments
 (0)