uikit 3.7.7-dev.372404499 → 3.8.1-dev.3a43322ca
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 +27 -5
- package/dist/css/uikit-core-rtl.css +332 -840
- package/dist/css/uikit-core-rtl.min.css +1 -1
- package/dist/css/uikit-core.css +332 -840
- package/dist/css/uikit-core.min.css +1 -1
- package/dist/css/uikit-rtl.css +364 -848
- package/dist/css/uikit-rtl.min.css +1 -1
- package/dist/css/uikit.css +364 -848
- 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 +17 -8
- package/dist/js/uikit-core.min.js +2 -2
- package/dist/js/uikit-icons.js +1 -1
- package/dist/js/uikit-icons.min.js +1 -1
- package/dist/js/uikit.js +17 -8
- package/dist/js/uikit.min.js +2 -2
- package/package.json +1 -1
- package/src/js/util/viewport.js +13 -7
- package/src/less/components/accordion.less +3 -6
- package/src/less/components/alert.less +2 -3
- package/src/less/components/animation.less +69 -216
- package/src/less/components/badge.less +2 -5
- package/src/less/components/base.less +42 -11
- package/src/less/components/breadcrumb.less +3 -5
- package/src/less/components/button.less +17 -36
- package/src/less/components/close.less +3 -6
- package/src/less/components/cover.less +11 -6
- package/src/less/components/dotnav.less +3 -6
- package/src/less/components/dropdown.less +1 -3
- package/src/less/components/icon.less +5 -11
- package/src/less/components/iconnav.less +3 -6
- package/src/less/components/lightbox.less +11 -7
- package/src/less/components/link.less +6 -14
- package/src/less/components/marker.less +3 -6
- package/src/less/components/nav.less +10 -24
- package/src/less/components/navbar.less +6 -15
- package/src/less/components/padding.less +1 -1
- package/src/less/components/pagination.less +3 -5
- package/src/less/components/position.less +45 -82
- package/src/less/components/search.less +3 -11
- package/src/less/components/slidenav.less +3 -6
- package/src/less/components/slider.less +0 -4
- package/src/less/components/slideshow.less +0 -4
- package/src/less/components/subnav.less +6 -11
- package/src/less/components/tab.less +3 -5
- package/src/less/components/thumbnav.less +3 -6
- package/src/less/components/totop.less +3 -6
- package/src/less/components/transition.less +48 -40
- package/src/less/components/utility.less +7 -10
- package/src/less/components/visibility.less +16 -45
- package/src/less/theme/button.less +0 -3
- package/src/less/theme/form.less +1 -1
- package/src/less/theme/table.less +9 -1
- package/src/scss/components/accordion.scss +2 -4
- package/src/scss/components/alert.scss +2 -3
- package/src/scss/components/animation.scss +69 -216
- package/src/scss/components/badge.scss +1 -3
- package/src/scss/components/base.scss +34 -9
- package/src/scss/components/breadcrumb.scss +2 -3
- package/src/scss/components/button.scss +12 -25
- package/src/scss/components/close.scss +2 -4
- package/src/scss/components/cover.scss +11 -6
- package/src/scss/components/dotnav.scss +2 -4
- package/src/scss/components/dropdown.scss +1 -3
- package/src/scss/components/icon.scss +3 -7
- package/src/scss/components/iconnav.scss +2 -4
- package/src/scss/components/lightbox.scss +11 -7
- package/src/scss/components/link.scss +3 -8
- package/src/scss/components/marker.scss +2 -4
- package/src/scss/components/nav.scss +6 -16
- package/src/scss/components/navbar.scss +6 -13
- package/src/scss/components/padding.scss +1 -1
- package/src/scss/components/pagination.scss +2 -3
- package/src/scss/components/position.scss +45 -82
- package/src/scss/components/search.scss +2 -9
- package/src/scss/components/slidenav.scss +2 -4
- package/src/scss/components/slider.scss +0 -4
- package/src/scss/components/slideshow.scss +0 -4
- package/src/scss/components/subnav.scss +4 -7
- package/src/scss/components/tab.scss +2 -3
- package/src/scss/components/thumbnav.scss +2 -4
- package/src/scss/components/totop.scss +2 -4
- package/src/scss/components/transition.scss +48 -40
- package/src/scss/components/utility.scss +6 -8
- package/src/scss/components/visibility.scss +16 -45
- package/src/scss/mixins-theme.scss +42 -101
- package/src/scss/mixins.scss +38 -66
- package/src/scss/theme/button.scss +0 -2
- package/src/scss/theme/form.scss +1 -1
- package/src/scss/theme/table.scss +2 -1
- package/src/scss/variables-theme.scss +12 -6
- package/src/scss/variables.scss +11 -5
- package/tests/scroll.html +65 -1
- package/tests/transition.html +4 -10
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.
|
|
5
|
+
"version": "3.8.1-dev.3a43322ca",
|
|
6
6
|
"main": "dist/js/uikit.js",
|
|
7
7
|
"style": "dist/css/uikit.css",
|
|
8
8
|
"sideEffects": [
|
package/src/js/util/viewport.js
CHANGED
|
@@ -37,25 +37,31 @@ export function scrollTop(element, top) {
|
|
|
37
37
|
export function scrollIntoView(element, {offset: offsetBy = 0} = {}) {
|
|
38
38
|
|
|
39
39
|
const parents = isVisible(element) ? scrollParents(element) : [];
|
|
40
|
-
let diff = 0;
|
|
41
40
|
return parents.reduce((fn, scrollElement, i) => {
|
|
42
41
|
|
|
43
|
-
const {scrollTop, scrollHeight} = scrollElement;
|
|
42
|
+
const {scrollTop, scrollHeight, offsetHeight} = scrollElement;
|
|
44
43
|
const maxScroll = scrollHeight - getViewportClientHeight(scrollElement);
|
|
44
|
+
const {height: elHeight, top: elTop} = offset(parents[i - 1] || element);
|
|
45
45
|
|
|
46
46
|
let top = Math.ceil(
|
|
47
|
-
|
|
47
|
+
elTop
|
|
48
48
|
- offset(getViewport(scrollElement)).top
|
|
49
49
|
- offsetBy
|
|
50
|
-
+ diff
|
|
51
50
|
+ scrollTop
|
|
52
51
|
);
|
|
53
52
|
|
|
53
|
+
if (offsetBy > 0 && offsetHeight < elHeight + offsetBy) {
|
|
54
|
+
top += offsetBy;
|
|
55
|
+
} else {
|
|
56
|
+
offsetBy = 0;
|
|
57
|
+
}
|
|
58
|
+
|
|
54
59
|
if (top > maxScroll) {
|
|
55
|
-
|
|
60
|
+
offsetBy -= top - maxScroll;
|
|
56
61
|
top = maxScroll;
|
|
57
|
-
} else {
|
|
58
|
-
|
|
62
|
+
} else if (top < 0) {
|
|
63
|
+
offsetBy -= top;
|
|
64
|
+
top = 0;
|
|
59
65
|
}
|
|
60
66
|
|
|
61
67
|
return () => scrollTo(scrollElement, top - scrollTop).then(fn);
|
|
@@ -55,12 +55,10 @@
|
|
|
55
55
|
.hook-accordion-title;
|
|
56
56
|
}
|
|
57
57
|
|
|
58
|
-
/* Hover
|
|
59
|
-
.uk-accordion-title:hover
|
|
60
|
-
.uk-accordion-title:focus {
|
|
58
|
+
/* Hover */
|
|
59
|
+
.uk-accordion-title:hover {
|
|
61
60
|
color: @accordion-title-hover-color;
|
|
62
61
|
text-decoration: none;
|
|
63
|
-
outline: none;
|
|
64
62
|
.hook-accordion-title-hover;
|
|
65
63
|
}
|
|
66
64
|
|
|
@@ -111,8 +109,7 @@
|
|
|
111
109
|
.hook-inverse-accordion-title;
|
|
112
110
|
}
|
|
113
111
|
|
|
114
|
-
.uk-accordion-title:hover
|
|
115
|
-
.uk-accordion-title:focus {
|
|
112
|
+
.uk-accordion-title:hover {
|
|
116
113
|
color: @inverse-accordion-title-hover-color;
|
|
117
114
|
.hook-inverse-accordion-title-hover;
|
|
118
115
|
}
|
|
@@ -40,11 +40,7 @@
|
|
|
40
40
|
Component: Animation
|
|
41
41
|
========================================================================== */
|
|
42
42
|
|
|
43
|
-
[class*='uk-animation-'] {
|
|
44
|
-
animation-duration: @animation-duration;
|
|
45
|
-
animation-timing-function: ease-out;
|
|
46
|
-
animation-fill-mode: both;
|
|
47
|
-
}
|
|
43
|
+
[class*='uk-animation-'] { animation: @animation-duration ease-out both; }
|
|
48
44
|
|
|
49
45
|
|
|
50
46
|
/* Animations
|
|
@@ -64,42 +60,42 @@
|
|
|
64
60
|
* Scale
|
|
65
61
|
*/
|
|
66
62
|
|
|
67
|
-
.uk-animation-scale-up { animation-name: uk-fade-scale-
|
|
68
|
-
.uk-animation-scale-down { animation-name: uk-fade-scale-
|
|
63
|
+
.uk-animation-scale-up { animation-name: uk-fade, uk-scale-up; }
|
|
64
|
+
.uk-animation-scale-down { animation-name: uk-fade, uk-scale-down; }
|
|
69
65
|
|
|
70
66
|
/*
|
|
71
67
|
* Slide
|
|
72
68
|
*/
|
|
73
69
|
|
|
74
|
-
.uk-animation-slide-top { animation-name: uk-fade-top; }
|
|
75
|
-
.uk-animation-slide-bottom { animation-name: uk-fade-bottom; }
|
|
76
|
-
.uk-animation-slide-left { animation-name: uk-fade-left; }
|
|
77
|
-
.uk-animation-slide-right { animation-name: uk-fade-right; }
|
|
70
|
+
.uk-animation-slide-top { animation-name: uk-fade, uk-slide-top; }
|
|
71
|
+
.uk-animation-slide-bottom { animation-name: uk-fade, uk-slide-bottom; }
|
|
72
|
+
.uk-animation-slide-left { animation-name: uk-fade, uk-slide-left; }
|
|
73
|
+
.uk-animation-slide-right { animation-name: uk-fade, uk-slide-right; }
|
|
78
74
|
|
|
79
75
|
/*
|
|
80
76
|
* Slide Small
|
|
81
77
|
*/
|
|
82
78
|
|
|
83
|
-
.uk-animation-slide-top-small { animation-name: uk-fade-top-small; }
|
|
84
|
-
.uk-animation-slide-bottom-small { animation-name: uk-fade-bottom-small; }
|
|
85
|
-
.uk-animation-slide-left-small { animation-name: uk-fade-left-small; }
|
|
86
|
-
.uk-animation-slide-right-small { animation-name: uk-fade-right-small; }
|
|
79
|
+
.uk-animation-slide-top-small { animation-name: uk-fade, uk-slide-top-small; }
|
|
80
|
+
.uk-animation-slide-bottom-small { animation-name: uk-fade, uk-slide-bottom-small; }
|
|
81
|
+
.uk-animation-slide-left-small { animation-name: uk-fade, uk-slide-left-small; }
|
|
82
|
+
.uk-animation-slide-right-small { animation-name: uk-fade, uk-slide-right-small; }
|
|
87
83
|
|
|
88
84
|
/*
|
|
89
85
|
* Slide Medium
|
|
90
86
|
*/
|
|
91
|
-
|
|
92
|
-
.uk-animation-slide-top-medium { animation-name: uk-fade-top-medium; }
|
|
93
|
-
.uk-animation-slide-bottom-medium { animation-name: uk-fade-bottom-medium; }
|
|
94
|
-
.uk-animation-slide-left-medium { animation-name: uk-fade-left-medium; }
|
|
95
|
-
.uk-animation-slide-right-medium { animation-name: uk-fade-right-medium; }
|
|
87
|
+
|
|
88
|
+
.uk-animation-slide-top-medium { animation-name: uk-fade, uk-slide-top-medium; }
|
|
89
|
+
.uk-animation-slide-bottom-medium { animation-name: uk-fade, uk-slide-bottom-medium; }
|
|
90
|
+
.uk-animation-slide-left-medium { animation-name: uk-fade, uk-slide-left-medium; }
|
|
91
|
+
.uk-animation-slide-right-medium { animation-name: uk-fade, uk-slide-right-medium; }
|
|
96
92
|
|
|
97
93
|
/*
|
|
98
94
|
* Kenburns
|
|
99
95
|
*/
|
|
100
96
|
|
|
101
97
|
.uk-animation-kenburns {
|
|
102
|
-
animation-name: uk-
|
|
98
|
+
animation-name: uk-kenburns;
|
|
103
99
|
animation-duration: @animation-kenburns-duration;
|
|
104
100
|
}
|
|
105
101
|
|
|
@@ -119,15 +115,15 @@
|
|
|
119
115
|
|
|
120
116
|
.uk-animation-stroke {
|
|
121
117
|
animation-name: uk-stroke;
|
|
122
|
-
stroke-dasharray: var(--uk-animation-stroke);
|
|
123
118
|
animation-duration: @animation-stroke-duration;
|
|
119
|
+
stroke-dasharray: var(--uk-animation-stroke);
|
|
124
120
|
}
|
|
125
121
|
|
|
126
122
|
|
|
127
123
|
/* Direction modifier
|
|
128
124
|
========================================================================== */
|
|
129
125
|
|
|
130
|
-
|
|
126
|
+
.uk-animation-reverse {
|
|
131
127
|
animation-direction: reverse;
|
|
132
128
|
animation-timing-function: ease-in;
|
|
133
129
|
}
|
|
@@ -136,33 +132,14 @@
|
|
|
136
132
|
/* Duration modifier
|
|
137
133
|
========================================================================== */
|
|
138
134
|
|
|
139
|
-
|
|
135
|
+
.uk-animation-fast { animation-duration: @animation-fast-duration; }
|
|
140
136
|
|
|
141
137
|
|
|
142
|
-
/* Toggle
|
|
143
|
-
========================================================================== */
|
|
144
|
-
|
|
145
|
-
/*
|
|
146
|
-
* The toggle is triggered on touch devices using `:focus` and tabindex
|
|
147
|
-
*/
|
|
138
|
+
/* Toggle animation based on the State of the Parent Element
|
|
139
|
+
========================================================================== */
|
|
148
140
|
|
|
149
141
|
.uk-animation-toggle:not(:hover):not(:focus) [class*='uk-animation-'] { animation-name: none; }
|
|
150
142
|
|
|
151
|
-
/*
|
|
152
|
-
* 1. Prevent tab highlighting on iOS.
|
|
153
|
-
*/
|
|
154
|
-
|
|
155
|
-
.uk-animation-toggle {
|
|
156
|
-
/* 1 */
|
|
157
|
-
-webkit-tap-highlight-color: transparent;
|
|
158
|
-
}
|
|
159
|
-
|
|
160
|
-
/*
|
|
161
|
-
* Remove outline for `tabindex`
|
|
162
|
-
*/
|
|
163
|
-
|
|
164
|
-
.uk-animation-toggle:focus { outline: none; }
|
|
165
|
-
|
|
166
143
|
|
|
167
144
|
/* Keyframes used by animation classes
|
|
168
145
|
========================================================================== */
|
|
@@ -177,220 +154,96 @@
|
|
|
177
154
|
}
|
|
178
155
|
|
|
179
156
|
/*
|
|
180
|
-
*
|
|
157
|
+
* Scale
|
|
181
158
|
*/
|
|
182
159
|
|
|
183
|
-
@keyframes uk-
|
|
184
|
-
0% {
|
|
185
|
-
|
|
186
|
-
transform: translateY(-100%);
|
|
187
|
-
}
|
|
188
|
-
100% {
|
|
189
|
-
opacity: 1;
|
|
190
|
-
transform: translateY(0);
|
|
191
|
-
}
|
|
160
|
+
@keyframes uk-scale-up {
|
|
161
|
+
0% { transform: scale(0.9); }
|
|
162
|
+
100% { transform: scale(1); }
|
|
192
163
|
}
|
|
193
164
|
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
@keyframes uk-fade-bottom {
|
|
199
|
-
0% {
|
|
200
|
-
opacity: 0;
|
|
201
|
-
transform: translateY(100%);
|
|
202
|
-
}
|
|
203
|
-
100% {
|
|
204
|
-
opacity: 1;
|
|
205
|
-
transform: translateY(0);
|
|
206
|
-
}
|
|
165
|
+
@keyframes uk-scale-down {
|
|
166
|
+
0% { transform: scale(1.1); }
|
|
167
|
+
100% { transform: scale(1); }
|
|
207
168
|
}
|
|
208
169
|
|
|
209
170
|
/*
|
|
210
|
-
* Slide
|
|
171
|
+
* Slide
|
|
211
172
|
*/
|
|
212
173
|
|
|
213
|
-
@keyframes uk-
|
|
214
|
-
0% {
|
|
215
|
-
|
|
216
|
-
transform: translateX(-100%);
|
|
217
|
-
}
|
|
218
|
-
100% {
|
|
219
|
-
opacity: 1;
|
|
220
|
-
transform: translateX(0);
|
|
221
|
-
}
|
|
174
|
+
@keyframes uk-slide-top {
|
|
175
|
+
0% { transform: translateY(-100%); }
|
|
176
|
+
100% { transform: translateY(0); }
|
|
222
177
|
}
|
|
223
178
|
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
@keyframes uk-fade-right {
|
|
229
|
-
0% {
|
|
230
|
-
opacity: 0;
|
|
231
|
-
transform: translateX(100%);
|
|
232
|
-
}
|
|
233
|
-
100% {
|
|
234
|
-
opacity: 1;
|
|
235
|
-
transform: translateX(0);
|
|
236
|
-
}
|
|
179
|
+
@keyframes uk-slide-bottom {
|
|
180
|
+
0% { transform: translateY(100%); }
|
|
181
|
+
100% { transform: translateY(0); }
|
|
237
182
|
}
|
|
238
183
|
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
@keyframes uk-fade-top-small {
|
|
244
|
-
0% {
|
|
245
|
-
opacity: 0;
|
|
246
|
-
transform: translateY(-@animation-slide-small-translate);
|
|
247
|
-
}
|
|
248
|
-
100% {
|
|
249
|
-
opacity: 1;
|
|
250
|
-
transform: translateY(0);
|
|
251
|
-
}
|
|
184
|
+
@keyframes uk-slide-left {
|
|
185
|
+
0% { transform: translateX(-100%); }
|
|
186
|
+
100% { transform: translateX(0); }
|
|
252
187
|
}
|
|
253
188
|
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
@keyframes uk-fade-bottom-small {
|
|
259
|
-
0% {
|
|
260
|
-
opacity: 0;
|
|
261
|
-
transform: translateY(@animation-slide-small-translate);
|
|
262
|
-
}
|
|
263
|
-
100% {
|
|
264
|
-
opacity: 1;
|
|
265
|
-
transform: translateY(0);
|
|
266
|
-
}
|
|
189
|
+
@keyframes uk-slide-right {
|
|
190
|
+
0% { transform: translateX(100%); }
|
|
191
|
+
100% { transform: translateX(0); }
|
|
267
192
|
}
|
|
268
193
|
|
|
269
194
|
/*
|
|
270
|
-
* Slide
|
|
195
|
+
* Slide Small
|
|
271
196
|
*/
|
|
272
197
|
|
|
273
|
-
@keyframes uk-
|
|
274
|
-
0% {
|
|
275
|
-
|
|
276
|
-
transform: translateX(-@animation-slide-small-translate);
|
|
277
|
-
}
|
|
278
|
-
100% {
|
|
279
|
-
opacity: 1;
|
|
280
|
-
transform: translateX(0);
|
|
281
|
-
}
|
|
198
|
+
@keyframes uk-slide-top-small {
|
|
199
|
+
0% { transform: translateY(-@animation-slide-small-translate); }
|
|
200
|
+
100% { transform: translateY(0); }
|
|
282
201
|
}
|
|
283
202
|
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
@keyframes uk-fade-right-small {
|
|
289
|
-
0% {
|
|
290
|
-
opacity: 0;
|
|
291
|
-
transform: translateX(@animation-slide-small-translate);
|
|
292
|
-
}
|
|
293
|
-
100% {
|
|
294
|
-
opacity: 1;
|
|
295
|
-
transform: translateX(0);
|
|
296
|
-
}
|
|
203
|
+
@keyframes uk-slide-bottom-small {
|
|
204
|
+
0% { transform: translateY(@animation-slide-small-translate); }
|
|
205
|
+
100% { transform: translateY(0); }
|
|
297
206
|
}
|
|
298
207
|
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
@keyframes uk-fade-top-medium {
|
|
304
|
-
0% {
|
|
305
|
-
opacity: 0;
|
|
306
|
-
transform: translateY(-@animation-slide-medium-translate);
|
|
307
|
-
}
|
|
308
|
-
100% {
|
|
309
|
-
opacity: 1;
|
|
310
|
-
transform: translateY(0);
|
|
311
|
-
}
|
|
208
|
+
@keyframes uk-slide-left-small {
|
|
209
|
+
0% { transform: translateX(-@animation-slide-small-translate); }
|
|
210
|
+
100% { transform: translateX(0); }
|
|
312
211
|
}
|
|
313
212
|
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
@keyframes uk-fade-bottom-medium {
|
|
319
|
-
0% {
|
|
320
|
-
opacity: 0;
|
|
321
|
-
transform: translateY(@animation-slide-medium-translate);
|
|
322
|
-
}
|
|
323
|
-
100% {
|
|
324
|
-
opacity: 1;
|
|
325
|
-
transform: translateY(0);
|
|
326
|
-
}
|
|
213
|
+
@keyframes uk-slide-right-small {
|
|
214
|
+
0% { transform: translateX(@animation-slide-small-translate); }
|
|
215
|
+
100% { transform: translateX(0); }
|
|
327
216
|
}
|
|
328
217
|
|
|
329
218
|
/*
|
|
330
|
-
* Slide
|
|
219
|
+
* Slide Medium
|
|
331
220
|
*/
|
|
332
221
|
|
|
333
|
-
@keyframes uk-
|
|
334
|
-
0% {
|
|
335
|
-
|
|
336
|
-
transform: translateX(-@animation-slide-medium-translate);
|
|
337
|
-
}
|
|
338
|
-
100% {
|
|
339
|
-
opacity: 1;
|
|
340
|
-
transform: translateX(0);
|
|
341
|
-
}
|
|
222
|
+
@keyframes uk-slide-top-medium {
|
|
223
|
+
0% { transform: translateY(-@animation-slide-medium-translate); }
|
|
224
|
+
100% { transform: translateY(0); }
|
|
342
225
|
}
|
|
343
226
|
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
@keyframes uk-fade-right-medium {
|
|
349
|
-
0% {
|
|
350
|
-
opacity: 0;
|
|
351
|
-
transform: translateX(@animation-slide-medium-translate);
|
|
352
|
-
}
|
|
353
|
-
100% {
|
|
354
|
-
opacity: 1;
|
|
355
|
-
transform: translateX(0);
|
|
356
|
-
}
|
|
227
|
+
@keyframes uk-slide-bottom-medium {
|
|
228
|
+
0% { transform: translateY(@animation-slide-medium-translate); }
|
|
229
|
+
100% { transform: translateY(0); }
|
|
357
230
|
}
|
|
358
231
|
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
@keyframes uk-fade-scale-02 {
|
|
364
|
-
0% {
|
|
365
|
-
opacity: 0;
|
|
366
|
-
transform: scale(0.2);
|
|
367
|
-
}
|
|
368
|
-
100% {
|
|
369
|
-
opacity: 1;
|
|
370
|
-
transform: scale(1);
|
|
371
|
-
}
|
|
232
|
+
@keyframes uk-slide-left-medium {
|
|
233
|
+
0% { transform: translateX(-@animation-slide-medium-translate); }
|
|
234
|
+
100% { transform: translateX(0); }
|
|
372
235
|
}
|
|
373
236
|
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
@keyframes uk-fade-scale-18 {
|
|
379
|
-
0% {
|
|
380
|
-
opacity: 0;
|
|
381
|
-
transform: scale(1.8);
|
|
382
|
-
}
|
|
383
|
-
100% {
|
|
384
|
-
opacity: 1;
|
|
385
|
-
transform: scale(1);
|
|
386
|
-
}
|
|
237
|
+
@keyframes uk-slide-right-medium {
|
|
238
|
+
0% { transform: translateX(@animation-slide-medium-translate); }
|
|
239
|
+
100% { transform: translateX(0); }
|
|
387
240
|
}
|
|
388
241
|
|
|
389
242
|
/*
|
|
390
243
|
* Kenburns
|
|
391
244
|
*/
|
|
392
245
|
|
|
393
|
-
@keyframes uk-
|
|
246
|
+
@keyframes uk-kenburns {
|
|
394
247
|
0% { transform: scale(1); }
|
|
395
248
|
100% { transform: scale(1.2); }
|
|
396
249
|
}
|
|
@@ -50,10 +50,8 @@
|
|
|
50
50
|
* Required for `a`
|
|
51
51
|
*/
|
|
52
52
|
|
|
53
|
-
.uk-badge:hover
|
|
54
|
-
.uk-badge:focus {
|
|
53
|
+
.uk-badge:hover {
|
|
55
54
|
text-decoration: none;
|
|
56
|
-
outline: none;
|
|
57
55
|
.hook-badge-hover;
|
|
58
56
|
}
|
|
59
57
|
|
|
@@ -82,8 +80,7 @@
|
|
|
82
80
|
.hook-inverse-badge;
|
|
83
81
|
}
|
|
84
82
|
|
|
85
|
-
.uk-badge:hover
|
|
86
|
-
.uk-badge:focus {
|
|
83
|
+
.uk-badge:hover {
|
|
87
84
|
.hook-inverse-badge-hover;
|
|
88
85
|
}
|
|
89
86
|
|
|
@@ -76,6 +76,11 @@
|
|
|
76
76
|
@base-pre-font-family: @base-code-font-family;
|
|
77
77
|
@base-pre-color: @global-color;
|
|
78
78
|
|
|
79
|
+
@base-focus-outline-width: 2px;
|
|
80
|
+
@base-focus-outline-style: dotted;
|
|
81
|
+
@base-focus-outline: @global-emphasis-color;
|
|
82
|
+
@base-focus-outline-offset: 1px;
|
|
83
|
+
|
|
79
84
|
@base-selection-background: #39f;
|
|
80
85
|
@base-selection-color: @global-inverse-color;
|
|
81
86
|
|
|
@@ -115,13 +120,6 @@ body { margin: 0; }
|
|
|
115
120
|
/* Links
|
|
116
121
|
========================================================================== */
|
|
117
122
|
|
|
118
|
-
/*
|
|
119
|
-
* Remove the outline on focused links when they are also active or hovered
|
|
120
|
-
*/
|
|
121
|
-
|
|
122
|
-
a:active,
|
|
123
|
-
a:hover { outline: none; }
|
|
124
|
-
|
|
125
123
|
/*
|
|
126
124
|
* Style
|
|
127
125
|
*/
|
|
@@ -136,8 +134,7 @@ a,
|
|
|
136
134
|
|
|
137
135
|
a:hover,
|
|
138
136
|
.uk-link:hover,
|
|
139
|
-
.uk-link-toggle:hover .uk-link
|
|
140
|
-
.uk-link-toggle:focus .uk-link {
|
|
137
|
+
.uk-link-toggle:hover .uk-link {
|
|
141
138
|
color: @base-link-hover-color;
|
|
142
139
|
text-decoration: @base-link-hover-text-decoration;
|
|
143
140
|
.hook-base-link-hover;
|
|
@@ -522,6 +519,33 @@ pre {
|
|
|
522
519
|
pre code { font-family: @base-pre-font-family; }
|
|
523
520
|
|
|
524
521
|
|
|
522
|
+
/* Focus
|
|
523
|
+
========================================================================== */
|
|
524
|
+
|
|
525
|
+
/*
|
|
526
|
+
* Safari doesn't support `:focus-visible` yet. It also doesn't set focus if clicking a button or anchor.
|
|
527
|
+
* 1. Fallback: Remove `:focus` for a negative tabindexes.
|
|
528
|
+
* 2. Fallback: Set `:focus` style but not for negative tabindexes.
|
|
529
|
+
* 3. Fallback: Remove `:focus` style for browsers which support `:focus-visible`.
|
|
530
|
+
* 4. Set `:focus-visible` style for browsers which support it.
|
|
531
|
+
*/
|
|
532
|
+
|
|
533
|
+
/* 1 */
|
|
534
|
+
:focus { outline: none; }
|
|
535
|
+
|
|
536
|
+
/* 2 */
|
|
537
|
+
:focus:not([tabindex^='-']) {
|
|
538
|
+
outline: @base-focus-outline-width @base-focus-outline-style @base-focus-outline;
|
|
539
|
+
outline-offset: @base-focus-outline-offset;
|
|
540
|
+
}
|
|
541
|
+
|
|
542
|
+
/* 3 */
|
|
543
|
+
:focus:not(:focus-visible) { outline: none; }
|
|
544
|
+
|
|
545
|
+
/* 4 */
|
|
546
|
+
:focus-visible { outline: @base-focus-outline-width @base-focus-outline-style @base-focus-outline; }
|
|
547
|
+
|
|
548
|
+
|
|
525
549
|
/* Selection pseudo-element
|
|
526
550
|
========================================================================== */
|
|
527
551
|
|
|
@@ -610,6 +634,7 @@ template { display: none; }
|
|
|
610
634
|
@inverse-base-em-color: @inverse-global-emphasis-color;
|
|
611
635
|
@inverse-base-heading-color: @inverse-global-emphasis-color;
|
|
612
636
|
@inverse-base-hr-border: @inverse-global-border;
|
|
637
|
+
@inverse-base-focus-outline: @inverse-global-emphasis-color;
|
|
613
638
|
|
|
614
639
|
.hook-inverse() {
|
|
615
640
|
|
|
@@ -630,8 +655,7 @@ template { display: none; }
|
|
|
630
655
|
|
|
631
656
|
a:hover,
|
|
632
657
|
.uk-link:hover,
|
|
633
|
-
.uk-link-toggle:hover .uk-link
|
|
634
|
-
.uk-link-toggle:focus .uk-link {
|
|
658
|
+
.uk-link-toggle:hover .uk-link {
|
|
635
659
|
color: @inverse-base-link-hover-color;
|
|
636
660
|
.hook-inverse-base-link-hover;
|
|
637
661
|
}
|
|
@@ -717,6 +741,13 @@ template { display: none; }
|
|
|
717
741
|
.hook-inverse-base-hr;
|
|
718
742
|
}
|
|
719
743
|
|
|
744
|
+
//
|
|
745
|
+
// Focus
|
|
746
|
+
//
|
|
747
|
+
|
|
748
|
+
:focus { outline-color: @inverse-base-focus-outline; }
|
|
749
|
+
:focus-visible { outline-color: @inverse-base-focus-outline; }
|
|
750
|
+
|
|
720
751
|
}
|
|
721
752
|
|
|
722
753
|
.hook-inverse-base-link() {}
|
|
@@ -53,9 +53,8 @@
|
|
|
53
53
|
.hook-breadcrumb-item;
|
|
54
54
|
}
|
|
55
55
|
|
|
56
|
-
/* Hover
|
|
57
|
-
.uk-breadcrumb > * > :hover
|
|
58
|
-
.uk-breadcrumb > * > :focus {
|
|
56
|
+
/* Hover */
|
|
57
|
+
.uk-breadcrumb > * > :hover {
|
|
59
58
|
color: @breadcrumb-item-hover-color;
|
|
60
59
|
text-decoration: @breadcrumb-item-hover-text-decoration;
|
|
61
60
|
.hook-breadcrumb-item-hover;
|
|
@@ -121,8 +120,7 @@
|
|
|
121
120
|
.hook-inverse-breadcrumb-item;
|
|
122
121
|
}
|
|
123
122
|
|
|
124
|
-
.uk-breadcrumb > * > :hover
|
|
125
|
-
.uk-breadcrumb > * > :focus {
|
|
123
|
+
.uk-breadcrumb > * > :hover {
|
|
126
124
|
color: @inverse-breadcrumb-item-hover-color;
|
|
127
125
|
.hook-inverse-breadcrumb-item-hover;
|
|
128
126
|
}
|