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

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

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

body {
    font: 1em/1.8 '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.95em;
    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: 100%;
}

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;
}