-
Notifications
You must be signed in to change notification settings - Fork 3
/
L.Control.Range.css
60 lines (51 loc) · 1.77 KB
/
L.Control.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
.leaflet-range-control {
background-color: #fff;
}
.leaflet-range-control.vertical {
width: 26px;
padding-bottom: 5px;
padding-top: 5px;
text-align: center;
}
.leaflet-range-control.horizontal {
height: 26px;
padding-right: 5px;
}
.leaflet-range-control .leaflet-range-icon {
display: inline-block;
float: left;
width: 26px;
height: 26px;
background-image: url('data:image/svg+xml;base64,PHN2ZyBmaWxsPSIjMDAwMDAwIiBoZWlnaHQ9IjI0IiB2aWV3Qm94PSIwIDAgMjQgMjQiIHdpZHRoPSIyNCIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4NCiAgICA8cGF0aCBkPSJNMCAwaDI0djI0SDB6IiBmaWxsPSJub25lIi8+DQogICAgPHBhdGggZD0iTTE1IDE3djJoMnYtMmgydi0yaC0ydi0yaC0ydjJoLTJ2Mmgyem01LTE1SDRjLTEuMSAwLTIgLjktMiAydjE2YzAgMS4xLjkgMiAyIDJoMTZjMS4xIDAgMi0uOSAyLTJWNGMwLTEuMS0uOS0yLTItMnpNNSA1aDZ2Mkg1VjV6bTE1IDE1SDRMMjAgNHYxNnoiLz4NCjwvc3ZnPg==');
}
.leaflet-range-control input[type=range] {
display: block;
cursor: pointer;
width: 100%;
margin: 0px;
}
.leaflet-range-control input[type=range][orient=horizontal] {
margin-top: 5px;
width: 150px;
}
.leaflet-range-control input[type=range][orient=vertical] {
height: 150px;
writing-mode: bt-lr;
/*
* -webkit-appearance is non-standard and may break in the future:
* https://developer.mozilla.org/en-US/docs/Web/CSS/-moz-appearance
* However, for now it's the only way to get a vertical range input on Chrome.
*/
-webkit-appearance: slider-vertical;
}
/* Hack to target IE 10 & 11 */
@media screen and (-ms-high-contrast: active), (-ms-high-contrast: none) {
.leaflet-range-control.vertical {
padding-bottom: 15px;
}
.leaflet-range-control input[type=range][orient=vertical] {
writing-mode: bt-lr;
width: 45px;
margin-left: -11px;
}
}