Skip to content

Commit caa7e59

Browse files
committed
Add site-warning infra
1 parent fcdb5a8 commit caa7e59

File tree

4 files changed

+27
-5
lines changed

4 files changed

+27
-5
lines changed

_config.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ github_username: reqnroll
2121
linkedin_username: reqnroll
2222
google_analytics: G-Y2KPXR5RYB
2323

24+
# site_warning: "This is a sample site-wide warning. Uncomment to make it visible. See <a href='https://some-url' target='_blank'>note</a>."
25+
2426
# Build settings
2527

2628
theme: minima

_layouts/base.html

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,11 @@
44
{%- include head.html -%}
55

66
<body>
7+
{%- if site.site_warning -%}
8+
<div class="site-warning">
9+
{{ site.site_warning }}
10+
</div>
11+
{%- endif -%}
712

813
{%- include header.html -%}
914

_sass/structure.scss

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -182,6 +182,14 @@ body {
182182
}
183183
}
184184

185+
.site-warning {
186+
background-color: var(--reqnroll-dark);
187+
color: var(--reqnroll-light);
188+
padding: var(--wp--preset--spacing--small);
189+
text-align: center;
190+
font-weight: var(--wp--custom--font-weight--bold);
191+
}
192+
185193
/* overrides for content types */
186194

187195
.post {

_sass/variables.scss

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,13 @@
11
/* Global Variables */
22

33
:root {
4+
5+
--reqnroll-yellow: #c4d600;
6+
--reqnroll-black: #11111f;
7+
--reqnroll-dark: #3b4000;
8+
--reqnroll-light: #f6f9d9;
9+
--reqnroll-darker-yellow: #adc000;
10+
411
--wp-admin-theme-color: #007cba;
512
--wp-admin-theme-color--rgb: 0, 124, 186;
613
--wp-admin-theme-color-darker-10: #006ba1;
@@ -34,15 +41,15 @@
3441
--wp--preset--color--pale-cyan-blue: #8ed1fc;
3542
--wp--preset--color--vivid-cyan-blue: #0693e3;
3643
--wp--preset--color--vivid-purple: #9b51e0;
37-
--wp--preset--color--primary: #c4d600;
44+
--wp--preset--color--primary: var(--reqnroll-yellow);
3845
--wp--preset--color--secondary: #fd5d47;
39-
--wp--preset--color--accent: #c4d600;
46+
--wp--preset--color--accent: var(--reqnroll-yellow);
4047
--wp--preset--color--accent-text: #ffffff;
41-
--wp--preset--color--hover: #adc000;
48+
--wp--preset--color--hover: var(--reqnroll-darker-yellow);
4249
--wp--preset--color--heading: #090809;
4350
--wp--preset--color--highlight: #4B5563;
44-
--wp--preset--color--body: #11111f;
45-
--wp--preset--color--surface: #f6f9d9;
51+
--wp--preset--color--body: var(--reqnroll-black);
52+
--wp--preset--color--surface: var(--reqnroll-light);
4653
--wp--preset--color--background: #FFFFFF;
4754
--wp--preset--color--light: #ebeefc;
4855
--wp--preset--color--outline: #E5E7EB;

0 commit comments

Comments
 (0)