ext-component-sliders.scss 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145
  1. @import '../../bootstrap-extended/include'; // Bootstrap includes
  2. @import '../../components/include'; // Components includes
  3. $slider_width: 6px;
  4. $handle-size: 1rem;
  5. .noUi-target {
  6. background-color: rgba($primary, 0.12);
  7. border-width: 0;
  8. box-shadow: none;
  9. border-radius: 1rem;
  10. &.noUi-connect {
  11. box-shadow: none;
  12. }
  13. }
  14. // horizontal slider and it's sizes
  15. .noUi-horizontal {
  16. height: $slider_width;
  17. .noUi-handle {
  18. width: $handle-size;
  19. height: $handle-size;
  20. cursor: pointer;
  21. right: -($handle-size - ($handle-size/2));
  22. top: -4px;
  23. }
  24. .noUi-tooltip {
  25. bottom: 135% !important;
  26. }
  27. }
  28. // pips, marker and value
  29. .noUi-pips {
  30. color: $text-muted;
  31. }
  32. .noUi-marker {
  33. background: $border-color;
  34. }
  35. .noUi-value {
  36. font-size: 0.857rem;
  37. }
  38. .noUi-marker-horizontal.noUi-marker,
  39. .noUi-marker-horizontal.noUi-marker-large {
  40. height: 8px;
  41. }
  42. // slider handle styles
  43. .noUi-handle {
  44. box-shadow: none;
  45. border: none;
  46. &:after,
  47. &:before {
  48. display: none;
  49. }
  50. border-radius: 50%;
  51. background: $white;
  52. border: 2px solid $primary;
  53. }
  54. // default selected slide area style
  55. .noUi-connect {
  56. background: $primary;
  57. box-shadow: none;
  58. }
  59. // Tooltip style
  60. .noUi-tooltip {
  61. transform: translate(-10%, -50%);
  62. font-size: 0.857rem;
  63. border: none;
  64. color: $body-color;
  65. background-color: $body-bg;
  66. padding: 0.1718rem 0.35rem;
  67. font-weight: $font-weight-bold;
  68. }
  69. // noUi Vertical customization
  70. .noUi-vertical {
  71. display: inline-block;
  72. width: $slider_width;
  73. .noUi-origin {
  74. right: auto;
  75. }
  76. .noUi-handle {
  77. width: 1rem;
  78. height: 1rem;
  79. top: -0.375rem;
  80. left: -0.3rem;
  81. }
  82. .noUi-tooltip {
  83. right: 135% !important;
  84. }
  85. }
  86. // for example value of noUI Hover
  87. .hover_val {
  88. font: 400 12px Arial;
  89. color: $body-color;
  90. display: block;
  91. margin: 15px 0;
  92. }
  93. // to remove outline on focus
  94. .noUi-handle:focus {
  95. outline: 0;
  96. }
  97. // IE SPECIFIC FOR SLIDER WITH INPUT
  98. _:-ms-lang(x),
  99. .slider-select {
  100. flex: 0 0 10%;
  101. max-width: 10%;
  102. }
  103. // Dark Layout
  104. // -------------
  105. .dark-layout {
  106. .noUi-handle {
  107. background-color: $theme-dark-card-bg;
  108. }
  109. .noUi-tooltip {
  110. background-color: $theme-dark-body-bg;
  111. color: $theme-dark-body-color;
  112. }
  113. .noUi-pips,
  114. .noUi-value {
  115. color: $theme-dark-body-color;
  116. }
  117. .noUi-marker {
  118. background: $theme-dark-border-color;
  119. }
  120. }
  121. // RTL
  122. // -------------
  123. [data-textdirection='rtl'] {
  124. .noUi-txt-dir-rtl.noUi-horizontal .noUi-origin {
  125. right: auto;
  126. }
  127. .noUi-txt-dir-rtl.noUi-horizontal .noUi-handle {
  128. left: -3px;
  129. }
  130. }