aboutsummaryrefslogtreecommitdiffstats
path: root/layouts/partials/style.html
blob: 90724c937650b9c817a90f1f72992636a54f8299 (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
<style>
  /* Source: https://taxodium.ink/styles/main.css START*/

:root {
  --heading-base-size: 0.9rem;
  --scale-minor-third: 1.2;
  --typographic-scale: var(--scale-minor-third);
  --first-font-size: 1.06rem;
  --second-font-size: 1rem;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: #272727;
  line-height: 1.2;
  font-weight: 700;
  padding: 0;
  margin-block: 1.5rem 0.5rem;
  font-size: calc(
    var(--heading-base-size) *
      pow(var(--typographic-scale), var(--heading-level))
  );
}

h1 {
  --heading-level: 5;
}
h2 {
  --heading-level: 4;
}
h3 {
  --heading-level: 3;
}
h4 {
  --heading-level: 2;
}
h5 {
  --heading-level: 1;
}
h6 {
  --heading-level: 0;
}

/* END */

body {
  font-size: var(--first-font-size);
  font-family: monospace;
  font-weight: 400;
  line-height: 1.8;
  max-width: 740px;
  margin: 40px auto;
  padding: 0 20px;
}

pre {
  padding: 12px;
  overflow-x: auto;
}

img {
  max-width: 100%;
}

a,
a:visited {
  color: #3f51b0;
  box-shadow: inset 0 -1px #f0f0f0;
  text-decoration: none;
}

.title {
  color: #3f51b0;
}

blockquote p {
  color: #5e5e5e;
}

hr {
  color: #f0f0f0;
}

article h1 {
  text-align: center;
  margin-bottom: 2rem;
}

h1.title {
    margin-bottom: 1rem;
}

footer {
    font-size: var(--second-font-size);
    line-height: 1;
}

</style>