uikit 3.11.2-dev.fb043abc2 → 3.12.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.eslintrc.json +4 -49
- package/.prettierignore +14 -0
- package/.prettierrc.json +13 -0
- package/.webstorm.js +3 -3
- package/CHANGELOG.md +63 -20
- package/build/.eslintrc.json +1 -3
- package/build/build.js +26 -28
- package/build/icons.js +7 -11
- package/build/less.js +48 -36
- package/build/package.json +2 -2
- package/build/prefix.js +21 -18
- package/build/publishDev.js +6 -8
- package/build/release.js +20 -17
- package/build/scope.js +21 -11
- package/build/scss.js +72 -39
- package/build/util.js +71 -62
- package/build/wrapper/icons.js +0 -2
- package/dist/css/uikit-core-rtl.css +144 -202
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +144 -202
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +146 -208
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +146 -208
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +66 -138
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +408 -439
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +1091 -1319
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1137 -1396
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +94 -114
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +347 -361
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +345 -360
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +749 -843
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +345 -360
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +628 -798
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +587 -620
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +324 -356
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +156 -167
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +5317 -6554
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +7 -9
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +8018 -9698
- package/dist/js/uikit.min.js +1 -1
- package/jsconfig.json +1 -1
- package/package.json +64 -60
- package/src/js/api/boot.js +25 -32
- package/src/js/api/component.js +15 -28
- package/src/js/api/global.js +6 -12
- package/src/js/api/hooks.js +14 -33
- package/src/js/api/instance.js +7 -15
- package/src/js/api/state.js +199 -187
- package/src/js/components/countdown.js +32 -85
- package/src/js/components/filter.js +70 -66
- package/src/js/components/index.js +13 -13
- package/src/js/components/internal/lightbox-animations.js +14 -25
- package/src/js/components/internal/slider-preload.js +9 -0
- package/src/js/components/internal/slider-transitioner.js +66 -45
- package/src/js/components/internal/slideshow-animations.js +46 -64
- package/src/js/components/lightbox-panel.js +107 -105
- package/src/js/components/lightbox.js +17 -39
- package/src/js/components/notification.js +49 -43
- package/src/js/components/parallax.js +16 -30
- package/src/js/components/slider-parallax.js +13 -23
- package/src/js/components/slider.js +117 -89
- package/src/js/components/slideshow-parallax.js +1 -1
- package/src/js/components/slideshow.js +15 -13
- package/src/js/components/sortable.js +125 -106
- package/src/js/components/tooltip.js +41 -31
- package/src/js/components/upload.js +53 -63
- package/src/js/core/accordion.js +58 -48
- package/src/js/core/alert.js +9 -17
- package/src/js/core/core.js +17 -69
- package/src/js/core/cover.js +15 -15
- package/src/js/core/drop.js +110 -94
- package/src/js/core/form-custom.js +22 -27
- package/src/js/core/gif.js +3 -7
- package/src/js/core/grid.js +57 -58
- package/src/js/core/height-match.js +16 -29
- package/src/js/core/height-viewport.js +30 -34
- package/src/js/core/icon.js +47 -52
- package/src/js/core/img.js +153 -143
- package/src/js/core/index.js +39 -39
- package/src/js/core/leader.js +9 -18
- package/src/js/core/margin.js +21 -37
- package/src/js/core/modal.js +49 -36
- package/src/js/core/nav.js +2 -4
- package/src/js/core/navbar.js +113 -85
- package/src/js/core/offcanvas.js +51 -54
- package/src/js/core/overflow-auto.js +13 -17
- package/src/js/core/responsive.js +14 -12
- package/src/js/core/scroll.js +10 -20
- package/src/js/core/scrollspy-nav.js +34 -31
- package/src/js/core/scrollspy.js +37 -54
- package/src/js/core/sticky.js +161 -128
- package/src/js/core/svg.js +68 -83
- package/src/js/core/switcher.js +56 -47
- package/src/js/core/tab.js +7 -10
- package/src/js/core/toggle.js +69 -68
- package/src/js/core/video.js +22 -21
- package/src/js/mixin/animate.js +19 -20
- package/src/js/mixin/class.js +2 -4
- package/src/js/mixin/container.js +7 -11
- package/src/js/mixin/internal/animate-fade.js +73 -30
- package/src/js/mixin/internal/animate-slide.js +58 -41
- package/src/js/mixin/internal/slideshow-animations.js +7 -14
- package/src/js/mixin/internal/slideshow-transitioner.js +10 -17
- package/src/js/mixin/lazyload.js +20 -0
- package/src/js/mixin/media.js +5 -10
- package/src/js/mixin/modal.js +89 -66
- package/src/js/mixin/parallax.js +149 -107
- package/src/js/mixin/position.js +26 -20
- package/src/js/mixin/slider-autoplay.js +12 -21
- package/src/js/mixin/slider-drag.js +64 -65
- package/src/js/mixin/slider-nav.js +26 -35
- package/src/js/mixin/slider-reactive.js +2 -8
- package/src/js/mixin/slider.js +47 -60
- package/src/js/mixin/slideshow.js +12 -22
- package/src/js/mixin/swipe.js +72 -0
- package/src/js/mixin/togglable.js +89 -63
- package/src/js/uikit-core.js +2 -4
- package/src/js/uikit.js +2 -4
- package/src/js/util/ajax.js +25 -40
- package/src/js/util/animation.js +77 -75
- package/src/js/util/attr.js +17 -21
- package/src/js/util/class.js +14 -52
- package/src/js/util/dimensions.js +58 -45
- package/src/js/util/dom.js +37 -66
- package/src/js/util/env.js +7 -12
- package/src/js/util/event.js +60 -59
- package/src/js/util/fastdom.js +1 -6
- package/src/js/util/filter.js +18 -36
- package/src/js/util/index.js +1 -1
- package/src/js/util/lang.js +82 -121
- package/src/js/util/mouse.js +19 -17
- package/src/js/util/observer.js +36 -0
- package/src/js/util/options.js +35 -49
- package/src/js/util/player.js +41 -36
- package/src/js/util/position.js +54 -46
- package/src/js/util/selector.js +43 -58
- package/src/js/util/style.js +39 -49
- package/src/js/util/viewport.js +75 -64
- package/src/less/components/base.less +10 -33
- package/src/less/components/flex.less +0 -9
- package/src/less/components/form-range.less +48 -95
- package/src/less/components/form.less +0 -1
- package/src/less/components/height.less +3 -0
- package/src/less/components/leader.less +0 -1
- package/src/less/components/lightbox.less +0 -1
- package/src/less/components/list.less +5 -1
- package/src/less/components/modal.less +3 -7
- package/src/less/components/navbar.less +0 -7
- package/src/less/components/progress.less +14 -36
- package/src/less/components/slider.less +3 -3
- package/src/less/components/slideshow.less +3 -3
- package/src/less/components/text.less +16 -32
- package/src/less/components/utility.less +25 -0
- package/src/scss/components/base.scss +10 -33
- package/src/scss/components/flex.scss +0 -9
- package/src/scss/components/form-range.scss +48 -95
- package/src/scss/components/form.scss +3 -4
- package/src/scss/components/height.scss +3 -0
- package/src/scss/components/icon.scss +2 -2
- package/src/scss/components/leader.scss +0 -1
- package/src/scss/components/lightbox.scss +0 -1
- package/src/scss/components/list.scss +5 -1
- package/src/scss/components/modal.scss +3 -7
- package/src/scss/components/navbar.scss +0 -7
- package/src/scss/components/progress.scss +14 -36
- package/src/scss/components/search.scss +1 -1
- package/src/scss/components/slider.scss +3 -3
- package/src/scss/components/slideshow.scss +3 -3
- package/src/scss/components/text.scss +16 -32
- package/src/scss/components/utility.scss +25 -0
- package/src/scss/mixins-theme.scss +1 -1
- package/src/scss/mixins.scss +1 -1
- package/src/scss/variables-theme.scss +9 -9
- package/src/scss/variables.scss +9 -9
- package/tests/align.html +10 -10
- package/tests/animation.html +2 -2
- package/tests/article.html +2 -2
- package/tests/base.html +3 -3
- package/tests/card.html +10 -10
- package/tests/column.html +3 -3
- package/tests/comment.html +9 -9
- package/tests/countdown.html +10 -8
- package/tests/dotnav.html +3 -3
- package/tests/image.html +296 -64
- package/tests/images/image-type.avif +0 -0
- package/tests/images/image-type.jpeg +0 -0
- package/tests/images/image-type.webp +0 -0
- package/tests/index.html +8 -8
- package/tests/js/index.js +114 -85
- package/tests/lightbox.html +10 -10
- package/tests/marker.html +2 -2
- package/tests/modal.html +8 -9
- package/tests/navbar.html +2 -2
- package/tests/overlay.html +7 -7
- package/tests/parallax.html +16 -7
- package/tests/position.html +12 -12
- package/tests/slidenav.html +12 -12
- package/tests/slider.html +20 -20
- package/tests/sortable.html +1 -1
- package/tests/sticky-parallax.html +57 -72
- package/tests/sticky.html +14 -3
- package/tests/svg.html +6 -6
- package/tests/table.html +11 -11
- package/tests/thumbnav.html +12 -12
- package/tests/transition.html +30 -30
- package/tests/utility.html +50 -33
- package/tests/video.html +1 -1
- package/tests/width.html +1 -1
- package/src/js/mixin/flex-bug.js +0 -56
- package/src/js/util/promise.js +0 -191
- package/tests/images/animated.gif +0 -0
|
@@ -21,28 +21,24 @@
|
|
|
21
21
|
========================================================================== */
|
|
22
22
|
|
|
23
23
|
/*
|
|
24
|
-
* 1. Add the correct vertical alignment in
|
|
25
|
-
* 2.
|
|
26
|
-
* 3.
|
|
27
|
-
* 4. Remove
|
|
28
|
-
* 5.
|
|
29
|
-
* 6. Style
|
|
24
|
+
* 1. Add the correct vertical alignment in all browsers.
|
|
25
|
+
* 2. Behave like a block element.
|
|
26
|
+
* 3. Remove borders in Firefox.
|
|
27
|
+
* 4. Remove default style in Chrome, Safari and Edge.
|
|
28
|
+
* 5. Style
|
|
30
29
|
*/
|
|
31
30
|
|
|
32
31
|
.uk-progress {
|
|
33
32
|
/* 1 */
|
|
34
33
|
vertical-align: baseline;
|
|
35
34
|
/* 2 */
|
|
36
|
-
-webkit-appearance: none;
|
|
37
|
-
-moz-appearance: none;
|
|
38
|
-
/* 3 */
|
|
39
35
|
display: block;
|
|
40
36
|
width: 100%;
|
|
41
|
-
/*
|
|
37
|
+
/* 3 */
|
|
42
38
|
border: 0;
|
|
43
|
-
/*
|
|
39
|
+
/* 4 */
|
|
44
40
|
background-color: @progress-background;
|
|
45
|
-
/*
|
|
41
|
+
/* 5 */
|
|
46
42
|
margin-bottom: @progress-margin-vertical;
|
|
47
43
|
height: @progress-height;
|
|
48
44
|
.hook-progress();
|
|
@@ -52,27 +48,15 @@
|
|
|
52
48
|
* + .uk-progress { margin-top: @progress-margin-vertical; }
|
|
53
49
|
|
|
54
50
|
/*
|
|
55
|
-
*
|
|
51
|
+
* Show background color set on `uk-progress` in Chrome, Safari and Edge.
|
|
56
52
|
*/
|
|
57
53
|
|
|
58
|
-
.uk-progress
|
|
54
|
+
.uk-progress::-webkit-progress-bar { background-color: transparent; }
|
|
59
55
|
|
|
60
56
|
/*
|
|
61
|
-
* Progress
|
|
62
|
-
*
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
.uk-progress::-webkit-progress-bar {
|
|
66
|
-
background-color: @progress-background;
|
|
67
|
-
.hook-progress();
|
|
68
|
-
}
|
|
69
|
-
|
|
70
|
-
/* 2 */
|
|
71
|
-
.uk-progress:indeterminate::-moz-progress-bar { width: 0; }
|
|
72
|
-
|
|
73
|
-
/*
|
|
74
|
-
* Progress bar
|
|
75
|
-
* 1. Remove right border in IE11 and Edge
|
|
57
|
+
* Progress Bar
|
|
58
|
+
* 1. Transitions don't work on `::-moz-progress-bar` pseudo element in Firefox yet.
|
|
59
|
+
* https://bugzilla.mozilla.org/show_bug.cgi?id=662351
|
|
76
60
|
*/
|
|
77
61
|
|
|
78
62
|
.uk-progress::-webkit-progress-value {
|
|
@@ -83,14 +67,8 @@
|
|
|
83
67
|
|
|
84
68
|
.uk-progress::-moz-progress-bar {
|
|
85
69
|
background-color: @progress-bar-background;
|
|
86
|
-
.hook-progress-bar();
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
.uk-progress::-ms-fill {
|
|
90
|
-
background-color: @progress-bar-background;
|
|
91
|
-
transition: width 0.6s ease;
|
|
92
70
|
/* 1 */
|
|
93
|
-
|
|
71
|
+
transition: width 0.6s ease;
|
|
94
72
|
.hook-progress-bar();
|
|
95
73
|
}
|
|
96
74
|
|
|
@@ -59,6 +59,7 @@
|
|
|
59
59
|
/*
|
|
60
60
|
* 1. Optimize animation
|
|
61
61
|
* 2. Create a containing block. In Safari it's neither created by `transform` nor `will-change`.
|
|
62
|
+
* 3. Disable horizontal panning gestures
|
|
62
63
|
*/
|
|
63
64
|
|
|
64
65
|
.uk-slider-items {
|
|
@@ -66,6 +67,8 @@
|
|
|
66
67
|
will-change: transform;
|
|
67
68
|
/* 2 */
|
|
68
69
|
position: relative;
|
|
70
|
+
/* 3 */
|
|
71
|
+
touch-action: pan-y;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
/*
|
|
@@ -93,7 +96,6 @@
|
|
|
93
96
|
* 1. Let items take content dimensions (0 0 auto)
|
|
94
97
|
* `max-width` needed to keep image responsiveness and prevent content overflow
|
|
95
98
|
* 3. Create position context
|
|
96
|
-
* 4. Disable horizontal panning gestures in IE11 and Edge
|
|
97
99
|
*/
|
|
98
100
|
|
|
99
101
|
.uk-slider-items > * {
|
|
@@ -102,8 +104,6 @@
|
|
|
102
104
|
max-width: 100%;
|
|
103
105
|
/* 3 */
|
|
104
106
|
position: relative;
|
|
105
|
-
/* 4 */
|
|
106
|
-
touch-action: pan-y;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
|
|
@@ -33,6 +33,7 @@
|
|
|
33
33
|
* 2. Reset list
|
|
34
34
|
* 3. Clip child elements
|
|
35
35
|
* 4. Prevent displaying the callout information on iOS.
|
|
36
|
+
* 5. Disable horizontal panning gestures
|
|
36
37
|
*/
|
|
37
38
|
|
|
38
39
|
.uk-slideshow-items {
|
|
@@ -47,6 +48,8 @@
|
|
|
47
48
|
overflow: hidden;
|
|
48
49
|
/* 4 */
|
|
49
50
|
-webkit-touch-callout: none;
|
|
51
|
+
/* 5 */
|
|
52
|
+
touch-action: pan-y;
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
|
|
@@ -58,7 +61,6 @@
|
|
|
58
61
|
* 2. Take the full width
|
|
59
62
|
* 3. Clip child elements, e.g. for `uk-cover`
|
|
60
63
|
* 4. Optimize animation
|
|
61
|
-
* 5. Disable horizontal panning gestures in IE11 and Edge
|
|
62
64
|
*/
|
|
63
65
|
|
|
64
66
|
.uk-slideshow-items > * {
|
|
@@ -73,8 +75,6 @@
|
|
|
73
75
|
overflow: hidden;
|
|
74
76
|
/* 4 */
|
|
75
77
|
will-change: transform, opacity;
|
|
76
|
-
/* 5 */
|
|
77
|
-
touch-action: pan-y;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
/*
|
|
@@ -125,29 +125,22 @@
|
|
|
125
125
|
========================================================================== */
|
|
126
126
|
|
|
127
127
|
/*
|
|
128
|
-
* 1. The background clips to the foreground text. Works in
|
|
129
|
-
*
|
|
130
|
-
*
|
|
131
|
-
*
|
|
128
|
+
* 1. The background clips to the foreground text. Works in all browsers.
|
|
129
|
+
* 2. Default color is set to transparent.
|
|
130
|
+
* 3. Container fits the text
|
|
131
|
+
* 4. Style
|
|
132
132
|
*/
|
|
133
133
|
|
|
134
134
|
.uk-text-background {
|
|
135
135
|
/* 1 */
|
|
136
136
|
-webkit-background-clip: text;
|
|
137
137
|
/* 2 */
|
|
138
|
-
|
|
138
|
+
color: transparent !important;
|
|
139
139
|
/* 3 */
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
.uk-text-background {
|
|
146
|
-
background-color: @text-background-color;
|
|
147
|
-
color: transparent !important;
|
|
148
|
-
.hook-text-background();
|
|
149
|
-
}
|
|
150
|
-
|
|
140
|
+
display: inline-block;
|
|
141
|
+
/* 4 */
|
|
142
|
+
background-color: @text-background-color;
|
|
143
|
+
.hook-text-background();
|
|
151
144
|
}
|
|
152
145
|
|
|
153
146
|
|
|
@@ -233,26 +226,17 @@
|
|
|
233
226
|
th.uk-text-truncate,
|
|
234
227
|
td.uk-text-truncate { max-width: 0; }
|
|
235
228
|
|
|
236
|
-
|
|
237
229
|
/*
|
|
238
|
-
*
|
|
239
|
-
*
|
|
240
|
-
*
|
|
241
|
-
* Must use `break-all` to support IE11 and Edge
|
|
242
|
-
* Note: Not using `hyphens: auto;` because it hyphenates text even if not needed
|
|
230
|
+
* Wrap long words onto the next line and break them if they are too long to fit.
|
|
231
|
+
* 1. Make it work with table cells in all browsers.
|
|
232
|
+
* Note: Not using `hyphens: auto` because it hyphenates text even if not needed.
|
|
243
233
|
*/
|
|
244
234
|
|
|
245
|
-
.uk-text-break {
|
|
246
|
-
/* 1 */
|
|
247
|
-
overflow-wrap: break-word;
|
|
248
|
-
/* 2 */
|
|
249
|
-
word-wrap: break-word;
|
|
250
|
-
}
|
|
251
|
-
|
|
252
|
-
/* 3 */
|
|
253
|
-
th.uk-text-break,
|
|
254
|
-
td.uk-text-break { word-break: break-all; }
|
|
235
|
+
.uk-text-break { overflow-wrap: break-word; }
|
|
255
236
|
|
|
237
|
+
/* 1 */
|
|
238
|
+
th.uk-text-break,
|
|
239
|
+
td.uk-text-break { word-break: break-word; }
|
|
256
240
|
|
|
257
241
|
|
|
258
242
|
// Hooks
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
// `uk-inline-*`
|
|
11
11
|
// `uk-responsive-*`
|
|
12
12
|
// `uk-preserve-width`
|
|
13
|
+
// `uk-object-*`
|
|
13
14
|
// `uk-border-*`
|
|
14
15
|
// `uk-box-shadow-*`
|
|
15
16
|
// `uk-box-shadow-bottom`
|
|
@@ -251,6 +252,30 @@
|
|
|
251
252
|
[data-uk-responsive] { max-width: 100%; }
|
|
252
253
|
|
|
253
254
|
|
|
255
|
+
/* Object
|
|
256
|
+
========================================================================== */
|
|
257
|
+
|
|
258
|
+
.uk-object-cover { object-fit: cover; }
|
|
259
|
+
.uk-object-contain { object-fit: contain; }
|
|
260
|
+
.uk-object-fill { object-fit: fill; }
|
|
261
|
+
.uk-object-none { object-fit: none; }
|
|
262
|
+
.uk-object-scale-down { object-fit: scale-down; }
|
|
263
|
+
|
|
264
|
+
/*
|
|
265
|
+
* Position
|
|
266
|
+
*/
|
|
267
|
+
|
|
268
|
+
.uk-object-top-left { object-position: 0 0; }
|
|
269
|
+
.uk-object-top-center { object-position: 50% 0; }
|
|
270
|
+
.uk-object-top-right { object-position: 100% 0; }
|
|
271
|
+
.uk-object-center-left { object-position: 0 50%; }
|
|
272
|
+
.uk-object-center-center { object-position: 50% 50%; }
|
|
273
|
+
.uk-object-center-right { object-position: 100% 50%; }
|
|
274
|
+
.uk-object-bottom-left { object-position: 0 100%; }
|
|
275
|
+
.uk-object-bottom-center { object-position: 50% 100%; }
|
|
276
|
+
.uk-object-bottom-right { object-position: 100% 100%; }
|
|
277
|
+
|
|
278
|
+
|
|
254
279
|
/* Border
|
|
255
280
|
========================================================================== */
|
|
256
281
|
|
|
@@ -91,7 +91,6 @@ $base-selection-color: $global-inverse-color !default;
|
|
|
91
91
|
|
|
92
92
|
/*
|
|
93
93
|
* 1. Set `font-size` to support `rem` units
|
|
94
|
-
* Not using `font` property because a leading hyphen (e.g. -apple-system) causes the font to break in IE11 and Edge
|
|
95
94
|
* 2. Prevent adjustments of font size after orientation changes in iOS.
|
|
96
95
|
* 3. Style
|
|
97
96
|
*/
|
|
@@ -239,7 +238,7 @@ sub { bottom: -0.25em; }
|
|
|
239
238
|
========================================================================== */
|
|
240
239
|
|
|
241
240
|
/*
|
|
242
|
-
* Remove the gap between
|
|
241
|
+
* Remove the gap between the element and the bottom of its parent container.
|
|
243
242
|
*/
|
|
244
243
|
|
|
245
244
|
audio,
|
|
@@ -250,14 +249,14 @@ svg,
|
|
|
250
249
|
video { vertical-align: middle; }
|
|
251
250
|
|
|
252
251
|
/*
|
|
253
|
-
* 1.
|
|
254
|
-
* 2.
|
|
255
|
-
* 3.
|
|
256
|
-
* 4. Exclude SVGs for IE11 because they don't preserve their aspect ratio.
|
|
252
|
+
* 1. Constrain the element to its parent width.
|
|
253
|
+
* 2. Preserve the intrinsic aspect ratio and auto-scale the height of an image if the `height` attribute is present.
|
|
254
|
+
* 3. Take border and padding into account.
|
|
257
255
|
*/
|
|
258
256
|
|
|
259
257
|
canvas,
|
|
260
258
|
img,
|
|
259
|
+
svg,
|
|
261
260
|
video {
|
|
262
261
|
/* 1 */
|
|
263
262
|
max-width: 100%;
|
|
@@ -267,34 +266,17 @@ video {
|
|
|
267
266
|
box-sizing: border-box;
|
|
268
267
|
}
|
|
269
268
|
|
|
270
|
-
/* 4 */
|
|
271
|
-
@supports (display: block) {
|
|
272
|
-
|
|
273
|
-
svg {
|
|
274
|
-
max-width: 100%;
|
|
275
|
-
height: auto;
|
|
276
|
-
box-sizing: border-box;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
}
|
|
280
|
-
|
|
281
269
|
/*
|
|
282
|
-
*
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
svg:not(:root) { overflow: hidden; }
|
|
286
|
-
|
|
287
|
-
/*
|
|
288
|
-
* 1. Fix lazy loading images if parent element is set to `display: inline` and has `overflow: hidden`.
|
|
289
|
-
* 2. Hide `alt` text for lazy loading images.
|
|
290
|
-
* Note: Selector for background while loading img[data-src*='.jpg'][src*='data:image'] { background: grey; }
|
|
270
|
+
* Deprecated: only needed for `img` elements with `uk-img`
|
|
271
|
+
* 1. Hide `alt` text for lazy load images.
|
|
272
|
+
* 2. Fix lazy loading images if parent element is set to `display: inline` and has `overflow: hidden`.
|
|
291
273
|
*/
|
|
292
274
|
|
|
293
275
|
img:not([src]) {
|
|
294
276
|
/* 1 */
|
|
295
|
-
min-width: 1px;
|
|
296
|
-
/* 2 */
|
|
297
277
|
visibility: hidden;
|
|
278
|
+
/* 2 */
|
|
279
|
+
min-width: 1px;
|
|
298
280
|
}
|
|
299
281
|
|
|
300
282
|
/*
|
|
@@ -589,11 +571,6 @@ template { display: none; }
|
|
|
589
571
|
* Breakpoints
|
|
590
572
|
*/
|
|
591
573
|
|
|
592
|
-
.uk-breakpoint-s::before { content: '#{$breakpoint-small}'; }
|
|
593
|
-
.uk-breakpoint-m::before { content: '#{$breakpoint-medium}'; }
|
|
594
|
-
.uk-breakpoint-l::before { content: '#{$breakpoint-large}'; }
|
|
595
|
-
.uk-breakpoint-xl::before { content: '#{$breakpoint-xlarge}'; }
|
|
596
|
-
|
|
597
574
|
:root {
|
|
598
575
|
--uk-breakpoint-s: #{$breakpoint-small};
|
|
599
576
|
--uk-breakpoint-m: #{$breakpoint-medium};
|
|
@@ -13,15 +13,6 @@
|
|
|
13
13
|
.uk-flex { display: flex; }
|
|
14
14
|
.uk-flex-inline { display: inline-flex; }
|
|
15
15
|
|
|
16
|
-
/*
|
|
17
|
-
* Remove pseudo elements created by micro clearfix as precaution
|
|
18
|
-
*/
|
|
19
|
-
|
|
20
|
-
.uk-flex::before,
|
|
21
|
-
.uk-flex::after,
|
|
22
|
-
.uk-flex-inline::before,
|
|
23
|
-
.uk-flex-inline::after { display: none; }
|
|
24
|
-
|
|
25
16
|
|
|
26
17
|
/* Alignment
|
|
27
18
|
========================================================================== */
|
|
@@ -9,44 +9,45 @@
|
|
|
9
9
|
// Variables
|
|
10
10
|
// ========================================================================
|
|
11
11
|
|
|
12
|
+
$form-range-track-height: 3px !default;
|
|
13
|
+
$form-range-track-background: darken($global-muted-background, 5%) !default;
|
|
14
|
+
$form-range-track-focus-background: darken($form-range-track-background, 5%) !default;
|
|
15
|
+
|
|
12
16
|
$form-range-thumb-height: 15px !default;
|
|
13
17
|
$form-range-thumb-width: $form-range-thumb-height !default;
|
|
14
18
|
$form-range-thumb-border-radius: 500px !default;
|
|
15
19
|
$form-range-thumb-background: $global-color !default;
|
|
16
20
|
|
|
17
|
-
$form-range-track-height: 3px !default;
|
|
18
|
-
$form-range-track-background: darken($global-muted-background, 5%) !default;
|
|
19
|
-
$form-range-track-focus-background: darken($form-range-track-background, 5%) !default;
|
|
20
|
-
|
|
21
21
|
|
|
22
22
|
/* ========================================================================
|
|
23
23
|
Component: Form Range
|
|
24
24
|
========================================================================== */
|
|
25
25
|
|
|
26
26
|
/*
|
|
27
|
-
* 1.
|
|
28
|
-
* 2.
|
|
29
|
-
* 3.
|
|
30
|
-
* 4.
|
|
31
|
-
* 5.
|
|
32
|
-
* 6.
|
|
27
|
+
* 1. Remove default style.
|
|
28
|
+
* 2. Define consistent box sizing.
|
|
29
|
+
* 3. Remove `margin` in all browsers.
|
|
30
|
+
* 4. Align to the center of the line box.
|
|
31
|
+
* 5. Prevent content overflow if a fixed width is used.
|
|
32
|
+
* 6. Take the full width.
|
|
33
|
+
* 7. Remove white background in Chrome.
|
|
33
34
|
*/
|
|
34
35
|
|
|
35
36
|
.uk-range {
|
|
36
37
|
/* 1 */
|
|
38
|
+
-webkit-appearance: none;
|
|
39
|
+
/* 2 */
|
|
37
40
|
box-sizing: border-box;
|
|
41
|
+
/* 3 */
|
|
38
42
|
margin: 0;
|
|
43
|
+
/* 4 */
|
|
39
44
|
vertical-align: middle;
|
|
40
|
-
/*
|
|
45
|
+
/* 5 */
|
|
41
46
|
max-width: 100%;
|
|
42
|
-
/*
|
|
47
|
+
/* 6 */
|
|
43
48
|
width: 100%;
|
|
44
|
-
/*
|
|
45
|
-
-webkit-appearance: none;
|
|
46
|
-
/* 5 */
|
|
49
|
+
/* 7 */
|
|
47
50
|
background: transparent;
|
|
48
|
-
/* 6 */
|
|
49
|
-
padding: 0;
|
|
50
51
|
@if(mixin-exists(hook-form-range)) {@include hook-form-range();}
|
|
51
52
|
}
|
|
52
53
|
|
|
@@ -54,82 +55,16 @@ $form-range-track-focus-background: darken($form-range-track-backgr
|
|
|
54
55
|
.uk-range:focus { outline: none; }
|
|
55
56
|
.uk-range::-moz-focus-outer { border: none; }
|
|
56
57
|
|
|
57
|
-
/* IE11 Reset */
|
|
58
|
-
.uk-range::-ms-track {
|
|
59
|
-
height: $form-range-thumb-height;
|
|
60
|
-
background: transparent;
|
|
61
|
-
border-color: transparent;
|
|
62
|
-
color: transparent;
|
|
63
|
-
}
|
|
64
|
-
|
|
65
58
|
/*
|
|
66
59
|
* Improves consistency of cursor style for clickable elements
|
|
67
60
|
*/
|
|
68
61
|
|
|
69
62
|
.uk-range:not(:disabled)::-webkit-slider-thumb { cursor: pointer; }
|
|
70
63
|
.uk-range:not(:disabled)::-moz-range-thumb { cursor: pointer; }
|
|
71
|
-
.uk-range:not(:disabled)::-ms-thumb { cursor: pointer; }
|
|
72
64
|
|
|
73
65
|
|
|
74
|
-
/* Thumb
|
|
75
|
-
========================================================================== */
|
|
76
|
-
|
|
77
|
-
/*
|
|
78
|
-
* 1. Reset
|
|
79
|
-
* 2. Style
|
|
80
|
-
*/
|
|
81
|
-
|
|
82
|
-
/* Webkit */
|
|
83
|
-
.uk-range::-webkit-slider-thumb {
|
|
84
|
-
/* 1 */
|
|
85
|
-
-webkit-appearance: none;
|
|
86
|
-
margin-top: (floor(($form-range-thumb-height * 0.5)) * -1);
|
|
87
|
-
/* 2 */
|
|
88
|
-
height: $form-range-thumb-height;
|
|
89
|
-
width: $form-range-thumb-width;
|
|
90
|
-
border-radius: $form-range-thumb-border-radius;
|
|
91
|
-
background: $form-range-thumb-background;
|
|
92
|
-
@if(mixin-exists(hook-form-range-thumb)) {@include hook-form-range-thumb();}
|
|
93
|
-
}
|
|
94
|
-
|
|
95
|
-
/* Firefox */
|
|
96
|
-
.uk-range::-moz-range-thumb {
|
|
97
|
-
/* 1 */
|
|
98
|
-
border: none;
|
|
99
|
-
/* 2 */
|
|
100
|
-
height: $form-range-thumb-height;
|
|
101
|
-
width: $form-range-thumb-width;
|
|
102
|
-
border-radius: $form-range-thumb-border-radius;
|
|
103
|
-
background: $form-range-thumb-background;
|
|
104
|
-
@if(mixin-exists(hook-form-range-thumb)) {@include hook-form-range-thumb();}
|
|
105
|
-
}
|
|
106
|
-
|
|
107
|
-
/* Edge */
|
|
108
|
-
.uk-range::-ms-thumb {
|
|
109
|
-
/* 1 */
|
|
110
|
-
margin-top: 0;
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
/* IE11 */
|
|
114
|
-
.uk-range::-ms-thumb {
|
|
115
|
-
/* 1 */
|
|
116
|
-
border: none;
|
|
117
|
-
/* 2 */
|
|
118
|
-
height: $form-range-thumb-height;
|
|
119
|
-
width: $form-range-thumb-width;
|
|
120
|
-
border-radius: $form-range-thumb-border-radius;
|
|
121
|
-
background: $form-range-thumb-background;
|
|
122
|
-
@if(mixin-exists(hook-form-range-thumb)) {@include hook-form-range-thumb();}
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
/* Edge + IE11 */
|
|
126
|
-
.uk-range::-ms-tooltip { display: none; }
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
/* Track
|
|
130
|
-
========================================================================== */
|
|
131
|
-
|
|
132
66
|
/*
|
|
67
|
+
* Track
|
|
133
68
|
* 1. Safari doesn't have a focus state. Using active instead.
|
|
134
69
|
*/
|
|
135
70
|
|
|
@@ -159,18 +94,36 @@ $form-range-track-focus-background: darken($form-range-track-backgr
|
|
|
159
94
|
@if(mixin-exists(hook-form-range-track-focus)) {@include hook-form-range-track-focus();}
|
|
160
95
|
}
|
|
161
96
|
|
|
162
|
-
/*
|
|
163
|
-
|
|
164
|
-
.
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
97
|
+
/*
|
|
98
|
+
* Thumb
|
|
99
|
+
* 1. Reset
|
|
100
|
+
* 2. Style
|
|
101
|
+
*/
|
|
102
|
+
|
|
103
|
+
/* Webkit */
|
|
104
|
+
.uk-range::-webkit-slider-thumb {
|
|
105
|
+
/* 1 */
|
|
106
|
+
-webkit-appearance: none;
|
|
107
|
+
margin-top: (floor(($form-range-thumb-height * 0.5)) * -1);
|
|
108
|
+
/* 2 */
|
|
109
|
+
height: $form-range-thumb-height;
|
|
110
|
+
width: $form-range-thumb-width;
|
|
111
|
+
border-radius: $form-range-thumb-border-radius;
|
|
112
|
+
background: $form-range-thumb-background;
|
|
113
|
+
@if(mixin-exists(hook-form-range-thumb)) {@include hook-form-range-thumb();}
|
|
168
114
|
}
|
|
169
115
|
|
|
170
|
-
|
|
171
|
-
.uk-range
|
|
172
|
-
|
|
173
|
-
|
|
116
|
+
/* Firefox */
|
|
117
|
+
.uk-range::-moz-range-thumb {
|
|
118
|
+
/* 1 */
|
|
119
|
+
border: none;
|
|
120
|
+
/* 2 */
|
|
121
|
+
height: $form-range-thumb-height;
|
|
122
|
+
width: $form-range-thumb-width;
|
|
123
|
+
margin-top: (floor(($form-range-thumb-height * 0.5)) * -1);
|
|
124
|
+
border-radius: $form-range-thumb-border-radius;
|
|
125
|
+
background: $form-range-thumb-background;
|
|
126
|
+
@if(mixin-exists(hook-form-range-thumb)) {@include hook-form-range-thumb();}
|
|
174
127
|
}
|
|
175
128
|
|
|
176
129
|
|
|
@@ -180,7 +133,7 @@ $form-range-track-focus-background: darken($form-range-track-backgr
|
|
|
180
133
|
@if(mixin-exists(hook-form-range-misc)) {@include hook-form-range-misc();}
|
|
181
134
|
|
|
182
135
|
// @mixin hook-form-range(){}
|
|
183
|
-
// @mixin hook-form-range-thumb(){}
|
|
184
136
|
// @mixin hook-form-range-track(){}
|
|
185
137
|
// @mixin hook-form-range-track-focus(){}
|
|
138
|
+
// @mixin hook-form-range-thumb(){}
|
|
186
139
|
// @mixin hook-form-range-misc(){}
|
|
@@ -472,7 +472,6 @@ select.uk-form-width-xsmall { width: ($form-width-xsmall + 25px); }
|
|
|
472
472
|
|
|
473
473
|
|
|
474
474
|
/* Radio and checkbox
|
|
475
|
-
* Note: Does not work in IE11
|
|
476
475
|
========================================================================== */
|
|
477
476
|
|
|
478
477
|
/*
|
|
@@ -780,7 +779,7 @@ select.uk-form-width-xsmall { width: ($form-width-xsmall + 25px); }
|
|
|
780
779
|
|
|
781
780
|
$inverse-form-background: $inverse-global-muted-background !default;
|
|
782
781
|
$inverse-form-color: $inverse-global-color !default;
|
|
783
|
-
$inverse-form-focus-background:
|
|
782
|
+
$inverse-form-focus-background: fade-in($inverse-form-background, 0.05) !default;
|
|
784
783
|
$inverse-form-focus-color: $inverse-global-color !default;
|
|
785
784
|
$inverse-form-placeholder-color: $inverse-global-muted-color !default;
|
|
786
785
|
|
|
@@ -790,12 +789,12 @@ $inverse-form-datalist-icon-color: $inverse-global-color !default;
|
|
|
790
789
|
|
|
791
790
|
$inverse-form-radio-background: $inverse-global-muted-background !default;
|
|
792
791
|
|
|
793
|
-
$inverse-form-radio-focus-background:
|
|
792
|
+
$inverse-form-radio-focus-background: fade-in($inverse-form-radio-background, 0.05) !default;
|
|
794
793
|
|
|
795
794
|
$inverse-form-radio-checked-background: $inverse-global-primary-background !default;
|
|
796
795
|
$inverse-form-radio-checked-icon-color: $inverse-global-inverse-color !default;
|
|
797
796
|
|
|
798
|
-
$inverse-form-radio-checked-focus-background:
|
|
797
|
+
$inverse-form-radio-checked-focus-background: fade-in($inverse-global-primary-background, 0.1) !default;
|
|
799
798
|
|
|
800
799
|
$inverse-form-icon-color: $inverse-global-muted-color !default;
|
|
801
800
|
$inverse-form-icon-hover-color: $inverse-global-color !default;
|
|
@@ -201,9 +201,9 @@ $inverse-icon-link-hover-color: $inverse-global-color !default;
|
|
|
201
201
|
$inverse-icon-link-active-color: $inverse-global-color !default;
|
|
202
202
|
$inverse-icon-button-background: $inverse-global-muted-background !default;
|
|
203
203
|
$inverse-icon-button-color: $inverse-global-muted-color !default;
|
|
204
|
-
$inverse-icon-button-hover-background:
|
|
204
|
+
$inverse-icon-button-hover-background: fade-in($inverse-icon-button-background, 0.05) !default;
|
|
205
205
|
$inverse-icon-button-hover-color: $inverse-global-color !default;
|
|
206
|
-
$inverse-icon-button-active-background:
|
|
206
|
+
$inverse-icon-button-active-background: fade-in($inverse-icon-button-background, 0.1) !default;
|
|
207
207
|
$inverse-icon-button-active-color: $inverse-global-color !default;
|
|
208
208
|
|
|
209
209
|
|
|
@@ -119,7 +119,6 @@ $lightbox-button-hover-color: #fff !default;
|
|
|
119
119
|
* 4. Optimize animation
|
|
120
120
|
* 5. Responsiveness
|
|
121
121
|
* Using `vh` for `max-height` to fix image proportions after resize in Safari and Opera
|
|
122
|
-
* Using `vh` and `vw` to make responsive image work in IE11
|
|
123
122
|
*/
|
|
124
123
|
|
|
125
124
|
.uk-lightbox-items > * {
|
|
@@ -94,7 +94,11 @@ $internal-list-bullet-image: "data:image/svg+xml;charset=UTF-8,%3Csvg%20width%3D
|
|
|
94
94
|
.uk-list-decimal { counter-reset: decimal; }
|
|
95
95
|
.uk-list-decimal > * { counter-increment: decimal; }
|
|
96
96
|
|
|
97
|
-
|
|
97
|
+
.uk-list-disc > ::before,
|
|
98
|
+
.uk-list-circle > ::before,
|
|
99
|
+
.uk-list-square > ::before,
|
|
100
|
+
.uk-list-decimal > ::before,
|
|
101
|
+
.uk-list-hyphen > ::before {
|
|
98
102
|
content: "";
|
|
99
103
|
position: relative;
|
|
100
104
|
left: (-$list-padding-left);
|