uikit 3.11.2-dev.a08b20474 → 3.11.2-dev.c2430c233
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 +2 -11
- package/build/scss.js +1 -1
- package/dist/css/uikit-core-rtl.css +42 -17
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +42 -17
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +42 -17
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +42 -17
- 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 +1 -1
- 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 +1 -1
- 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 +121 -115
- 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 +121 -115
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/core/img.js +95 -111
- package/src/js/util/options.js +4 -4
- package/src/less/components/flex.less +0 -9
- package/src/less/components/navbar.less +0 -7
- package/src/less/components/utility.less +22 -0
- package/src/scss/components/flex.scss +0 -9
- package/src/scss/components/form.scss +3 -3
- package/src/scss/components/icon.scss +2 -2
- package/src/scss/components/navbar.scss +0 -7
- package/src/scss/components/search.scss +1 -1
- package/src/scss/components/utility.scss +22 -0
- package/src/scss/variables-theme.scss +6 -6
- package/src/scss/variables.scss +6 -6
- package/tests/image.html +41 -31
- package/tests/images/test.avif +0 -0
- package/tests/images/test.webp +0 -0
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.11.2-dev.
|
|
5
|
+
"version": "3.11.2-dev.c2430c233",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/core/img.js
CHANGED
|
@@ -1,6 +1,4 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
const nativeLazyLoad = 'loading' in HTMLImageElement.prototype;
|
|
1
|
+
import {createEvent, css, Dimensions, escape, getImage, includes, isUndefined, queryAll, startsWith, toFloat, toPx, trigger} from 'uikit-util';
|
|
4
2
|
|
|
5
3
|
export default {
|
|
6
4
|
|
|
@@ -8,7 +6,10 @@ export default {
|
|
|
8
6
|
|
|
9
7
|
props: {
|
|
10
8
|
dataSrc: String,
|
|
11
|
-
|
|
9
|
+
dataSrcset: Boolean,
|
|
10
|
+
sizes: String,
|
|
11
|
+
width: Number,
|
|
12
|
+
height: Number,
|
|
12
13
|
offsetTop: String,
|
|
13
14
|
offsetLeft: String,
|
|
14
15
|
target: String
|
|
@@ -16,7 +17,10 @@ export default {
|
|
|
16
17
|
|
|
17
18
|
data: {
|
|
18
19
|
dataSrc: '',
|
|
19
|
-
|
|
20
|
+
dataSrcset: false,
|
|
21
|
+
sizes: false,
|
|
22
|
+
width: false,
|
|
23
|
+
height: false,
|
|
20
24
|
offsetTop: '50vh',
|
|
21
25
|
offsetLeft: '50vw',
|
|
22
26
|
target: false
|
|
@@ -24,6 +28,26 @@ export default {
|
|
|
24
28
|
|
|
25
29
|
computed: {
|
|
26
30
|
|
|
31
|
+
cacheKey({dataSrc}) {
|
|
32
|
+
return `${this.$name}.${dataSrc}`;
|
|
33
|
+
},
|
|
34
|
+
|
|
35
|
+
width({width, dataWidth}) {
|
|
36
|
+
return width || dataWidth;
|
|
37
|
+
},
|
|
38
|
+
|
|
39
|
+
height({height, dataHeight}) {
|
|
40
|
+
return height || dataHeight;
|
|
41
|
+
},
|
|
42
|
+
|
|
43
|
+
sizes({sizes, dataSizes}) {
|
|
44
|
+
return sizes || dataSizes;
|
|
45
|
+
},
|
|
46
|
+
|
|
47
|
+
isImg(_, $el) {
|
|
48
|
+
return isImg($el);
|
|
49
|
+
},
|
|
50
|
+
|
|
27
51
|
target: {
|
|
28
52
|
|
|
29
53
|
get({target}) {
|
|
@@ -34,6 +58,14 @@ export default {
|
|
|
34
58
|
this.observe();
|
|
35
59
|
}
|
|
36
60
|
|
|
61
|
+
},
|
|
62
|
+
|
|
63
|
+
offsetTop({offsetTop}) {
|
|
64
|
+
return toPx(offsetTop, 'height');
|
|
65
|
+
},
|
|
66
|
+
|
|
67
|
+
offsetLeft({offsetLeft}) {
|
|
68
|
+
return toPx(offsetLeft, 'width');
|
|
37
69
|
}
|
|
38
70
|
|
|
39
71
|
},
|
|
@@ -41,24 +73,21 @@ export default {
|
|
|
41
73
|
connected() {
|
|
42
74
|
|
|
43
75
|
if (!window.IntersectionObserver) {
|
|
44
|
-
setSrcAttrs(this.$el, this.dataSrc);
|
|
76
|
+
setSrcAttrs(this.$el, this.dataSrc, this.dataSrcset, this.sizes);
|
|
45
77
|
return;
|
|
46
78
|
}
|
|
47
79
|
|
|
48
|
-
if (
|
|
49
|
-
this.$el.
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
if (this.target.length === 1) {
|
|
53
|
-
return;
|
|
54
|
-
}
|
|
80
|
+
if (storage[this.cacheKey]) {
|
|
81
|
+
setSrcAttrs(this.$el, storage[this.cacheKey], this.dataSrcset, this.sizes);
|
|
82
|
+
} else if (this.isImg && this.width && this.height) {
|
|
83
|
+
setSrcAttrs(this.$el, getPlaceholderImage(this.width, this.height, this.sizes));
|
|
55
84
|
}
|
|
56
85
|
|
|
57
|
-
|
|
86
|
+
this.observer = new IntersectionObserver(this.load, {
|
|
87
|
+
rootMargin: `${this.offsetTop}px ${this.offsetLeft}px`
|
|
88
|
+
});
|
|
58
89
|
|
|
59
|
-
|
|
60
|
-
this.observer = new IntersectionObserver(this.load, {rootMargin});
|
|
61
|
-
this.observe();
|
|
90
|
+
requestAnimationFrame(this.observe);
|
|
62
91
|
|
|
63
92
|
},
|
|
64
93
|
|
|
@@ -68,17 +97,32 @@ export default {
|
|
|
68
97
|
|
|
69
98
|
update: {
|
|
70
99
|
|
|
71
|
-
|
|
72
|
-
|
|
100
|
+
read({image}) {
|
|
101
|
+
|
|
102
|
+
if (!this.observer) {
|
|
103
|
+
return false;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
if (!image && document.readyState === 'complete') {
|
|
107
|
+
this.load(this.observer.takeRecords());
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
if (this.isImg) {
|
|
73
111
|
return false;
|
|
74
112
|
}
|
|
75
|
-
|
|
76
|
-
|
|
113
|
+
|
|
114
|
+
image && image.then(img => img && img.currentSrc !== '' && setSrcAttrs(this.$el, currentSrc(img)));
|
|
115
|
+
|
|
116
|
+
},
|
|
117
|
+
|
|
118
|
+
write(data) {
|
|
119
|
+
|
|
120
|
+
if (this.dataSrcset && window.devicePixelRatio !== 1) {
|
|
77
121
|
|
|
78
122
|
const bgSize = css(this.$el, 'backgroundSize');
|
|
79
|
-
if (bgSize.match(/^(auto\s?)+$/) || toFloat(bgSize) ===
|
|
80
|
-
|
|
81
|
-
css(this.$el, 'backgroundSize', `${
|
|
123
|
+
if (bgSize.match(/^(auto\s?)+$/) || toFloat(bgSize) === data.bgSize) {
|
|
124
|
+
data.bgSize = getSourceSize(this.dataSrcset, this.sizes);
|
|
125
|
+
css(this.$el, 'backgroundSize', `${data.bgSize}px`);
|
|
82
126
|
}
|
|
83
127
|
|
|
84
128
|
}
|
|
@@ -98,21 +142,13 @@ export default {
|
|
|
98
142
|
return;
|
|
99
143
|
}
|
|
100
144
|
|
|
101
|
-
|
|
102
|
-
return this._data.image;
|
|
103
|
-
}
|
|
145
|
+
this._data.image = getImage(this.dataSrc, this.dataSrcset, this.sizes).then(img => {
|
|
104
146
|
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
this.$el,
|
|
109
|
-
this.dataSrc,
|
|
110
|
-
this.dataSources
|
|
111
|
-
);
|
|
147
|
+
setSrcAttrs(this.$el, currentSrc(img), img.srcset, img.sizes);
|
|
148
|
+
storage[this.cacheKey] = currentSrc(img);
|
|
149
|
+
return img;
|
|
112
150
|
|
|
113
|
-
this.
|
|
114
|
-
image.loading = 'eager';
|
|
115
|
-
setSrcAttrs(this.$el, image.currentSrc);
|
|
151
|
+
}, e => trigger(this.$el, new e.constructor(e.type, e)));
|
|
116
152
|
|
|
117
153
|
this.observer.disconnect();
|
|
118
154
|
},
|
|
@@ -127,14 +163,13 @@ export default {
|
|
|
127
163
|
|
|
128
164
|
};
|
|
129
165
|
|
|
130
|
-
function setSrcAttrs(el, src) {
|
|
166
|
+
function setSrcAttrs(el, src, srcset, sizes) {
|
|
131
167
|
|
|
132
168
|
if (isImg(el)) {
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
169
|
+
const set = (prop, val) => val && val !== el[prop] && (el[prop] = val);
|
|
170
|
+
set('sizes', sizes);
|
|
171
|
+
set('srcset', srcset);
|
|
172
|
+
set('src', src);
|
|
138
173
|
} else if (src) {
|
|
139
174
|
|
|
140
175
|
const change = !includes(el.style.backgroundImage, src);
|
|
@@ -147,66 +182,13 @@ function setSrcAttrs(el, src) {
|
|
|
147
182
|
|
|
148
183
|
}
|
|
149
184
|
|
|
150
|
-
|
|
151
|
-
function setSourceProps(sourceEl, targetEl) {
|
|
152
|
-
srcProps.forEach(prop => {
|
|
153
|
-
const value = data(sourceEl, prop);
|
|
154
|
-
if (value) {
|
|
155
|
-
attr(targetEl, prop.replace(/^(data-)+/, ''), value);
|
|
156
|
-
}
|
|
157
|
-
});
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
function getImageFromElement(el, src, sources) {
|
|
161
|
-
|
|
162
|
-
if (!src) {
|
|
163
|
-
return false;
|
|
164
|
-
}
|
|
165
|
-
|
|
166
|
-
const img = new Image();
|
|
167
|
-
|
|
168
|
-
wrapInPicture(img, sources);
|
|
169
|
-
setSourceProps(el, img);
|
|
170
|
-
img.onload = () => setSrcAttrs(el, img.currentSrc);
|
|
171
|
-
attr(img, 'src', src);
|
|
172
|
-
return img;
|
|
173
|
-
}
|
|
174
|
-
|
|
175
|
-
function wrapInPicture(img, sources) {
|
|
185
|
+
function getPlaceholderImage(width, height, sizes) {
|
|
176
186
|
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
if (sources.length) {
|
|
180
|
-
const picture = fragment('<picture>');
|
|
181
|
-
sources.forEach(attrs => {
|
|
182
|
-
const source = fragment('<source>');
|
|
183
|
-
attr(source, attrs);
|
|
184
|
-
append(picture, source);
|
|
185
|
-
});
|
|
186
|
-
append(picture, img);
|
|
187
|
-
}
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
function parseSources(sources) {
|
|
191
|
-
if (!sources) {
|
|
192
|
-
return [];
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
if (startsWith(sources, '[')) {
|
|
196
|
-
try {
|
|
197
|
-
sources = JSON.parse(sources);
|
|
198
|
-
} catch (e) {
|
|
199
|
-
sources = [];
|
|
200
|
-
}
|
|
201
|
-
} else {
|
|
202
|
-
sources = parseOptions(sources);
|
|
203
|
-
}
|
|
204
|
-
|
|
205
|
-
if (!isArray(sources)) {
|
|
206
|
-
sources = [sources];
|
|
187
|
+
if (sizes) {
|
|
188
|
+
({width, height} = Dimensions.ratio({width, height}, 'width', toPx(sizesToPixel(sizes))));
|
|
207
189
|
}
|
|
208
190
|
|
|
209
|
-
return
|
|
191
|
+
return `data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="${width}" height="${height}"></svg>`;
|
|
210
192
|
}
|
|
211
193
|
|
|
212
194
|
const sizesRe = /\s*(.*?)\s*(\w+|calc\(.*?\))\s*(?:,|$)/g;
|
|
@@ -246,20 +228,22 @@ function getSourceSize(srcset, sizes) {
|
|
|
246
228
|
return descriptors.filter(size => size >= srcSize)[0] || descriptors.pop() || '';
|
|
247
229
|
}
|
|
248
230
|
|
|
249
|
-
function
|
|
250
|
-
|
|
251
|
-
attr(el, 'src', 'data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg"></svg>');
|
|
252
|
-
}
|
|
231
|
+
function isImg(el) {
|
|
232
|
+
return el.tagName === 'IMG';
|
|
253
233
|
}
|
|
254
234
|
|
|
255
|
-
function
|
|
256
|
-
return
|
|
235
|
+
function currentSrc(el) {
|
|
236
|
+
return el.currentSrc || el.src;
|
|
257
237
|
}
|
|
258
238
|
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
}
|
|
239
|
+
const key = '__test__';
|
|
240
|
+
let storage;
|
|
262
241
|
|
|
263
|
-
|
|
264
|
-
|
|
242
|
+
// workaround for Safari's private browsing mode and accessing sessionStorage in Blink
|
|
243
|
+
try {
|
|
244
|
+
storage = window.sessionStorage || {};
|
|
245
|
+
storage[key] = 1;
|
|
246
|
+
delete storage[key];
|
|
247
|
+
} catch (e) {
|
|
248
|
+
storage = {};
|
|
265
249
|
}
|
package/src/js/util/options.js
CHANGED
|
@@ -134,8 +134,9 @@ export function parseOptions(options, args = []) {
|
|
|
134
134
|
|
|
135
135
|
try {
|
|
136
136
|
|
|
137
|
-
return options
|
|
138
|
-
?
|
|
137
|
+
return !options
|
|
138
|
+
? {}
|
|
139
|
+
: startsWith(options, '{')
|
|
139
140
|
? JSON.parse(options)
|
|
140
141
|
: args.length && !includes(options, ':')
|
|
141
142
|
? ({[args[0]]: options})
|
|
@@ -145,8 +146,7 @@ export function parseOptions(options, args = []) {
|
|
|
145
146
|
options[key.trim()] = value.trim();
|
|
146
147
|
}
|
|
147
148
|
return options;
|
|
148
|
-
}, {})
|
|
149
|
-
: {};
|
|
149
|
+
}, {});
|
|
150
150
|
|
|
151
151
|
} catch (e) {
|
|
152
152
|
return {};
|
|
@@ -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
|
========================================================================== */
|
|
@@ -109,13 +109,6 @@
|
|
|
109
109
|
.uk-navbar-container:not(.uk-navbar-transparent):extend(.uk-light all) when (@navbar-color-mode = light) {}
|
|
110
110
|
.uk-navbar-container:not(.uk-navbar-transparent):extend(.uk-dark all) when (@navbar-color-mode = dark) {}
|
|
111
111
|
|
|
112
|
-
/*
|
|
113
|
-
* Remove pseudo elements created by micro clearfix as precaution (if Container component is used)
|
|
114
|
-
*/
|
|
115
|
-
|
|
116
|
-
.uk-navbar-container > ::before,
|
|
117
|
-
.uk-navbar-container > ::after { display: none !important; }
|
|
118
|
-
|
|
119
112
|
|
|
120
113
|
/* Groups
|
|
121
114
|
========================================================================== */
|
|
@@ -251,6 +251,28 @@
|
|
|
251
251
|
[data-uk-responsive] { max-width: 100%; }
|
|
252
252
|
|
|
253
253
|
|
|
254
|
+
/* Object
|
|
255
|
+
========================================================================== */
|
|
256
|
+
|
|
257
|
+
.uk-object-fit-none { object-fit: none; }
|
|
258
|
+
.uk-object-fit-cover { object-fit: cover; }
|
|
259
|
+
.uk-object-fit-contain { object-fit: contain; }
|
|
260
|
+
|
|
261
|
+
/*
|
|
262
|
+
* Position
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
.uk-object-top-left { object-position: 0 0; }
|
|
266
|
+
.uk-object-top-center { object-position: 50% 0; }
|
|
267
|
+
.uk-object-top-right { object-position: 100% 0; }
|
|
268
|
+
.uk-object-center-left { object-position: 0 50%; }
|
|
269
|
+
.uk-object-center-center { object-position: 50% 50%; }
|
|
270
|
+
.uk-object-center-right { object-position: 100% 50%; }
|
|
271
|
+
.uk-object-bottom-left { object-position: 0 100%; }
|
|
272
|
+
.uk-object-bottom-center { object-position: 50% 100%; }
|
|
273
|
+
.uk-object-bottom-right { object-position: 100% 100%; }
|
|
274
|
+
|
|
275
|
+
|
|
254
276
|
/* Border
|
|
255
277
|
========================================================================== */
|
|
256
278
|
|
|
@@ -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
|
========================================================================== */
|
|
@@ -780,7 +780,7 @@ select.uk-form-width-xsmall { width: ($form-width-xsmall + 25px); }
|
|
|
780
780
|
|
|
781
781
|
$inverse-form-background: $inverse-global-muted-background !default;
|
|
782
782
|
$inverse-form-color: $inverse-global-color !default;
|
|
783
|
-
$inverse-form-focus-background:
|
|
783
|
+
$inverse-form-focus-background: fade-in($inverse-form-background, 0.05) !default;
|
|
784
784
|
$inverse-form-focus-color: $inverse-global-color !default;
|
|
785
785
|
$inverse-form-placeholder-color: $inverse-global-muted-color !default;
|
|
786
786
|
|
|
@@ -790,12 +790,12 @@ $inverse-form-datalist-icon-color: $inverse-global-color !default;
|
|
|
790
790
|
|
|
791
791
|
$inverse-form-radio-background: $inverse-global-muted-background !default;
|
|
792
792
|
|
|
793
|
-
$inverse-form-radio-focus-background:
|
|
793
|
+
$inverse-form-radio-focus-background: fade-in($inverse-form-radio-background, 0.05) !default;
|
|
794
794
|
|
|
795
795
|
$inverse-form-radio-checked-background: $inverse-global-primary-background !default;
|
|
796
796
|
$inverse-form-radio-checked-icon-color: $inverse-global-inverse-color !default;
|
|
797
797
|
|
|
798
|
-
$inverse-form-radio-checked-focus-background:
|
|
798
|
+
$inverse-form-radio-checked-focus-background: fade-in($inverse-global-primary-background, 0.1) !default;
|
|
799
799
|
|
|
800
800
|
$inverse-form-icon-color: $inverse-global-muted-color !default;
|
|
801
801
|
$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
|
|
|
@@ -109,13 +109,6 @@ $navbar-dropbar-z-index: $global-z-index - 20 !default;
|
|
|
109
109
|
@if ( $navbar-color-mode == light ) { .uk-navbar-container:not(.uk-navbar-transparent) { @extend .uk-light !optional;} }
|
|
110
110
|
@if ( $navbar-color-mode == dark ) { .uk-navbar-container:not(.uk-navbar-transparent) { @extend .uk-dark !optional;} }
|
|
111
111
|
|
|
112
|
-
/*
|
|
113
|
-
* Remove pseudo elements created by micro clearfix as precaution (if Container component is used)
|
|
114
|
-
*/
|
|
115
|
-
|
|
116
|
-
.uk-navbar-container > ::before,
|
|
117
|
-
.uk-navbar-container > ::after { display: none !important; }
|
|
118
|
-
|
|
119
112
|
|
|
120
113
|
/* Groups
|
|
121
114
|
========================================================================== */
|
|
@@ -317,7 +317,7 @@ $inverse-search-placeholder-color: $inverse-global-muted-color !def
|
|
|
317
317
|
$inverse-search-icon-color: $inverse-global-muted-color !default;
|
|
318
318
|
|
|
319
319
|
$inverse-search-default-background: $inverse-global-muted-background !default;
|
|
320
|
-
$inverse-search-default-focus-background:
|
|
320
|
+
$inverse-search-default-focus-background: fade-in($inverse-search-default-background, 0.05) !default;
|
|
321
321
|
|
|
322
322
|
$inverse-search-navbar-background: transparent !default;
|
|
323
323
|
|
|
@@ -251,6 +251,28 @@ $dragover-box-shadow: 0 0 20px rgba(100,100,100,0.3)
|
|
|
251
251
|
[data-uk-responsive] { max-width: 100%; }
|
|
252
252
|
|
|
253
253
|
|
|
254
|
+
/* Object
|
|
255
|
+
========================================================================== */
|
|
256
|
+
|
|
257
|
+
.uk-object-fit-none { object-fit: none; }
|
|
258
|
+
.uk-object-fit-cover { object-fit: cover; }
|
|
259
|
+
.uk-object-fit-contain { object-fit: contain; }
|
|
260
|
+
|
|
261
|
+
/*
|
|
262
|
+
* Position
|
|
263
|
+
*/
|
|
264
|
+
|
|
265
|
+
.uk-object-top-left { object-position: 0 0; }
|
|
266
|
+
.uk-object-top-center { object-position: 50% 0; }
|
|
267
|
+
.uk-object-top-right { object-position: 100% 0; }
|
|
268
|
+
.uk-object-center-left { object-position: 0 50%; }
|
|
269
|
+
.uk-object-center-center { object-position: 50% 50%; }
|
|
270
|
+
.uk-object-center-right { object-position: 100% 50%; }
|
|
271
|
+
.uk-object-bottom-left { object-position: 0 100%; }
|
|
272
|
+
.uk-object-bottom-center { object-position: 50% 100%; }
|
|
273
|
+
.uk-object-bottom-right { object-position: 100% 100%; }
|
|
274
|
+
|
|
275
|
+
|
|
254
276
|
/* Border
|
|
255
277
|
========================================================================== */
|
|
256
278
|
|
|
@@ -449,16 +449,16 @@ $internal-form-checkbox-indeterminate-image: "data:image/svg+xml;charset=UTF-8,%
|
|
|
449
449
|
$inverse-global-muted-background: rgba($global-inverse-color, 0.1) !default;
|
|
450
450
|
$inverse-form-background: $inverse-global-muted-background !default;
|
|
451
451
|
$inverse-form-color: $inverse-global-color !default;
|
|
452
|
-
$inverse-form-focus-background:
|
|
452
|
+
$inverse-form-focus-background: fade-in($inverse-form-background, 0.05) !default;
|
|
453
453
|
$inverse-form-focus-color: $inverse-global-color !default;
|
|
454
454
|
$inverse-form-placeholder-color: $inverse-global-muted-color !default;
|
|
455
455
|
$inverse-form-select-icon-color: $inverse-global-color !default;
|
|
456
456
|
$inverse-form-datalist-icon-color: $inverse-global-color !default;
|
|
457
457
|
$inverse-form-radio-background: $inverse-global-muted-background !default;
|
|
458
|
-
$inverse-form-radio-focus-background:
|
|
458
|
+
$inverse-form-radio-focus-background: fade-in($inverse-form-radio-background, 0.05) !default;
|
|
459
459
|
$inverse-form-radio-checked-background: $inverse-global-primary-background !default;
|
|
460
460
|
$inverse-form-radio-checked-icon-color: $inverse-global-inverse-color !default;
|
|
461
|
-
$inverse-form-radio-checked-focus-background:
|
|
461
|
+
$inverse-form-radio-checked-focus-background: fade-in($inverse-global-primary-background, 0.1) !default;
|
|
462
462
|
$inverse-form-icon-color: $inverse-global-muted-color !default;
|
|
463
463
|
$inverse-form-icon-hover-color: $inverse-global-color !default;
|
|
464
464
|
$grid-gutter-horizontal: $global-gutter !default;
|
|
@@ -543,9 +543,9 @@ $inverse-icon-link-hover-color: $inverse-global-color !default;
|
|
|
543
543
|
$inverse-icon-link-active-color: $inverse-global-color !default;
|
|
544
544
|
$inverse-icon-button-background: $inverse-global-muted-background !default;
|
|
545
545
|
$inverse-icon-button-color: $inverse-global-muted-color !default;
|
|
546
|
-
$inverse-icon-button-hover-background:
|
|
546
|
+
$inverse-icon-button-hover-background: fade-in($inverse-icon-button-background, 0.05) !default;
|
|
547
547
|
$inverse-icon-button-hover-color: $inverse-global-color !default;
|
|
548
|
-
$inverse-icon-button-active-background:
|
|
548
|
+
$inverse-icon-button-active-background: fade-in($inverse-icon-button-background, 0.1) !default;
|
|
549
549
|
$inverse-icon-button-active-color: $inverse-global-color !default;
|
|
550
550
|
$iconnav-margin-horizontal: $global-small-margin !default;
|
|
551
551
|
$iconnav-margin-vertical: $iconnav-margin-horizontal !default;
|
|
@@ -855,7 +855,7 @@ $inverse-search-color: $inverse-global-color !default;
|
|
|
855
855
|
$inverse-search-placeholder-color: $inverse-global-muted-color !default;
|
|
856
856
|
$inverse-search-icon-color: $inverse-global-muted-color !default;
|
|
857
857
|
$inverse-search-default-background: transparent !default;
|
|
858
|
-
$inverse-search-default-focus-background:
|
|
858
|
+
$inverse-search-default-focus-background: fade-in($inverse-search-default-background, 0.05) !default;
|
|
859
859
|
$inverse-search-navbar-background: transparent !default;
|
|
860
860
|
$inverse-search-large-background: transparent !default;
|
|
861
861
|
$inverse-search-toggle-color: $inverse-global-muted-color !default;
|
package/src/scss/variables.scss
CHANGED
|
@@ -447,16 +447,16 @@ $internal-form-checkbox-indeterminate-image: "data:image/svg+xml;charset=UTF-8,%
|
|
|
447
447
|
$inverse-global-muted-background: rgba($global-inverse-color, 0.1) !default;
|
|
448
448
|
$inverse-form-background: $inverse-global-muted-background !default;
|
|
449
449
|
$inverse-form-color: $inverse-global-color !default;
|
|
450
|
-
$inverse-form-focus-background:
|
|
450
|
+
$inverse-form-focus-background: fade-in($inverse-form-background, 0.05) !default;
|
|
451
451
|
$inverse-form-focus-color: $inverse-global-color !default;
|
|
452
452
|
$inverse-form-placeholder-color: $inverse-global-muted-color !default;
|
|
453
453
|
$inverse-form-select-icon-color: $inverse-global-color !default;
|
|
454
454
|
$inverse-form-datalist-icon-color: $inverse-global-color !default;
|
|
455
455
|
$inverse-form-radio-background: $inverse-global-muted-background !default;
|
|
456
|
-
$inverse-form-radio-focus-background:
|
|
456
|
+
$inverse-form-radio-focus-background: fade-in($inverse-form-radio-background, 0.05) !default;
|
|
457
457
|
$inverse-form-radio-checked-background: $inverse-global-primary-background !default;
|
|
458
458
|
$inverse-form-radio-checked-icon-color: $inverse-global-inverse-color !default;
|
|
459
|
-
$inverse-form-radio-checked-focus-background:
|
|
459
|
+
$inverse-form-radio-checked-focus-background: fade-in($inverse-global-primary-background, 0.1) !default;
|
|
460
460
|
$inverse-form-icon-color: $inverse-global-muted-color !default;
|
|
461
461
|
$inverse-form-icon-hover-color: $inverse-global-color !default;
|
|
462
462
|
$grid-gutter-horizontal: $global-gutter !default;
|
|
@@ -541,9 +541,9 @@ $inverse-icon-link-hover-color: $inverse-global-color !default;
|
|
|
541
541
|
$inverse-icon-link-active-color: $inverse-global-color !default;
|
|
542
542
|
$inverse-icon-button-background: $inverse-global-muted-background !default;
|
|
543
543
|
$inverse-icon-button-color: $inverse-global-muted-color !default;
|
|
544
|
-
$inverse-icon-button-hover-background:
|
|
544
|
+
$inverse-icon-button-hover-background: fade-in($inverse-icon-button-background, 0.05) !default;
|
|
545
545
|
$inverse-icon-button-hover-color: $inverse-global-color !default;
|
|
546
|
-
$inverse-icon-button-active-background:
|
|
546
|
+
$inverse-icon-button-active-background: fade-in($inverse-icon-button-background, 0.1) !default;
|
|
547
547
|
$inverse-icon-button-active-color: $inverse-global-color !default;
|
|
548
548
|
$iconnav-margin-horizontal: $global-small-margin !default;
|
|
549
549
|
$iconnav-margin-vertical: $iconnav-margin-horizontal !default;
|
|
@@ -853,7 +853,7 @@ $inverse-search-color: $inverse-global-color !default;
|
|
|
853
853
|
$inverse-search-placeholder-color: $inverse-global-muted-color !default;
|
|
854
854
|
$inverse-search-icon-color: $inverse-global-muted-color !default;
|
|
855
855
|
$inverse-search-default-background: $inverse-global-muted-background !default;
|
|
856
|
-
$inverse-search-default-focus-background:
|
|
856
|
+
$inverse-search-default-focus-background: fade-in($inverse-search-default-background, 0.05) !default;
|
|
857
857
|
$inverse-search-navbar-background: transparent !default;
|
|
858
858
|
$inverse-search-large-background: transparent !default;
|
|
859
859
|
$inverse-search-toggle-color: $inverse-global-muted-color !default;
|