aboutsummaryrefslogtreecommitdiff
path: root/src/styles/style.css
blob: 0cee77a3845c2bffb8149864b1eaab203e7004f5 (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
:root {
  --bg: #f3f3f3; 
  --fg: #181a1b;
  --link: #006697;
  --code: #e8e8e8; 
  --footer: #828997; 
  --home-link: #c02c38;
  --quote-border: #c678dd;
  --theme-toggle: #4078f2;
}

.dark-mode {
  --bg: #282c34;
  --fg: #a6adba; 
  --link: #56b6c2;
  --code: #363a45; 
  --footer: #828997; 
  --home-link: #e06c75;
  --quote-border: #c678dd;
  --theme-toggle: #5d8ffc;
}

body {
    background-color: var(--bg);
    color: var(--fg);
    font: 1em/1.8 'Open Sans', sans-serif;
    margin: 0 auto;
    max-width: 50em;
    padding: 0em 1em;
}

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

.nav-left {
    float:left;
}

.nav-right {
    float:right;
}

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

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

a:hover {
    text-decoration: underline;
}

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

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

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 {
    color: var(--theme-toggle);
}

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