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
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
|
@tailwind base;
@tailwind components;
@tailwind utilities;
.baskerville {
font-family: baskerville, serif;
}
blockquote::before {
font-family: "Font Awesome 6 Free";
color: #79c753;
content: "\f10d";
font-weight: 900;
font-size: 2rem;
position: absolute;
left: 10px;
top: -15px;
}
@layer base {
blockquote {
@apply border-l-4 p-4 m-8 relative border-lime-500 baskerville;
}
blockquote p:last-of-type {
@apply text-center uppercase mt-4 tracking-wide;
}
p {
@apply my-2 text-lg;
}
h1 {
@apply text-5xl font-bold my-4;
}
h2 {
@apply text-4xl font-bold my-4;
}
h3 {
@apply text-3xl font-bold my-4;
}
h4 {
@apply text-2xl font-bold my-4;
}
h5 {
@apply text-xl font-bold my-4;
}
h6 {
@apply text-lg font-bold my-4;
}
}
@layer components {
.menu {
transition: max-height 0.2s ease-out;
overflow: hidden;
display: flex;
/* this parts must be overridden on non small */
flex-direction: column;
width: 100%;
position: fixed;
max-height: 0px;
}
.menu-btn:checked ~ .menu {
max-height: 240px;
z-index: 2;
}
/* What comes next is only to style the ham menu to an X when clicking */
.menu-icon {
.navicon {
display: block;
height: 2px;
position: relative;
transition: background 0.2s ease-out;
width: 18px;
}
.navicon:before,
.navicon:after {
background: #ebdbb2;
content: "";
display: block;
height: 100%;
position: absolute;
transition: all 0.2s ease-out;
width: 100%;
}
.navicon:before {
top: 6px;
}
.navicon:after {
top: -6px;
}
}
.menu-btn:checked {
~ .menu-icon .navicon {
background: 0 0;
}
~ .menu-icon .navicon:before {
transform: rotate(-45deg);
}
~ .menu-icon .navicon:after {
transform: rotate(45deg);
}
~ .menu-icon:not(.steps) .navicon:before,
~ .menu-icon:not(.steps) .navicon:after {
top: 0;
}
}
#hero {
text-shadow: 2px 2px 3px black;
}
.main-content {
p {
code {
@apply text-blue-500 px-1;
}
}
}
.main-content a {
@apply px-1 text-lime-500;
}
.main-content a[href^="http"]::after {
content: "";
width: 11px;
height: 11px;
margin-left: 4px;
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='currentColor' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M8.636 3.5a.5.5 0 0 0-.5-.5H1.5A1.5 1.5 0 0 0 0 4.5v10A1.5 1.5 0 0 0 1.5 16h10a1.5 1.5 0 0 0 1.5-1.5V7.864a.5.5 0 0 0-1 0V14.5a.5.5 0 0 1-.5.5h-10a.5.5 0 0 1-.5-.5v-10a.5.5 0 0 1 .5-.5h6.636a.5.5 0 0 0 .5-.5z'/%3E%3Cpath fill-rule='evenodd' d='M16 .5a.5.5 0 0 0-.5-.5h-5a.5.5 0 0 0 0 1h3.793L6.146 9.146a.5.5 0 1 0 .708.708L15 1.707V5.5a.5.5 0 0 0 1 0v-5z'/%3E%3C/svg%3E");
background-position: center;
background-repeat: no-repeat;
background-size: contain;
display: inline-block;
}
.main-content {
dl {
@apply px-8 text-xl;
}
dt {
@apply font-bold;
}
dd {
@apply ml-8;
}
.highlight {
.chroma {
@apply p-1 overflow-x-scroll;
}
}
}
.cv-entry,
.cv-honor {
@apply ml-4 pl-8 pb-2 relative;
.cv-role {
@apply m-0;
}
.cv-host,
.cv-date,
.cv-location {
@apply font-light m-0 p-0;
}
.cv-host::before {
font-family: "Font Awesome 6 Free";
content: "\f1ad";
font-weight: 900;
margin: 0 0.5rem;
}
.cv-location::before {
font-family: "Font Awesome 6 Free";
content: "\f041";
font-weight: 900;
margin: 0 0.5rem;
}
p {
@apply text-base my-2;
}
ul {
all: revert;
}
}
.cv-entry {
@apply border-l border-gray-400;
.cv-role::before {
content: "";
position: absolute;
width: 2rem;
height: 2rem;
background-color: #79c753;
border-radius: 50%;
transform: translateX(-50%);
left: 0;
}
.cv-date,
.cv-location {
@apply inline-block;
}
.cv-date::before {
font-family: "Font Awesome 6 Free";
content: "\f133";
font-weight: 900;
margin: 0 0.5rem;
}
}
.cv-honor {
.cv-role {
@apply ml-12 text-xl;
}
.cv-date {
top: 0.05rem;
@apply absolute left-0 text-xl;
}
.cv-date::before {
font-family: "Font Awesome 6 Free";
color: #ffb700;
content: "\f559";
font-weight: 900;
margin: 0 0.5rem;
}
}
.comment {
@apply my-2 pl-4 border-l border-lime-500 relative;
h3,
h4,
h5,
h6 {
@apply my-0 pl-2;
&::before {
font-family: "Font Awesome 6 Free";
color: #79c753;
content: "\f075";
font-weight: 900;
font-size: 2rem;
position: absolute;
left: -0.75rem;
top: -1rem;
transform: scaleX(-1);
}
}
}
/* https://lubna.dev/articles/create-css-only-image-gallery/ */
.gallery {
--max-img-width: 72rem;
--max-img-height: 48rem;
max-width: var(--max-img-width);
padding-top: min(66%, var(--max-img-height));
input:checked + img {
opacity: 1;
}
input:checked ~ label > img {
@apply shadow-md shadow-lime-500;
}
}
}
@layer utilities {
@font-face {
font-family: "BerkshireSwash-Regular";
font-display: optional;
src:
url("/css/fonts/BerkshireSwash-Regular.ttf.woff") format("woff"),
url("/css/fonts/BerkshireSwash-Regular.ttf.svg#BerkshireSwash-Regular")
format("svg"),
url("/css/fonts/BerkshireSwash-Regular.ttf.eot"),
url("/css/fonts/BerkshireSwash-Regular.ttf.eot?#iefix")
format("embedded-opentype");
font-weight: normal;
font-style: normal;
}
.berkshire-swash {
font-family: "BerkshireSwash-Regular";
}
}
|