You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

range.css 2.2KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899
  1. .leaflet-sbs-range {
  2. -webkit-appearance: none;
  3. display: inline-block!important;
  4. vertical-align: middle;
  5. height: 0;
  6. padding: 0;
  7. margin: 0;
  8. border: 0;
  9. background: rgba(0, 0, 0, 0.25);
  10. min-width: 100px;
  11. cursor: pointer;
  12. pointer-events: none;
  13. z-index: 999;
  14. }
  15. .leaflet-sbs-range::-ms-fill-upper {
  16. background: transparent;
  17. }
  18. .leaflet-sbs-range::-ms-fill-lower {
  19. background: rgba(255, 255, 255, 0.25);
  20. }
  21. /* Browser thingies */
  22. .leaflet-sbs-range::-moz-range-track {
  23. opacity: 0;
  24. }
  25. .leaflet-sbs-range::-ms-track {
  26. opacity: 0;
  27. }
  28. .leaflet-sbs-range::-ms-tooltip {
  29. display: none;
  30. }
  31. /* For whatever reason, these need to be defined
  32. * on their own so dont group them */
  33. .leaflet-sbs-range::-webkit-slider-thumb {
  34. -webkit-appearance: none;
  35. margin: 0;
  36. padding: 0;
  37. background: #fff;
  38. height: 40px;
  39. width: 40px;
  40. border-radius: 20px;
  41. cursor: ew-resize;
  42. pointer-events: auto;
  43. border: 1px solid #ddd;
  44. background-image: url(range-icon.png);
  45. background-position: 50% 50%;
  46. background-repeat: no-repeat;
  47. background-size: 40px 40px;
  48. }
  49. .leaflet-sbs-range::-ms-thumb {
  50. margin: 0;
  51. padding: 0;
  52. background: #fff;
  53. height: 40px;
  54. width: 40px;
  55. border-radius: 20px;
  56. cursor: ew-resize;
  57. pointer-events: auto;
  58. border: 1px solid #ddd;
  59. background-image: url(range-icon.png);
  60. background-position: 50% 50%;
  61. background-repeat: no-repeat;
  62. background-size: 40px 40px;
  63. }
  64. .leaflet-sbs-range::-moz-range-thumb {
  65. padding: 0;
  66. right: 0 ;
  67. background: #fff;
  68. height: 40px;
  69. width: 40px;
  70. border-radius: 20px;
  71. cursor: ew-resize;
  72. pointer-events: auto;
  73. border: 1px solid #ddd;
  74. background-image: url(range-icon.png);
  75. background-position: 50% 50%;
  76. background-repeat: no-repeat;
  77. background-size: 40px 40px;
  78. }
  79. .leaflet-sbs-range:disabled::-moz-range-thumb {
  80. cursor: default;
  81. }
  82. .leaflet-sbs-range:disabled::-ms-thumb {
  83. cursor: default;
  84. }
  85. .leaflet-sbs-range:disabled::-webkit-slider-thumb {
  86. cursor: default;
  87. }
  88. .leaflet-sbs-range:disabled {
  89. cursor: default;
  90. }
  91. .leaflet-sbs-range:focus {
  92. outline: none!important;
  93. }
  94. .leaflet-sbs-range::-moz-focus-outer {
  95. border: 0;
  96. }