noui-slider.scss 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265
  1. // Core variables and mixins
  2. @import "../../bootstrap/functions";
  3. @import "../../bootstrap/mixins";
  4. // Core variables and mixins overrides
  5. @import "../../core/variables/variables";
  6. @import "../../bootstrap/variables";
  7. // Overrides user variable
  8. @import "../../core/variables/components-variables";
  9. $ex-val-color: #888;
  10. // default bg for noUi Slider
  11. .noUi-background{
  12. background: darken($body-bg,3%);
  13. }
  14. .noUi-target{
  15. background-color: darken($body-bg,5%);
  16. border:none;
  17. box-shadow:none;
  18. border-radius: 1rem;
  19. &.noUi-connect{
  20. box-shadow: none;
  21. }
  22. }
  23. // horizontal slider and it's sizes
  24. .noUi-horizontal{
  25. height: 10px;
  26. padding-right: 17px;
  27. .noUi-handle{
  28. width: 20px;
  29. height: 20px;
  30. top: -5px;
  31. left: -1px;
  32. cursor: pointer;
  33. }
  34. .noUi-origin {
  35. left: 17px;
  36. right: -17px;
  37. }
  38. &.slider-xl{
  39. height: 14px;
  40. .noUi-handle{
  41. width: 28px;
  42. height: 28px;
  43. top: -7px;
  44. }
  45. }
  46. &.slider-lg{
  47. height: 12px;
  48. .noUi-handle{
  49. width: 24px;
  50. height: 24px;
  51. top: -6px;
  52. }
  53. }
  54. &.slider-sm{
  55. height: 6px;
  56. .noUi-handle{
  57. height: 15px;
  58. width: 15px;
  59. right: -2px !important;
  60. }
  61. }
  62. &.slider-xs{
  63. height: 3px;
  64. .noUi-handle{
  65. height: 10px;
  66. width: 10px;
  67. top: -4px;
  68. right: -2px !important;
  69. }
  70. }
  71. }
  72. // slider handle styles
  73. .noUi-handle{
  74. box-shadow: none;
  75. border:none;
  76. &:after, &:before {
  77. display: none;
  78. }
  79. border-radius: 50%;
  80. background: $white;
  81. border:5px solid $primary;
  82. }
  83. // for noUi square circle filled
  84. .circle-filled{
  85. .noUi-handle{
  86. &:after, &:before {
  87. display: none;
  88. }
  89. background: $primary;
  90. border-radius: 50%;
  91. }
  92. }
  93. // for noUi square and it's sizes
  94. .square{
  95. .noUi-handle{
  96. background: $primary;
  97. border-radius: 3px;
  98. &:before{
  99. display: block;
  100. width: 2px;
  101. height: 10px;
  102. left: 2px;
  103. top:0px;
  104. }
  105. &:after{
  106. display: block;
  107. width: 2px;
  108. height: 10px;
  109. left: 7px;
  110. top:0px;
  111. }
  112. }
  113. &.slider-xl{
  114. .noUi-handle{
  115. &:before{
  116. left: 5px;
  117. top: 4px;
  118. }
  119. &:after{
  120. left: 10px;
  121. top: 4px;
  122. }
  123. }
  124. }
  125. &.slider-lg{
  126. .noUi-handle{
  127. &:before{
  128. left: 3px;
  129. top: 2px;
  130. }
  131. &:after{
  132. left: 8px;
  133. top:2px;
  134. }
  135. }
  136. }
  137. &.slider-sm{
  138. .noUi-handle{
  139. &:before{
  140. left: -1px;
  141. top: -1px;
  142. height: 7px;
  143. }
  144. &:after{
  145. left: 4px;
  146. top: -1px;
  147. height: 7px;
  148. }
  149. }
  150. }
  151. &.slider-xs{
  152. .noUi-handle{
  153. &:before{
  154. left: -3px;
  155. top: -3px;
  156. height: 5px;
  157. }
  158. &:after{
  159. left: 1px;
  160. top: -3px;
  161. height: 5px;
  162. }
  163. }
  164. }
  165. }
  166. // default connect color
  167. .noUi-connect{
  168. background:$primary;
  169. box-shadow: none;
  170. }
  171. // noUi Vertical customization
  172. .noUi-vertical {
  173. display: inline-block;
  174. width: 8px;
  175. height: 150px;
  176. .noUi-handle{
  177. width: 20px;
  178. height: 20px;
  179. top: -5px;
  180. left: -6px;
  181. }
  182. &.square{
  183. .noUi-handle{
  184. background: $primary;
  185. border-radius: 3px;
  186. &:before{
  187. display: block;
  188. width: 12px;
  189. height: 2px;
  190. left: -1px;
  191. top:2px;
  192. }
  193. &:after{
  194. display: block;
  195. width: 12px;
  196. height: 2px;
  197. left: -1px;
  198. top:7px;
  199. }
  200. }
  201. }
  202. .noUi-tooltip{
  203. transform: translate(-10%,-50%);
  204. }
  205. }
  206. // for example value of noUI Hover
  207. .example-val {
  208. font: 400 12px Arial;
  209. color: $ex-val-color;
  210. display: block;
  211. margin: 15px 0;
  212. }
  213. // to remove outline on focus
  214. .noUi-handle:focus{
  215. outline: 0;
  216. }
  217. // IE SPECIFIC FOR SLIDER WITH INPUT
  218. _:-ms-lang(x),
  219. .slider-select {
  220. flex: 0 0 10%;
  221. max-width: 10%;
  222. }