summaryrefslogtreecommitdiffstatshomepage
path: root/sass/style.sass
blob: e38ef553cf7bb1079d6118068d59c89eccfae59d (plain) (blame)
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
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
@import 'responsive_fonts'
@import 'webfonts'

// need to prefix :root with a backslash
// https://github.com/sass/libsass/issues/2511
\:root
  --font-sans: Alegreya Sans, sans
  --font-serif: Alegreya, serif
  --font-mono: Iosevka, Inconsolata, monospace

  --font-size-pre: 80%
  --font-size-quote: 90%

  --fg-color: black
  --fg-color-mute: #5a5a5a
  --fg-color-gutter: #a6a6a6
  --fg-color-pre: black
  --fg-href: #0000ee
  --fg-href-visited: #551a8b

  --bg-color: white
  --bg-color-pre: #ffffc3

  --border-color-light: lightgrey
  --border-color-dark: darkgrey
  --border-color-pre: #e0e0c3

  --border-radius: 4px

@media (prefers-color-scheme: dark)
  \:root
    --fg-color: #f0f0f0
    --fg-color-mute: #7a7a7a
    --fg-href: #7676ff
    --fg-href-visited: #9547dd
    --fg-color-pre: #f0f0f0

    --bg-color: #000000
    --bg-color-pre: #1f1f1f
    --border-color-pre: #2f2f2f

@mixin spacer
  content: '·'
  margin-inline: .2rem

  font-style: normal
  color: var(--fg-color)

a
  text-decoration: none

  &, &:visited
    color: var(--fg-href)

  &:hover
    text-decoration: underline

a.tag
  &, &:visited
    color: var(--fg-color-mute)

  &::before
    content: "#"

h2#related
  grid-column: main

  display: flex
  align-items: center

  margin: 0

h2.title
  display: inline-block
  margin: 0

  font-size: inherit
  font-style: italic
  font-weight: inherit

  &::before
    @include spacer

  a
    color: inherit

pre
  color: var(--fg-color-pre)
  background-color: var(--bg-color-pre)
  border: 1px solid var(--border-color-pre)
  border-radius: var(--border-radius)
  padding: .5em
  overflow: auto

code
  font-family: var(--font-mono)
  font-size: var(--font-size-pre)

blockquote
  border-left: 2px solid var(--border-color-light)
  font-size: var(--font-size-quote)
  padding: 0 1em

.mute
  color: var(--fg-color-mute)

.smaller
  font-size: smaller

.bigger
  font-size: larger

div.banner
  display: flex

div.footnote-definition >
  p
    font-size: smaller
    display: inline-block
    margin: 0 .2em

  sup
    vertical-align: inherit

  sup::after
    content: "."

html
  overflow-y: scroll

body
  font-family: var(--font-sans)
  font-size: 1.3rem

  margin: 0
  display: flex
  flex-direction: column

  color: var(--fg-color)
  background-color: var(--bg-color)

.float-left
  float: left

.float-right
  float: right

main
  display: grid
  align-self: center
  grid-template-columns: 64px minmax(auto, 38em)
  grid-template-areas: "gutter main"
  gap: 2rem 1rem
  margin: 1rem

main > header
  grid-column: main

header > h1
  margin: 0

  > a, a:visited
    color: inherit

article
  display: flex
  flex-direction: column
  gap: .5rem
  grid-column: main
  overflow: auto

article > section.post
  > p:first-of-type
    margin-top: 0

  > p
    line-height: 1.3

  a
    text-decoration: underline

  a.internal
    text-decoration-style: dotted
    color: var(--fg-color)

    &:visited
      color: inherit

  a:visited
    color: var(--fg-href-visited)

  img
    border-radius: var(--border-radius)
    max-width: 100%

article.single h2.title
  display: none

div.banner > div.info
  display: inline-flex

  > a:first-of-type
    padding-right: .2rem

div.banner > nav.tags
  margin-left: 1rem

aside.gutter
  display: flex
  flex-direction: column

  grid-column: gutter

  > span
    display: inline-flex
    justify-content: center
    font-size: 2em
    color: var(--fg-color-gutter)

    margin: 0


img.avatar
  width: 100%

  border-radius: var(--border-radius)
  border: 1px solid var(--border-color-light)

article > header > div.banner
  justify-content: space-between
  border-bottom: 1px dotted var(--border-color-dark)

nav
  display: flex

nav ul.inline
  margin: 0
  padding: 0
  list-style-type: none
  display: flex

nav.pagination
  grid-column: 1 / -1

  > a.older
    margin-left: auto

nav.tags
  grid-column: main

  > ul.inline
    flex-wrap: wrap
    column-gap: .5rem

nav.links
  &::before, & > ul > li:not(:first-child)::before
    @include spacer

figure > a
  display: block

@media (max-width: 480px)
  article:not(.single)

  aside.gutter
    display: none

  main
    grid-template-columns: minmax(auto, 38em)
    grid-template-areas: "main"

  article
    padding-left: 0