Skip to content

Commit 905ba07

Browse files
committed
Render widget mascots from chibi WebP assets
1 parent 7c5b23d commit 905ba07

1 file changed

Lines changed: 51 additions & 0 deletions

File tree

fixes.css

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,51 @@ input:focus-visible {
104104
border-color: rgba(210, 187, 255, 0.62);
105105
}
106106

107+
.screen-fox {
108+
object-fit: contain;
109+
}
110+
111+
.fox-widget {
112+
position: relative;
113+
overflow: hidden;
114+
}
115+
116+
.fox-widget > img {
117+
opacity: 0;
118+
}
119+
120+
.fox-widget::after {
121+
content: "";
122+
position: absolute;
123+
right: 18px;
124+
bottom: 0;
125+
width: min(52%, 210px);
126+
height: 82%;
127+
background-position: right bottom;
128+
background-repeat: no-repeat;
129+
background-size: contain;
130+
pointer-events: none;
131+
z-index: 1;
132+
}
133+
134+
.fox-widget.widget-hot::after {
135+
background-image: url("assets/site/chibi_streak.webp");
136+
}
137+
138+
.fox-widget.widget-calm::after {
139+
background-image: url("assets/site/chibi_dumbbell.webp");
140+
}
141+
142+
.fox-widget.widget-alert::after {
143+
background-image: url("assets/site/chibi_watch.webp");
144+
}
145+
146+
.fox-widget .widget-score,
147+
.fox-widget p {
148+
position: relative;
149+
z-index: 2;
150+
}
151+
107152
.feature-grid {
108153
grid-template-columns: repeat(4, minmax(0, 1fr));
109154
}
@@ -438,6 +483,12 @@ input:focus-visible {
438483
.fox-widget {
439484
min-height: 320px;
440485
}
486+
487+
.fox-widget::after {
488+
width: 58%;
489+
height: 78%;
490+
right: 8px;
491+
}
441492
}
442493

443494
@media (max-width: 380px) {

0 commit comments

Comments
 (0)