File tree Expand file tree Collapse file tree 3 files changed +56
-19
lines changed Expand file tree Collapse file tree 3 files changed +56
-19
lines changed Original file line number Diff line number Diff line change 1
1
< div class ="netatmo ">
2
- < span class ="small loading ">
3
- < svg width ="2em " height ="2em " xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 100 100 " preserveAspectRatio ="xMidYMid " class ="uil-ring-alt ">
4
- < rect x ="0 " y ="0 " width ="100 " height ="100 " fill ="none " class ="bk "> </ rect >
5
- < circle cx ="50 " cy ="50 " r ="40 " stroke ="#aaa " fill ="none " stroke-width ="10 " stroke-linecap ="round "> </ circle >
6
- < circle cx ="50 " cy ="50 " r ="40 " stroke ="#fff " fill ="none " stroke-width ="6 " stroke-linecap ="round ">
2
+ < span class ="loading ">
3
+ < svg xmlns ="http://www.w3.org/2000/svg " viewBox ="0 0 100 100 " preserveAspectRatio ="xMidYMid ">
4
+ < circle class ="outer "> </ circle >
5
+ < circle class ="inner ">
7
6
< animate attributeName ="stroke-dashoffset " dur ="5s " repeatCount ="indefinite " from ="0 " to ="502 "> </ animate >
8
7
< animate attributeName ="stroke-dasharray " dur ="5s " repeatCount ="indefinite " values ="150.6 100.4;1 250;150.6 100.4 "> </ animate >
9
8
</ circle >
10
9
</ svg >
11
10
</ span >
12
11
</ div >
12
+ < svg class ="loadTimer " viewbox ="0 0 250 250 ">
13
+ < path class ="border " transform ="translate(125, 125) "/>
14
+ < path class ="loader " transform ="translate(125, 125) scale(.84) "/>
15
+ </ svg >
Original file line number Diff line number Diff line change
1
+ @light : #fff ;
2
+ @dark : #000 ;
3
+ @dimmed : darken (@light , 33.5% );
4
+ @borderColor : @light ;
5
+
1
6
#netatmo-module {
7
+ position : absolute ;
8
+ bottom : 0 ;
9
+
2
10
.netatmo {
3
- position :absolute ;
4
- bottom : 0 ;
11
+ display : inline-block ;
5
12
6
13
.module {
7
14
display : inline-block ;
8
- border : 1px solid white ;
15
+ border : 1px solid @borderColor ;
9
16
border-radius : .25em ;
10
- margin : .25em ;
17
+ margin : .125 em . 25em ;
11
18
overflow : hidden ;
12
19
13
20
.name {
14
21
text-align : center ;
15
- background : white ;
16
- color : black ;
17
- padding : .125em .25em
22
+ color : @dark ;
23
+ background : @borderColor ;
24
+ padding : .125em .25em ;
18
25
}
19
26
20
27
.data {
21
- padding : .25 em .125 em ;
28
+ padding : .125 em .25 em ;
22
29
}
23
30
}
24
-
25
- .loading {
26
- margin : 1.5em 2em ;
27
- display : inline-block ;
31
+ }
32
+
33
+ .loading {
34
+ display : inline-block ;
35
+ svg {
36
+ width : .6em ;
37
+ height : .6em ;
38
+
39
+ circle {
40
+ fill : none ;
41
+ stroke-linecap : round ;
42
+ cx : 50 ;
43
+ cy : 50 ;
44
+ r : 40 ;
45
+ }
46
+ circle .inner {
47
+ stroke : @light ;
48
+ stroke-width : 6 ;
49
+ }
50
+ circle .outer {
51
+ stroke : @dimmed ;
52
+ stroke-width : 10 ;
53
+ }
28
54
}
29
55
}
30
- }
56
+ svg .loadTimer {
57
+ width : .5em ;
58
+ height : .5em ;
59
+ display : inline-block ;
60
+
61
+ .loader { fill : @dark ;}
62
+ .border { fill : @dimmed }
63
+ }
64
+ }
You can’t perform that action at this time.
0 commit comments