| 1 |
|
| 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-user-select: none; |
| 10 |
-ms-touch-action: none; |
| 11 |
-ms-user-select: none; |
| 12 |
-moz-user-select: none; |
| 13 |
-moz-box-sizing: border-box; |
| 14 |
box-sizing: border-box; |
| 15 |
} |
| 16 |
.noUi-target { |
| 17 |
position: relative; |
| 18 |
direction: ltr; |
| 19 |
} |
| 20 |
.noUi-base { |
| 21 |
width: 100%; |
| 22 |
height: 100%; |
| 23 |
position: relative; |
| 24 |
} |
| 25 |
.noUi-origin { |
| 26 |
position: absolute; |
| 27 |
right: 0; |
| 28 |
top: 0; |
| 29 |
left: 0; |
| 30 |
bottom: 0; |
| 31 |
} |
| 32 |
.noUi-handle { |
| 33 |
position: relative; |
| 34 |
z-index: 1; |
| 35 |
} |
| 36 |
.noUi-stacking .noUi-handle { |
| 37 |
/* This class is applied to the lower origin when |
| 38 |
its values is > 50%. */ |
| 39 |
z-index: 10; |
| 40 |
} |
| 41 |
.noUi-stacking + .noUi-origin { |
| 42 |
/* Fix stacking order in IE7, which incorrectly |
| 43 |
creates a new context for the origins. */ |
| 44 |
*z-index: -1; |
| 45 |
} |
| 46 |
.noUi-state-tap .noUi-origin { |
| 47 |
-webkit-transition: left 0.3s, top 0.3s; |
| 48 |
transition: left 0.3s, top 0.3s; |
| 49 |
} |
| 50 |
.noUi-state-drag * { |
| 51 |
cursor: inherit !important; |
| 52 |
} |
| 53 |
|
| 54 |
/* Painting and performance; |
| 55 |
* Browsers can paint handles in their own layer. |
| 56 |
*/ |
| 57 |
.noUi-base { |
| 58 |
-webkit-transform: translate3d(0,0,0); |
| 59 |
transform: translate3d(0,0,0); |
| 60 |
} |
| 61 |
|
| 62 |
/* Slider size and handle placement; |
| 63 |
*/ |
| 64 |
.noUi-horizontal { |
| 65 |
height: 18px; |
| 66 |
} |
| 67 |
.noUi-horizontal .noUi-handle { |
| 68 |
width: 34px; |
| 69 |
height: 28px; |
| 70 |
left: -17px; |
| 71 |
top: -6px; |
| 72 |
} |
| 73 |
.noUi-vertical { |
| 74 |
width: 18px; |
| 75 |
} |
| 76 |
.noUi-vertical .noUi-handle { |
| 77 |
width: 28px; |
| 78 |
height: 34px; |
| 79 |
left: -6px; |
| 80 |
top: -17px; |
| 81 |
} |
| 82 |
|
| 83 |
/* Styling; |
| 84 |
*/ |
| 85 |
.noUi-background { |
| 86 |
background: #FAFAFA; |
| 87 |
box-shadow: inset 0 1px 1px #f0f0f0; |
| 88 |
} |
| 89 |
.noUi-connect { |
| 90 |
background: #3FB8AF; |
| 91 |
box-shadow: inset 0 0 3px rgba(51,51,51,0.45); |
| 92 |
-webkit-transition: background 450ms; |
| 93 |
transition: background 450ms; |
| 94 |
} |
| 95 |
.noUi-origin { |
| 96 |
border-radius: 2px; |
| 97 |
} |
| 98 |
.noUi-target { |
| 99 |
border-radius: 4px; |
| 100 |
border: 1px solid #D3D3D3; |
| 101 |
box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB; |
| 102 |
} |
| 103 |
.noUi-target.noUi-connect { |
| 104 |
box-shadow: inset 0 0 3px rgba(51,51,51,0.45), 0 3px 6px -5px #BBB; |
| 105 |
} |
| 106 |
|
| 107 |
/* Handles and cursors; |
| 108 |
*/ |
| 109 |
.noUi-dragable { |
| 110 |
cursor: w-resize; |
| 111 |
} |
| 112 |
.noUi-vertical .noUi-dragable { |
| 113 |
cursor: n-resize; |
| 114 |
} |
| 115 |
.noUi-handle { |
| 116 |
border: 1px solid #D9D9D9; |
| 117 |
border-radius: 3px; |
| 118 |
background: #FFF; |
| 119 |
cursor: default; |
| 120 |
box-shadow: inset 0 0 1px #FFF, |
| 121 |
inset 0 1px 7px #EBEBEB, |
| 122 |
0 3px 6px -3px #BBB; |
| 123 |
} |
| 124 |
.noUi-active { |
| 125 |
box-shadow: inset 0 0 1px #FFF, |
| 126 |
inset 0 1px 7px #DDD, |
| 127 |
0 3px 6px -3px #BBB; |
| 128 |
} |
| 129 |
|
| 130 |
/* Handle stripes; |
| 131 |
*/ |
| 132 |
.noUi-handle:before, |
| 133 |
.noUi-handle:after { |
| 134 |
content: ""; |
| 135 |
display: block; |
| 136 |
position: absolute; |
| 137 |
height: 14px; |
| 138 |
width: 1px; |
| 139 |
background: #E8E7E6; |
| 140 |
left: 14px; |
| 141 |
top: 6px; |
| 142 |
} |
| 143 |
.noUi-handle:after { |
| 144 |
left: 17px; |
| 145 |
} |
| 146 |
.noUi-vertical .noUi-handle:before, |
| 147 |
.noUi-vertical .noUi-handle:after { |
| 148 |
width: 14px; |
| 149 |
height: 1px; |
| 150 |
left: 6px; |
| 151 |
top: 14px; |
| 152 |
} |
| 153 |
.noUi-vertical .noUi-handle:after { |
| 154 |
top: 17px; |
| 155 |
} |
| 156 |
|
| 157 |
/* Disabled state; |
| 158 |
*/ |
| 159 |
[disabled].noUi-connect, |
| 160 |
[disabled] .noUi-connect { |
| 161 |
background: #B8B8B8; |
| 162 |
} |
| 163 |
[disabled] .noUi-handle { |
| 164 |
cursor: not-allowed; |
| 165 |
} |
| 166 |
|