uikit 3.18.3 → 3.18.4-dev.01a468d2e
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/CHANGELOG.md +15 -0
- package/build/scss.js +3 -0
- package/dist/css/uikit-core-rtl.css +169 -23
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +169 -23
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +169 -23
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +169 -23
- package/dist/css/uikit.min.css +1 -1
- package/dist/js/components/countdown.js +1 -1
- package/dist/js/components/countdown.min.js +1 -1
- package/dist/js/components/filter.js +1 -1
- package/dist/js/components/filter.min.js +1 -1
- package/dist/js/components/lightbox-panel.js +1 -1
- package/dist/js/components/lightbox-panel.min.js +1 -1
- package/dist/js/components/lightbox.js +1 -1
- package/dist/js/components/lightbox.min.js +1 -1
- package/dist/js/components/notification.js +1 -1
- package/dist/js/components/notification.min.js +1 -1
- package/dist/js/components/parallax.js +1 -1
- package/dist/js/components/parallax.min.js +1 -1
- package/dist/js/components/slider-parallax.js +1 -1
- package/dist/js/components/slider-parallax.min.js +1 -1
- package/dist/js/components/slider.js +15 -8
- package/dist/js/components/slider.min.js +1 -1
- package/dist/js/components/slideshow-parallax.js +1 -1
- package/dist/js/components/slideshow-parallax.min.js +1 -1
- package/dist/js/components/slideshow.js +1 -1
- package/dist/js/components/slideshow.min.js +1 -1
- package/dist/js/components/sortable.js +1 -1
- package/dist/js/components/sortable.min.js +1 -1
- package/dist/js/components/tooltip.js +2 -2
- package/dist/js/components/tooltip.min.js +1 -1
- package/dist/js/components/upload.js +1 -1
- package/dist/js/components/upload.min.js +1 -1
- package/dist/js/uikit-core.js +3 -12
- package/dist/js/uikit-core.min.js +1 -1
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +18 -20
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/internal/slider-transitioner.js +2 -2
- package/src/js/components/slider.js +15 -6
- package/src/js/components/tooltip.js +1 -1
- package/src/js/core/img.js +1 -16
- package/src/less/components/flex.less +110 -2
- package/src/less/components/utility.less +1 -2
- package/src/less/components/width.less +34 -8
- package/src/less/theme/text.less +1 -1
- package/src/scss/components/flex.scss +110 -2
- package/src/scss/components/width.scss +34 -8
- package/src/scss/mixins-theme.scss +1 -2
- package/src/scss/mixins.scss +1 -2
- package/src/scss/variables-theme.scss +1 -1
- package/tests/slider.html +12 -1
- package/tests/utility.html +36 -11
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "uikit",
|
|
3
3
|
"title": "UIkit",
|
|
4
4
|
"description": "UIkit is a lightweight and modular front-end framework for developing fast and powerful web interfaces.",
|
|
5
|
-
"version": "3.18.
|
|
5
|
+
"version": "3.18.4-dev.01a468d2e",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -147,8 +147,8 @@ export function getMax(list) {
|
|
|
147
147
|
return Math.max(0, getWidth(list) - dimensions(list).width);
|
|
148
148
|
}
|
|
149
149
|
|
|
150
|
-
export function getWidth(list) {
|
|
151
|
-
return sumBy(children(list), (el) => dimensions(el).width);
|
|
150
|
+
export function getWidth(list, index) {
|
|
151
|
+
return sumBy(children(list).slice(0, index), (el) => dimensions(el).width);
|
|
152
152
|
}
|
|
153
153
|
|
|
154
154
|
function centerEl(el, list) {
|
|
@@ -33,6 +33,7 @@ export default {
|
|
|
33
33
|
props: {
|
|
34
34
|
center: Boolean,
|
|
35
35
|
sets: Boolean,
|
|
36
|
+
active: String,
|
|
36
37
|
},
|
|
37
38
|
|
|
38
39
|
data: {
|
|
@@ -42,6 +43,7 @@ export default {
|
|
|
42
43
|
selList: '.uk-slider-items',
|
|
43
44
|
selNav: '.uk-slider-nav',
|
|
44
45
|
clsContainer: 'uk-slider-container',
|
|
46
|
+
active: 'all',
|
|
45
47
|
Transitioner,
|
|
46
48
|
},
|
|
47
49
|
|
|
@@ -235,7 +237,15 @@ export default {
|
|
|
235
237
|
},
|
|
236
238
|
|
|
237
239
|
updateActiveClasses(currentIndex = this.index) {
|
|
238
|
-
|
|
240
|
+
let actives = this._getTransitioner(currentIndex).getActives();
|
|
241
|
+
|
|
242
|
+
if (this.active !== 'all') {
|
|
243
|
+
let index = currentIndex;
|
|
244
|
+
if (this.active === 'center') {
|
|
245
|
+
index += Math.ceil(actives.length / 2) - 1;
|
|
246
|
+
}
|
|
247
|
+
actives = [this.slides[this.getValidIndex(index)]];
|
|
248
|
+
}
|
|
239
249
|
|
|
240
250
|
const activeClasses = [
|
|
241
251
|
this.clsActive,
|
|
@@ -296,11 +306,10 @@ export default {
|
|
|
296
306
|
|
|
297
307
|
getIndexAt(percent) {
|
|
298
308
|
let index = -1;
|
|
299
|
-
const
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
getWidth(this.list)
|
|
303
|
-
(this.center ? firstSlideWidth / 2 + lastSlideWidth / 2 : lastSlideWidth);
|
|
309
|
+
const scrollDist = this.center
|
|
310
|
+
? getWidth(this.list) -
|
|
311
|
+
(dimensions(this.slides[0]).width / 2 + dimensions(last(this.slides)).width / 2)
|
|
312
|
+
: getWidth(this.list, this.maxIndex);
|
|
304
313
|
|
|
305
314
|
let dist = percent * scrollDist;
|
|
306
315
|
let slidePercent = 0;
|
|
@@ -136,7 +136,7 @@ export default {
|
|
|
136
136
|
// Clicking a button does not give it focus on all browsers and platforms
|
|
137
137
|
// https://developer.mozilla.org/en-US/docs/Web/HTML/Element/button#clicking_and_focus
|
|
138
138
|
[`focus ${pointerEnter} ${pointerDown}`](e) {
|
|
139
|
-
if (!isTouch(e)) {
|
|
139
|
+
if (!isTouch(e) || e.type === pointerDown) {
|
|
140
140
|
this.show();
|
|
141
141
|
}
|
|
142
142
|
},
|
package/src/js/core/img.js
CHANGED
|
@@ -7,8 +7,6 @@ import {
|
|
|
7
7
|
data,
|
|
8
8
|
escape,
|
|
9
9
|
fragment,
|
|
10
|
-
hasAttr,
|
|
11
|
-
inBrowser,
|
|
12
10
|
includes,
|
|
13
11
|
isArray,
|
|
14
12
|
isEmpty,
|
|
@@ -22,8 +20,6 @@ import {
|
|
|
22
20
|
import { intersection } from '../api/observables';
|
|
23
21
|
import { parseOptions } from '../api/options';
|
|
24
22
|
|
|
25
|
-
const nativeLazyLoad = inBrowser && 'loading' in HTMLImageElement.prototype;
|
|
26
|
-
|
|
27
23
|
export default {
|
|
28
24
|
args: 'dataSrc',
|
|
29
25
|
|
|
@@ -46,15 +42,10 @@ export default {
|
|
|
46
42
|
connected() {
|
|
47
43
|
if (this.loading !== 'lazy') {
|
|
48
44
|
this.load();
|
|
49
|
-
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
if (nativeLazyLoad && isImg(this.$el)) {
|
|
45
|
+
} else if (isImg(this.$el)) {
|
|
53
46
|
this.$el.loading = 'lazy';
|
|
54
47
|
setSrcAttrs(this.$el);
|
|
55
48
|
}
|
|
56
|
-
|
|
57
|
-
ensureSrcAttribute(this.$el);
|
|
58
49
|
},
|
|
59
50
|
|
|
60
51
|
disconnected() {
|
|
@@ -163,12 +154,6 @@ function parseSources(sources) {
|
|
|
163
154
|
return sources.filter((source) => !isEmpty(source));
|
|
164
155
|
}
|
|
165
156
|
|
|
166
|
-
function ensureSrcAttribute(el) {
|
|
167
|
-
if (isImg(el) && !hasAttr(el, 'src')) {
|
|
168
|
-
attr(el, 'src', 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"></svg>');
|
|
169
|
-
}
|
|
170
|
-
}
|
|
171
|
-
|
|
172
157
|
function isImg(el) {
|
|
173
158
|
return isTag(el, 'img');
|
|
174
159
|
}
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
.uk-flex-between { justify-content: space-between; }
|
|
30
30
|
.uk-flex-around { justify-content: space-around; }
|
|
31
31
|
|
|
32
|
-
|
|
33
32
|
/* Phone landscape and bigger */
|
|
34
33
|
@media (min-width: @breakpoint-small) {
|
|
35
34
|
|
|
@@ -85,6 +84,46 @@
|
|
|
85
84
|
.uk-flex-middle { align-items: center; }
|
|
86
85
|
.uk-flex-bottom { align-items: flex-end; }
|
|
87
86
|
|
|
87
|
+
/* Phone landscape and bigger */
|
|
88
|
+
@media (min-width: @breakpoint-small) {
|
|
89
|
+
|
|
90
|
+
.uk-flex-stretch\@s { align-items: stretch; }
|
|
91
|
+
.uk-flex-top\@s { align-items: flex-start; }
|
|
92
|
+
.uk-flex-middle\@s { align-items: center; }
|
|
93
|
+
.uk-flex-bottom\@s { align-items: flex-end; }
|
|
94
|
+
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Tablet landscape and bigger */
|
|
98
|
+
@media (min-width: @breakpoint-medium) {
|
|
99
|
+
|
|
100
|
+
.uk-flex-stretch\@m { align-items: stretch; }
|
|
101
|
+
.uk-flex-top\@m { align-items: flex-start; }
|
|
102
|
+
.uk-flex-middle\@m { align-items: center; }
|
|
103
|
+
.uk-flex-bottom\@m { align-items: flex-end; }
|
|
104
|
+
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Desktop and bigger */
|
|
108
|
+
@media (min-width: @breakpoint-large) {
|
|
109
|
+
|
|
110
|
+
.uk-flex-stretch\@l { align-items: stretch; }
|
|
111
|
+
.uk-flex-top\@l { align-items: flex-start; }
|
|
112
|
+
.uk-flex-middle\@l { align-items: center; }
|
|
113
|
+
.uk-flex-bottom\@l { align-items: flex-end; }
|
|
114
|
+
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Large screen and bigger */
|
|
118
|
+
@media (min-width: @breakpoint-xlarge) {
|
|
119
|
+
|
|
120
|
+
.uk-flex-stretch\@xl { align-items: stretch; }
|
|
121
|
+
.uk-flex-top\@xl { align-items: flex-start; }
|
|
122
|
+
.uk-flex-middle\@xl { align-items: center; }
|
|
123
|
+
.uk-flex-bottom\@xl { align-items: flex-end; }
|
|
124
|
+
|
|
125
|
+
}
|
|
126
|
+
|
|
88
127
|
|
|
89
128
|
/* Direction
|
|
90
129
|
========================================================================== */
|
|
@@ -95,6 +134,38 @@
|
|
|
95
134
|
.uk-flex-column { flex-direction: column; }
|
|
96
135
|
.uk-flex-column-reverse { flex-direction: column-reverse; }
|
|
97
136
|
|
|
137
|
+
/* Phone landscape and bigger */
|
|
138
|
+
@media (min-width: @breakpoint-small) {
|
|
139
|
+
|
|
140
|
+
.uk-flex-row\@s { flex-direction: row; }
|
|
141
|
+
.uk-flex-column\@s { flex-direction: column; }
|
|
142
|
+
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Tablet landscape and bigger */
|
|
146
|
+
@media (min-width: @breakpoint-medium) {
|
|
147
|
+
|
|
148
|
+
.uk-flex-row\@m { flex-direction: row; }
|
|
149
|
+
.uk-flex-column\@m { flex-direction: column; }
|
|
150
|
+
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Desktop and bigger */
|
|
154
|
+
@media (min-width: @breakpoint-large) {
|
|
155
|
+
|
|
156
|
+
.uk-flex-row\@l { flex-direction: row; }
|
|
157
|
+
.uk-flex-column\@l { flex-direction: column; }
|
|
158
|
+
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Large screen and bigger */
|
|
162
|
+
@media (min-width: @breakpoint-xlarge) {
|
|
163
|
+
|
|
164
|
+
.uk-flex-row\@xl { flex-direction: row; }
|
|
165
|
+
.uk-flex-column\@xl { flex-direction: column; }
|
|
166
|
+
|
|
167
|
+
}
|
|
168
|
+
|
|
98
169
|
|
|
99
170
|
/* Wrap
|
|
100
171
|
========================================================================== */
|
|
@@ -128,7 +199,6 @@
|
|
|
128
199
|
.uk-flex-first { order: -1;}
|
|
129
200
|
.uk-flex-last { order: 99;}
|
|
130
201
|
|
|
131
|
-
|
|
132
202
|
/* Phone landscape and bigger */
|
|
133
203
|
@media (min-width: @breakpoint-small) {
|
|
134
204
|
|
|
@@ -170,6 +240,8 @@
|
|
|
170
240
|
* Content dimensions, but shrinks
|
|
171
241
|
*/
|
|
172
242
|
|
|
243
|
+
.uk-flex-initial { flex: initial; }
|
|
244
|
+
|
|
173
245
|
/*
|
|
174
246
|
* No Flex: 0 0 auto
|
|
175
247
|
* Content dimensions
|
|
@@ -191,6 +263,42 @@
|
|
|
191
263
|
|
|
192
264
|
.uk-flex-1 { flex: 1; }
|
|
193
265
|
|
|
266
|
+
/* Phone landscape and bigger */
|
|
267
|
+
@media (min-width: @breakpoint-small) {
|
|
268
|
+
|
|
269
|
+
.uk-flex-initial\@s { flex: initial; }
|
|
270
|
+
.uk-flex-none\@s { flex: none; }
|
|
271
|
+
.uk-flex-1\@s { flex: 1; }
|
|
272
|
+
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* Tablet landscape and bigger */
|
|
276
|
+
@media (min-width: @breakpoint-medium) {
|
|
277
|
+
|
|
278
|
+
.uk-flex-initial\@m { flex: initial; }
|
|
279
|
+
.uk-flex-none\@m { flex: none; }
|
|
280
|
+
.uk-flex-1\@m { flex: 1; }
|
|
281
|
+
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* Desktop and bigger */
|
|
285
|
+
@media (min-width: @breakpoint-large) {
|
|
286
|
+
|
|
287
|
+
.uk-flex-initial\@l { flex: initial; }
|
|
288
|
+
.uk-flex-none\@l { flex: none; }
|
|
289
|
+
.uk-flex-1\@l { flex: 1; }
|
|
290
|
+
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* Large screen and bigger */
|
|
294
|
+
@media (min-width: @breakpoint-xlarge) {
|
|
295
|
+
|
|
296
|
+
.uk-flex-initial\@xl { flex: initial; }
|
|
297
|
+
.uk-flex-none\@xl { flex: none; }
|
|
298
|
+
.uk-flex-1\@xl { flex: 1; }
|
|
299
|
+
|
|
300
|
+
}
|
|
301
|
+
|
|
194
302
|
|
|
195
303
|
// Hooks
|
|
196
304
|
// ========================================================================
|
|
@@ -528,8 +528,7 @@
|
|
|
528
528
|
.hook-inverse-logo-hover();
|
|
529
529
|
}
|
|
530
530
|
|
|
531
|
-
.uk-logo >
|
|
532
|
-
.uk-logo > :not(picture):not(.uk-logo-inverse):not(:only-of-type) { display: none; }
|
|
531
|
+
.uk-logo:has(.uk-logo-inverse) > :not(picture:has(.uk-logo-inverse)):not(.uk-logo-inverse) { display: none; }
|
|
533
532
|
.uk-logo-inverse { display: block; }
|
|
534
533
|
|
|
535
534
|
}
|
|
@@ -43,6 +43,7 @@
|
|
|
43
43
|
* flex items won't shrink below their minimum intrinsic content size.
|
|
44
44
|
* Using `1px` instead of `0`, so items still wrap into the next line,
|
|
45
45
|
* if they have zero width and padding and the predecessor is 100% wide.
|
|
46
|
+
* 2. Reset flex if auto classes are combined with expand classes
|
|
46
47
|
*/
|
|
47
48
|
|
|
48
49
|
.uk-child-width-expand > :not([class*="uk-width"]) {
|
|
@@ -61,7 +62,11 @@
|
|
|
61
62
|
.uk-child-width-1-5\@s > * { width: 20%; }
|
|
62
63
|
.uk-child-width-1-6\@s > * { width: ~'calc(100% * 1 / 6.001)'; }
|
|
63
64
|
|
|
64
|
-
.uk-child-width-auto\@s > * {
|
|
65
|
+
.uk-child-width-auto\@s > * {
|
|
66
|
+
width: auto;
|
|
67
|
+
/* 2 */
|
|
68
|
+
flex: initial;
|
|
69
|
+
}
|
|
65
70
|
.uk-child-width-expand\@s > :not([class*="uk-width"]) {
|
|
66
71
|
flex: 1;
|
|
67
72
|
min-width: 1px;
|
|
@@ -79,7 +84,10 @@
|
|
|
79
84
|
.uk-child-width-1-5\@m > * { width: 20%; }
|
|
80
85
|
.uk-child-width-1-6\@m > * { width: ~'calc(100% * 1 / 6.001)'; }
|
|
81
86
|
|
|
82
|
-
.uk-child-width-auto\@m > * {
|
|
87
|
+
.uk-child-width-auto\@m > * {
|
|
88
|
+
width: auto;
|
|
89
|
+
flex: initial;
|
|
90
|
+
}
|
|
83
91
|
.uk-child-width-expand\@m > :not([class*="uk-width"]) {
|
|
84
92
|
flex: 1;
|
|
85
93
|
min-width: 1px;
|
|
@@ -97,7 +105,10 @@
|
|
|
97
105
|
.uk-child-width-1-5\@l > * { width: 20%; }
|
|
98
106
|
.uk-child-width-1-6\@l > * { width: ~'calc(100% * 1 / 6.001)'; }
|
|
99
107
|
|
|
100
|
-
.uk-child-width-auto\@l > * {
|
|
108
|
+
.uk-child-width-auto\@l > * {
|
|
109
|
+
width: auto;
|
|
110
|
+
flex: initial;
|
|
111
|
+
}
|
|
101
112
|
.uk-child-width-expand\@l > :not([class*="uk-width"]) {
|
|
102
113
|
flex: 1;
|
|
103
114
|
min-width: 1px;
|
|
@@ -115,7 +126,10 @@
|
|
|
115
126
|
.uk-child-width-1-5\@xl > * { width: 20%; }
|
|
116
127
|
.uk-child-width-1-6\@xl > * { width: ~'calc(100% * 1 / 6.001)'; }
|
|
117
128
|
|
|
118
|
-
.uk-child-width-auto\@xl > * {
|
|
129
|
+
.uk-child-width-auto\@xl > * {
|
|
130
|
+
width: auto;
|
|
131
|
+
flex: initial;
|
|
132
|
+
}
|
|
119
133
|
.uk-child-width-expand\@xl > :not([class*="uk-width"]) {
|
|
120
134
|
flex: 1;
|
|
121
135
|
min-width: 1px;
|
|
@@ -212,7 +226,10 @@
|
|
|
212
226
|
.uk-width-xxlarge\@s when (@deprecated = true) { width: @width-2xlarge-width; }
|
|
213
227
|
|
|
214
228
|
/* Auto */
|
|
215
|
-
.uk-width-auto\@s {
|
|
229
|
+
.uk-width-auto\@s {
|
|
230
|
+
width: auto;
|
|
231
|
+
flex: initial;
|
|
232
|
+
}
|
|
216
233
|
|
|
217
234
|
/* Expand */
|
|
218
235
|
.uk-width-expand\@s {
|
|
@@ -258,7 +275,10 @@
|
|
|
258
275
|
.uk-width-xxlarge\@m when (@deprecated = true) { width: @width-2xlarge-width; }
|
|
259
276
|
|
|
260
277
|
/* Auto */
|
|
261
|
-
.uk-width-auto\@m {
|
|
278
|
+
.uk-width-auto\@m {
|
|
279
|
+
width: auto;
|
|
280
|
+
flex: initial;
|
|
281
|
+
}
|
|
262
282
|
|
|
263
283
|
/* Expand */
|
|
264
284
|
.uk-width-expand\@m {
|
|
@@ -304,7 +324,10 @@
|
|
|
304
324
|
.uk-width-xxlarge\@l when (@deprecated = true) { width: @width-2xlarge-width; }
|
|
305
325
|
|
|
306
326
|
/* Auto */
|
|
307
|
-
.uk-width-auto\@l {
|
|
327
|
+
.uk-width-auto\@l {
|
|
328
|
+
width: auto;
|
|
329
|
+
flex: initial;
|
|
330
|
+
}
|
|
308
331
|
|
|
309
332
|
/* Expand */
|
|
310
333
|
.uk-width-expand\@l {
|
|
@@ -350,7 +373,10 @@
|
|
|
350
373
|
.uk-width-xxlarge\@xl when (@deprecated = true) { width: @width-2xlarge-width; }
|
|
351
374
|
|
|
352
375
|
/* Auto */
|
|
353
|
-
.uk-width-auto\@xl {
|
|
376
|
+
.uk-width-auto\@xl {
|
|
377
|
+
width: auto;
|
|
378
|
+
flex: initial;
|
|
379
|
+
}
|
|
354
380
|
|
|
355
381
|
/* Expand */
|
|
356
382
|
.uk-width-expand\@xl {
|
package/src/less/theme/text.less
CHANGED
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
@text-meta-link-color: @text-meta-color;
|
|
15
15
|
@text-meta-link-hover-color: @global-color;
|
|
16
16
|
|
|
17
|
-
@internal-text-background-color-gradient: linear-gradient(90deg, @text-background-color 0%, spin(@text-background-color, 40
|
|
17
|
+
@internal-text-background-color-gradient: linear-gradient(90deg, @text-background-color 0%, spin(@text-background-color, 40) 100%);
|
|
18
18
|
|
|
19
19
|
|
|
20
20
|
// Style modifiers
|
|
@@ -29,7 +29,6 @@
|
|
|
29
29
|
.uk-flex-between { justify-content: space-between; }
|
|
30
30
|
.uk-flex-around { justify-content: space-around; }
|
|
31
31
|
|
|
32
|
-
|
|
33
32
|
/* Phone landscape and bigger */
|
|
34
33
|
@media (min-width: $breakpoint-small) {
|
|
35
34
|
|
|
@@ -85,6 +84,46 @@
|
|
|
85
84
|
.uk-flex-middle { align-items: center; }
|
|
86
85
|
.uk-flex-bottom { align-items: flex-end; }
|
|
87
86
|
|
|
87
|
+
/* Phone landscape and bigger */
|
|
88
|
+
@media (min-width: $breakpoint-small) {
|
|
89
|
+
|
|
90
|
+
.uk-flex-stretch\@s { align-items: stretch; }
|
|
91
|
+
.uk-flex-top\@s { align-items: flex-start; }
|
|
92
|
+
.uk-flex-middle\@s { align-items: center; }
|
|
93
|
+
.uk-flex-bottom\@s { align-items: flex-end; }
|
|
94
|
+
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
/* Tablet landscape and bigger */
|
|
98
|
+
@media (min-width: $breakpoint-medium) {
|
|
99
|
+
|
|
100
|
+
.uk-flex-stretch\@m { align-items: stretch; }
|
|
101
|
+
.uk-flex-top\@m { align-items: flex-start; }
|
|
102
|
+
.uk-flex-middle\@m { align-items: center; }
|
|
103
|
+
.uk-flex-bottom\@m { align-items: flex-end; }
|
|
104
|
+
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
/* Desktop and bigger */
|
|
108
|
+
@media (min-width: $breakpoint-large) {
|
|
109
|
+
|
|
110
|
+
.uk-flex-stretch\@l { align-items: stretch; }
|
|
111
|
+
.uk-flex-top\@l { align-items: flex-start; }
|
|
112
|
+
.uk-flex-middle\@l { align-items: center; }
|
|
113
|
+
.uk-flex-bottom\@l { align-items: flex-end; }
|
|
114
|
+
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
/* Large screen and bigger */
|
|
118
|
+
@media (min-width: $breakpoint-xlarge) {
|
|
119
|
+
|
|
120
|
+
.uk-flex-stretch\@xl { align-items: stretch; }
|
|
121
|
+
.uk-flex-top\@xl { align-items: flex-start; }
|
|
122
|
+
.uk-flex-middle\@xl { align-items: center; }
|
|
123
|
+
.uk-flex-bottom\@xl { align-items: flex-end; }
|
|
124
|
+
|
|
125
|
+
}
|
|
126
|
+
|
|
88
127
|
|
|
89
128
|
/* Direction
|
|
90
129
|
========================================================================== */
|
|
@@ -95,6 +134,38 @@
|
|
|
95
134
|
.uk-flex-column { flex-direction: column; }
|
|
96
135
|
.uk-flex-column-reverse { flex-direction: column-reverse; }
|
|
97
136
|
|
|
137
|
+
/* Phone landscape and bigger */
|
|
138
|
+
@media (min-width: $breakpoint-small) {
|
|
139
|
+
|
|
140
|
+
.uk-flex-row\@s { flex-direction: row; }
|
|
141
|
+
.uk-flex-column\@s { flex-direction: column; }
|
|
142
|
+
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
/* Tablet landscape and bigger */
|
|
146
|
+
@media (min-width: $breakpoint-medium) {
|
|
147
|
+
|
|
148
|
+
.uk-flex-row\@m { flex-direction: row; }
|
|
149
|
+
.uk-flex-column\@m { flex-direction: column; }
|
|
150
|
+
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
/* Desktop and bigger */
|
|
154
|
+
@media (min-width: $breakpoint-large) {
|
|
155
|
+
|
|
156
|
+
.uk-flex-row\@l { flex-direction: row; }
|
|
157
|
+
.uk-flex-column\@l { flex-direction: column; }
|
|
158
|
+
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
/* Large screen and bigger */
|
|
162
|
+
@media (min-width: $breakpoint-xlarge) {
|
|
163
|
+
|
|
164
|
+
.uk-flex-row\@xl { flex-direction: row; }
|
|
165
|
+
.uk-flex-column\@xl { flex-direction: column; }
|
|
166
|
+
|
|
167
|
+
}
|
|
168
|
+
|
|
98
169
|
|
|
99
170
|
/* Wrap
|
|
100
171
|
========================================================================== */
|
|
@@ -128,7 +199,6 @@
|
|
|
128
199
|
.uk-flex-first { order: -1;}
|
|
129
200
|
.uk-flex-last { order: 99;}
|
|
130
201
|
|
|
131
|
-
|
|
132
202
|
/* Phone landscape and bigger */
|
|
133
203
|
@media (min-width: $breakpoint-small) {
|
|
134
204
|
|
|
@@ -170,6 +240,8 @@
|
|
|
170
240
|
* Content dimensions, but shrinks
|
|
171
241
|
*/
|
|
172
242
|
|
|
243
|
+
.uk-flex-initial { flex: initial; }
|
|
244
|
+
|
|
173
245
|
/*
|
|
174
246
|
* No Flex: 0 0 auto
|
|
175
247
|
* Content dimensions
|
|
@@ -191,6 +263,42 @@
|
|
|
191
263
|
|
|
192
264
|
.uk-flex-1 { flex: 1; }
|
|
193
265
|
|
|
266
|
+
/* Phone landscape and bigger */
|
|
267
|
+
@media (min-width: $breakpoint-small) {
|
|
268
|
+
|
|
269
|
+
.uk-flex-initial\@s { flex: initial; }
|
|
270
|
+
.uk-flex-none\@s { flex: none; }
|
|
271
|
+
.uk-flex-1\@s { flex: 1; }
|
|
272
|
+
|
|
273
|
+
}
|
|
274
|
+
|
|
275
|
+
/* Tablet landscape and bigger */
|
|
276
|
+
@media (min-width: $breakpoint-medium) {
|
|
277
|
+
|
|
278
|
+
.uk-flex-initial\@m { flex: initial; }
|
|
279
|
+
.uk-flex-none\@m { flex: none; }
|
|
280
|
+
.uk-flex-1\@m { flex: 1; }
|
|
281
|
+
|
|
282
|
+
}
|
|
283
|
+
|
|
284
|
+
/* Desktop and bigger */
|
|
285
|
+
@media (min-width: $breakpoint-large) {
|
|
286
|
+
|
|
287
|
+
.uk-flex-initial\@l { flex: initial; }
|
|
288
|
+
.uk-flex-none\@l { flex: none; }
|
|
289
|
+
.uk-flex-1\@l { flex: 1; }
|
|
290
|
+
|
|
291
|
+
}
|
|
292
|
+
|
|
293
|
+
/* Large screen and bigger */
|
|
294
|
+
@media (min-width: $breakpoint-xlarge) {
|
|
295
|
+
|
|
296
|
+
.uk-flex-initial\@xl { flex: initial; }
|
|
297
|
+
.uk-flex-none\@xl { flex: none; }
|
|
298
|
+
.uk-flex-1\@xl { flex: 1; }
|
|
299
|
+
|
|
300
|
+
}
|
|
301
|
+
|
|
194
302
|
|
|
195
303
|
// Hooks
|
|
196
304
|
// ========================================================================
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
* flex items won't shrink below their minimum intrinsic content size.
|
|
39
39
|
* Using `1px` instead of `0`, so items still wrap into the next line,
|
|
40
40
|
* if they have zero width and padding and the predecessor is 100% wide.
|
|
41
|
+
* 2. Reset flex if auto classes are combined with expand classes
|
|
41
42
|
*/
|
|
42
43
|
|
|
43
44
|
.uk-child-width-expand > :not([class*="uk-width"]) {
|
|
@@ -56,7 +57,11 @@
|
|
|
56
57
|
.uk-child-width-1-5\@s > * { width: 20%; }
|
|
57
58
|
.uk-child-width-1-6\@s > * { width: unquote('calc(100% * 1 / 6.001)'); }
|
|
58
59
|
|
|
59
|
-
.uk-child-width-auto\@s > * {
|
|
60
|
+
.uk-child-width-auto\@s > * {
|
|
61
|
+
width: auto;
|
|
62
|
+
/* 2 */
|
|
63
|
+
flex: initial;
|
|
64
|
+
}
|
|
60
65
|
.uk-child-width-expand\@s > :not([class*="uk-width"]) {
|
|
61
66
|
flex: 1;
|
|
62
67
|
min-width: 1px;
|
|
@@ -74,7 +79,10 @@
|
|
|
74
79
|
.uk-child-width-1-5\@m > * { width: 20%; }
|
|
75
80
|
.uk-child-width-1-6\@m > * { width: unquote('calc(100% * 1 / 6.001)'); }
|
|
76
81
|
|
|
77
|
-
.uk-child-width-auto\@m > * {
|
|
82
|
+
.uk-child-width-auto\@m > * {
|
|
83
|
+
width: auto;
|
|
84
|
+
flex: initial;
|
|
85
|
+
}
|
|
78
86
|
.uk-child-width-expand\@m > :not([class*="uk-width"]) {
|
|
79
87
|
flex: 1;
|
|
80
88
|
min-width: 1px;
|
|
@@ -92,7 +100,10 @@
|
|
|
92
100
|
.uk-child-width-1-5\@l > * { width: 20%; }
|
|
93
101
|
.uk-child-width-1-6\@l > * { width: unquote('calc(100% * 1 / 6.001)'); }
|
|
94
102
|
|
|
95
|
-
.uk-child-width-auto\@l > * {
|
|
103
|
+
.uk-child-width-auto\@l > * {
|
|
104
|
+
width: auto;
|
|
105
|
+
flex: initial;
|
|
106
|
+
}
|
|
96
107
|
.uk-child-width-expand\@l > :not([class*="uk-width"]) {
|
|
97
108
|
flex: 1;
|
|
98
109
|
min-width: 1px;
|
|
@@ -110,7 +121,10 @@
|
|
|
110
121
|
.uk-child-width-1-5\@xl > * { width: 20%; }
|
|
111
122
|
.uk-child-width-1-6\@xl > * { width: unquote('calc(100% * 1 / 6.001)'); }
|
|
112
123
|
|
|
113
|
-
.uk-child-width-auto\@xl > * {
|
|
124
|
+
.uk-child-width-auto\@xl > * {
|
|
125
|
+
width: auto;
|
|
126
|
+
flex: initial;
|
|
127
|
+
}
|
|
114
128
|
.uk-child-width-expand\@xl > :not([class*="uk-width"]) {
|
|
115
129
|
flex: 1;
|
|
116
130
|
min-width: 1px;
|
|
@@ -211,7 +225,10 @@
|
|
|
211
225
|
}
|
|
212
226
|
|
|
213
227
|
/* Auto */
|
|
214
|
-
.uk-width-auto\@s {
|
|
228
|
+
.uk-width-auto\@s {
|
|
229
|
+
width: auto;
|
|
230
|
+
flex: initial;
|
|
231
|
+
}
|
|
215
232
|
|
|
216
233
|
/* Expand */
|
|
217
234
|
.uk-width-expand\@s {
|
|
@@ -259,7 +276,10 @@
|
|
|
259
276
|
}
|
|
260
277
|
|
|
261
278
|
/* Auto */
|
|
262
|
-
.uk-width-auto\@m {
|
|
279
|
+
.uk-width-auto\@m {
|
|
280
|
+
width: auto;
|
|
281
|
+
flex: initial;
|
|
282
|
+
}
|
|
263
283
|
|
|
264
284
|
/* Expand */
|
|
265
285
|
.uk-width-expand\@m {
|
|
@@ -307,7 +327,10 @@
|
|
|
307
327
|
}
|
|
308
328
|
|
|
309
329
|
/* Auto */
|
|
310
|
-
.uk-width-auto\@l {
|
|
330
|
+
.uk-width-auto\@l {
|
|
331
|
+
width: auto;
|
|
332
|
+
flex: initial;
|
|
333
|
+
}
|
|
311
334
|
|
|
312
335
|
/* Expand */
|
|
313
336
|
.uk-width-expand\@l {
|
|
@@ -355,7 +378,10 @@
|
|
|
355
378
|
}
|
|
356
379
|
|
|
357
380
|
/* Auto */
|
|
358
|
-
.uk-width-auto\@xl {
|
|
381
|
+
.uk-width-auto\@xl {
|
|
382
|
+
width: auto;
|
|
383
|
+
flex: initial;
|
|
384
|
+
}
|
|
359
385
|
|
|
360
386
|
/* Expand */
|
|
361
387
|
.uk-width-expand\@xl {
|
|
@@ -2178,8 +2178,7 @@
|
|
|
2178
2178
|
@if(mixin-exists(hook-inverse-logo-hover)) {@include hook-inverse-logo-hover();}
|
|
2179
2179
|
}
|
|
2180
2180
|
|
|
2181
|
-
.uk-logo >
|
|
2182
|
-
.uk-logo > :not(picture):not(.uk-logo-inverse):not(:only-of-type) { display: none; }
|
|
2181
|
+
.uk-logo:has(.uk-logo-inverse) > :not(picture:has(.uk-logo-inverse)):not(.uk-logo-inverse) { display: none; }
|
|
2183
2182
|
.uk-logo-inverse { display: block; }
|
|
2184
2183
|
|
|
2185
2184
|
}
|
package/src/scss/mixins.scss
CHANGED
|
@@ -1780,8 +1780,7 @@
|
|
|
1780
1780
|
@if(mixin-exists(hook-inverse-logo-hover)) {@include hook-inverse-logo-hover();}
|
|
1781
1781
|
}
|
|
1782
1782
|
|
|
1783
|
-
.uk-logo >
|
|
1784
|
-
.uk-logo > :not(picture):not(.uk-logo-inverse):not(:only-of-type) { display: none; }
|
|
1783
|
+
.uk-logo:has(.uk-logo-inverse) > :not(picture:has(.uk-logo-inverse)):not(.uk-logo-inverse) { display: none; }
|
|
1785
1784
|
.uk-logo-inverse { display: block; }
|
|
1786
1785
|
|
|
1787
1786
|
}
|
|
@@ -1288,7 +1288,7 @@ $table-striped-border-width: $global-border-width !default;
|
|
|
1288
1288
|
$table-striped-border: $global-border !default;
|
|
1289
1289
|
$text-meta-link-color: $text-meta-color !default;
|
|
1290
1290
|
$text-meta-link-hover-color: $global-color !default;
|
|
1291
|
-
$internal-text-background-color-gradient: linear-gradient(90deg, $text-background-color 0%,
|
|
1291
|
+
$internal-text-background-color-gradient: linear-gradient(90deg, $text-background-color 0%, adjust-hue($text-background-color, 40) 100%) !default;
|
|
1292
1292
|
$thumbnav-item-gradient: linear-gradient(180deg, rgba(255,255,255,0), rgba(255,255,255,0.4)) !default;
|
|
1293
1293
|
$thumbnav-item-hover-opacity: 0 !default;
|
|
1294
1294
|
$thumbnav-item-active-opacity: 0 !default;
|