aboutsummaryrefslogtreecommitdiff
path: root/static/scss/blog.scss
blob: a9e7b9440713832a7d34af6d680ad27ee670184b (plain)
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
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
@import "footer";
@import "roboto";
@import "sourcecodepro";

$bgColor: #1d1f21;
$fgColor: #c5c8c6;

$bgColorAlt: #373b41;
$fgColorAlt: #ffffff;

$headingColor0: #bf87d0;
$headingColor1: $headingColor0;
$headingColor2: #ff7070;
$headingColor3: #76d674;
$headingColor4: #9c80f4;
$headingColor5: #ef7b7a;

// $linkColor: #a64ce2;
$linkColor: #2ed19b;
// $linkColor: #eda74a;
// $linkColor: #c682f5;
//
//$linkColor: #db4b91;
$linkColorAlt: pink;

* {
  font-family: 'Roboto', sans-serif;
}

@mixin selectionColor($fgColor, $bgColor) {
  color: $fgColor;
  background: $bgColor;
}

::selection { @include selectionColor($bgColor, $headingColor0) }
::-moz-selection { @include selectionColor($bgColor, $headingColor0) }

html, body {
  line-height: 1.5;
  background-color: $bgColor;
  color: $fgColor;
  padding: 0rem 0.8rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

main .single {
  h1, h3, h5 {
    text-align: center;
  }
}

code {
  background-color: $bgColorAlt;
  padding: 2px 5px;
  border-radius: 4px;
  font-family: 'Source Sans Pro', sans-serif;
}

pre code {
  overflow: scroll;
  display: block;
}

img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  max-width: 90%;
}

h1 {
  color: $headingColor0;
}

h2 {
  color: $headingColor1;
}

h3 {
  color: $headingColor2;
}

h4 {
  color: $headingColor3;
}

h5 {
  color: $headingColor4;
}

h6 {
  color: $headingColor5;
}

a {
  text-decoration: none;
  color: $linkColor;
}

// the year/tag heading of the blog
.list {
  .section { color: $headingColor1; }
  li::marker { color: $linkColor; }
}

main {
  ul, ol {
    line-height: 1.8;
  }
}

nav {
  ul {
    list-style: none;
    padding: 0;
    display: flex;
    justify-content: center;
    a {
      color: $linkColorAlt;
      margin: 0 0.3rem;
      padding: 2px 4px;
    }
    a.selected {
      background-color: $headingColor0;
      color: $bgColor;
    }
  }
}