mirror of
https://github.com/eliasstepanik/vdo.ninja.git
synced 2026-01-11 05:38:31 +00:00
Add blinking effects for .battery.warn and .battery.alert
Add blinking effects for .battery.warn and .battery.alert
This commit is contained in:
parent
527929cf95
commit
50a86c31f7
17
main.css
17
main.css
@ -945,14 +945,27 @@ hr {
|
|||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
.battery[data-plugged="1"] > .battery-charging {
|
.battery[data-plugged="1"] {
|
||||||
display:block;
|
display:none;
|
||||||
|
}
|
||||||
|
|
||||||
|
@keyframes blink-warn {
|
||||||
|
0% { opacity: 0; }
|
||||||
|
50% { opacity: 1; }
|
||||||
|
100% { opacity: 0; }
|
||||||
|
}
|
||||||
|
@keyframes blink-alert {
|
||||||
|
0% { opacity: 0; }
|
||||||
|
50% { opacity: 1; }
|
||||||
|
100% { opacity: 0; }
|
||||||
}
|
}
|
||||||
.battery.warn {
|
.battery.warn {
|
||||||
border: 3px solid #EFAF13;
|
border: 3px solid #EFAF13;
|
||||||
|
animation: blink-warn 2s infinite;
|
||||||
}
|
}
|
||||||
.battery.alert {
|
.battery.alert {
|
||||||
border: 3px solid #e81309;
|
border: 3px solid #e81309;
|
||||||
|
animation: blink-alert 1s infinite;
|
||||||
}
|
}
|
||||||
.battery-level {
|
.battery-level {
|
||||||
background: #30b455;
|
background: #30b455;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user