-
Notifications
You must be signed in to change notification settings - Fork 0
/
blog.css
182 lines (153 loc) · 3.07 KB
/
blog.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
:root {
--accent-colour: #7e74fa;
--header-height: 56px;
--header-padding: 10px;
--kantighet: 6px;
}
html { /* visible when scroll bobs */
background-color: #1a1a1a;
}
body {
color: #fff;
font-family: Ubuntu, 'Noto Sans', sans-serif;
margin: 0;
padding-bottom: 20px;
height: 100%;
font-size: 11.5pt;
background-color: #0a0a0a;
}
.content {
border-top: 2px solid var(--accent-colour);
max-width: 50em;
padding: 0 20px 12px 20px;
background-color: #121212;
margin: 0 auto;
border-radius: var(--kantighet);
min-height: calc(100vh - var(--header-height));
border: 2px solid rgba(255, 255, 255, 0.067);
}
a {
text-decoration: none;
color: var(--accent-colour);
outline: 0;
}
a:hover {
text-decoration: underline;
}
header {
background: linear-gradient(180deg, rgba(255, 255, 255, 0.067), rgba(0, 0, 0, 0));
height: calc(var(--header-height) - var(--header-padding) * 2);
padding: var(--header-padding);
}
nav {
max-width: 50em;
margin: 0 auto;
display: flex;
align-items: center;
gap: 12px;
}
nav > a {
background-color: #202020;
padding: 6px 20px;
border-radius: 8px;
border: 2px solid rgba(255, 255, 255, 0.1);
transition: border-color .03s ease-out;
color: inherit;
display: flex;
justify-content: center;
}
nav > a:hover {
text-decoration: none;
border-color: var(--accent-colour);
}
.line {
border-top: 2px solid var(--accent-colour);
flex-grow: 1;
}
h1 {
margin: 16px 0 0 0;
font-size: 2em;
}
h2 { font-size: 1.5em; }
h3 { font-size: 1.25em; }
h2, h3 { margin-bottom: 4px; }
p {
margin-top: 0;
line-height: 20px;
}
ul {
list-style-type: none;
padding-left: 0;
}
ul h2 {
font-weight: 400;
}
.desc {
color: grey;
}
.sbs-img { /* side-by-side images */
display: flex;
justify-content: space-around;
align-items: center;
text-align: center;
}
.sbs-img div {
max-width: 45%;
}
.solo-img {
display: block;
margin: 0 auto;
max-width: 50%;
}
div > video {
max-width: 100%;
max-height: 500px;
height: auto;
display: block;
margin-bottom: 12px;
}
aside {
background-color: #1f1f1f;
border: 2px solid #262626;
border-left: 4px solid grey;
padding: 14px;
border-radius: 4px;
margin-bottom: 15px;
}
aside span { font-weight: bold }
.aside-content { margin: 0 }
.aside-update { border-left: 4px solid green }
.aside-warning { border-left: 4px solid orange }
.aside-disclaimer { border-left: 4px solid #eb152e }
.aside-fun-fact { border-left: 4px solid #34a8eb }
.aside-update span { color: #32a852 }
.aside-warning span { color: orange }
.aside-disclaimer span { color: #eb152e }
.aside-fun-fact span { color: #34a8eb }
@media (prefers-color-scheme: light) {
:root {
--accent-colour: #6339cb;
}
body, html {
background: #f1f1f1;
color: #000;
}
nav > a, .content {
background-color: #fff;
border: 2px solid #453f5744;
}
.content {
box-shadow: 0px 0px 20px 0px #d1d1d1;
}
aside {
background-color: #f1f1f1;
border: 2px solid #e1e1e1;
}
}
/* mobile */
@media only screen and (max-width: 700px) {
.rem-mob { display: none; }
nav { padding: 0; }
.sbs-img { flex-direction: column; }
.sbs-img div, .solo-img { max-width: 90%; }
}