mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
UX: Wizard static confetti (#23973)
* UX: add static confetti bacgkround image on wizard steps * DEV: slow down speed animation for confetti * DEV: compress image file size * UX: use an image that has transparent background * DEV: use correct image file name
This commit is contained in:
parent
a125c9e63e
commit
7af291b40d
BIN
app/assets/images/bubbles-bg.png
Normal file
BIN
app/assets/images/bubbles-bg.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 24 KiB |
@ -22,7 +22,7 @@ class Particle {
|
||||
reset() {
|
||||
this.y = -SIZE;
|
||||
this.origX = Math.random() * (width + SIZE);
|
||||
this.speed = 1 + Math.random();
|
||||
this.speed = 0.5 + Math.random();
|
||||
this.ang = Math.random() * 2 * Math.PI;
|
||||
this.scale = Math.random() * 0.4 + 0.2;
|
||||
this.radius = Math.random() * 25 + 25;
|
||||
|
@ -12,6 +12,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
:root {
|
||||
--d-max-width: 100%;
|
||||
}
|
||||
|
||||
body.wizard {
|
||||
background-color: var(--primary-50);
|
||||
color: var(--primary-very-high);
|
||||
@ -22,13 +26,14 @@ body.wizard {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
align-items: center;
|
||||
padding-top: 1.5em;
|
||||
background-image: url(../assets/bubbles-bg.png);
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
@media screen and (max-height: 900px) {
|
||||
.desktop-view & {
|
||||
#main-outlet {
|
||||
padding-top: 0;
|
||||
}
|
||||
.desktop-view & {
|
||||
#main-outlet {
|
||||
padding-top: 0;
|
||||
}
|
||||
}
|
||||
|
||||
@ -103,7 +108,8 @@ body.wizard {
|
||||
&__step-counter {
|
||||
text-align: center;
|
||||
font-weight: 700;
|
||||
color: var(--primary-medium);
|
||||
color: var(--primary-high);
|
||||
text-shadow: 1px 1px 12px var(--secondary);
|
||||
}
|
||||
|
||||
&__step-description {
|
||||
|
Loading…
Reference in New Issue
Block a user