_noUISlider.scss 5.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276
  1. .noUi-target {
  2. -webkit-touch-callout: none;
  3. -webkit-user-select: none;
  4. -ms-touch-action: none;
  5. touch-action: none;
  6. -ms-user-select: none;
  7. -moz-user-select: none;
  8. user-select: none;
  9. -moz-box-sizing: border-box;
  10. box-sizing: border-box;
  11. position: relative;
  12. direction: ltr;
  13. * {
  14. -webkit-touch-callout: none;
  15. -webkit-user-select: none;
  16. -ms-touch-action: none;
  17. touch-action: none;
  18. -ms-user-select: none;
  19. -moz-user-select: none;
  20. user-select: none;
  21. -moz-box-sizing: border-box;
  22. box-sizing: border-box;
  23. }
  24. }
  25. .noUi-base {
  26. width: 100%;
  27. height: 100%;
  28. position: relative;
  29. z-index: 1;
  30. }
  31. .noUi-origin {
  32. position: absolute;
  33. right: 0;
  34. top: 6px;
  35. left: 0;
  36. bottom: 0;
  37. }
  38. .noUi-handle {
  39. position: relative;
  40. z-index: 1;
  41. }
  42. .noUi-stacking {
  43. .noUi-handle {
  44. z-index: 10;
  45. }
  46. }
  47. .noUi-state-tap {
  48. .noUi-origin {
  49. -webkit-transition: left 0.25s, top 0.25s;
  50. transition: left 0.25s, top 0.25s;
  51. }
  52. }
  53. .noUi-state-drag * {
  54. cursor: inherit !important;
  55. }
  56. .noUi-base {
  57. -webkit-transform: translate3d(0, 0, 0);
  58. transform: translate3d(0, 0, 0);
  59. }
  60. .noUi-horizontal {
  61. height: 18px;
  62. .noUi-handle {
  63. width: 34px;
  64. height: 28px;
  65. left: -17px;
  66. top: -6px;
  67. }
  68. }
  69. .noUi-vertical {
  70. width: 18px;
  71. .noUi-handle {
  72. width: 28px;
  73. height: 34px;
  74. left: -6px;
  75. top: -17px;
  76. }
  77. }
  78. .noUi-background {
  79. background: #FAFAFA;
  80. box-shadow: inset 0 1px 1px #f0f0f0;
  81. }
  82. .noUi-connect {
  83. background: #3FB8AF;
  84. box-shadow: inset 0 0 3px rgba(51, 51, 51, 0.45);
  85. -webkit-transition: background 450ms;
  86. transition: background 450ms;
  87. }
  88. .noUi-origin {
  89. border-radius: 2px;
  90. }
  91. .noUi-target {
  92. border-radius: 4px;
  93. border: 1px solid #D3D3D3;
  94. box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
  95. &.noUi-connect {
  96. box-shadow: inset 0 0 3px rgba(51, 51, 51, 0.45), 0 3px 6px -5px #BBB;
  97. }
  98. }
  99. .noUi-dragable {
  100. cursor: w-resize;
  101. }
  102. .noUi-vertical .noUi-dragable {
  103. cursor: n-resize;
  104. }
  105. .noUi-handle {
  106. border: 1px solid #D9D9D9;
  107. border-radius: 3px;
  108. background: #FFF;
  109. cursor: default;
  110. box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
  111. }
  112. .noUi-active {
  113. box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;
  114. }
  115. .noUi-handle {
  116. &:before {
  117. content: "";
  118. display: block;
  119. position: absolute;
  120. height: 14px;
  121. width: 1px;
  122. background: #E8E7E6;
  123. left: 14px;
  124. top: 6px;
  125. }
  126. &:after {
  127. content: "";
  128. display: block;
  129. position: absolute;
  130. height: 14px;
  131. width: 1px;
  132. background: #E8E7E6;
  133. left: 14px;
  134. top: 6px;
  135. left: 17px;
  136. }
  137. }
  138. .noUi-vertical .noUi-handle {
  139. &:before {
  140. width: 14px;
  141. height: 1px;
  142. left: 6px;
  143. top: 14px;
  144. }
  145. &:after {
  146. width: 14px;
  147. height: 1px;
  148. left: 6px;
  149. top: 14px;
  150. top: 17px;
  151. }
  152. }
  153. [disabled] {
  154. &.noUi-connect, .noUi-connect {
  155. background: #B8B8B8;
  156. }
  157. &.noUi-origin, .noUi-handle {
  158. cursor: not-allowed;
  159. }
  160. }
  161. .noUi-target {
  162. box-shadow: none;
  163. border: none;
  164. }
  165. .noUi-base {
  166. height: 15px;
  167. top: -6px;
  168. }
  169. .noUi-background {
  170. height: 3px;
  171. top: 6px;
  172. background-color: #bfbfbf;
  173. box-shadow: none;
  174. }
  175. .noUi-horizontal {
  176. height: 3px;
  177. }
  178. .noUi-connect {
  179. height: 3px;
  180. top: 6px;
  181. background-color: #26A69A;
  182. box-shadow: none;
  183. }
  184. .noUi-horizontal .noUi-handle {
  185. width: 15px;
  186. height: 15px;
  187. border-radius: 50%;
  188. box-shadow: none;
  189. background-color: #26A69A;
  190. border: none;
  191. left: -5px;
  192. top: -6px;
  193. transition: width 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), height 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), left 0.2s cubic-bezier(0.215, 0.61, 0.355, 1), top 0.2s cubic-bezier(0.215, 0.61, 0.355, 1);
  194. }
  195. .noUi-handle {
  196. &:before, &:after {
  197. content: none;
  198. }
  199. }
  200. .noUi-target {
  201. .noUi-active {
  202. &.noUi-handle {
  203. @include box-shadow(0 0 20px rgba(0,0,0,0.5));
  204. }
  205. }
  206. .range-label {
  207. position: absolute;
  208. height: 30px;
  209. width: 30px;
  210. top: -17px;
  211. left: -2px;
  212. background-color: #26A69A;
  213. border-radius: 50%;
  214. transition: border-radius 0.25s cubic-bezier(0.215, 0.61, 0.355, 1), transform 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
  215. transform: scale(0.5) rotate(-45deg);
  216. transform-origin: 50% 100%;
  217. }
  218. .noUi-active .range-label {
  219. border-radius: 15px 15px 15px 0;
  220. transform: rotate(-45deg) translate(23px, -25px);
  221. }
  222. }
  223. .range-label span {
  224. width: 100%;
  225. text-align: center;
  226. color: #fff;
  227. font-size: 12px;
  228. transform: rotate(45deg);
  229. opacity: 0;
  230. position: absolute;
  231. top: 7px;
  232. left: -1px;
  233. transition: opacity 0.25s cubic-bezier(0.215, 0.61, 0.355, 1);
  234. }
  235. .noUi-active .range-label span {
  236. opacity: 1;
  237. }