Add blinking effects for .battery.warn and .battery.alert

Add blinking effects for .battery.warn and .battery.alert
This commit is contained in:
Yong 2023-07-08 19:46:02 -04:00 committed by GitHub
parent 527929cf95
commit 50a86c31f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;