Skip to content

Commit 085da26

Browse files
committed
style: add announcement for coda survey
To be removed by 2025-08-11.
1 parent d8adaec commit 085da26

File tree

2 files changed

+30
-0
lines changed

2 files changed

+30
-0
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/* Style for short-term announcement about survey
2+
TODO: Remove this file by 2025-08-11 */
3+
4+
.announcement-content a {
5+
color: var(--color-link) !important;
6+
}
7+
8+
body {
9+
--color-announcement-background: #DAD7D3;
10+
--color-announcement-text: var(--color-foreground-primary);
11+
}
12+
13+
body[data-theme="dark"] {
14+
--color-announcement-background: #411934;
15+
}
16+
17+
@media (prefers-color-scheme: dark) {
18+
body:not([data-theme="light"]) {
19+
--color-announcement-background: #411934;
20+
}
21+
}

website/conf.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,12 @@
148148
"display_contributors": True,
149149
}
150150

151+
html_theme_options = {
152+
# Short-term announcement about survey
153+
# TODO: Remove this block by 2025-08-11
154+
"announcement": "We'd like your input! <a href='https://docs.google.com/forms/d/e/1FAIpQLSc-uQ_jRxymv2ruYDsOudzbPogyHnYFS-f6grxJWWR0uJo75Q/viewform?usp=dialog' rel='nofollow' target='_blank'>Take the CODA check-in survey</a>.",
155+
}
156+
151157
# Project slug; see https://meta.discourse.org/t/what-is-category-slug/87897
152158
#
153159
# TODO: If your documentation is hosted on https://docs.ubuntu.com/,
@@ -245,6 +251,9 @@
245251

246252
html_css_files = [
247253
"css/pdf.css",
254+
# For short-term announcement about survey
255+
# TODO: Remove this block by 2025-08-11
256+
"css/announcement.css",
248257
]
249258

250259

0 commit comments

Comments
 (0)