This repository was archived by the owner on Mar 13, 2018. It is now read-only.
File tree 1 file changed +23
-18
lines changed
1 file changed +23
-18
lines changed Original file line number Diff line number Diff line change 19
19
20
20
< style >
21
21
22
-
23
- </ style >
22
+ body {
23
+ font-family : sans-serif;
24
+ }
24
25
26
+ </ style >
25
27
</ head >
26
28
27
29
< body unresolved >
28
30
29
- < polymer-element name ="x-test " noscript attributes ="value ">
31
+ < polymer-element name ="x-progressbar " noscript attributes ="value min max ">
30
32
31
33
< template >
32
34
33
35
< style >
34
36
35
37
: host {
36
- dis play: inline-block;
37
- height: 25px;
38
- width: 300px;
39
- background- color : # ddd;
38
+ dis play: block;
39
+ height: 40px;
40
+ background- color : # 555;
41
+ bor der- radius: 4px;
42
+ padding: 8px;
43
+ box- shadow: inset 0px 2px 5px rgba(0, 0, 0, 0.5);
40
44
}
41
45
42
46
.progress {
43
- background-color : red ;
47
+ background-color : # 999 ;
44
48
height : 100% ;
45
- padding : 5px 0 ;
46
- box-sizing : border-box;
47
- -moz-box-sizing : border-box;
49
+ border-radius : 4px ;
50
+ box-shadow : inset 0 1px 0 rgba (255 , 255 , 255 , 0.5 );
48
51
}
49
52
50
- core-input {
51
- border : 1px solid # ccc ;
53
+ .progress-value {
54
+ padding : 0 8px ;
55
+ font-size : 18px ;
56
+ color : # fff ;
52
57
}
53
58
54
59
</ style >
55
60
56
- < core-range min ="0 " max ="200 " step =" 0.5 " value ="{{value}} " ratio ="{{ratio}} "> </ core-range >
61
+ < core-range min ="{{min}} " max ="{{max}} " value ="{{value}} " ratio ="{{ratio}} "> </ core-range >
57
62
58
- < div class ="progress " style ="width: {{ratio}}%; "> {{ratio}}%</ div > < br >
63
+ < div class ="progress " horizontal center layout _style ="width: {{ratio}}%; ">
64
+ < div class ="progress-value "> {{ratio}}%</ div >
65
+ </ div >
59
66
60
- value (0 - 200): < core-input value ="{{value}} "> </ core-input >
61
-
62
67
</ template >
63
68
64
69
</ polymer-element >
65
70
66
- < x-test value ="100 "> </ x-test >
71
+ < x-progressbar min =" 0 " max =" 200 " value ="120 "> </ x-progressbar >
67
72
68
73
</ body >
69
74
</ html >
You can’t perform that action at this time.
0 commit comments