uikit-sass-rails 1.3.0 → 1.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/README.md +15 -12
- data/lib/uikit/sass/rails/engine.rb +1 -1
- data/lib/uikit/sass/rails/version.rb +1 -1
- data/vendor/assets/fonts/fontawesome-webfont.eot +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.otf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.svg +525 -464
- data/vendor/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff +0 -0
- data/vendor/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/vendor/assets/javascripts/uikit.js +30 -3
- data/vendor/assets/javascripts/uikit/components/accordion.js +172 -0
- data/vendor/assets/javascripts/uikit/components/autocomplete.js +48 -27
- data/vendor/assets/javascripts/uikit/components/datepicker.js +2887 -97
- data/vendor/assets/javascripts/uikit/components/form-password.js +24 -19
- data/vendor/assets/javascripts/uikit/components/form-select.js +24 -18
- data/vendor/assets/javascripts/uikit/components/grid.js +524 -0
- data/vendor/assets/javascripts/uikit/components/htmleditor.js +46 -39
- data/vendor/assets/javascripts/uikit/components/lightbox.js +543 -0
- data/vendor/assets/javascripts/uikit/components/nestable.js +125 -98
- data/vendor/assets/javascripts/uikit/components/notify.js +34 -22
- data/vendor/assets/javascripts/uikit/components/pagination.js +24 -21
- data/vendor/assets/javascripts/uikit/components/parallax.js +400 -0
- data/vendor/assets/javascripts/uikit/components/search.js +19 -16
- data/vendor/assets/javascripts/uikit/components/slider.js +482 -0
- data/vendor/assets/javascripts/uikit/components/slideset.js +498 -0
- data/vendor/assets/javascripts/uikit/components/slideshow-fx.js +377 -0
- data/vendor/assets/javascripts/uikit/components/slideshow.js +540 -0
- data/vendor/assets/javascripts/uikit/components/sortable.js +392 -263
- data/vendor/assets/javascripts/uikit/components/sticky.js +127 -68
- data/vendor/assets/javascripts/uikit/components/timepicker.js +65 -42
- data/vendor/assets/javascripts/uikit/components/tooltip.js +220 -0
- data/vendor/assets/javascripts/uikit/components/upload.js +11 -10
- data/vendor/assets/javascripts/uikit/core/alert.js +66 -0
- data/vendor/assets/javascripts/uikit/core/button.js +154 -0
- data/vendor/assets/javascripts/uikit/core/core.js +717 -0
- data/vendor/assets/javascripts/uikit/{components → core}/cover.js +41 -35
- data/vendor/assets/javascripts/uikit/core/dropdown.js +296 -0
- data/vendor/assets/javascripts/uikit/core/grid.js +172 -0
- data/vendor/assets/javascripts/uikit/core/modal.js +323 -0
- data/vendor/assets/javascripts/uikit/core/nav.js +117 -0
- data/vendor/assets/javascripts/uikit/core/offcanvas.js +178 -0
- data/vendor/assets/javascripts/uikit/core/scrollspy.js +208 -0
- data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +62 -0
- data/vendor/assets/javascripts/uikit/core/switcher.js +298 -0
- data/vendor/assets/javascripts/uikit/core/tab.js +159 -0
- data/vendor/assets/javascripts/uikit/core/toggle.js +117 -0
- data/vendor/assets/javascripts/uikit/core/touch.js +173 -0
- data/vendor/assets/javascripts/uikit/core/utility.js +157 -0
- data/vendor/assets/javascripts/uikit/uikit.js +1538 -871
- data/vendor/assets/stylesheets/extra/font-awesome.scss +4 -7
- data/vendor/assets/stylesheets/uikit.scss +22 -1
- data/vendor/assets/stylesheets/uikit/almost-flat.scss +22 -2
- data/vendor/assets/stylesheets/uikit/components/accordion.almost-flat.scss +45 -0
- data/vendor/assets/stylesheets/uikit/components/accordion.gradient.scss +45 -0
- data/vendor/assets/stylesheets/uikit/components/accordion.scss +43 -0
- data/vendor/assets/stylesheets/uikit/components/autocomplete.almost-flat.scss +62 -0
- data/vendor/assets/stylesheets/uikit/components/autocomplete.gradient.scss +62 -0
- data/vendor/assets/stylesheets/uikit/components/autocomplete.scss +60 -0
- data/vendor/assets/stylesheets/uikit/components/datepicker.almost-flat.scss +148 -0
- data/vendor/assets/stylesheets/uikit/components/datepicker.gradient.scss +158 -0
- data/vendor/assets/stylesheets/uikit/components/datepicker.scss +142 -0
- data/vendor/assets/stylesheets/uikit/components/dotnav.almost-flat.scss +152 -0
- data/vendor/assets/stylesheets/uikit/components/dotnav.gradient.scss +152 -0
- data/vendor/assets/stylesheets/uikit/components/dotnav.scss +148 -0
- data/vendor/assets/stylesheets/uikit/components/form-advanced.almost-flat.scss +92 -0
- data/vendor/assets/stylesheets/uikit/components/form-advanced.gradient.scss +92 -0
- data/vendor/assets/stylesheets/uikit/components/form-advanced.scss +92 -0
- data/vendor/assets/stylesheets/uikit/components/form-file.almost-flat.scss +36 -0
- data/vendor/assets/stylesheets/uikit/components/form-file.gradient.scss +36 -0
- data/vendor/assets/stylesheets/uikit/components/form-file.scss +36 -0
- data/vendor/assets/stylesheets/uikit/components/form-password.almost-flat.scss +37 -0
- data/vendor/assets/stylesheets/uikit/components/form-password.gradient.scss +37 -0
- data/vendor/assets/stylesheets/uikit/components/form-password.scss +37 -0
- data/vendor/assets/stylesheets/uikit/components/form-select.almost-flat.scss +37 -0
- data/vendor/assets/stylesheets/uikit/components/form-select.gradient.scss +37 -0
- data/vendor/assets/stylesheets/uikit/components/form-select.scss +37 -0
- data/vendor/assets/stylesheets/uikit/components/htmleditor.almost-flat.scss +282 -0
- data/vendor/assets/stylesheets/uikit/components/htmleditor.gradient.scss +290 -0
- data/vendor/assets/stylesheets/uikit/components/htmleditor.scss +208 -0
- data/vendor/assets/stylesheets/uikit/components/nestable.almost-flat.scss +137 -0
- data/vendor/assets/stylesheets/uikit/components/nestable.gradient.scss +141 -0
- data/vendor/assets/stylesheets/uikit/components/nestable.scss +134 -0
- data/vendor/assets/stylesheets/uikit/components/notify.almost-flat.scss +112 -0
- data/vendor/assets/stylesheets/uikit/components/notify.gradient.scss +112 -0
- data/vendor/assets/stylesheets/uikit/components/notify.scss +106 -0
- data/vendor/assets/stylesheets/uikit/components/placeholder.almost-flat.scss +36 -0
- data/vendor/assets/stylesheets/uikit/components/placeholder.gradient.scss +36 -0
- data/vendor/assets/stylesheets/uikit/components/placeholder.scss +36 -0
- data/vendor/assets/stylesheets/uikit/components/progress.almost-flat.scss +130 -0
- data/vendor/assets/stylesheets/uikit/components/progress.gradient.scss +138 -0
- data/vendor/assets/stylesheets/uikit/components/progress.scss +118 -0
- data/vendor/assets/stylesheets/uikit/components/search.almost-flat.scss +216 -0
- data/vendor/assets/stylesheets/uikit/components/search.gradient.scss +216 -0
- data/vendor/assets/stylesheets/uikit/components/search.scss +214 -0
- data/vendor/assets/stylesheets/uikit/components/slidenav.almost-flat.scss +110 -0
- data/vendor/assets/stylesheets/uikit/components/slidenav.gradient.scss +110 -0
- data/vendor/assets/stylesheets/uikit/components/slidenav.scss +110 -0
- data/vendor/assets/stylesheets/uikit/components/slider.almost-flat.scss +105 -0
- data/vendor/assets/stylesheets/uikit/components/slider.gradient.scss +105 -0
- data/vendor/assets/stylesheets/uikit/components/slider.scss +105 -0
- data/vendor/assets/stylesheets/uikit/components/slideshow.almost-flat.scss +166 -0
- data/vendor/assets/stylesheets/uikit/components/slideshow.gradient.scss +166 -0
- data/vendor/assets/stylesheets/uikit/components/slideshow.scss +166 -0
- data/vendor/assets/stylesheets/uikit/components/sortable.almost-flat.scss +90 -0
- data/vendor/assets/stylesheets/uikit/components/sortable.gradient.scss +90 -0
- data/vendor/assets/stylesheets/uikit/components/sortable.scss +90 -0
- data/vendor/assets/stylesheets/uikit/components/sticky.almost-flat.scss +39 -0
- data/vendor/assets/stylesheets/uikit/components/sticky.gradient.scss +39 -0
- data/vendor/assets/stylesheets/uikit/components/sticky.scss +39 -0
- data/vendor/assets/stylesheets/uikit/components/tooltip.almost-flat.scss +129 -0
- data/vendor/assets/stylesheets/uikit/components/tooltip.gradient.scss +129 -0
- data/vendor/assets/stylesheets/uikit/components/tooltip.scss +127 -0
- data/vendor/assets/stylesheets/uikit/components/upload.almost-flat.scss +11 -0
- data/vendor/assets/stylesheets/uikit/components/upload.gradient.scss +11 -0
- data/vendor/assets/stylesheets/uikit/components/upload.scss +11 -0
- data/vendor/assets/stylesheets/uikit/gradient.scss +22 -2
- data/vendor/assets/stylesheets/uikit/uikit.almost-flat.scss +1768 -498
- data/vendor/assets/stylesheets/uikit/uikit.gradient.scss +1776 -512
- data/vendor/assets/stylesheets/uikit/uikit.scss +1722 -462
- metadata +92 -7
- data/vendor/assets/stylesheets/uikit/components/uikit.components.almost-flat.scss +0 -1586
- data/vendor/assets/stylesheets/uikit/components/uikit.components.gradient.scss +0 -1608
- data/vendor/assets/stylesheets/uikit/components/uikit.components.scss +0 -1489
@@ -0,0 +1,166 @@
|
|
1
|
+
/*! UIkit 2.20.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
|
+
/* ========================================================================
|
3
|
+
Component: Slideshow
|
4
|
+
========================================================================== */
|
5
|
+
/*
|
6
|
+
* 1. Create position context
|
7
|
+
* 2. Create stacking context to prevent z-index issues with other components
|
8
|
+
* 3. Set width because child elements are positioned absolute. Height is set via JS
|
9
|
+
* 4. Reset list style
|
10
|
+
* 5. Clip child elements
|
11
|
+
* 6. Deactivate browser history navigation in IE11
|
12
|
+
*/
|
13
|
+
|
14
|
+
.uk-slideshow {
|
15
|
+
/* 1 */
|
16
|
+
position: relative;
|
17
|
+
/* 2 */
|
18
|
+
z-index: 0;
|
19
|
+
/* 3 */
|
20
|
+
width: 100%;
|
21
|
+
/* 4 */
|
22
|
+
margin: 0;
|
23
|
+
padding: 0;
|
24
|
+
list-style: none;
|
25
|
+
/* 5 */
|
26
|
+
overflow: hidden;
|
27
|
+
/* 6 */
|
28
|
+
touch-action: pan-y;
|
29
|
+
> {
|
30
|
+
li {
|
31
|
+
/* 1 */
|
32
|
+
position: absolute;
|
33
|
+
top: 0;
|
34
|
+
left: 0;
|
35
|
+
/* 2 */
|
36
|
+
width: 100%;
|
37
|
+
/* 3 */
|
38
|
+
opacity: 0;
|
39
|
+
}
|
40
|
+
.uk-active {
|
41
|
+
/* 1 */
|
42
|
+
z-index: 10;
|
43
|
+
/* 2 */
|
44
|
+
opacity: 1;
|
45
|
+
}
|
46
|
+
li > img {
|
47
|
+
visibility: hidden;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
/*
|
53
|
+
* Sub-object item
|
54
|
+
* 1. Position items above each other
|
55
|
+
* 2. Expand to parent container width
|
56
|
+
* 3. Hide by default
|
57
|
+
*/
|
58
|
+
|
59
|
+
/*
|
60
|
+
* Active
|
61
|
+
* 1. Stack at first
|
62
|
+
* 2. Show slide
|
63
|
+
*/
|
64
|
+
|
65
|
+
/*
|
66
|
+
* Hide default images which is only relevant to keep existing proportions
|
67
|
+
*/
|
68
|
+
|
69
|
+
/*
|
70
|
+
* Pointer for controls
|
71
|
+
*/
|
72
|
+
|
73
|
+
[data-uk-slideshow-slide] {
|
74
|
+
cursor: pointer;
|
75
|
+
}
|
76
|
+
|
77
|
+
/* Modifier: `uk-slideshow-fullscreen`
|
78
|
+
========================================================================== */
|
79
|
+
|
80
|
+
.uk-slideshow-fullscreen {
|
81
|
+
height: 100vh;
|
82
|
+
> li {
|
83
|
+
height: 100vh;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
/* Animations
|
88
|
+
========================================================================== */
|
89
|
+
/*
|
90
|
+
* Fade
|
91
|
+
*/
|
92
|
+
|
93
|
+
.uk-slideshow-fade-out {
|
94
|
+
-webkit-animation: uk-fade 0.5s linear reverse;
|
95
|
+
animation: uk-fade 0.5s linear reverse;
|
96
|
+
}
|
97
|
+
|
98
|
+
/*
|
99
|
+
* Scroll
|
100
|
+
*/
|
101
|
+
|
102
|
+
.uk-slideshow-scroll-forward-in {
|
103
|
+
-webkit-animation: uk-slide-right 0.5s ease-in-out;
|
104
|
+
animation: uk-slide-right 0.5s ease-in-out;
|
105
|
+
}
|
106
|
+
|
107
|
+
.uk-slideshow-scroll-forward-out {
|
108
|
+
-webkit-animation: uk-slide-left 0.5s ease-in-out reverse;
|
109
|
+
animation: uk-slide-left 0.5s ease-in-out reverse;
|
110
|
+
}
|
111
|
+
|
112
|
+
.uk-slideshow-scroll-backward-in {
|
113
|
+
-webkit-animation: uk-slide-left 0.5s ease-in-out;
|
114
|
+
animation: uk-slide-left 0.5s ease-in-out;
|
115
|
+
}
|
116
|
+
|
117
|
+
.uk-slideshow-scroll-backward-out {
|
118
|
+
-webkit-animation: uk-slide-right 0.5s ease-in-out reverse;
|
119
|
+
animation: uk-slide-right 0.5s ease-in-out reverse;
|
120
|
+
}
|
121
|
+
|
122
|
+
/*
|
123
|
+
* Scale
|
124
|
+
*/
|
125
|
+
|
126
|
+
.uk-slideshow-scale-out {
|
127
|
+
-webkit-animation: uk-fade-scale-15 0.5s ease-in-out reverse;
|
128
|
+
animation: uk-fade-scale-15 0.5s ease-in-out reverse;
|
129
|
+
}
|
130
|
+
|
131
|
+
/*
|
132
|
+
* Swipe
|
133
|
+
*/
|
134
|
+
|
135
|
+
.uk-slideshow-swipe-forward-in {
|
136
|
+
-webkit-animation: uk-slide-left-33 0.5s ease-in-out;
|
137
|
+
animation: uk-slide-left-33 0.5s ease-in-out;
|
138
|
+
}
|
139
|
+
|
140
|
+
.uk-slideshow-swipe-forward-out {
|
141
|
+
-webkit-animation: uk-slide-left 0.5s ease-in-out reverse;
|
142
|
+
animation: uk-slide-left 0.5s ease-in-out reverse;
|
143
|
+
}
|
144
|
+
|
145
|
+
.uk-slideshow-swipe-backward-in {
|
146
|
+
-webkit-animation: uk-slide-right-33 0.5s ease-in-out;
|
147
|
+
animation: uk-slide-right-33 0.5s ease-in-out;
|
148
|
+
}
|
149
|
+
|
150
|
+
.uk-slideshow-swipe-backward-out {
|
151
|
+
-webkit-animation: uk-slide-right 0.5s ease-in-out reverse;
|
152
|
+
animation: uk-slide-right 0.5s ease-in-out reverse;
|
153
|
+
}
|
154
|
+
|
155
|
+
.uk-slideshow-swipe-forward-in:before, .uk-slideshow-swipe-backward-in:before {
|
156
|
+
content: '';
|
157
|
+
position: absolute;
|
158
|
+
top: 0;
|
159
|
+
bottom: 0;
|
160
|
+
left: 0;
|
161
|
+
right: 0;
|
162
|
+
z-index: 1;
|
163
|
+
background: rgba(0, 0, 0, 0.6);
|
164
|
+
-webkit-animation: uk-fade 0.5s ease-in-out reverse;
|
165
|
+
animation: uk-fade 0.5s ease-in-out reverse;
|
166
|
+
}
|
@@ -0,0 +1,166 @@
|
|
1
|
+
/*! UIkit 2.20.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
|
+
/* ========================================================================
|
3
|
+
Component: Slideshow
|
4
|
+
========================================================================== */
|
5
|
+
/*
|
6
|
+
* 1. Create position context
|
7
|
+
* 2. Create stacking context to prevent z-index issues with other components
|
8
|
+
* 3. Set width because child elements are positioned absolute. Height is set via JS
|
9
|
+
* 4. Reset list style
|
10
|
+
* 5. Clip child elements
|
11
|
+
* 6. Deactivate browser history navigation in IE11
|
12
|
+
*/
|
13
|
+
|
14
|
+
.uk-slideshow {
|
15
|
+
/* 1 */
|
16
|
+
position: relative;
|
17
|
+
/* 2 */
|
18
|
+
z-index: 0;
|
19
|
+
/* 3 */
|
20
|
+
width: 100%;
|
21
|
+
/* 4 */
|
22
|
+
margin: 0;
|
23
|
+
padding: 0;
|
24
|
+
list-style: none;
|
25
|
+
/* 5 */
|
26
|
+
overflow: hidden;
|
27
|
+
/* 6 */
|
28
|
+
touch-action: pan-y;
|
29
|
+
> {
|
30
|
+
li {
|
31
|
+
/* 1 */
|
32
|
+
position: absolute;
|
33
|
+
top: 0;
|
34
|
+
left: 0;
|
35
|
+
/* 2 */
|
36
|
+
width: 100%;
|
37
|
+
/* 3 */
|
38
|
+
opacity: 0;
|
39
|
+
}
|
40
|
+
.uk-active {
|
41
|
+
/* 1 */
|
42
|
+
z-index: 10;
|
43
|
+
/* 2 */
|
44
|
+
opacity: 1;
|
45
|
+
}
|
46
|
+
li > img {
|
47
|
+
visibility: hidden;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
/*
|
53
|
+
* Sub-object item
|
54
|
+
* 1. Position items above each other
|
55
|
+
* 2. Expand to parent container width
|
56
|
+
* 3. Hide by default
|
57
|
+
*/
|
58
|
+
|
59
|
+
/*
|
60
|
+
* Active
|
61
|
+
* 1. Stack at first
|
62
|
+
* 2. Show slide
|
63
|
+
*/
|
64
|
+
|
65
|
+
/*
|
66
|
+
* Hide default images which is only relevant to keep existing proportions
|
67
|
+
*/
|
68
|
+
|
69
|
+
/*
|
70
|
+
* Pointer for controls
|
71
|
+
*/
|
72
|
+
|
73
|
+
[data-uk-slideshow-slide] {
|
74
|
+
cursor: pointer;
|
75
|
+
}
|
76
|
+
|
77
|
+
/* Modifier: `uk-slideshow-fullscreen`
|
78
|
+
========================================================================== */
|
79
|
+
|
80
|
+
.uk-slideshow-fullscreen {
|
81
|
+
height: 100vh;
|
82
|
+
> li {
|
83
|
+
height: 100vh;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
/* Animations
|
88
|
+
========================================================================== */
|
89
|
+
/*
|
90
|
+
* Fade
|
91
|
+
*/
|
92
|
+
|
93
|
+
.uk-slideshow-fade-out {
|
94
|
+
-webkit-animation: uk-fade 0.5s linear reverse;
|
95
|
+
animation: uk-fade 0.5s linear reverse;
|
96
|
+
}
|
97
|
+
|
98
|
+
/*
|
99
|
+
* Scroll
|
100
|
+
*/
|
101
|
+
|
102
|
+
.uk-slideshow-scroll-forward-in {
|
103
|
+
-webkit-animation: uk-slide-right 0.5s ease-in-out;
|
104
|
+
animation: uk-slide-right 0.5s ease-in-out;
|
105
|
+
}
|
106
|
+
|
107
|
+
.uk-slideshow-scroll-forward-out {
|
108
|
+
-webkit-animation: uk-slide-left 0.5s ease-in-out reverse;
|
109
|
+
animation: uk-slide-left 0.5s ease-in-out reverse;
|
110
|
+
}
|
111
|
+
|
112
|
+
.uk-slideshow-scroll-backward-in {
|
113
|
+
-webkit-animation: uk-slide-left 0.5s ease-in-out;
|
114
|
+
animation: uk-slide-left 0.5s ease-in-out;
|
115
|
+
}
|
116
|
+
|
117
|
+
.uk-slideshow-scroll-backward-out {
|
118
|
+
-webkit-animation: uk-slide-right 0.5s ease-in-out reverse;
|
119
|
+
animation: uk-slide-right 0.5s ease-in-out reverse;
|
120
|
+
}
|
121
|
+
|
122
|
+
/*
|
123
|
+
* Scale
|
124
|
+
*/
|
125
|
+
|
126
|
+
.uk-slideshow-scale-out {
|
127
|
+
-webkit-animation: uk-fade-scale-15 0.5s ease-in-out reverse;
|
128
|
+
animation: uk-fade-scale-15 0.5s ease-in-out reverse;
|
129
|
+
}
|
130
|
+
|
131
|
+
/*
|
132
|
+
* Swipe
|
133
|
+
*/
|
134
|
+
|
135
|
+
.uk-slideshow-swipe-forward-in {
|
136
|
+
-webkit-animation: uk-slide-left-33 0.5s ease-in-out;
|
137
|
+
animation: uk-slide-left-33 0.5s ease-in-out;
|
138
|
+
}
|
139
|
+
|
140
|
+
.uk-slideshow-swipe-forward-out {
|
141
|
+
-webkit-animation: uk-slide-left 0.5s ease-in-out reverse;
|
142
|
+
animation: uk-slide-left 0.5s ease-in-out reverse;
|
143
|
+
}
|
144
|
+
|
145
|
+
.uk-slideshow-swipe-backward-in {
|
146
|
+
-webkit-animation: uk-slide-right-33 0.5s ease-in-out;
|
147
|
+
animation: uk-slide-right-33 0.5s ease-in-out;
|
148
|
+
}
|
149
|
+
|
150
|
+
.uk-slideshow-swipe-backward-out {
|
151
|
+
-webkit-animation: uk-slide-right 0.5s ease-in-out reverse;
|
152
|
+
animation: uk-slide-right 0.5s ease-in-out reverse;
|
153
|
+
}
|
154
|
+
|
155
|
+
.uk-slideshow-swipe-forward-in:before, .uk-slideshow-swipe-backward-in:before {
|
156
|
+
content: '';
|
157
|
+
position: absolute;
|
158
|
+
top: 0;
|
159
|
+
bottom: 0;
|
160
|
+
left: 0;
|
161
|
+
right: 0;
|
162
|
+
z-index: 1;
|
163
|
+
background: rgba(0, 0, 0, 0.6);
|
164
|
+
-webkit-animation: uk-fade 0.5s ease-in-out reverse;
|
165
|
+
animation: uk-fade 0.5s ease-in-out reverse;
|
166
|
+
}
|
@@ -0,0 +1,166 @@
|
|
1
|
+
/*! UIkit 2.20.3 | http://www.getuikit.com | (c) 2014 YOOtheme | MIT License */
|
2
|
+
/* ========================================================================
|
3
|
+
Component: Slideshow
|
4
|
+
========================================================================== */
|
5
|
+
/*
|
6
|
+
* 1. Create position context
|
7
|
+
* 2. Create stacking context to prevent z-index issues with other components
|
8
|
+
* 3. Set width because child elements are positioned absolute. Height is set via JS
|
9
|
+
* 4. Reset list style
|
10
|
+
* 5. Clip child elements
|
11
|
+
* 6. Deactivate browser history navigation in IE11
|
12
|
+
*/
|
13
|
+
|
14
|
+
.uk-slideshow {
|
15
|
+
/* 1 */
|
16
|
+
position: relative;
|
17
|
+
/* 2 */
|
18
|
+
z-index: 0;
|
19
|
+
/* 3 */
|
20
|
+
width: 100%;
|
21
|
+
/* 4 */
|
22
|
+
margin: 0;
|
23
|
+
padding: 0;
|
24
|
+
list-style: none;
|
25
|
+
/* 5 */
|
26
|
+
overflow: hidden;
|
27
|
+
/* 6 */
|
28
|
+
touch-action: pan-y;
|
29
|
+
> {
|
30
|
+
li {
|
31
|
+
/* 1 */
|
32
|
+
position: absolute;
|
33
|
+
top: 0;
|
34
|
+
left: 0;
|
35
|
+
/* 2 */
|
36
|
+
width: 100%;
|
37
|
+
/* 3 */
|
38
|
+
opacity: 0;
|
39
|
+
}
|
40
|
+
.uk-active {
|
41
|
+
/* 1 */
|
42
|
+
z-index: 10;
|
43
|
+
/* 2 */
|
44
|
+
opacity: 1;
|
45
|
+
}
|
46
|
+
li > img {
|
47
|
+
visibility: hidden;
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
|
52
|
+
/*
|
53
|
+
* Sub-object item
|
54
|
+
* 1. Position items above each other
|
55
|
+
* 2. Expand to parent container width
|
56
|
+
* 3. Hide by default
|
57
|
+
*/
|
58
|
+
|
59
|
+
/*
|
60
|
+
* Active
|
61
|
+
* 1. Stack at first
|
62
|
+
* 2. Show slide
|
63
|
+
*/
|
64
|
+
|
65
|
+
/*
|
66
|
+
* Hide default images which is only relevant to keep existing proportions
|
67
|
+
*/
|
68
|
+
|
69
|
+
/*
|
70
|
+
* Pointer for controls
|
71
|
+
*/
|
72
|
+
|
73
|
+
[data-uk-slideshow-slide] {
|
74
|
+
cursor: pointer;
|
75
|
+
}
|
76
|
+
|
77
|
+
/* Modifier: `uk-slideshow-fullscreen`
|
78
|
+
========================================================================== */
|
79
|
+
|
80
|
+
.uk-slideshow-fullscreen {
|
81
|
+
height: 100vh;
|
82
|
+
> li {
|
83
|
+
height: 100vh;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
/* Animations
|
88
|
+
========================================================================== */
|
89
|
+
/*
|
90
|
+
* Fade
|
91
|
+
*/
|
92
|
+
|
93
|
+
.uk-slideshow-fade-out {
|
94
|
+
-webkit-animation: uk-fade 0.5s linear reverse;
|
95
|
+
animation: uk-fade 0.5s linear reverse;
|
96
|
+
}
|
97
|
+
|
98
|
+
/*
|
99
|
+
* Scroll
|
100
|
+
*/
|
101
|
+
|
102
|
+
.uk-slideshow-scroll-forward-in {
|
103
|
+
-webkit-animation: uk-slide-right 0.5s ease-in-out;
|
104
|
+
animation: uk-slide-right 0.5s ease-in-out;
|
105
|
+
}
|
106
|
+
|
107
|
+
.uk-slideshow-scroll-forward-out {
|
108
|
+
-webkit-animation: uk-slide-left 0.5s ease-in-out reverse;
|
109
|
+
animation: uk-slide-left 0.5s ease-in-out reverse;
|
110
|
+
}
|
111
|
+
|
112
|
+
.uk-slideshow-scroll-backward-in {
|
113
|
+
-webkit-animation: uk-slide-left 0.5s ease-in-out;
|
114
|
+
animation: uk-slide-left 0.5s ease-in-out;
|
115
|
+
}
|
116
|
+
|
117
|
+
.uk-slideshow-scroll-backward-out {
|
118
|
+
-webkit-animation: uk-slide-right 0.5s ease-in-out reverse;
|
119
|
+
animation: uk-slide-right 0.5s ease-in-out reverse;
|
120
|
+
}
|
121
|
+
|
122
|
+
/*
|
123
|
+
* Scale
|
124
|
+
*/
|
125
|
+
|
126
|
+
.uk-slideshow-scale-out {
|
127
|
+
-webkit-animation: uk-fade-scale-15 0.5s ease-in-out reverse;
|
128
|
+
animation: uk-fade-scale-15 0.5s ease-in-out reverse;
|
129
|
+
}
|
130
|
+
|
131
|
+
/*
|
132
|
+
* Swipe
|
133
|
+
*/
|
134
|
+
|
135
|
+
.uk-slideshow-swipe-forward-in {
|
136
|
+
-webkit-animation: uk-slide-left-33 0.5s ease-in-out;
|
137
|
+
animation: uk-slide-left-33 0.5s ease-in-out;
|
138
|
+
}
|
139
|
+
|
140
|
+
.uk-slideshow-swipe-forward-out {
|
141
|
+
-webkit-animation: uk-slide-left 0.5s ease-in-out reverse;
|
142
|
+
animation: uk-slide-left 0.5s ease-in-out reverse;
|
143
|
+
}
|
144
|
+
|
145
|
+
.uk-slideshow-swipe-backward-in {
|
146
|
+
-webkit-animation: uk-slide-right-33 0.5s ease-in-out;
|
147
|
+
animation: uk-slide-right-33 0.5s ease-in-out;
|
148
|
+
}
|
149
|
+
|
150
|
+
.uk-slideshow-swipe-backward-out {
|
151
|
+
-webkit-animation: uk-slide-right 0.5s ease-in-out reverse;
|
152
|
+
animation: uk-slide-right 0.5s ease-in-out reverse;
|
153
|
+
}
|
154
|
+
|
155
|
+
.uk-slideshow-swipe-forward-in:before, .uk-slideshow-swipe-backward-in:before {
|
156
|
+
content: '';
|
157
|
+
position: absolute;
|
158
|
+
top: 0;
|
159
|
+
bottom: 0;
|
160
|
+
left: 0;
|
161
|
+
right: 0;
|
162
|
+
z-index: 1;
|
163
|
+
background: rgba(0, 0, 0, 0.6);
|
164
|
+
-webkit-animation: uk-fade 0.5s ease-in-out reverse;
|
165
|
+
animation: uk-fade 0.5s ease-in-out reverse;
|
166
|
+
}
|