forked from ask4kapil/ion-custom-range
-
Notifications
You must be signed in to change notification settings - Fork 0
/
ion-custom-range.css
81 lines (81 loc) · 2.81 KB
/
ion-custom-range.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
@charset "UTF-8";
ion-custom-range {
position: relative;
-webkit-box-flex: 1;
flex: 1;
width: 100%;
height: 43px;
margin-left: 10px;
margin-right: 10px; }
ion-custom-range .static-background-line {
position: absolute;
top: 50%;
width: 100%;
height: 2px;
margin-top: -1px;
background-color: #ccc; }
ion-custom-range .progress-line {
position: absolute;
top: 50%;
width: 0;
height: 2px;
margin-top: -1px; }
ion-custom-range .default-progress-line-bg {
background-color: #000; }
ion-custom-range .slider-tip, ion-custom-range .slider-tip-min {
position: absolute;
top: 50%;
left: 0;
width: 30px;
height: 20px;
border-radius: 30px;
z-index: 1;
background-color: #ffffff;
display: none;
margin-top: -10px;
text-align: center; }
ion-custom-range .scrubber, ion-custom-range .scrubber-min {
position: absolute;
top: 50%;
left: 0;
width: 30px;
height: 30px;
margin-top: -15px;
border-radius: 30px;
background-color: white;
z-index: 2;
border: 1px solid #ddd;
box-shadow: 0 2px 5px #ccc; }
ion-custom-range[range-type="range-slider-square"] .scrubber {
border: solid 0.375em;
border-image: linear-gradient(#fdfdfd, #c4c4c4) 1;
box-shadow: 0 0.375em 0.5em -0.125em #808080;
background: linear-gradient(#c5c5c5, #efefef); }
ion-custom-range[range-type="range-slider-circle"] .scrubber {
border: none;
/* makes border-box ≡ padding-box */
padding: .375em;
border-radius: 50%;
box-shadow: 0 .375em .5em -.125em #808080, inset 0 -.25em .5em -.125em #bbb;
background: linear-gradient(#c5c5c5, #efefef) content-box, linear-gradient(#fdfdfd, #c4c4c4); }
ion-custom-range[range-type="range-slider-circle-inner"] .scrubber {
border: none;
padding: 0.625em;
width: 1.75em;
height: 1.75em;
border-radius: 50%;
box-shadow: white 0px 1px 0.125em, #dddddd 0px 1px 0.125em inset;
background: radial-gradient(transparent 35%, #0a9dc7) 50% calc(50% + 0.125em)/175% 175% content-box content-box, linear-gradient(#387EF5, #387EF5) content-box content-box, linear-gradient(#d0d3d5, #d2d5d7); }
ion-custom-range[range-type="range-slider-circle-inner"] .scrubber-min {
border: none;
padding: 0.625em;
width: 1em;
height: 1.25em;
top: 60%;
border-radius: 50%;
box-shadow: white 0px 1px 0.125em, #dddddd 0px 1px 0.125em inset;
background: radial-gradient(transparent 35%, #0a9dc7) 50% calc(50% + 0.125em)/175% 175% content-box content-box, linear-gradient(#387EF5, #387EF5) content-box content-box, linear-gradient(#d0d3d5, #d2d5d7); }
ion-custom-range .scrubber-min {
display: none; }
ion-custom-range .slider-tip-on + .scrubber, ion-custom-range .slider-tip-on + .scrubber-min {
background-color: rgba(255, 255, 255, 0.1); }