Skip to content

Commit c4f4157

Browse files
chore: improve styles
Signed-off-by: Henry Gressmann <[email protected]>
1 parent 8b25e84 commit c4f4157

File tree

2 files changed

+27
-2
lines changed

2 files changed

+27
-2
lines changed

web/src/components/project.module.css

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,15 +68,22 @@ div.graph {
6868
align-items: center;
6969
gap: 0.2rem;
7070

71+
&:hover {
72+
&::after {
73+
opacity: 0.3;
74+
}
75+
}
76+
7177
&::after {
7278
content: "";
7379
position: absolute;
7480
left: 0;
7581
width: var(--percentage);
7682
height: 100%;
7783
background: var(--pico-h5-color);
78-
opacity: 0.08;
84+
opacity: 0.09;
7985
z-index: -1;
80-
transition: width 0.3s ease-in-out;
86+
transition: width 0.3s ease-in-out, opacity 0.1s ease-in-out;
87+
border-radius: 1rem;
8188
}
8289
}

web/src/global.css

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,28 @@
11
@import "@explodingcamera/css/all.css" layer(base);
22
@import "@picocss/pico/css/pico.lime.min.css" layer(pico);
33

4+
@layer pico {
5+
:root {
6+
}
7+
8+
@media only screen and (prefers-color-scheme: dark) {
9+
:root:not([data-theme="light"]) {
10+
--pico-background-color: #0a0c10;
11+
--pico-card-background-color: #141a1d;
12+
}
13+
}
14+
}
15+
416
.full {
517
min-height: 100%;
618
}
719

20+
body {
21+
--color: oklab(0.51 -0.1 0 / 0.1);
22+
background: linear-gradient(215deg, var(--color), transparent 50%),
23+
radial-gradient(var(--color), transparent 40%) no-repeat -60vw -40vh /90vw 300vh;
24+
}
25+
826
h1,
927
h2,
1028
h3,

0 commit comments

Comments
 (0)