Ei kuvausta
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.

_nouislider.scss 7.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425
  1. /*! nouislider - 14.0.1 - 6/21/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. .noUi-target,
  7. .noUi-target * {
  8. -webkit-touch-callout: none;
  9. -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
  10. -webkit-user-select: none;
  11. -ms-touch-action: none;
  12. touch-action: none;
  13. -ms-user-select: none;
  14. -moz-user-select: none;
  15. user-select: none;
  16. -moz-box-sizing: border-box;
  17. box-sizing: border-box;
  18. }
  19. .noUi-target {
  20. position: relative;
  21. direction: ltr;
  22. }
  23. .noUi-base,
  24. .noUi-connects {
  25. width: 100%;
  26. height: 100%;
  27. position: relative;
  28. z-index: 1;
  29. }
  30. /* Wrapper for all connect elements.
  31. */
  32. .noUi-connects {
  33. overflow: hidden;
  34. z-index: 0;
  35. }
  36. .noUi-connect,
  37. .noUi-origin {
  38. will-change: transform;
  39. position: absolute;
  40. z-index: 1;
  41. top: 0;
  42. left: 0;
  43. -ms-transform-origin: 0 0;
  44. -webkit-transform-origin: 0 0;
  45. -webkit-transform-style: preserve-3d;
  46. transform-origin: 0 0;
  47. transform-style: flat;
  48. }
  49. .noUi-connect {
  50. height: 100%;
  51. width: 100%;
  52. }
  53. .noUi-origin {
  54. height: 10%;
  55. width: 10%;
  56. }
  57. /* Offset direction
  58. */
  59. html:not([dir="rtl"]) .noUi-horizontal .noUi-origin {
  60. left: auto;
  61. right: 0;
  62. }
  63. /* Give origins 0 height/width so they don't interfere with clicking the
  64. * connect elements.
  65. */
  66. .noUi-vertical .noUi-origin {
  67. width: 0;
  68. }
  69. .noUi-horizontal .noUi-origin {
  70. height: 0;
  71. }
  72. .noUi-handle {
  73. -webkit-backface-visibility: hidden;
  74. backface-visibility: hidden;
  75. position: absolute;
  76. }
  77. .noUi-touch-area {
  78. height: 100%;
  79. width: 100%;
  80. }
  81. .noUi-state-tap .noUi-connect,
  82. .noUi-state-tap .noUi-origin {
  83. -webkit-transition: transform 0.3s;
  84. transition: transform 0.3s;
  85. }
  86. .noUi-state-drag * {
  87. cursor: inherit !important;
  88. }
  89. /* Slider size and handle placement;
  90. */
  91. .noUi-horizontal {
  92. height: 18px;
  93. }
  94. .noUi-horizontal .noUi-handle {
  95. width: 34px;
  96. height: 28px;
  97. left: -17px;
  98. top: -6px;
  99. }
  100. .noUi-vertical {
  101. width: 18px;
  102. }
  103. .noUi-vertical .noUi-handle {
  104. width: 28px;
  105. height: 34px;
  106. left: -6px;
  107. top: -17px;
  108. }
  109. html:not([dir="rtl"]) .noUi-horizontal .noUi-handle {
  110. right: -17px;
  111. left: auto;
  112. }
  113. /* Styling;
  114. * Giving the connect element a border radius causes issues with using transform: scale
  115. */
  116. .noUi-target {
  117. background: #FAFAFA;
  118. border-radius: 4px;
  119. border: 1px solid #D3D3D3;
  120. box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
  121. }
  122. .noUi-connects {
  123. border-radius: 3px;
  124. }
  125. .noUi-connect {
  126. background: #3FB8AF;
  127. }
  128. /* Handles and cursors;
  129. */
  130. .noUi-draggable {
  131. cursor: ew-resize;
  132. }
  133. .noUi-vertical .noUi-draggable {
  134. cursor: ns-resize;
  135. }
  136. .noUi-handle {
  137. border: 1px solid #D9D9D9;
  138. border-radius: 3px;
  139. background: #FFF;
  140. cursor: default;
  141. box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #EBEBEB, 0 3px 6px -3px #BBB;
  142. }
  143. .noUi-active {
  144. box-shadow: inset 0 0 1px #FFF, inset 0 1px 7px #DDD, 0 3px 6px -3px #BBB;
  145. }
  146. /* Handle stripes;
  147. */
  148. .noUi-handle:before,
  149. .noUi-handle:after {
  150. content: "";
  151. display: block;
  152. position: absolute;
  153. height: 14px;
  154. width: 1px;
  155. background: #E8E7E6;
  156. left: 14px;
  157. top: 6px;
  158. }
  159. .noUi-handle:after {
  160. left: 17px;
  161. }
  162. .noUi-vertical .noUi-handle:before,
  163. .noUi-vertical .noUi-handle:after {
  164. width: 14px;
  165. height: 1px;
  166. left: 6px;
  167. top: 14px;
  168. }
  169. .noUi-vertical .noUi-handle:after {
  170. top: 17px;
  171. }
  172. /* Disabled state;
  173. */
  174. [disabled] .noUi-connect {
  175. background: #B8B8B8;
  176. }
  177. [disabled].noUi-target,
  178. [disabled].noUi-handle,
  179. [disabled] .noUi-handle {
  180. cursor: not-allowed;
  181. }
  182. /* Base;
  183. *
  184. */
  185. .noUi-pips,
  186. .noUi-pips * {
  187. -moz-box-sizing: border-box;
  188. box-sizing: border-box;
  189. }
  190. .noUi-pips {
  191. position: absolute;
  192. color: #999;
  193. }
  194. /* Values;
  195. *
  196. */
  197. .noUi-value {
  198. position: absolute;
  199. white-space: nowrap;
  200. text-align: center;
  201. }
  202. .noUi-value-sub {
  203. color: #ccc;
  204. font-size: 10px;
  205. }
  206. /* Markings;
  207. *
  208. */
  209. .noUi-marker {
  210. position: absolute;
  211. background: #CCC;
  212. }
  213. .noUi-marker-sub {
  214. background: #AAA;
  215. }
  216. .noUi-marker-large {
  217. background: #AAA;
  218. }
  219. /* Horizontal layout;
  220. *
  221. */
  222. .noUi-pips-horizontal {
  223. padding: 10px 0;
  224. height: 80px;
  225. top: 100%;
  226. left: 0;
  227. width: 100%;
  228. }
  229. .noUi-value-horizontal {
  230. -webkit-transform: translate(-50%, 50%);
  231. transform: translate(-50%, 50%);
  232. }
  233. .noUi-rtl .noUi-value-horizontal {
  234. -webkit-transform: translate(50%, 50%);
  235. transform: translate(50%, 50%);
  236. }
  237. .noUi-marker-horizontal.noUi-marker {
  238. margin-left: -1px;
  239. width: 2px;
  240. height: 5px;
  241. }
  242. .noUi-marker-horizontal.noUi-marker-sub {
  243. height: 10px;
  244. }
  245. .noUi-marker-horizontal.noUi-marker-large {
  246. height: 15px;
  247. }
  248. /* Vertical layout;
  249. *
  250. */
  251. .noUi-pips-vertical {
  252. padding: 0 10px;
  253. height: 100%;
  254. top: 0;
  255. left: 100%;
  256. }
  257. .noUi-value-vertical {
  258. -webkit-transform: translate(0, -50%);
  259. transform: translate(0, -50%);
  260. padding-left: 25px;
  261. }
  262. .noUi-rtl .noUi-value-vertical {
  263. -webkit-transform: translate(0, 50%);
  264. transform: translate(0, 50%);
  265. }
  266. .noUi-marker-vertical.noUi-marker {
  267. width: 5px;
  268. height: 2px;
  269. margin-top: -1px;
  270. }
  271. .noUi-marker-vertical.noUi-marker-sub {
  272. width: 10px;
  273. }
  274. .noUi-marker-vertical.noUi-marker-large {
  275. width: 15px;
  276. }
  277. .noUi-tooltip {
  278. display: block;
  279. position: absolute;
  280. border: 1px solid #D9D9D9;
  281. border-radius: 3px;
  282. background: #fff;
  283. color: #000;
  284. padding: 5px;
  285. text-align: center;
  286. white-space: nowrap;
  287. }
  288. .noUi-horizontal .noUi-tooltip {
  289. -webkit-transform: translate(-50%, 0);
  290. transform: translate(-50%, 0);
  291. left: 50%;
  292. bottom: 120%;
  293. }
  294. .noUi-vertical .noUi-tooltip {
  295. -webkit-transform: translate(0, -50%);
  296. transform: translate(0, -50%);
  297. top: 50%;
  298. right: 120%;
  299. }
  300. // Custom styles
  301. .noUi-target {
  302. background: $noui-target-bg;
  303. border-radius: $noui-target-border-radius;
  304. border: 0;
  305. box-shadow: $noui-target-box-shadow;
  306. margin: 15px 0;
  307. cursor: pointer;
  308. }
  309. .noUi-horizontal {
  310. height: $noui-target-thickness;
  311. }
  312. html:not([dir="rtl"]) .noUi-horizontal .noUi-handle {
  313. right: -10px;
  314. }
  315. .noUi-vertical {
  316. width: $noui-target-thickness;
  317. }
  318. .noUi-connect {
  319. background: theme-color("primary");
  320. box-shadow: none;
  321. }
  322. .noUi-handle {
  323. &:after,&:before{
  324. content: none;
  325. }
  326. &:focus{
  327. outline: none;
  328. }
  329. }
  330. .noUi-horizontal .noUi-handle,
  331. .noUi-vertical .noUi-handle {
  332. top: -$noui-target-thickness;
  333. width: $noui-handle-width;
  334. height: $noui-handle-width;
  335. border-radius: 100%;
  336. box-shadow: none;
  337. cursor: pointer;
  338. background-color: $noui-handle-bg;
  339. border: $noui-handle-border;
  340. transition: box-shadow .15s, transform .15s;
  341. }
  342. .noUi-horizontal .noUi-handle.noUi-active,
  343. .noUi-vertical .noUi-handle.noUi-active {
  344. box-shadow: 0px 0px 0px 2px rgba($noui-handle-bg, 1);
  345. }
  346. .input-slider--cyan .noUi-connect {
  347. background: $cyan;
  348. }
  349. /* Disabled state */
  350. [disabled] .noUi-connect,
  351. [disabled].noUi-connect {
  352. background: $noui-slider-connect-disabled-bg;
  353. }
  354. [disabled] .noUi-handle,
  355. [disabled].noUi-origin {
  356. cursor: not-allowed;
  357. }
  358. /* Range slider value labels */
  359. .range-slider-value {
  360. font-size: $font-size-xs;
  361. font-weight: 500;
  362. background-color: rgba($dark, .7);
  363. color: color-yiq($dark);
  364. border-radius: 10px;
  365. padding: .4em .8em .3em .85em;
  366. }
  367. .range-slider-wrapper .upper-info {
  368. font-weight: 400;
  369. margin-bottom: 5px;
  370. }
  371. .input-slider-value-output {
  372. background: #333;
  373. color: #fff;
  374. padding: 4px 8px;
  375. position: relative;
  376. top: 12px;
  377. font-size: 11px;
  378. border-radius: 2px;
  379. }
  380. .input-slider-value-output:after {
  381. bottom: 100%;
  382. left: 10px;
  383. border: solid transparent;
  384. content: " ";
  385. height: 0;
  386. width: 0;
  387. position: absolute;
  388. pointer-events: none;
  389. border-color: rgba(136, 183, 213, 0);
  390. border-bottom-color: #333;
  391. border-width: 4px;
  392. margin-left: -4px;
  393. }
  394. .input-slider-value-output.left:after {
  395. left: 10px;
  396. right: auto;
  397. }
  398. .input-slider-value-output.right:after {
  399. right: 10px;
  400. left: auto;
  401. }