Skip to content

Commit 695a212

Browse files
committed
change(styles): give draft pages an "under construction" border
1 parent 71aece6 commit 695a212

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

sass/overrides.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
src: local(Hack),local(sfmono-regular),local(menlo),local(monaco),local(consolas),local("Liberation Mono"),local("Courier New"),local(monospace);
44
}
55

6+
html:has(body.draft) {
7+
background: repeating-linear-gradient(45deg, rgb(17, 17, 17) 0% 5%, rgb(218, 165, 32) 5% 10%);
8+
padding: 0 2rem;
9+
}
10+
611
.home > .container > .content {
712
position: relative;
813
}

templates/page.html

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
{% else %}
3737
{% set page_class = "page single" %}
3838
{% endif %}
39+
{% if page.draft %}
40+
{% set page_class = page_class ~ " draft" %}
41+
{% endif %}
3942
{% endblock body %}
4043

4144
{% block content %}

0 commit comments

Comments
 (0)