Advertisement
Guest User

Untitled

a guest
Jul 1st, 2015
207
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. // ----
  2. // libsass (v3.2.4)
  3. // ----
  4.  
  5. @import "bourbon/bourbon";
  6. $neutral-light: #eee;
  7. $primary: blue;
  8. $secondary: green;
  9.  
  10. /* Functional styling * These styles are required for noUiSlider to function.
  11. * You don't need to change these rules to apply your design.
  12. */
  13. .noUi-target,
  14. .noUi-target * {
  15. -webkit-touch-callout: none;
  16. -webkit-user-select: none;
  17. -ms-touch-action: none;
  18. -ms-user-select: none;
  19. -moz-user-select: none;
  20. -moz-box-sizing: border-box;
  21. box-sizing: border-box;
  22. }
  23. .noUi-target {
  24. direction: ltr;
  25. }
  26. .noUi-base {
  27. width: 100%;
  28. height: 100%;
  29. position: relative;
  30. }
  31. .noUi-origin {
  32. position: absolute;
  33. right: 0;
  34. top: 0;
  35. left: 0;
  36. bottom: 0;
  37. }
  38. .noUi-handle {
  39. position: absolute;
  40. z-index: 1;
  41. }
  42. .noUi-stacking .noUi-handle {
  43. z-index: 10;
  44. }
  45. .noUi-stacking + .noUi-origin {
  46. *z-index: -1;
  47. }
  48. .noUi-state-tap .noUi-origin {
  49. @include transition(left 0.3s, top 0.3s);
  50. }
  51. .noUi-state-drag * {
  52. cursor: inherit !important;
  53. }
  54.  
  55. .noUi-base {
  56. -webkit-transform: translate3d(0,0,0);
  57. transform: translate3d(0,0,0);
  58. }
  59.  
  60. /* Slider size and handle placement */
  61. .noUi-horizontal {
  62. height: 10px;
  63.  
  64. .noUi-handle {
  65. top: -3px;
  66. left: -8px;
  67. }
  68. }
  69. .noUi-vertical {
  70. width: 10px;
  71.  
  72. .noUi-handle {
  73. top: -8px;
  74. left: -3px;
  75. }
  76. }
  77.  
  78. /* Styling */
  79. .noUi-background {
  80. background: darken($neutral-light, 5%);
  81. }
  82. .noUi-connect {
  83. background: $secondary;
  84. }
  85. .noUi-origin {
  86. border-radius: 2px;
  87. }
  88.  
  89. /* Handles and cursors */
  90. .noUi-handle {
  91. @include size(16px);
  92. margin-bottom: 15px;
  93. background: $primary;
  94. border-radius: 80% 0 55% 50% / 55% 0 80% 50%;
  95.  
  96. .tooltip span {
  97. position: absolute;
  98. }
  99.  
  100. &.noUi-handle-lower {
  101. @include transform(rotate(45deg));
  102.  
  103. .tooltip {
  104. @include transform(rotate(-45deg));
  105.  
  106. span {
  107. top: 17px;
  108. right: 0;
  109. }
  110. }
  111. }
  112.  
  113. &.noUi-handle-upper {
  114. @include transform(rotate(-135deg));
  115.  
  116. .tooltip {
  117. span {
  118. top: 5px;
  119. left: 0;
  120. }
  121. @include transform(rotate(135deg));
  122. }
  123. }
  124.  
  125. &.noUi-active {
  126. background: lighten($primary, 5%);
  127. }
  128. }
  129.  
  130. /* Disabled state */
  131. [disabled].noUi-connect,
  132. [disabled] .noUi-connect {
  133. background: #B8B8B8;
  134. }
  135. [disabled] .noUi-handle {
  136. cursor: not-allowed;
  137. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement