Website version 6
v6.j0.lol
1:root {
2 --font-family: "Archivo", system-ui, sans-serif;
3 --font-heading: "Archivo", sans-serif;
4 --font-heading-features: "zero";
5
6 --background-color: #fff;
7 --text-color: #333;
8 --text-color-link: #082840;
9 --text-color-link-active: #5f2b48;
10 --text-color-link-visited: #17050f;
11 --card-background: light-dark(rgb(var(--primary-50)), rgb(var(--secondary-975)));
12
13 --accent: rgb(var(--primary-400));
14 --border: hsl( from rgb(var(--secondary-900)) calc(h - 10) calc(s + 10) calc(l + 10) );
15
16 --primary-50: 247 244 254;
17 --primary-100: 239 235 252;
18 --primary-200: 227 218 250;
19 --primary-300: 206 189 245;
20 --primary-400: 180 151 238;
21 --secondary-700: 113 96 162;
22 --secondary-900: 77 69 106;
23 --secondary-950: 34 30 46;
24 --secondary-975: 17 15 23;
25}
26
27body {
28 font-family: var(--font-family);
29 font-size: var(--step--1);
30 color: var(--text-color);
31 background-color: rgb(var(--primary-200));
32 /* background-image: url("https://www.transparenttextures.com/patterns/dotnoise-light-grey.png"); */
33 /* background-attachment: fixed; */
34 margin: 0;
35 tab-size: 4;
36}
37
38
39body {
40 &> header,
41 &> main,
42 &> footer {
43 padding: 0.5rem;
44 margin: 0 auto;
45 max-width: 48rem;
46
47 h1:first-child {
48 margin-top: 0.5rem;
49 }
50 }
51 &> footer {
52 font-style: italic;
53 font-size: 0.9375em; /* 15px /16 */
54 }
55
56 &> header {
57 max-width: 100%;
58 background: var(--border);
59 padding: 0;
60
61 }
62}
63
64h1,h2,h3,h4,h5,h6 {
65 font-family: var(--font-heading);
66 font-feature-settings: var(--font-heading-features);
67 font-weight: 900;
68 margin-bottom: 0em;
69}
70
71h1 {
72 font-size: var(--step-3)
73}h2 {
74 font-size: var(--step-2)
75}h3 {
76 font-size: var(--step-1)
77}h4 {
78 font-size: var(--step-0)
79}
80h5, h6 {
81 &:before {
82 content: "(Please dont use h5 or h6!!!) ";
83 color: red;
84 font-size: 4em;
85 }
86}
87
88ul.plain {
89 margin: 0;
90 padding: 0;
91
92 li {
93 list-style: none;
94 }
95}
96picture {
97 max-width: 100%;
98 display: block;
99
100 img {
101 width: 100%;
102 height: auto;
103 display: block;
104 }
105}
106
107.card, project-card {
108 background: var(--card-background);
109 border: 2px solid hsl( from rgb(var(--secondary-900)) calc(h - 10) calc(s + 10) calc(l + 10) );
110
111 box-shadow: 0.3rem 0.5rem light-dark( hsl( from rgb(var(--secondary-900)) calc(h - 10) calc(s + 10) calc(l + 10) ), hsl( from rgb(var(--secondary-950)) calc(h + 40) calc(s + 80) calc(l - 10) ) );
112}
113
114.tag {
115 display: inline-flex;
116 border: 2px solid var(--border);
117 padding: 0 var(--space-2xs) 0 0;
118
119
120 &:before {
121 content: "#";
122 color: white;
123 padding: 0 var(--space-2xs);
124 margin-right: var(--space-2xs);
125 background: var(--border);
126 font-weight: 900;
127
128 }
129}
130
131
132.code-lang-tag {
133 display: inline-flex;
134 border: 2px solid var(--border);
135 padding: 0 var(--space-2xs) 0 0;
136 text-transform: capitalize;
137
138 &:before {
139 content: "lang";
140 color: white;
141 padding: 0 var(--space-2xs);
142 margin-right: var(--space-2xs);
143 background: var(--border);
144 font-weight: 900;
145 text-transform: lowercase;
146 }
147}
148
149
150.code-filename-tag {
151 display: inline-flex;
152 border: 2px solid var(--border);
153 padding: 0 var(--space-2xs) 0 0;
154
155 &:before {
156 content: "file";
157 color: white;
158 padding: 0 var(--space-2xs);
159 margin-right: var(--space-2xs);
160 background: var(--border);
161 font-weight: 900;
162 text-transform: lowercase;
163 }
164}
165
166.speech {
167 background: var(--border);
168 color: white;
169 margin: var(--space-xs-s);
170 position: relative;
171}
172.speech:after {
173 content: '';
174 position: absolute;
175 top: 0px;
176 left: -1rem;
177 width: 0;
178 height: 0;
179 border-left: 1rem solid transparent;
180 /* border-right: 17px solid transparent; */
181 border-top: 1rem solid var(--border);
182}
183
184a {
185 color: oklch(from var(--border) l calc(c) calc(h - 0.5));
186 text-decoration: underline;
187 text-decoration-style: solid;
188 text-decoration-thickness: 2px;
189
190 &:hover {
191 color: oklch(from var(--border) l calc(c + 0.3) calc(h + 0.5));
192 text-decoration-style: dotted;
193 }
194
195 &:active {
196 color: oklch(from var(--border) l calc(c + 0.6) calc(h + 0.7));
197 text-decoration: none;
198 }
199}
200
201
202aside.speech-box {
203 display: flex;
204 align-items: end;
205 margin: 1em;
206
207
208 .speech-content {
209 margin: 0;
210 margin-bottom: 1em;
211 margin-left: 2em;
212 display: block;
213 background: var(--border);
214 color: white;
215 padding: var(--space-xs-s);
216 position: relative;
217
218 a {
219 color: white;
220 }
221
222 &:after {
223 content: '';
224 position: absolute;
225 bottom: 0px;
226 left: -1rem;
227 width: 0;
228 height: 0;
229 border-left: 1rem solid transparent;
230 /* border-right: 17px solid transparent; */
231 border-bottom: 1rem solid var(--border);
232 }
233 }
234}
235
236
237.speech-character {
238 height: 6em;
239 width: 6em;
240 flex-shrink: 0;
241 flex-grow: 0;
242
243 display: block;
244 background: var(--border);
245 position: relative;
246
247
248 .glassleft {
249 position: absolute;
250 top: 2rem;
251 left: 1rem;
252 }
253 .glassright {
254 position: absolute;
255 top: 1.7rem;
256 left: 2.9rem;
257 }
258 .glass {
259 width: 2rem;
260 height: 2rem;
261 background-color: goldenrod;
262 clip-path: circle(1rem);
263 }
264
265
266 .eye {
267 width: 2rem;
268 height: 2rem;
269 background-color: white;
270 clip-path: ellipse(0.2rem 0.5rem);
271 margin-left: 0.2rem;
272 }
273
274 .nose {
275 position: absolute;
276 top: 3.7rem;
277 left: 2.8rem;
278 height: 0.4rem;
279 width: 0.8rem;
280 clip-path: shape(from 50% 0%,line by 50% 100%,hline to 0%,line to 50% 0%,close);
281 background-color: goldenrod;
282
283 }
284}
285
286.speech-character:is(.character-blink, .character-sleep) .eye {
287 clip-path: shape(from 0.7rem 1rem,
288 hline by 0.8rem,
289 vline by 0.2rem,
290 hline by -0.8rem,
291 close);
292
293}
294
295.nowrap {
296 text-wrap: nowrap;
297}