-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.sass
executable file
·66 lines (50 loc) · 1.66 KB
/
main.sass
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
---
---
@import basic
@import mixins
$body: {% if site.style.body %}{{ site.style.body }}{% else %}white{% endif %}
$padding: {% if site.style.padding %}{{ site.style.padding }}{% else %}33%{% endif %}
$anchor: {% if site.style.anchor %}{{ site.style.anchor }}{% else %}false{% endif %}
$nav: {% if site.style.nav %}{{ site.style.nav }}{% else %}#181818{% endif %}
$headline: {% if site.style.headline %}{{ site.style.headline }}{% else %}#06f{% endif %}
$description: {% if site.style.description %}{{ site.style.description }}{% else %}white{% endif %}
$odd: {% if site.style.article.odd %}{{ site.style.article.odd }}{% else %}white{% endif %}
$even: {% if site.style.article.even %}{{ site.style.article.even }}{% else %}#222{% endif %}
body
+body_background($body, $padding)
> header, > footer
background: $nav
color: reduce($nav, 100%)
> div
background: $description
color: reduce($description, 100%)
{% if site.style.serif-heading %}
body > header h1
font-weight: bold
h1, h2, h3, h4, h5, h6
font-family: "Gentium Basic", serif
letter-spacing: 2px
header &
text-transform: uppercase
{% endif %}
{% if site.style.headline %}
body > div:first-of-type
background: $headline
color: reduce($headline, 100%)
h1
padding-top: 1em
padding-bottom: 1em
nav ul
margin: 0
{% endif %}
article:nth-of-type(even)
+article_background($even, $anchor)
article:nth-of-type(odd)
+article_background($odd, $anchor)
#paginate:nth-child(even)
background: $even
color: reduce($even, 100%)
#paginate:nth-child(odd)
background: $odd
color: reduce($odd, 100%)
@import vendor