-
Notifications
You must be signed in to change notification settings - Fork 2
/
imagine.css
205 lines (170 loc) · 3.35 KB
/
imagine.css
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
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
@import url("https://cdnjs.cloudflare.com/ajax/libs/normalize/8.0.1/normalize.min.css");
@import url("https://fonts.googleapis.com/css2?family=Raleway:ital,wght@0,300;0,400;0,500;0,700;1,200;1,300;1,400&display=swap");
/* Variables. Feel free to edit these! */
:root {
--color-primary: #028090;
--color-black: #0f0f0f;
--color-secondary: #00a896;
--color-special-todo: #790604;
--font-primary: "Raleway", sans-serif;
--font-headings: "Elsie", cursive;
--font-size-1: 2.488rem;
--font-size-2: 2.074rem;
--font-size-3: 1.728rem;
--font-size-4: 1.44rem;
--font-size-small: 0.95rem;
--font-size-normal: 1.1rem;
}
/* Selection color */
::selection {
background-color: var(--color-primary);
color: white;
}
* + *:not(li) {
margin-top: 1em;
}
*:focus {
outline: none;
}
body {
color: var(--color-black);
font-family: var(--font-primary);
font-size: var(--font-size-normal);
padding-bottom: 2rem;
}
a {
-webkit-transition: filter 0.4s;
transition: filter 0.4s;
color: var(--color-primary);
}
a:link,
a:visited {
color: var(--color-primary);
}
a:hover {
filter: brightness(70%);
}
a:active {
filter: brightness(70%);
}
pre,
small {
font-size: var(--font-size-small);
}
pre {
padding: 1rem calc(clamp(1rem, 5%, 2rem) - 1rem);
}
blockquote {
padding: 1px calc(clamp(2rem, 5%, 3rem) - 1rem);
}
/* Heading styles */
h1,
h2,
h3,
h4,
h5,
h6 {
font-weight: bold;
font-family: var(--font-headings);
}
/* Scaled font sizes */
h1 {
font-size: var(--font-size-1);
}
h2 {
font-size: var(--font-size-2);
}
h3 {
font-size: var(--font-size-3);
}
h3 {
font-size: var(--font-size-4);
}
h4 {
font-size: var(--font-size-4);
}
h5 {
font-size: var(--font-size-4);
}
h1 > .subtitle {
font-size: 21.48px;
}
/* Force footer to bottom and center */
#postamble {
text-align: center;
width: 100%;
}
#postamble > p {
display: inline;
}
.title {
padding: 2vh 5vw;
}
/* Responsive images */
img {
max-width: 100%;
height: auto;
}
/* Responsive code blocks and tables */
pre,
.outline-text-2,
.outline-text-3,
outline-text-4 {
max-width: 100%;
overflow-x: auto;
}
.outline-2 {
padding: 2vh calc(max(1rem, 10%) - 1rem);
}
/* Code blocks */
.org-keyword {
color: var(--color-primary);
}
.org-rainbow-delimiters-depth-1 {
color: var(--color-secondary);
}
.org-org-meta-line {
color: var(--color-primary);
}
blockquote {
border-left: 5px solid var(--color-primary);
margin-left: calc(clamp(1rem, 5%, 1.5rem) - 0.5rem);
}
.todo {
color: var(--color-special-todo);
}
p {
max-width: 70ch;
}
.done {
color: var(--color-primary);
}
/* Tags.
The way org exports tags is a little strange.
They are exported as a span with class "tag" containing each
of the tags in its own span with class and contents equal to
the tags name. This is actually really useful as it allows
for targeting both the "tag individually */
.tag {
margin-top: 10px;
display: flex;
flex-wrap: wrap;
gap: 1px;
color: white;
font-size: 0.8rem;
font-family: var(--font-normal);
}
.tag > span {
display: block;
background-color: var(--color-secondary);
text-transform: uppercase;
border-radius: 2px;
width: fit-content;
padding: 4px 10px;
margin: 0;
box-shadow: 0 3px 6px -4px rgba(0, 0, 0, 0.08),
0 6px 16px 0 rgba(0, 0, 0, 0.08), 0 9px 28px 8px rgba(0, 0, 0, 0.05);
}
.underline {
text-decoration: underline;
}