aboutsummaryrefslogtreecommitdiff
path: root/src/styles/style.css
blob: 57ce6a47e7cc3beee25d54ecbc79bc3d3b82b4f1 (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
:root {
  --bg: #fafafa; 
  --fg: #181a1b;
  --link: #175db6;
  --code: #efefef; 
  --footer: #828997; 
  --home-link: #c02c38;
  --quote-border: #c678dd;
}

.dark-mode {
  --bg: #282c34;
  --fg: #eceff4; 
  --link: #64d9a8;
  --code: #363a45; 
  --footer: #828997; 
  --home-link: #89b4fa;
  --quote-border: #c678dd;
}

html {
    background-color: var(--bg);
    color: var(--fg);
}

body {
    font: 1em/1.6 'Open Sans', sans-serif;
    margin: 0 auto;
    max-width: 50em;
    padding: 0em 1em;
}

header {
    overflow:hidden;
    margin-top: 1em;
    margin-bottom: 1em;
    font-size: 2em;
    color: var(--footer);
}

footer {
    margin-top: 3em;
    margin-bottom: 2em;
    text-align: center;
    font-size: 0.9em;
    color: var(--footer);
}

a {
    color: var(--link);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

pre, code {
    font-family: 'Fira Code', monospace;
    font-size: 0.98em;
    background-color: var(--code);
    border-radius: 5px;
}

pre > code {
    display: block;
    padding: 10px 15px;
    white-space: pre-wrap;
    line-height: 1.4em;
}

code {
    padding: 3px 5px;
    white-space: nowrap;
}

p img, table {
    max-width: 95%;
    margin-top: 2.2em;
    margin-bottom: 2.2em;
}

img {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

blockquote {
    background-color: var(--code);
    border-left: 5px solid var(--quote-border);
    border-radius: 5px;
    margin: 0em 1em;
    padding-left: 1em;
}

.homepage-link { 
    color: var(--home-link);
}

#darkmodetoggle:hover { 
    cursor: pointer;
    text-decoration: none;
}

#title {
    margin-top: 0;
}

#date {
    margin-bottom: 0;
}

#article-list {
    margin-top: 1.25em;
    margin-bottom: 0.25em;
}
.article-title {
    margin-bottom: 0;
    margin-top: 12px;
}
.article-date {
    margin-top: 0;
    font-size: .9em;
}