Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.

356 строки
6.4 KiB

  1. /*! nouislider - 14.0.2 - 6/28/2019 */
  2. /* Functional styling;
  3. * These styles are required for noUiSlider to function.
  4. * You don't need to change these rules to apply your design.
  5. */
  6. /*
  7. This file was modified by Creative-Tim
  8. */
  9. .noUi-target,
  10. .noUi-target * {
  11. -webkit-touch-callout: none;
  12. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  13. -webkit-user-select: none;
  14. -ms-touch-action: none;
  15. touch-action: none;
  16. -ms-user-select: none;
  17. -moz-user-select: none;
  18. user-select: none;
  19. -moz-box-sizing: border-box;
  20. box-sizing: border-box;
  21. }
  22. .noUi-target {
  23. position: relative;
  24. direction: ltr;
  25. }
  26. .noUi-base,
  27. .noUi-connects {
  28. width: 100%;
  29. height: 100%;
  30. position: relative;
  31. z-index: 1;
  32. }
  33. /* Wrapper for all connect elements.
  34. */
  35. .noUi-connects {
  36. overflow: hidden;
  37. z-index: 0;
  38. }
  39. .noUi-connect,
  40. .noUi-origin {
  41. will-change: transform;
  42. position: absolute;
  43. z-index: 1;
  44. top: 0;
  45. left: 0;
  46. -ms-transform-origin: 0 0;
  47. -webkit-transform-origin: 0 0;
  48. -webkit-transform-style: preserve-3d;
  49. transform-origin: 0 0;
  50. transform-style: flat;
  51. }
  52. .noUi-connect {
  53. height: 100%;
  54. width: 100%;
  55. }
  56. .noUi-origin {
  57. height: 10%;
  58. width: 10%;
  59. }
  60. /* Offset direction
  61. */
  62. html:not([dir="rtl"]) .noUi-horizontal .noUi-origin {
  63. left: auto;
  64. right: 0;
  65. }
  66. /* Give origins 0 height/width so they don't interfere with clicking the
  67. * connect elements.
  68. */
  69. .noUi-vertical .noUi-origin {
  70. width: 0;
  71. }
  72. .noUi-horizontal .noUi-origin {
  73. height: 0;
  74. }
  75. .noUi-handle {
  76. -webkit-backface-visibility: hidden;
  77. backface-visibility: hidden;
  78. position: absolute;
  79. }
  80. .noUi-touch-area {
  81. height: 100%;
  82. width: 100%;
  83. }
  84. .noUi-state-tap .noUi-connect,
  85. .noUi-state-tap .noUi-origin {
  86. -webkit-transition: transform 0.3s;
  87. transition: transform 0.3s;
  88. }
  89. .noUi-state-drag * {
  90. cursor: inherit !important;
  91. }
  92. /* Slider size and handle placement;
  93. */
  94. .noUi-horizontal {
  95. height: 2px;
  96. margin: 15px 0;
  97. }
  98. .noUi-horizontal .noUi-handle {
  99. box-sizing: border-box;
  100. width: 14px;
  101. height: 14px;
  102. left: -10px;
  103. top: -6px;
  104. cursor: pointer;
  105. border-radius: 100%;
  106. -webkit-transition: all .2s ease-out;
  107. transition: all .2s ease-out;
  108. border: 1px solid #9c27b0;
  109. background: #fff;
  110. box-shadow: 0 2px 2px 0 rgba(0,0,0,.14), 0 3px 1px -2px rgba(0,0,0,.12), 0 1px 5px 0 rgba(0,0,0,.2);
  111. }
  112. .noUi-vertical {
  113. width: 18px;
  114. }
  115. .noUi-vertical .noUi-handle {
  116. width: 15px;
  117. height: 15px;
  118. left: 0px;
  119. top: -7px;
  120. }
  121. html:not([dir="rtl"]) .noUi-horizontal .noUi-handle {
  122. right: -4px;
  123. left: auto;
  124. }
  125. /* Styling;
  126. * Giving the connect element a border radius causes issues with using transform: scale
  127. */
  128. .noUi-target {
  129. background-color: #c8c8c8;
  130. border-radius: 3px;
  131. }
  132. .noUi-connects {
  133. border-radius: 3px;
  134. }
  135. .noUi-connect {
  136. // background: #3FB8AF;
  137. }
  138. /* Handles and cursors;
  139. */
  140. .noUi-draggable {
  141. cursor: ew-resize;
  142. }
  143. .noUi-vertical .noUi-draggable {
  144. cursor: ns-resize;
  145. }
  146. .noUi-handle {
  147. border-radius: 3px;
  148. background: #FFF;
  149. cursor: default;
  150. box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
  151. }
  152. .noUi-active {
  153. box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;
  154. }
  155. .noUi-handle.noUi-active{
  156. transform: scale3d(1.5,1.5,1);
  157. }
  158. /* Disabled state;
  159. */
  160. [disabled] .noUi-connect {
  161. background: #B8B8B8;
  162. }
  163. [disabled].noUi-target,
  164. [disabled].noUi-handle,
  165. [disabled] .noUi-handle {
  166. cursor: not-allowed;
  167. }
  168. /* Base;
  169. *
  170. */
  171. .noUi-pips,
  172. .noUi-pips * {
  173. -moz-box-sizing: border-box;
  174. box-sizing: border-box;
  175. }
  176. .noUi-pips {
  177. position: absolute;
  178. color: #999;
  179. }
  180. /* Values;
  181. *
  182. */
  183. .noUi-value {
  184. position: absolute;
  185. white-space: nowrap;
  186. text-align: center;
  187. }
  188. .noUi-value-sub {
  189. color: #ccc;
  190. font-size: 10px;
  191. }
  192. /* Markings;
  193. *
  194. */
  195. .noUi-marker {
  196. position: absolute;
  197. background: #CCC;
  198. }
  199. .noUi-marker-sub {
  200. background: #AAA;
  201. }
  202. .noUi-marker-large {
  203. background: #AAA;
  204. }
  205. /* Horizontal layout;
  206. *
  207. */
  208. .noUi-pips-horizontal {
  209. padding: 10px 0;
  210. height: 80px;
  211. top: 100%;
  212. left: 0;
  213. width: 100%;
  214. }
  215. .noUi-value-horizontal {
  216. -webkit-transform: translate(-50%, 50%);
  217. transform: translate(-50%, 50%);
  218. }
  219. .noUi-rtl .noUi-value-horizontal {
  220. -webkit-transform: translate(50%, 50%);
  221. transform: translate(50%, 50%);
  222. }
  223. .noUi-marker-horizontal.noUi-marker {
  224. margin-left: -1px;
  225. width: 2px;
  226. height: 5px;
  227. }
  228. .noUi-marker-horizontal.noUi-marker-sub {
  229. height: 10px;
  230. }
  231. .noUi-marker-horizontal.noUi-marker-large {
  232. height: 15px;
  233. }
  234. /* Vertical layout;
  235. *
  236. */
  237. .noUi-pips-vertical {
  238. padding: 0 10px;
  239. height: 100%;
  240. top: 0;
  241. left: 100%;
  242. }
  243. .noUi-value-vertical {
  244. -webkit-transform: translate(0, -50%);
  245. transform: translate(0, -50%);
  246. padding-left: 25px;
  247. }
  248. .noUi-rtl .noUi-value-vertical {
  249. -webkit-transform: translate(0, 50%);
  250. transform: translate(0, 50%);
  251. }
  252. .noUi-marker-vertical.noUi-marker {
  253. width: 5px;
  254. height: 2px;
  255. margin-top: -1px;
  256. }
  257. .noUi-marker-vertical.noUi-marker-sub {
  258. width: 10px;
  259. }
  260. .noUi-marker-vertical.noUi-marker-large {
  261. width: 15px;
  262. }
  263. .noUi-tooltip {
  264. display: block;
  265. position: absolute;
  266. border: 1px solid #D9D9D9;
  267. border-radius: 3px;
  268. background: #fff;
  269. color: #000;
  270. padding: 5px;
  271. text-align: center;
  272. white-space: nowrap;
  273. }
  274. .noUi-horizontal .noUi-tooltip {
  275. -webkit-transform: translate(-50%, 0);
  276. transform: translate(-50%, 0);
  277. left: 50%;
  278. bottom: 120%;
  279. }
  280. .noUi-vertical .noUi-tooltip {
  281. -webkit-transform: translate(0, -50%);
  282. transform: translate(0, -50%);
  283. top: 50%;
  284. right: 120%;
  285. }
  286. .noUi-target {
  287. & .noUi-handle {
  288. border: 1px solid #333;
  289. }
  290. &.slider-primary {
  291. & .noUi-connect,
  292. &.noUi-connect {
  293. background-color: $brand-primary;
  294. }
  295. & .noUi-handle {
  296. border-color: $brand-primary;
  297. }
  298. }
  299. &.slider-info {
  300. & .noUi-connect,
  301. &.noUi-connect {
  302. background-color: $brand-info;
  303. }
  304. & .noUi-handle {
  305. border-color: $brand-info;
  306. }
  307. }
  308. &.slider-success {
  309. & .noUi-connect,
  310. &.noUi-connect {
  311. background-color: $brand-success;
  312. }
  313. & .noUi-handle {
  314. border-color: $brand-success;
  315. }
  316. }
  317. &.slider-warning {
  318. & .noUi-connect,
  319. &.noUi-connect {
  320. background-color: $brand-warning;
  321. }
  322. & .noUi-handle {
  323. border-color: $brand-warning;
  324. }
  325. }
  326. &.slider-danger {
  327. & .noUi-connect,
  328. &.noUi-connect {
  329. background-color: $brand-danger;
  330. }
  331. & .noUi-handle {
  332. border-color: $brand-danger;
  333. }
  334. }
  335. &.slider-rose {
  336. & .noUi-connect,
  337. &.noUi-connect {
  338. background-color: $brand-rose;
  339. }
  340. & .noUi-handle {
  341. border-color: $brand-rose;
  342. }
  343. }
  344. }