forked from shipshapecode/starpod
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
125 lines (113 loc) · 3 KB
/
styles.css
File metadata and controls
125 lines (113 loc) · 3 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
@reference '../../../styles/tailwind.css';
.slider {
@apply relative m-0 block h-1.5 w-full appearance-none rounded-none p-0 outline-none;
&::-webkit-slider-runnable-track {
@apply h-1.5 w-full cursor-pointer border-none bg-gray-200 outline-none dark:bg-gray-700;
}
&::before {
@apply h-1.5 bg-gradient-to-r from-[#D8CCFF] to-[#8A63FF] dark:from-[#42C8F3] dark:to-[#B6EDFF];
position: absolute;
content: '';
top: 0;
left: 0;
width: var(--seek-before-width);
cursor: pointer;
}
&::-webkit-slider-thumb {
@apply relative -mt-[5px] box-content h-4 w-4 cursor-pointer appearance-none bg-contain bg-no-repeat transition-opacity duration-300 lg:opacity-0;
background-image: url('/images/rocket-dark.svg');
background-position: center center;
box-shadow: none;
background-color: #0000;
}
&::-moz-range-track {
@apply h-1.5 w-full cursor-pointer border-none bg-gray-200 outline-none dark:bg-gray-700;
}
&::-moz-range-progress {
@apply h-1.5 bg-gradient-to-r from-[#D8CCFF] to-[#8A63FF] dark:from-[#42C8F3] dark:to-[#B6EDFF];
}
&::-moz-focus-outer {
border: 0;
}
&::-moz-range-thumb {
@apply h-4 w-4 cursor-pointer appearance-none border-0 bg-transparent bg-contain bg-no-repeat transition-opacity duration-300 outline-none lg:opacity-0;
background-image: url('/images/rocket-dark.svg');
background-position: center center;
}
@media (prefers-color-scheme: light) {
&::-webkit-slider-thumb {
background-image: url('/images/rocket-light.svg');
}
&::-moz-range-thumb {
background-image: url('/images/rocket-light.svg');
}
}
&:hover {
&::-webkit-slider-thumb {
@apply opacity-100;
}
&::-moz-range-thumb {
@apply opacity-100;
}
}
&:not(:hover) ~ .ship-particles {
display: none;
}
}
.ship-particles {
left: max(0px, var(--seek-particles-left));
> div {
animation:
ship-particles-x 1s ease infinite,
ship-particles-y 1s ease infinite;
animation-composition: add;
background-color: #B0ECFF;
opacity: 0;
@media (prefers-color-scheme: light) {
background-color: #906BFF;
}
&:nth-child(1) {
animation-delay: 0.4s;
--y-offset: -10px;
--x-offset: -20px;
}
&:nth-child(2) {
animation-delay: 0.8s;
--y-offset: -20px;
--x-offset: -15px;
}
&:nth-child(3) {
animation-delay: 0.1s;
--y-offset: 15px;
--x-offset: -25px;
}
&:nth-child(4) {
animation-delay: 0.3s;
--y-offset: 25px;
--x-offset: -10px;
}
&:nth-child(5) {
animation-delay: 0.7s;
--y-offset: 17px;
--x-offset: -15px;
}
}
}
@keyframes ship-particles-x {
0% {
opacity: 1;
transform: translateX(0) scale(1);
}
100% {
opacity: 0;
transform: translateX(var(--x-offset)) scale(.25) translateY(var(--y-offset));
}
}
@keyframes ship-particles-y {
0%, 15% {
transform: translateY(0);
}
100% {
transform: translateY(var(--y-offset));
}
}