-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathextras_and_animations.css
333 lines (273 loc) · 8.72 KB
/
extras_and_animations.css
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
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
/* Animations and small cool things */
/* Fan spinning animation */
@-webkit-keyframes rotation {
from {-webkit-transform: rotate(0deg);}
to {-webkit-transform: rotate(359deg);}
}
body div.item.fan.on .img img{
-webkit-animation: rotation 15s infinite linear;
border-radius:50%!important;
}
/*body div.item.fan.on .img img:hover{
border-radius:50%!important;
-webkit-animation: rotation 10s infinite linear;
transition: move 2s ease-in
}*/
/* BAROMETER EFFECTS
STABLE = 0, // "Stable Weather Pattern"
SUNNY = 1, // "Slowly rising Good Weather", "Clear/Sunny "
CLOUDY = 2, // "Slowly falling L-Pressure ", "Cloudy/Rain "
UNSTABLE = 3, // "Quickly rising H-Press", "Not Stable"
THUNDERSTORM = 4, // "Quickly falling L-Press", "Thunderstorm"
UNKNOWN = 5 // "Unknown (More Time needed)
Domoticz has these values:
domoticz.BARO_STABLE
domoticz.BARO_SUNNY
domoticz.BARO_CLOUDY
domoticz.BARO_UNSTABLE
domoticz.BARO_THUNDERSTORM
domoticz.BARO_UNKNOWN
domoticz.BARO_CLOUDY_RAIN
Although I've also seen "some clouds". But that may come from a MySensors custom sensor. The CSS tries to anticipate other values.
*/
#dashcontent h2 + div.divider .span4:nth-child(-n+3) .baro tr #img img:hover{border-radius:5px!important;transition: 1s}
#dashcontent h2 + div.divider .span4:nth-child(-n+3) .baro tr #img img:hover,
#dashcontent div.item.baro tr .img img:hover{border-radius:50%!important;}
body.dashboard .baro tr{
opacity: 1.0;
-webkit-transition: background 1.5s ease-out;
-moz-transition: background 1.5s ease-out;
-o-transition: background 1.5s ease-out;
-ms-transition: background 1.5s ease-out;
transition: background 1.5s ease-out;
}
@keyframes baro-unstable {
from {
-moz-transform:rotate(0deg);
-webkit-transform:rotate(0deg);
transition:rotate(0deg)
}
to {
-moz-transform:rotate(90deg);
-webkit-transform:rotate(90deg);
transition:rotate(90deg)
}
}
@keyframes baro-change {
from {
-moz-transform:rotate(15deg);
-webkit-transform:rotate(15deg);
transition:rotate(15deg)
}
to {
-moz-transform:rotate(-15deg);
-webkit-transform:rotate(-15deg);
transition:rotate(-15deg)
}
}
@keyframes baro-unknown-loading {
from {
-webkit-box-shadow: inset 0px 80px 5px 0px rgba(0,0,100,0);
-moz-box-shadow: inset 0px 80px 5px 0px rgba(0,0,100,0);
box-shadow: inset 0px 80px 5px 0px rgba(0,0,100,0);
}
to {
-webkit-box-shadow: inset 0px 0px 5px 0px rgba(50,150,250,0.8);
-moz-box-shadow: inset 0px 0px 5px 0px rgba(50,150,250,0.8);
box-shadow: inset 0px 0px 5px 0px rgba(50,150,250,0.8);
}
}
#dashcontent .prediction-unknown tr .img1 img{
animation: 10s infinite baro-unknown-loading;
border-radius:50%!important;
padding:5px;
opacity:50;
}
/* STORM */
#dashcontent .prediction-thunderstorm tr{
background-image:none;
background: rgba(250,250,250,0.1) url('/images/baro-thunderstorm.png') no-repeat right top!important;
/*background-color: rgba(250,250,250,0.1)!important;*/
}
#dashcontent .prediction-thunderstorm tr .img1 img{
-moz-transform:rotate(-60deg);
-webkit-transform:rotate(-60deg);
transition:rotate(-60deg)
}
/* CLOUDY - this ordering is on purpose, so rain can override cloudy. */
/*#dashcontent .baro[class*=cloud] tr,*/
#dashcontent .prediction-cloudy tr,
#dashcontent .prediction-someclouds tr{
background-image:none;
background: rgba(250,250,250,0.1) url('/images/baro-cloudy.png') no-repeat right top!important;
}
/* RAINY */
#dashcontent .prediction-rain tr{
background-image:none;
background: rgba(250,250,250,0.1) url('/images/baro-rain.png') no-repeat right top!important;
}
#dashcontent .baro[class*=rain] .img1 img,
#dashcontent .prediction-rain .img1 img{
-moz-transform:rotate(-30deg);
-webkit-transform:rotate(-30deg);
transition:rotate(-30deg);
}
/* CHANGE */
#dashcontent .prediction-change tr{
background-image:none;
background: rgba(250,250,250,0.1) url('/images/baro-change.png') no-repeat right top!important;
/*background-color: rgba(250,250,250,0.1)!important;*/
}
#dashcontent .prediction-change tr .img1 img{
animation: 3s infinite alternate baro-change;
}
/* SUNNY */
#dashcontent .baro[class*=sun] tr,
#dashcontent .prediction-sun tr,
#dashcontent .prediction-sunny tr{
background-image:none;
background: rgba(250,250,250,0.1) url('/images/baro-sunny.png') no-repeat right top!important;
}
#dashcontent baro[class*=sun] tr .img1 img,
#dashcontent .prediction-sunny tr .img1 img,
#dashcontent .prediction-sun tr .img1 img{
-moz-transform:rotate(45deg);
-webkit-transform:rotate(45deg);
transition:rotate(45deg);}
/* STABLE - very sunny, very dry weather */
#dashcontent .prediction-stable tr{
background-image:none;
background: rgba(250,250,250,0.1) url('/images/baro-stable.png') no-repeat right top!important;
}
#dashcontent .prediction-stable tr .img1 img{
-moz-transform:rotate(80deg);
-webkit-transform:rotate(80deg);
transition:rotate(80deg);
}
/* UNSTABLE - quicky rising high pressure */
#dashcontent .prediction-unstable tr{background-image:none;}
#dashcontent .prediction-unstable tr .img1 img{
animation: 10s infinite baro-unstable;
}
/* FANCY CHECKBOXES */
/*
input[type='checkbox']:not(.noscheck) {
max-height: 0;
max-width: 0;
opacity: 0;
}
input[type='checkbox']:not(.noscheck) + label {
display: inline-block;
position: relative;
box-shadow: inset 0 0 0px 1px rgba(191,29,27,1);
text-indent: 44px;
white-space: nowrap;
height: 18px;
width: 40px;
border-radius: 0px;
background: rgba(191,29,27,1);
margin: 3px 28px 3px 0px;
}
input[type='checkbox']:not(.noscheck) + label:before {
content: "";
position: absolute;
display: block;
height: 18px;
width: 30px;
top: 0px;
left: 0px;
border-radius: 0px;
-moz-transition: .25s ease-in-out;
-webkit-transition: .25s ease-in-out;
transition: .25s ease-in-out;
}
input[type='checkbox']:not(.noscheck) + label:after {
content: "";
position: absolute;
display: block;
height: 14px;
width: 19px;
top: 2px;
left: 2px;
border-radius: 0px;
background: white;
box-shadow: inset 0 0 0 1px rgba(0,0,0,.2), 0 2px 4px rgba(0,0,0,.2);
-moz-transition: .25s ease-in-out;
-webkit-transition: .25s ease-in-out;
transition: .25s ease-in-out;
}
input[type='checkbox']:not(.noscheck):checked + label:before {
width: 40px;
background: rgba(19,191,17,1);
}
input[type='checkbox']:not(.noscheck):checked + label:after {
left: 20px;
box-shadow: inset 0 0 0 1px rgba(19,191,17,1), 0 2px 4px rgba(0,0,0,.2);
}
*/
/* EXTRA HOVER GLOSS */
.ui-draggable-dragging{
transform: scale(1.05);
}
/*
.btn-primary,
.btn-success,
.btn-primary,
.btn-info{position:relative;overflow:hidden;transform:translate3d(0,0,0)}
.btn-primary:after,
.btn-success:after,
.btn-primary:after,
.btn-info:after{content:"";display:block;position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none;background-image:radial-gradient(circle,#000 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:scale(10,10);opacity:0;transition:transform .5s,opacity 1s}
.btn-primary:active:after,
.btn-success:active:after,
.btn-primary:active:after,
.btn-info:active:after{transform:scale(0,0);opacity:.2;transition:0s}
.options .btnsmall{position:relative;overflow:hidden;transform:translate3d(0,0,0)}
.options .btnsmall:after{content:"";display:block;position:absolute;width:100%;height:100%;top:0;left:0;pointer-events:none;background-image:radial-gradient(circle,#000 10%,transparent 10.01%);background-repeat:no-repeat;background-position:50%;transform:scale(10,10);opacity:0;transition:transform .5s,opacity 1s}
.options .btnsmall:active:after{transform:scale(0,0);opacity:.2;transition:0s}
*/
/*
::-webkit-scrollbar {
-webkit-appearance: none;
width: 7px;
}
::-webkit-scrollbar-thumb {
border-radius: 4px;
background-color: rgba(0, 0, 0, .5);
-webkit-box-shadow: 0 0 1px rgba(255, 255, 255, .5);
}
*/
/*
@keyframes fadeinto5 {
from { opacity: 0; }
to { opacity: .5; }
}
.datavizbtn{
animation: fadeinto5 1s;
}
@keyframes fadeinto6 {
from { opacity: 0; }
to { opacity: .6; }
}
.timeagooutput,
.idnumber,
.typedata{
animation: fadeinto6 1s;
}
*/
@keyframes fadeinto10 {
from { opacity: 0; }
to { opacity: .6; }
}
body.bashboard #status span,
body.bashboard .status span{
animation: fadeinto10 .4s;
}
body.bashboard #status span:first-of-type,
body.bashboard .status span:first-of-type{
animation: fadeinto10 .3s;
}
body.bashboard #status span:last-of-type,
body.bashboard .status span:last-of-type{
animation: fadeinto10 .5s;
}