-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbattery.css
122 lines (113 loc) · 2.04 KB
/
battery.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
body {
background: transparent;
}
label {
color: black;
}
.battery {
position: relative;
width: 258px;
height: 60px;
border: 4px solid #fff;
border-radius: 15px;
position: relative;
padding: 4px;
-webkit-transform: scale(0.6);
-webkit-filter: drop-shadow(0 0 10px #000000);
filter: drop-shadow(0 0 10px #000000);
}
.battery:before {
content: "";
display: block;
position: absolute;
top: 50%;
right: -16.5px;
margin-top: -15px;
width: 30px;
height: 30px;
background: #fff;
clip: rect(0, 30px, 30px, 19.5px);
border-radius: 35%;
}
.battery .level {
width: 100%;
height: 100%;
border-radius: 7.5px;
text-align: center;
}
.level-message {
position: absolute;
top: 30px;
left: 90px;
font-size: 32px;
color: black;
}
.radio-group {
background-color: white;
display: block;
max-width: 310px;
margin: 20px 20px 0;
padding: 5px 10px;
border: 1px black solid;
border-radius: 5px;
}
.options-group {
background-color: white;
display: block;
max-width: 310px;
margin: 10px 20px;
padding: 5px 10px;
border: 1px black solid;
border-radius: 5px;
}
.mode-element {
display: inline-block;
margin-right: 20px;
}
.mode-element input[type=radio] {
margin: 0;
}
.mode-element label {
margin-left: 0;
}
.charging {
background: linear-gradient(270deg, #6ee7ff, #0091ff);
background-size: 400% 400%;
-webkit-animation: AnimationName 2s ease infinite;
-moz-animation: AnimationName 2s ease infinite;
animation: AnimationName 2s ease infinite;
}
@-webkit-keyframes AnimationName {
0% {
background-position: 0% 83%;
}
50% {
background-position: 100% 18%;
}
100% {
background-position: 0% 83%;
}
}
@-moz-keyframes AnimationName {
0% {
background-position: 0% 83%;
}
50% {
background-position: 100% 18%;
}
100% {
background-position: 0% 83%;
}
}
@keyframes AnimationName {
0% {
background-position: 0% 83%;
}
50% {
background-position: 100% 18%;
}
100% {
background-position: 0% 83%;
}
}
/*# sourceMappingURL=battery.css.map */