forked from ttrmw/contrast
-
Notifications
You must be signed in to change notification settings - Fork 0
/
main.sass
executable file
·55 lines (41 loc) · 1.39 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
---
---
@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
+contrast($nav)
> div
+contrast($description)
{% 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
+contrast($headline)
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)
@import vendor