summaryrefslogtreecommitdiff
path: root/templates/index.css
blob: 911fe586bef63b377ec7cc1af69a0a20bd30c58c (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
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
:root {
    --blue: #7BD3EA;
    --green: #A1EEBD;
    --pink:  #F6D6D6;
    --bg-color: #ffffeb;
    --color: black;
    --code-color: white;
    --quote-color: #aaa;
    --quote-text: black;
    --footer-text: black;
    --border-color: var(--pink);
    --article-border-color: var(--green);
    --article-border-outset-color: var(--blue);
    --main-width: 800px;

}

/* #261c35 # darkmode bg-color */
/* #ffa # links */
/* #3E7 or this? */
/* #3C0E6A as a "pink" alternative for dark mode? */
html, body {
    margin: 0;
    background-color: var(--bg-color);
    color: var(--color);
}

/* NAV */

#site-header {
    margin: 16px;
    text-align: center;
}

#site-title {
    font-size: 3em;
    text-decoration: underline;
    text-decoration-style: wavy;
    text-decoration-color: var(--pink);
    color: #000;
    font-family: monospace;
}

nav {
    margin: 4px 0;
}

nav a:not(:first-child){
    margin-left: 4px;
}

/* MAIN */
main {
    max-width: var(--main-width);
    margin: auto auto;
    border-color: var(--article-border-color);
    border-right-color: var(--article-border-outset-color);
    border-bottom-color: var(--article-border-outset-color);
    border-radius: 4px;
    border-style: solid;
}
main article {
    margin: 16px;
    line-height: 1.5em;
}

main article h1 {
    text-align: center;
}

main footer {
    background-color: var(--pink);
    margin: 16px 0;
    padding: 2px 16px;
    color: var(--footer-text);
}

main footer ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

main footer ul li {
    display: inline;
}

main footer ul li:not(:first-child) {
    padding-left: 16px;
}

footer {
    font-size: .8em;
    padding: 16px;
}
#copyright {
    text-align: center;
}

pre, code {
    background-color: var(--code-color);
    padding: 4px 16px;
}

main article figure blockquote {
    padding: 8px;
    background-color: var(--pink);
    box-shadow: 8px 8px var(--blue);
    color: var(--quote-text);
}

main article figure blockquote p:before {
    content: '“';
    font-size: 2em;
    color: var(--quote-color);
}

main article figure blockquote p:after {
    content: '”';
    font-size: 2em;
    color: var(--quote-color);
}

main article figure blockquote cite {
    display: block;
    text-align: right;
}

#pinned {
    list-style: none;
}

#pinned li::marker {
    content: "📌 ";
}

hr {
    border-color: var(--pink);
    border-style: solid;
}

main article table {
    border-collapse: collapse;
}
main article table thead {
    background-color: var(--green);
}
main article table tr td,
main article table tr th {
    border: 1px solid var(--blue);
    padding: 2px 8px;
}