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
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
|
// Styles for /lib/components/data/weather.jsx component
export const weatherStyles = /* css */ `
.weather {
position: relative;
color: var(--foreground);
background-color: var(--minor);
overflow: hidden;
z-index: 0;
}
.simple-bar--widgets-background-color-as-foreground .weather {
background-color: transparent;
}
.weather__gradient {
position: absolute;
top: 0;
left: 0;
width: 100%;
height: 100%;
opacity: 0.65;
z-index: -1;
}
.weather--sunrise .weather__gradient {
background: linear-gradient(to top right, var(--main), var(--red), var(--yellow), var(--blue));
}
.weather--sunset .weather__gradient {
background: linear-gradient(to bottom right, var(--blue), var(--yellow), var(--red), var(--magenta), var(--main));
}
.simple-bar--no-color-in-data .weather__gradient {
display: none;
}
.sun-icon,
.moon-icon {
transform-origin: 50% 50%;
animation: sunny-and-moon-scale-and-rotate 2560ms ease infinite;
}
.simple-bar--animations-disabled .sun-icon,
.simple-bar--animations-disabled .moon-icon {
animation: none;
}
@keyframes sunny-and-moon-scale-and-rotate {
50% {
transform: rotate(14deg);
}
}
.cloud-icon {
transform: translateY(-1%) rotate(5deg);
animation: cloud-levitating 2560ms ease-in-out infinite;
}
.simple-bar--animations-disabled .cloud-icon {
animation: none;
}
@keyframes cloud-levitating {
50% {
transform: translateY(10%) rotate(-3deg);
}
}
.rain-icon > g > path {
animation: rain-translate 2560ms ease-in-out infinite;
}
.simple-bar--animations-disabled .rain-icon > g > path {
animation: none;
}
.rain-icon > g > path:nth-child(2) {
animation-delay: 320ms;
}
.rain-icon > g > path:nth-child(1) {
animation-delay: 640ms;
}
@keyframes rain-translate {
0% {
opacity: 0;
transform: translateY(-10%);
}
50% {
opacity: 0.5;
}
100% {
opacity: 0;
transform: translateY(10%);
}
}
.snow-icon > g > path {
animation: snow-translate 2560ms ease-in-out infinite;
}
.simple-bar--animations-disabled .snow-icon > g > path {
animation: none;
}
.snow-icon > g > path:nth-child(5) {
animation-delay: 320ms;
}
.snow-icon > g > path:nth-child(4) {
animation-delay: 640ms;
}
.snow-icon > g > path:nth-child(3) {
animation-delay: 960ms;
}
.snow-icon > g > path:nth-child(2) {
animation-delay: 1280ms;
}
.snow-icon > g > path:nth-child(1) {
animation-delay: 1600ms;
}
@keyframes phasing-snow {
50% {
opacity: 0.1;
}
}
.fog-icon > g > path {
animation: fog-phasing 2560ms ease-in-out infinite;
}
.simple-bar--animations-disabled .fog-icon > g > path {
animation: none;
}
.fog-icon > g > path:nth-child(8) {
animation-delay: -640ms;
}
.fog-icon > g > path:nth-child(7) {
animation-delay: -320ms;
}
.fog-icon > g > path:nth-child(5) {
animation-delay: 320ms;
}
.fog-icon > g > path:nth-child(4) {
animation-delay: 640ms;
}
.fog-icon > g > path:nth-child(3) {
animation-delay: 960ms;
}
.fog-icon > g > path:nth-child(2) {
animation-delay: 1280ms;
}
.fog-icon > g > path:nth-child(1) {
animation-delay: 1600ms;
}
@keyframes fog-phasing {
50% {
opacity: 0.2;
}
}
.storm-icon > g > path {
animation: flashing-storm 2560ms ease-in-out infinite;
}
.simple-bar--animations-disabled .storm-icon > g > path {
animation: none;
}
.storm-icon > g > path:nth-child(2) {
animation-delay: 320ms;
}
.storm-icon > g > path:nth-child(1) {
animation-delay: 640ms;
}
@keyframes flashing-storm {
15%,
30%,
34% {
opacity: 1;
}
16%,
31% {
opacity: 0;
}
}
`;
|