Skip to content

Commit 1e9be86

Browse files
committed
Merge branch 'dev'
2 parents 97716c4 + 2e4981b commit 1e9be86

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

46 files changed

+775
-445
lines changed

README.md

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -3,15 +3,11 @@
33
noUiSlider is lightweight JavaScript range slider.
44

55
- **No dependencies**
6-
- All modern browsers and [IE9+](#browser-support) are supported
6+
- All modern browsers and IE > 9 are supported
77
- Fully **responsive**
88
- **Touch support** on Android, iOS and Windows devices
99
- Tons of [examples](https://refreshless.com/nouislider/examples) and answered [Stack Overflow questions](https://stackoverflow.com/questions/tagged/nouislider)
1010

11-
--------
12-
**Quick note:** I'm out of town for a while, so support will be slower than usual. Apologies in advance.
13-
--------
14-
1511
License
1612
-------
1713
noUiSlider is licensed [WTFPL](http://www.wtfpl.net/about/). You can use it **for free** and **without any attribution**, in any personal or commercial project. You may also fork the project and re-release it under another license you prefer.
@@ -31,6 +27,24 @@ npm [(package)](https://www.npmjs.com/package/nouislider)
3127
Changelog
3228
---------
3329

30+
### 11.0.0 (*2018-01-12*)
31+
noUiSlider 11 doesn't include any breaking API changes.
32+
Unless major changes were made to the stylesheet or you specifically depend
33+
on the handle/connect order in the DOM, there should be no issues upgrading.
34+
- Change: Use CSS transforms for handle movement, resulting in a massive performance improvement (#718);
35+
- Change: Support multitouch by default;
36+
- Change: Handle stacking is now on `.noUi-origin` instead of `.noUi-handle`;
37+
- Added: A `.noUi-connects` element holding all `.noUi-connect` elements;
38+
- Added: `[data-value]` property for `.noUi-value` in pips (#733);
39+
- Added: `padding` option can now take an array for different padding values at both sides of a slider (#822);
40+
- Removed: `useRequestAnimationFrame` option. No longer needed with CSS transforms;
41+
- Removed: `multitouch` option. Now enabled by default;
42+
- Fixed: Slider could ignore end events it should handle (#704, #805, #834);
43+
- Fixed: Stop depending on array type (#801);
44+
- Fixed: `set` method might bypass margin option (#823);
45+
- Fixed: Alignment of pips for RTL sliders (#795);
46+
- Fixed: Several issues regarding pips (#812, #826, #832);
47+
3448
### 10.1.0 (*2017-07-26*)
3549
- Added: `multitouch` option (#793);
3650

@@ -40,7 +54,7 @@ Changelog
4054
- Fixed: Content Security Policy issue with pips;
4155
- Added: `removePips` method;
4256
- Added: aria support (#685);
43-
- Added: `ariaFormat` option (controls `aria-valuetext`);
57+
- Added: `ariaFormat` option (controls `aria-valuetext`);
4458
- Fixed: throw a better error when mistakenly trying to initialize noUiSlider with `null` (#658);
4559
- Fixed: Made order of events consistent and documented it (#775);
4660
- Fixed: Border radius of connect bar, white space wrapping of tooltips (#773, #774);
@@ -145,17 +159,3 @@ is enough:
145159
```
146160
import 'nouislider';
147161
```
148-
149-
Browser support
150-
---------------
151-
152-
All major browsers are supported. **To support IE8** you'll need to shim several ES5 features.
153-
154-
You can use [polyfill.io](https://cdn.polyfill.io/v2/docs/) to easily do so:
155-
156-
```html
157-
<meta http-equiv="X-UA-Compatible" content="IE=Edge">
158-
<!--[if lte IE 8]>
159-
<script src="https://cdn.polyfill.io/v2/polyfill.min.js"></script>
160-
<![endif]-->
161-
```

distribute/nouislider.css

Lines changed: 42 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
/*! nouislider - 10.1.0 - 2017-07-28 13:09:54 */
1+
/*! nouislider - 11.0.0 - 2018-01-12 20:37:52 */
22
/* Functional styling;
33
* These styles are required for noUiSlider to function.
44
* You don't need to change these rules to apply your design.
@@ -20,45 +20,51 @@
2020
position: relative;
2121
direction: ltr;
2222
}
23-
.noUi-base {
23+
.noUi-base,
24+
.noUi-connects {
2425
width: 100%;
2526
height: 100%;
2627
position: relative;
2728
z-index: 1;
28-
/* Fix 401 */
2929
}
30-
.noUi-connect {
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;
3139
position: absolute;
32-
right: 0;
40+
z-index: 1;
3341
top: 0;
3442
left: 0;
35-
bottom: 0;
43+
height: 100%;
44+
width: 100%;
45+
-webkit-transform-origin: 0 0;
46+
transform-origin: 0 0;
3647
}
37-
.noUi-origin {
38-
position: absolute;
39-
height: 0;
48+
/* Give origins 0 height/width so they don't interfere with clicking the
49+
* connect elements.
50+
*/
51+
.noUi-vertical .noUi-origin {
4052
width: 0;
4153
}
54+
.noUi-horizontal .noUi-origin {
55+
height: 0;
56+
}
4257
.noUi-handle {
4358
position: relative;
44-
z-index: 1;
4559
}
4660
.noUi-state-tap .noUi-connect,
4761
.noUi-state-tap .noUi-origin {
48-
-webkit-transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;
49-
transition: top 0.3s, right 0.3s, bottom 0.3s, left 0.3s;
62+
-webkit-transition: transform 0.3s;
63+
transition: transform 0.3s;
5064
}
5165
.noUi-state-drag * {
5266
cursor: inherit !important;
5367
}
54-
/* Painting and performance;
55-
* Browsers can paint handles in their own layer.
56-
*/
57-
.noUi-base,
58-
.noUi-handle {
59-
-webkit-transform: translate3d(0, 0, 0);
60-
transform: translate3d(0, 0, 0);
61-
}
6268
/* Slider size and handle placement;
6369
*/
6470
.noUi-horizontal {
@@ -80,19 +86,19 @@
8086
top: -17px;
8187
}
8288
/* Styling;
89+
* Giving the connect element a border radius causes issues with using transform: scale
8390
*/
8491
.noUi-target {
8592
background: #FAFAFA;
8693
border-radius: 4px;
8794
border: 1px solid #D3D3D3;
8895
box-shadow: inset 0 1px 1px #F0F0F0, 0 3px 6px -5px #BBB;
8996
}
97+
.noUi-connects {
98+
border-radius: 3px;
99+
}
90100
.noUi-connect {
91101
background: #3FB8AF;
92-
border-radius: 4px;
93-
box-shadow: inset 0 0 3px rgba(51, 51, 51, 0.45);
94-
-webkit-transition: background 450ms;
95-
transition: background 450ms;
96102
}
97103
/* Handles and cursors;
98104
*/
@@ -196,8 +202,12 @@
196202
width: 100%;
197203
}
198204
.noUi-value-horizontal {
199-
-webkit-transform: translate3d(-50%, 50%, 0);
200-
transform: translate3d(-50%, 50%, 0);
205+
-webkit-transform: translate(-50%, 50%);
206+
transform: translate(-50%, 50%);
207+
}
208+
.noUi-rtl .noUi-value-horizontal {
209+
-webkit-transform: translate(50%, 50%);
210+
transform: translate(50%, 50%);
201211
}
202212
.noUi-marker-horizontal.noUi-marker {
203213
margin-left: -1px;
@@ -220,10 +230,14 @@
220230
left: 100%;
221231
}
222232
.noUi-value-vertical {
223-
-webkit-transform: translate3d(0, 50%, 0);
224-
transform: translate3d(0, 50%, 0);
233+
-webkit-transform: translate(0, -50%);
234+
transform: translate(0, -50%, 0);
225235
padding-left: 25px;
226236
}
237+
.noUi-rtl .noUi-value-vertical {
238+
-webkit-transform: translate(0, 50%);
239+
transform: translate(0, 50%);
240+
}
227241
.noUi-marker-vertical.noUi-marker {
228242
width: 5px;
229243
height: 2px;

0 commit comments

Comments
 (0)