uikit 3.13.2-dev.13a8eb3ff → 3.13.2-dev.aa6a91433
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 +9 -0
- package/CHANGELOG.md +6 -0
- package/dist/css/uikit-core-rtl.css +12 -63
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +12 -63
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +12 -63
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +12 -63
- 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 +9 -15
- 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 +21 -36
- 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 +25 -41
- package/dist/js/uikit.min.js +1 -1
- package/package.json +1 -1
- package/src/js/components/tooltip.js +2 -3
- package/src/js/core/drop.js +7 -10
- package/src/js/core/sticky.js +1 -1
- package/src/js/mixin/media.js +4 -4
- package/src/js/mixin/position.js +4 -9
- package/src/js/util/style.js +8 -15
- package/src/less/components/drop.less +1 -10
- package/src/less/components/dropdown.less +1 -10
- package/src/less/components/navbar.less +9 -11
- package/src/less/components/tooltip.less +1 -10
- package/src/scss/components/drop.scss +1 -10
- package/src/scss/components/dropdown.scss +1 -10
- package/src/scss/components/navbar.scss +9 -11
- package/src/scss/components/tooltip.scss +1 -10
- package/src/scss/variables-theme.scss +1 -0
- package/src/scss/variables.scss +1 -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.13.2-dev.
|
|
5
|
+
"version": "3.13.2-dev.aa6a91433",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
|
@@ -35,7 +35,6 @@ export default {
|
|
|
35
35
|
animation: ['uk-animation-scale-up'],
|
|
36
36
|
duration: 100,
|
|
37
37
|
cls: 'uk-active',
|
|
38
|
-
clsPos: 'uk-tooltip',
|
|
39
38
|
},
|
|
40
39
|
|
|
41
40
|
beforeConnect() {
|
|
@@ -91,8 +90,8 @@ export default {
|
|
|
91
90
|
_show() {
|
|
92
91
|
this.tooltip = append(
|
|
93
92
|
this.container,
|
|
94
|
-
`<div class="
|
|
95
|
-
<div class="
|
|
93
|
+
`<div class="uk-${this.$options.name}">
|
|
94
|
+
<div class="uk-${this.$options.name}-inner">${this.title}</div>
|
|
96
95
|
</div>`
|
|
97
96
|
);
|
|
98
97
|
|
package/src/js/core/drop.js
CHANGED
|
@@ -63,7 +63,7 @@ export default {
|
|
|
63
63
|
},
|
|
64
64
|
|
|
65
65
|
connected() {
|
|
66
|
-
this.
|
|
66
|
+
this.clsDrop = this.$props.clsDrop || `uk-${this.$options.name}`;
|
|
67
67
|
addClass(this.$el, this.clsDrop);
|
|
68
68
|
|
|
69
69
|
if (this.toggle && !this.target) {
|
|
@@ -129,7 +129,7 @@ export default {
|
|
|
129
129
|
if (this.isToggled()) {
|
|
130
130
|
this.hide(false);
|
|
131
131
|
} else {
|
|
132
|
-
this.show(toggle
|
|
132
|
+
this.show(toggle?.$el, false);
|
|
133
133
|
}
|
|
134
134
|
},
|
|
135
135
|
},
|
|
@@ -141,7 +141,7 @@ export default {
|
|
|
141
141
|
|
|
142
142
|
handler(e, toggle) {
|
|
143
143
|
e.preventDefault();
|
|
144
|
-
this.show(toggle
|
|
144
|
+
this.show(toggle?.$el);
|
|
145
145
|
},
|
|
146
146
|
},
|
|
147
147
|
|
|
@@ -352,23 +352,20 @@ export default {
|
|
|
352
352
|
},
|
|
353
353
|
|
|
354
354
|
position() {
|
|
355
|
-
const boundary =
|
|
355
|
+
const boundary = query(this.boundary, this.$el) || window;
|
|
356
356
|
removeClass(this.$el, `${this.clsDrop}-stack`);
|
|
357
357
|
toggleClass(this.$el, `${this.clsDrop}-boundary`, this.boundaryAlign);
|
|
358
358
|
|
|
359
359
|
const boundaryOffset = offset(boundary);
|
|
360
|
-
const
|
|
360
|
+
const targetOffset = offset(this.target);
|
|
361
|
+
const alignTo = this.boundaryAlign ? boundaryOffset : targetOffset;
|
|
361
362
|
|
|
362
363
|
if (this.align === 'justify') {
|
|
363
364
|
const prop = this.getAxis() === 'y' ? 'width' : 'height';
|
|
364
365
|
css(this.$el, prop, alignTo[prop]);
|
|
365
366
|
} else if (
|
|
366
|
-
boundary &&
|
|
367
367
|
this.$el.offsetWidth >
|
|
368
|
-
|
|
369
|
-
boundaryOffset.right - alignTo.left,
|
|
370
|
-
alignTo.right - boundaryOffset.left
|
|
371
|
-
)
|
|
368
|
+
Math.max(boundaryOffset.right - alignTo.left, alignTo.right - boundaryOffset.left)
|
|
372
369
|
) {
|
|
373
370
|
addClass(this.$el, `${this.clsDrop}-stack`);
|
|
374
371
|
}
|
package/src/js/core/sticky.js
CHANGED
|
@@ -14,6 +14,7 @@ import {
|
|
|
14
14
|
height as getHeight,
|
|
15
15
|
offset as getOffset,
|
|
16
16
|
getScrollingElement,
|
|
17
|
+
intersectRect,
|
|
17
18
|
isString,
|
|
18
19
|
isVisible,
|
|
19
20
|
noop,
|
|
@@ -29,7 +30,6 @@ import {
|
|
|
29
30
|
toPx,
|
|
30
31
|
trigger,
|
|
31
32
|
within,
|
|
32
|
-
intersectRect,
|
|
33
33
|
} from 'uikit-util';
|
|
34
34
|
|
|
35
35
|
export default {
|
package/src/js/mixin/media.js
CHANGED
package/src/js/mixin/position.js
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import {
|
|
2
2
|
$,
|
|
3
3
|
flipPosition,
|
|
4
|
+
getCssVar,
|
|
4
5
|
offset as getOffset,
|
|
5
6
|
isNumeric,
|
|
6
7
|
isRtl,
|
|
7
8
|
positionAt,
|
|
8
|
-
|
|
9
|
-
toggleClass,
|
|
9
|
+
toPx,
|
|
10
10
|
} from 'uikit-util';
|
|
11
11
|
|
|
12
12
|
export default {
|
|
@@ -14,14 +14,12 @@ export default {
|
|
|
14
14
|
pos: String,
|
|
15
15
|
offset: null,
|
|
16
16
|
flip: Boolean,
|
|
17
|
-
clsPos: String,
|
|
18
17
|
},
|
|
19
18
|
|
|
20
19
|
data: {
|
|
21
20
|
pos: `bottom-${isRtl ? 'right' : 'left'}`,
|
|
22
21
|
flip: true,
|
|
23
22
|
offset: false,
|
|
24
|
-
clsPos: '',
|
|
25
23
|
},
|
|
26
24
|
|
|
27
25
|
connected() {
|
|
@@ -32,13 +30,11 @@ export default {
|
|
|
32
30
|
|
|
33
31
|
methods: {
|
|
34
32
|
positionAt(element, target, boundary) {
|
|
35
|
-
removeClasses(element, `${this.clsPos}-(top|bottom|left|right)(-[a-z]+)?`);
|
|
36
|
-
|
|
37
|
-
let { offset } = this;
|
|
38
33
|
const axis = this.getAxis();
|
|
39
34
|
const dir = this.pos[0];
|
|
40
35
|
const align = this.pos[1];
|
|
41
36
|
|
|
37
|
+
let { offset } = this;
|
|
42
38
|
if (!isNumeric(offset)) {
|
|
43
39
|
const node = $(offset);
|
|
44
40
|
offset = node
|
|
@@ -46,6 +42,7 @@ export default {
|
|
|
46
42
|
getOffset(target)[axis === 'x' ? 'right' : 'bottom']
|
|
47
43
|
: 0;
|
|
48
44
|
}
|
|
45
|
+
offset += toPx(getCssVar('position-margin-offset', this.$el));
|
|
49
46
|
|
|
50
47
|
const { x, y } = positionAt(
|
|
51
48
|
element,
|
|
@@ -62,8 +59,6 @@ export default {
|
|
|
62
59
|
|
|
63
60
|
this.dir = axis === 'x' ? x : y;
|
|
64
61
|
this.align = axis === 'x' ? y : x;
|
|
65
|
-
|
|
66
|
-
toggleClass(element, `${this.clsPos}-${this.dir}-${this.align}`, this.offset === false);
|
|
67
62
|
},
|
|
68
63
|
|
|
69
64
|
getAxis() {
|
package/src/js/util/style.js
CHANGED
|
@@ -37,7 +37,7 @@ export function css(element, property, value, priority = '') {
|
|
|
37
37
|
property = propName(property);
|
|
38
38
|
|
|
39
39
|
if (isUndefined(value)) {
|
|
40
|
-
return
|
|
40
|
+
return toWindow(element).getComputedStyle(element).getPropertyValue(property);
|
|
41
41
|
} else if (!value && !isNumber(value)) {
|
|
42
42
|
element.style.removeProperty(property);
|
|
43
43
|
} else {
|
|
@@ -48,10 +48,9 @@ export function css(element, property, value, priority = '') {
|
|
|
48
48
|
);
|
|
49
49
|
}
|
|
50
50
|
} else if (isArray(property)) {
|
|
51
|
-
const styles = getStyles(element);
|
|
52
51
|
const props = {};
|
|
53
52
|
for (const prop of property) {
|
|
54
|
-
props[prop] =
|
|
53
|
+
props[prop] = css(element, prop);
|
|
55
54
|
}
|
|
56
55
|
return props;
|
|
57
56
|
} else if (isObject(property)) {
|
|
@@ -62,19 +61,9 @@ export function css(element, property, value, priority = '') {
|
|
|
62
61
|
return elements[0];
|
|
63
62
|
}
|
|
64
63
|
|
|
65
|
-
function getStyles(element, pseudoElt) {
|
|
66
|
-
return toWindow(element).getComputedStyle(element, pseudoElt);
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
function getStyle(element, property, pseudoElt) {
|
|
70
|
-
return getStyles(element, pseudoElt)[property];
|
|
71
|
-
}
|
|
72
|
-
|
|
73
64
|
const propertyRe = /^\s*(["'])?(.*?)\1\s*$/;
|
|
74
|
-
export function getCssVar(name) {
|
|
75
|
-
return
|
|
76
|
-
.getPropertyValue(`--uk-${name}`)
|
|
77
|
-
.replace(propertyRe, '$2');
|
|
65
|
+
export function getCssVar(name, element = document.documentElement) {
|
|
66
|
+
return css(element, `--uk-${name}`).replace(propertyRe, '$2');
|
|
78
67
|
}
|
|
79
68
|
|
|
80
69
|
// https://drafts.csswg.org/cssom/#dom-cssstyledeclaration-setproperty
|
|
@@ -83,6 +72,10 @@ export const propName = memoize((name) => vendorPropName(name));
|
|
|
83
72
|
const cssPrefixes = ['webkit', 'moz'];
|
|
84
73
|
|
|
85
74
|
function vendorPropName(name) {
|
|
75
|
+
if (name[0] === '-') {
|
|
76
|
+
return name;
|
|
77
|
+
}
|
|
78
|
+
|
|
86
79
|
name = hyphenate(name);
|
|
87
80
|
|
|
88
81
|
const { style } = document.documentElement;
|
|
@@ -41,6 +41,7 @@
|
|
|
41
41
|
/* 2 */
|
|
42
42
|
position: absolute;
|
|
43
43
|
z-index: @drop-z-index;
|
|
44
|
+
--uk-position-margin-offset: @drop-margin;
|
|
44
45
|
/* 3 */
|
|
45
46
|
box-sizing: border-box;
|
|
46
47
|
width: @drop-width;
|
|
@@ -50,16 +51,6 @@
|
|
|
50
51
|
.uk-drop.uk-open { display: block; }
|
|
51
52
|
|
|
52
53
|
|
|
53
|
-
/* Direction / Alignment modifiers
|
|
54
|
-
========================================================================== */
|
|
55
|
-
|
|
56
|
-
/* Direction */
|
|
57
|
-
[class*='uk-drop-top'] { margin-top: -@drop-margin; }
|
|
58
|
-
[class*='uk-drop-bottom'] { margin-top: @drop-margin; }
|
|
59
|
-
[class*='uk-drop-left'] { margin-left: -@drop-margin; }
|
|
60
|
-
[class*='uk-drop-right'] { margin-left: @drop-margin; }
|
|
61
|
-
|
|
62
|
-
|
|
63
54
|
/* Grid modifiers
|
|
64
55
|
========================================================================== */
|
|
65
56
|
|
|
@@ -53,6 +53,7 @@
|
|
|
53
53
|
/* 2 */
|
|
54
54
|
position: absolute;
|
|
55
55
|
z-index: @dropdown-z-index;
|
|
56
|
+
--uk-position-margin-offset: @dropdown-margin;
|
|
56
57
|
/* 3 */
|
|
57
58
|
box-sizing: border-box;
|
|
58
59
|
min-width: @dropdown-min-width;
|
|
@@ -120,16 +121,6 @@
|
|
|
120
121
|
.uk-dropdown-nav .uk-nav-sub li.uk-active > a { color: @dropdown-nav-sublist-item-hover-color; }
|
|
121
122
|
|
|
122
123
|
|
|
123
|
-
/* Direction / Alignment modifiers
|
|
124
|
-
========================================================================== */
|
|
125
|
-
|
|
126
|
-
/* Direction */
|
|
127
|
-
[class*='uk-dropdown-top'] { margin-top: -@dropdown-margin; }
|
|
128
|
-
[class*='uk-dropdown-bottom'] { margin-top: @dropdown-margin; }
|
|
129
|
-
[class*='uk-dropdown-left'] { margin-left: -@dropdown-margin; }
|
|
130
|
-
[class*='uk-dropdown-right'] { margin-left: @dropdown-margin; }
|
|
131
|
-
|
|
132
|
-
|
|
133
124
|
/* Grid modifiers
|
|
134
125
|
========================================================================== */
|
|
135
126
|
|
|
@@ -66,6 +66,7 @@
|
|
|
66
66
|
|
|
67
67
|
@navbar-dropdown-dropbar-margin-top: 0;
|
|
68
68
|
@navbar-dropdown-dropbar-margin-bottom: @navbar-dropdown-dropbar-margin-top;
|
|
69
|
+
@navbar-dropdown-dropbar-padding: @navbar-nav-item-padding-horizontal;
|
|
69
70
|
|
|
70
71
|
@navbar-dropdown-nav-item-color: @global-muted-color;
|
|
71
72
|
@navbar-dropdown-nav-item-hover-color: @global-color;
|
|
@@ -348,6 +349,7 @@
|
|
|
348
349
|
/* 2 */
|
|
349
350
|
position: absolute;
|
|
350
351
|
z-index: @navbar-dropdown-z-index;
|
|
352
|
+
--uk-position-margin-offset: @navbar-dropdown-margin;
|
|
351
353
|
/* 3 */
|
|
352
354
|
box-sizing: border-box;
|
|
353
355
|
width: @navbar-dropdown-width;
|
|
@@ -361,16 +363,6 @@
|
|
|
361
363
|
/* Show */
|
|
362
364
|
.uk-navbar-dropdown.uk-open { display: block; }
|
|
363
365
|
|
|
364
|
-
/*
|
|
365
|
-
* Direction / Alignment modifiers
|
|
366
|
-
*/
|
|
367
|
-
|
|
368
|
-
/* Direction */
|
|
369
|
-
[class*='uk-navbar-dropdown-top'] { margin-top: -@navbar-dropdown-margin; }
|
|
370
|
-
[class*='uk-navbar-dropdown-bottom'] { margin-top: @navbar-dropdown-margin; }
|
|
371
|
-
[class*='uk-navbar-dropdown-left'] { margin-left: -@navbar-dropdown-margin; }
|
|
372
|
-
[class*='uk-navbar-dropdown-right'] { margin-left: @navbar-dropdown-margin; }
|
|
373
|
-
|
|
374
366
|
/*
|
|
375
367
|
* Grid
|
|
376
368
|
* Adopts `uk-grid`
|
|
@@ -397,11 +389,17 @@
|
|
|
397
389
|
|
|
398
390
|
/*
|
|
399
391
|
* Dropbar modifier
|
|
392
|
+
* 1. Set position
|
|
393
|
+
* 2. Bottom padding for dropbar
|
|
394
|
+
* 3. Horizontal padding
|
|
400
395
|
*/
|
|
401
396
|
|
|
402
397
|
.uk-navbar-dropdown-dropbar {
|
|
403
|
-
|
|
398
|
+
/* 1 */
|
|
399
|
+
--uk-position-margin-offset: @navbar-dropdown-dropbar-margin-top;
|
|
400
|
+
/* 2 */
|
|
404
401
|
margin-bottom: @navbar-dropdown-dropbar-margin-bottom;
|
|
402
|
+
padding: @navbar-dropdown-dropbar-padding;
|
|
405
403
|
.hook-navbar-dropdown-dropbar();
|
|
406
404
|
}
|
|
407
405
|
|
|
@@ -50,6 +50,7 @@
|
|
|
50
50
|
/* 2 */
|
|
51
51
|
position: absolute;
|
|
52
52
|
z-index: @tooltip-z-index;
|
|
53
|
+
--uk-position-margin-offset: @dropdown-margin;
|
|
53
54
|
/* 3 */
|
|
54
55
|
top: 0;
|
|
55
56
|
/* 4 */
|
|
@@ -68,16 +69,6 @@
|
|
|
68
69
|
.uk-tooltip.uk-active { display: block; }
|
|
69
70
|
|
|
70
71
|
|
|
71
|
-
/* Direction / Alignment modifiers
|
|
72
|
-
========================================================================== */
|
|
73
|
-
|
|
74
|
-
/* Direction */
|
|
75
|
-
[class*='uk-tooltip-top'] { margin-top: -@tooltip-margin; }
|
|
76
|
-
[class*='uk-tooltip-bottom'] { margin-top: @tooltip-margin; }
|
|
77
|
-
[class*='uk-tooltip-left'] { margin-left: -@tooltip-margin; }
|
|
78
|
-
[class*='uk-tooltip-right'] { margin-left: @tooltip-margin; }
|
|
79
|
-
|
|
80
|
-
|
|
81
72
|
// Hooks
|
|
82
73
|
// ========================================================================
|
|
83
74
|
|
|
@@ -41,6 +41,7 @@ $drop-margin: $global-margin !default;
|
|
|
41
41
|
/* 2 */
|
|
42
42
|
position: absolute;
|
|
43
43
|
z-index: $drop-z-index;
|
|
44
|
+
--uk-position-margin-offset: #{$drop-margin};
|
|
44
45
|
/* 3 */
|
|
45
46
|
box-sizing: border-box;
|
|
46
47
|
width: $drop-width;
|
|
@@ -50,16 +51,6 @@ $drop-margin: $global-margin !default;
|
|
|
50
51
|
.uk-drop.uk-open { display: block; }
|
|
51
52
|
|
|
52
53
|
|
|
53
|
-
/* Direction / Alignment modifiers
|
|
54
|
-
========================================================================== */
|
|
55
|
-
|
|
56
|
-
/* Direction */
|
|
57
|
-
[class*='uk-drop-top'] { margin-top: (-$drop-margin); }
|
|
58
|
-
[class*='uk-drop-bottom'] { margin-top: $drop-margin; }
|
|
59
|
-
[class*='uk-drop-left'] { margin-left: (-$drop-margin); }
|
|
60
|
-
[class*='uk-drop-right'] { margin-left: $drop-margin; }
|
|
61
|
-
|
|
62
|
-
|
|
63
54
|
/* Grid modifiers
|
|
64
55
|
========================================================================== */
|
|
65
56
|
|
|
@@ -53,6 +53,7 @@ $dropdown-nav-sublist-item-hover-color: $global-color !default;
|
|
|
53
53
|
/* 2 */
|
|
54
54
|
position: absolute;
|
|
55
55
|
z-index: $dropdown-z-index;
|
|
56
|
+
--uk-position-margin-offset: #{$dropdown-margin};
|
|
56
57
|
/* 3 */
|
|
57
58
|
box-sizing: border-box;
|
|
58
59
|
min-width: $dropdown-min-width;
|
|
@@ -120,16 +121,6 @@ $dropdown-nav-sublist-item-hover-color: $global-color !default;
|
|
|
120
121
|
.uk-dropdown-nav .uk-nav-sub li.uk-active > a { color: $dropdown-nav-sublist-item-hover-color; }
|
|
121
122
|
|
|
122
123
|
|
|
123
|
-
/* Direction / Alignment modifiers
|
|
124
|
-
========================================================================== */
|
|
125
|
-
|
|
126
|
-
/* Direction */
|
|
127
|
-
[class*='uk-dropdown-top'] { margin-top: (-$dropdown-margin); }
|
|
128
|
-
[class*='uk-dropdown-bottom'] { margin-top: $dropdown-margin; }
|
|
129
|
-
[class*='uk-dropdown-left'] { margin-left: (-$dropdown-margin); }
|
|
130
|
-
[class*='uk-dropdown-right'] { margin-left: $dropdown-margin; }
|
|
131
|
-
|
|
132
|
-
|
|
133
124
|
/* Grid modifiers
|
|
134
125
|
========================================================================== */
|
|
135
126
|
|
|
@@ -66,6 +66,7 @@ $navbar-dropdown-grid-gutter-vertical: $navbar-dropdown-grid-gutter-ho
|
|
|
66
66
|
|
|
67
67
|
$navbar-dropdown-dropbar-margin-top: 0 !default;
|
|
68
68
|
$navbar-dropdown-dropbar-margin-bottom: $navbar-dropdown-dropbar-margin-top !default;
|
|
69
|
+
$navbar-dropdown-dropbar-padding: $navbar-nav-item-padding-horizontal !default;
|
|
69
70
|
|
|
70
71
|
$navbar-dropdown-nav-item-color: $global-muted-color !default;
|
|
71
72
|
$navbar-dropdown-nav-item-hover-color: $global-color !default;
|
|
@@ -348,6 +349,7 @@ $navbar-dropbar-z-index: $global-z-index - 20 !default;
|
|
|
348
349
|
/* 2 */
|
|
349
350
|
position: absolute;
|
|
350
351
|
z-index: $navbar-dropdown-z-index;
|
|
352
|
+
--uk-position-margin-offset: #{$navbar-dropdown-margin};
|
|
351
353
|
/* 3 */
|
|
352
354
|
box-sizing: border-box;
|
|
353
355
|
width: $navbar-dropdown-width;
|
|
@@ -361,16 +363,6 @@ $navbar-dropbar-z-index: $global-z-index - 20 !default;
|
|
|
361
363
|
/* Show */
|
|
362
364
|
.uk-navbar-dropdown.uk-open { display: block; }
|
|
363
365
|
|
|
364
|
-
/*
|
|
365
|
-
* Direction / Alignment modifiers
|
|
366
|
-
*/
|
|
367
|
-
|
|
368
|
-
/* Direction */
|
|
369
|
-
[class*='uk-navbar-dropdown-top'] { margin-top: (-$navbar-dropdown-margin); }
|
|
370
|
-
[class*='uk-navbar-dropdown-bottom'] { margin-top: $navbar-dropdown-margin; }
|
|
371
|
-
[class*='uk-navbar-dropdown-left'] { margin-left: (-$navbar-dropdown-margin); }
|
|
372
|
-
[class*='uk-navbar-dropdown-right'] { margin-left: $navbar-dropdown-margin; }
|
|
373
|
-
|
|
374
366
|
/*
|
|
375
367
|
* Grid
|
|
376
368
|
* Adopts `uk-grid`
|
|
@@ -397,11 +389,17 @@ $navbar-dropbar-z-index: $global-z-index - 20 !default;
|
|
|
397
389
|
|
|
398
390
|
/*
|
|
399
391
|
* Dropbar modifier
|
|
392
|
+
* 1. Set position
|
|
393
|
+
* 2. Bottom padding for dropbar
|
|
394
|
+
* 3. Horizontal padding
|
|
400
395
|
*/
|
|
401
396
|
|
|
402
397
|
.uk-navbar-dropdown-dropbar {
|
|
403
|
-
|
|
398
|
+
/* 1 */
|
|
399
|
+
--uk-position-margin-offset: #{$navbar-dropdown-dropbar-margin-top};
|
|
400
|
+
/* 2 */
|
|
404
401
|
margin-bottom: $navbar-dropdown-dropbar-margin-bottom;
|
|
402
|
+
padding: $navbar-dropdown-dropbar-padding;
|
|
405
403
|
@if(mixin-exists(hook-navbar-dropdown-dropbar)) {@include hook-navbar-dropdown-dropbar();}
|
|
406
404
|
}
|
|
407
405
|
|
|
@@ -50,6 +50,7 @@ $tooltip-margin: 10px !default;
|
|
|
50
50
|
/* 2 */
|
|
51
51
|
position: absolute;
|
|
52
52
|
z-index: $tooltip-z-index;
|
|
53
|
+
--uk-position-margin-offset: #{$dropdown-margin};
|
|
53
54
|
/* 3 */
|
|
54
55
|
top: 0;
|
|
55
56
|
/* 4 */
|
|
@@ -68,16 +69,6 @@ $tooltip-margin: 10px !default;
|
|
|
68
69
|
.uk-tooltip.uk-active { display: block; }
|
|
69
70
|
|
|
70
71
|
|
|
71
|
-
/* Direction / Alignment modifiers
|
|
72
|
-
========================================================================== */
|
|
73
|
-
|
|
74
|
-
/* Direction */
|
|
75
|
-
[class*='uk-tooltip-top'] { margin-top: (-$tooltip-margin); }
|
|
76
|
-
[class*='uk-tooltip-bottom'] { margin-top: $tooltip-margin; }
|
|
77
|
-
[class*='uk-tooltip-left'] { margin-left: (-$tooltip-margin); }
|
|
78
|
-
[class*='uk-tooltip-right'] { margin-left: $tooltip-margin; }
|
|
79
|
-
|
|
80
|
-
|
|
81
72
|
// Hooks
|
|
82
73
|
// ========================================================================
|
|
83
74
|
|
|
@@ -748,6 +748,7 @@ $navbar-dropdown-grid-gutter-horizontal: ($navbar-dropdown-padding * 2) !default
|
|
|
748
748
|
$navbar-dropdown-grid-gutter-vertical: $navbar-dropdown-grid-gutter-horizontal !default;
|
|
749
749
|
$navbar-dropdown-dropbar-margin-top: 0 !default;
|
|
750
750
|
$navbar-dropdown-dropbar-margin-bottom: $navbar-dropdown-dropbar-margin-top !default;
|
|
751
|
+
$navbar-dropdown-dropbar-padding: $navbar-nav-item-padding-horizontal !default;
|
|
751
752
|
$navbar-dropdown-nav-item-color: $global-muted-color !default;
|
|
752
753
|
$navbar-dropdown-nav-item-hover-color: $global-color !default;
|
|
753
754
|
$navbar-dropdown-nav-item-active-color: $global-emphasis-color !default;
|
package/src/scss/variables.scss
CHANGED
|
@@ -746,6 +746,7 @@ $navbar-dropdown-grid-gutter-horizontal: $global-gutter !default;
|
|
|
746
746
|
$navbar-dropdown-grid-gutter-vertical: $navbar-dropdown-grid-gutter-horizontal !default;
|
|
747
747
|
$navbar-dropdown-dropbar-margin-top: 0 !default;
|
|
748
748
|
$navbar-dropdown-dropbar-margin-bottom: $navbar-dropdown-dropbar-margin-top !default;
|
|
749
|
+
$navbar-dropdown-dropbar-padding: $navbar-nav-item-padding-horizontal !default;
|
|
749
750
|
$navbar-dropdown-nav-item-color: $global-muted-color !default;
|
|
750
751
|
$navbar-dropdown-nav-item-hover-color: $global-color !default;
|
|
751
752
|
$navbar-dropdown-nav-item-active-color: $global-emphasis-color !default;
|