-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
342 lines (306 loc) · 6.15 KB
/
style.css
File metadata and controls
342 lines (306 loc) · 6.15 KB
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
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
body {
/* Set line height to 1.5 times the font size
and use the OS’s UI font as the website font
*/
font: 100%/1.5 system-ui;
max-width: 90ch;
margin-inline: auto;
padding-left: 2ch;
padding-right: 2ch;
padding-top: 3ch;
padding-bottom: 3ch;
}
nav {
/* border-bottom-color: var(--border-color); */
margin-bottom: 2ch;
border-bottom-width: 1px;
border-bottom-style: solid;
border-bottom-color: oklch(80% 3% 200);
border-width: 0.25em;
padding-bottom: 0.25em;
text-align: center;
a {
text-decoration: none;
color: inherit;
padding: 2em;
}
a:hover {
/* becomes a:hover */
background-color: color-mix(in oklch, #5c6bb88c, canvas 30%);
/* background-color: #5c6bb88c; */
border-bottom: var(--color-accent);
border-width: 0.25em;
border-bottom-style: solid;
padding-bottom: 0.35em;
padding-top: 0.4em;
}
}
.center {
display: block;
margin-left: auto;
margin-right: auto;
width: 50%;
}
.current {
border-bottom: 1px solid #e8b4cc;
font-weight: bold;
border-width: 0.25em;
padding-bottom: 0.1em;
margin-bottom: 2ch;
border-width: 0.5em;
}
:root {
--color-accent: #2741c2;
--border-color: oklch(50% 10% 200 / 40%);
}
form {
label {
display: contents;
gap: 0.5em;
display: grid;
padding-top: 1em;
}
grid-template-columns: subgrid;
grid-column: 1 / -1;
}
.projects {
article {
h2 {
margin: 0;
}
grid-row: span 3;
grid-template-rows: subgrid;
display: grid;
gap: 2em;
padding: 1em;
}
display: grid;
grid-template-columns: repeat(auto-fill, minmax(15em, 1fr));
}
h1,
h2,
h3,
h4,
h5,
h6 {
line-height: 1.1;
text-wrap: balance;
}
.resume {
section {
padding: 0.6em;
}
section:hover {
background-color: #999dcd6f;
}
img {
border-radius: 50%;
width: 150px;
height: 150px;
object-fit: cover;
float: left;
}
.res-head {
display: grid;
grid-template-columns: auto 1fr;
gap: 10px;
}
h2 {
border-bottom: 3px solid #e8b4cc;
}
}
.color-scheme {
position: absolute;
top: 1rem;
right: 1rem;
}
#profile-stats dl {
display: grid;
grid-template-columns: repeat(4, 1fr);
}
#profile-stats dt {
grid-row: 1;
font-size: 1.2em; /* Adjust the size as needed */
font-weight: bold;
}
#profile-stats dd {
grid-row: 2;
}
#projects-plot {
max-width: 20em;
margin-block: 2em;
overflow: visible;
}
.legend {
display: grid;
flex-direction: column;
gap: 0.5em;
grid-template-columns: repeat(auto-fill, minmax(9em, 1fr));
border: 3px solid #f7dcdc; /* Add a border around the legend */
padding: 2em;
border-radius: 10px;
flex: 1;
}
.legend li {
display: flex;
align-items: center;
gap: 0.5em;
}
.legend .swatch {
width: 1em; /* Adjust the size as needed */
height: 1em; /* Adjust the size as needed */
aspect-ratio: 1 / 1;
background-color: var(--color); /* Use the appropriate color variable */
border-radius: 0.25em; /* Slight rounding, adjust as needed */
align-items: center;
}
/* Optional: Make the swatch a full circle */
.legend .swatch.circle {
border-radius: 50%;
}
.container {
display: flex;
gap: 3em;
align-items: center;
}
#projects-plot {
&:has(path:hover) {
path:not(:hover) {
opacity: 0.5;
}
}
}
path {
transition: 300ms;
cursor: pointer;
}
.selected {
--color: oklch(60% 45% 0) !important;
&:is(path) {
fill: var(--color);
stroke: #fff8d8; /* Outline color */
stroke-width: 2px;
}
}
svg .gridlines {
color: rgb(216, 174, 215);
}
/* Styles for dl.info */
dl.info {
display: grid;
grid-template-columns: 1fr 2fr; /* Two columns, one for dt and one for dd */
gap: 0.5em;
}
dl.info dt {
margin: 0; /* Remove default margin */
font-weight: normal; /* Make labels less prominent */
color: #666; /* Lighter color for labels */
}
dl.info dd {
margin: 0; /* Remove default margin */
font-weight: bold; /* Make values more prominent */
color: #000; /* Darker color for values */
}
/* Styles for .tooltip */
.tooltip {
position: fixed;
top: 1em;
left: 1em;
background-color: #fff; /* Background color for the tooltip */
padding: 0.5em; /* Padding inside the tooltip */
border: 1px solid #ccc; /* Border for the tooltip */
border-radius: 0.25em; /* Rounded corners for the tooltip */
box-shadow: 0 0 10px rgba(0, 0, 0, 0.1); /* Optional: Add a shadow for better visibility */
}
circle {
transition: 200ms;
transform-origin: center;
transform-box: fill-box;
}
circle:hover {
transform: scale(1.5);
}
#commit-tooltip {
background-color: white;
box-shadow: 2px 1px 5px #d19fca;
border-radius: 2em;
backdrop-filter: blur(10em);
padding: 1em;
}
dl.info {
/* ... other styles ... */
transition-duration: 0ms;
transition-property: opacity, visibility;
}
dl.info[hidden]:not(:hover, :focus-within) {
opacity: 0;
visibility: hidden;
}
@keyframes marching-ants {
to {
stroke-dashoffset: -8; /* 5 + 3 */
}
}
.selection {
fill-opacity: 0.1;
stroke: black;
stroke-opacity: 0.7;
stroke-dasharray: 5 3;
animation: marching-ants 2s linear infinite;
fill: #d19fca;
}
circle.selected {
fill: #ff6b6b;
}
#language-breakdown {
display: grid;
grid-template-columns: 2;
gap: 1em;
}
.stats {
display: grid;
gap: 0.5em;
grid-template-columns: 1fr 1fr; /* Two columns, one for dt and one for dd */
grid-auto-rows: auto;
outline: 3px solid;
outline-offset: 4px;
outline-color: #e8b4cc;
padding: 1em;
background-color: #f9f9f9;
border-radius: 0.5em;
}
/* Specific styles for #language-breakdown */
#language-breakdown {
margin-top: 2em;
margin-bottom: 2em;
}
/* Styles for dt elements */
.stats dt {
font-size: 1.2em; /* Adjust the size as needed */
font-weight: bold;
color: #333;
outline: 1px solid;
outline-offset: 4px;
outline-color: #e8b4cc;
}
/* Styles for dd elements */
.stats dd {
margin: 0;
font-size: 1em;
color: #666;
outline: 1px solid;
outline-offset: 4px;
outline-color: #e8b4cc;
}
/* Hover effects for dt elements */
.stats dt:hover {
background-color: #999dcd6f;
}
/* Hover effects for dd elements */
.stats dd:hover {
background-color: #bda0b651;
}
#slider label {
flex:1;
align-items: baseline;
}