Skip to content

Commit 280dab6

Browse files
committed
+
1 parent e88cbc9 commit 280dab6

File tree

1 file changed

+13
-12
lines changed

1 file changed

+13
-12
lines changed

src/ui/components/Toasts.astro

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,13 @@ const toasts = [
3737
<span class="toast-title">{toast.title}</span>
3838
<span class="toast-description">{toast.description}</span>
3939
</div>
40+
<div class="black-friday-wrap">
41+
<div class="black-friday">
42+
christmas
43+
<br />
44+
deal
45+
</div>
46+
</div>
4047
</div>
4148
</a>
4249
))
@@ -226,36 +233,30 @@ const toasts = [
226233
transform: translateY(-50%);
227234
}
228235

229-
html.dark .black-friday {
230-
background-color: #fff;
231-
color: #000;
232-
}
233-
234236
.black-friday {
235237
transform: rotateZ(45deg);
236-
font-size: 8px;
238+
font-size: 7px;
237239
text-transform: uppercase;
238-
font-weight: 700;
239-
background-color: #111;
240+
font-weight: 800;
241+
background-color: #ff4545;
240242
color: #fff;
241-
padding: 3px;
243+
padding: 2px;
242244
border-radius: 3px;
243245
line-height: normal;
246+
text-align: center;
244247
}
245248

246249
@media screen and (max-height: 742px) {
247250
body:has(#banner) .toasts-wrap {
248251
display: none;
249252
}
250253
}
251-
254+
252255
@media screen and (max-height: 704px) {
253256
body:not(:has(#banner)) .toasts-wrap {
254257
display: none;
255258
}
256259
}
257-
258-
259260
</style>
260261
<style is:global>
261262
.toast-icon svg {

0 commit comments

Comments
 (0)