uikit-rails 0.0.2 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -3
- data/Gemfile +2 -1
- data/LICENSE.txt +21 -0
- data/README.md +65 -0
- data/Rakefile +0 -1
- data/assets/fonts/FontAwesome.otf +0 -0
- data/assets/fonts/fontawesome-webfont.ttf +0 -0
- data/assets/fonts/fontawesome-webfont.woff +0 -0
- data/assets/fonts/fontawesome-webfont.woff2 +0 -0
- data/assets/javascripts/components/accordion.js +174 -0
- data/assets/javascripts/components/accordion.min.js +2 -0
- data/assets/javascripts/components/autocomplete.js +334 -0
- data/assets/javascripts/components/autocomplete.min.js +2 -0
- data/assets/javascripts/components/datepicker.js +3166 -0
- data/assets/javascripts/components/datepicker.min.js +3 -0
- data/assets/javascripts/components/form-password.js +67 -0
- data/assets/javascripts/components/form-password.min.js +2 -0
- data/assets/javascripts/components/form-select.js +70 -0
- data/assets/javascripts/components/form-select.min.js +2 -0
- data/assets/javascripts/components/grid.js +527 -0
- data/assets/javascripts/components/grid.min.js +2 -0
- data/assets/javascripts/components/htmleditor.js +623 -0
- data/assets/javascripts/components/htmleditor.min.js +2 -0
- data/assets/javascripts/components/lightbox.js +555 -0
- data/assets/javascripts/components/lightbox.min.js +2 -0
- data/assets/javascripts/components/nestable.js +638 -0
- data/assets/javascripts/components/nestable.min.js +2 -0
- data/assets/javascripts/components/notify.js +189 -0
- data/assets/javascripts/components/notify.min.js +2 -0
- data/assets/javascripts/components/pagination.js +147 -0
- data/assets/javascripts/components/pagination.min.js +2 -0
- data/assets/javascripts/components/parallax.js +435 -0
- data/assets/javascripts/components/parallax.min.js +2 -0
- data/assets/javascripts/components/search.js +92 -0
- data/assets/javascripts/components/search.min.js +2 -0
- data/assets/javascripts/components/slider.js +531 -0
- data/assets/javascripts/components/slider.min.js +2 -0
- data/assets/javascripts/components/slideset.js +506 -0
- data/assets/javascripts/components/slideset.min.js +2 -0
- data/assets/javascripts/components/slideshow-fx.js +375 -0
- data/assets/javascripts/components/slideshow-fx.min.js +2 -0
- data/assets/javascripts/components/slideshow.js +562 -0
- data/assets/javascripts/components/slideshow.min.js +2 -0
- data/assets/javascripts/components/sortable.js +688 -0
- data/assets/javascripts/components/sortable.min.js +2 -0
- data/assets/javascripts/components/sticky.js +359 -0
- data/assets/javascripts/components/sticky.min.js +2 -0
- data/assets/javascripts/components/timepicker.js +192 -0
- data/assets/javascripts/components/timepicker.min.js +2 -0
- data/assets/javascripts/components/tooltip.js +234 -0
- data/assets/javascripts/components/tooltip.min.js +2 -0
- data/assets/javascripts/components/upload.js +260 -0
- data/assets/javascripts/components/upload.min.js +2 -0
- data/assets/javascripts/core/alert.js +66 -0
- data/assets/javascripts/core/alert.min.js +2 -0
- data/assets/javascripts/core/button.js +157 -0
- data/assets/javascripts/core/button.min.js +2 -0
- data/assets/javascripts/core/core.js +730 -0
- data/assets/javascripts/core/core.min.js +2 -0
- data/assets/javascripts/core/cover.js +95 -0
- data/assets/javascripts/core/cover.min.js +2 -0
- data/assets/javascripts/core/dropdown.js +514 -0
- data/assets/javascripts/core/dropdown.min.js +2 -0
- data/assets/javascripts/core/grid.js +114 -0
- data/assets/javascripts/core/grid.min.js +2 -0
- data/assets/javascripts/core/modal.js +384 -0
- data/assets/javascripts/core/modal.min.js +2 -0
- data/assets/javascripts/core/nav.js +136 -0
- data/assets/javascripts/core/nav.min.js +2 -0
- data/assets/javascripts/core/offcanvas.js +180 -0
- data/assets/javascripts/core/offcanvas.min.js +2 -0
- data/assets/javascripts/core/scrollspy.js +208 -0
- data/assets/javascripts/core/scrollspy.min.js +2 -0
- data/assets/javascripts/core/smooth-scroll.js +62 -0
- data/assets/javascripts/core/smooth-scroll.min.js +2 -0
- data/assets/javascripts/core/switcher.js +309 -0
- data/assets/javascripts/core/switcher.min.js +2 -0
- data/assets/javascripts/core/tab.js +167 -0
- data/assets/javascripts/core/tab.min.js +2 -0
- data/assets/javascripts/core/toggle.js +120 -0
- data/assets/javascripts/core/toggle.min.js +2 -0
- data/assets/javascripts/core/touch.js +175 -0
- data/assets/javascripts/core/touch.min.js +2 -0
- data/assets/javascripts/core/utility.js +289 -0
- data/assets/javascripts/core/utility.min.js +2 -0
- data/assets/javascripts/uikit-components.js +23 -0
- data/assets/javascripts/uikit.js +3706 -0
- data/assets/javascripts/uikit.min.js +3 -0
- data/assets/stylesheets/components/accordion.scss +94 -0
- data/assets/stylesheets/components/autocomplete.scss +102 -0
- data/assets/stylesheets/components/datepicker.scss +197 -0
- data/assets/stylesheets/components/dotnav.scss +212 -0
- data/assets/stylesheets/components/form-advanced.scss +128 -0
- data/assets/stylesheets/components/form-file.scss +63 -0
- data/assets/stylesheets/components/form-password.scss +74 -0
- data/assets/stylesheets/components/form-select.scss +66 -0
- data/assets/stylesheets/components/htmleditor.scss +269 -0
- data/assets/stylesheets/components/nestable.scss +229 -0
- data/assets/stylesheets/components/notify.scss +190 -0
- data/assets/stylesheets/components/placeholder.scss +66 -0
- data/assets/stylesheets/components/progress.scss +173 -0
- data/assets/stylesheets/components/search.scss +309 -0
- data/assets/stylesheets/components/slidenav.scss +183 -0
- data/assets/stylesheets/components/slider.scss +131 -0
- data/assets/stylesheets/components/slideshow.scss +208 -0
- data/assets/stylesheets/components/sortable.scss +122 -0
- data/assets/stylesheets/components/sticky.scss +64 -0
- data/assets/stylesheets/components/tooltip.scss +177 -0
- data/assets/stylesheets/components/upload.scss +34 -0
- data/assets/stylesheets/core/alert.scss +141 -0
- data/assets/stylesheets/core/animation.scss +599 -0
- data/assets/stylesheets/core/article.scss +139 -0
- data/assets/stylesheets/core/badge.scss +110 -0
- data/assets/stylesheets/core/base-noconflict.scss +397 -0
- data/assets/stylesheets/core/base.scss +541 -0
- data/assets/stylesheets/core/block.scss +153 -0
- data/assets/stylesheets/core/breadcrumb.scss +86 -0
- data/assets/stylesheets/core/button.scss +406 -0
- data/assets/stylesheets/core/close.scss +132 -0
- data/assets/stylesheets/core/column.scss +209 -0
- data/assets/stylesheets/core/comment.scss +172 -0
- data/assets/stylesheets/core/contrast.scss +493 -0
- data/assets/stylesheets/core/cover.scss +70 -0
- data/assets/stylesheets/core/description-list.scss +71 -0
- data/assets/stylesheets/core/dropdown.scss +280 -0
- data/assets/stylesheets/core/flex.scss +320 -0
- data/assets/stylesheets/core/form.scss +627 -0
- data/assets/stylesheets/core/grid.scss +688 -0
- data/assets/stylesheets/core/icon.scss +897 -0
- data/assets/stylesheets/core/list.scss +102 -0
- data/assets/stylesheets/core/modal.scss +341 -0
- data/assets/stylesheets/core/nav.scss +468 -0
- data/assets/stylesheets/core/navbar.scss +325 -0
- data/assets/stylesheets/core/offcanvas.scss +168 -0
- data/assets/stylesheets/core/overlay.scss +534 -0
- data/assets/stylesheets/core/pagination.scss +197 -0
- data/assets/stylesheets/core/panel.scss +332 -0
- data/assets/stylesheets/core/print.scss +59 -0
- data/assets/stylesheets/core/subnav.scss +213 -0
- data/assets/stylesheets/core/switcher.scss +38 -0
- data/assets/stylesheets/core/tab.scss +368 -0
- data/assets/stylesheets/core/table.scss +147 -0
- data/assets/stylesheets/core/text.scss +128 -0
- data/assets/stylesheets/core/thumbnail.scss +122 -0
- data/assets/stylesheets/core/thumbnav.scss +122 -0
- data/assets/stylesheets/core/utility.scss +606 -0
- data/assets/stylesheets/core/variables.scss +23 -0
- data/assets/stylesheets/uikit-components.scss +22 -0
- data/assets/stylesheets/uikit-mixins.scss +327 -0
- data/assets/stylesheets/uikit-variables.scss +817 -0
- data/assets/stylesheets/uikit.scss +56 -0
- data/lib/uikit-rails.rb +2 -2
- data/lib/uikit-rails/engine.rb +11 -1
- data/lib/uikit-rails/version.rb +1 -3
- data/uikit-rails.gemspec +15 -16
- metadata +169 -44
- data/README.rb +0 -1
- data/vendor/assets/javascripts/ui.card.js +0 -115
- data/vendor/assets/javascripts/ui.color-picker.js +0 -351
- data/vendor/assets/javascripts/ui.confirmation.js +0 -133
- data/vendor/assets/javascripts/ui.dialog.js +0 -252
- data/vendor/assets/javascripts/ui.emitter.js +0 -99
- data/vendor/assets/javascripts/ui.js +0 -1641
- data/vendor/assets/javascripts/ui.menu.js +0 -238
- data/vendor/assets/javascripts/ui.notification.js +0 -240
- data/vendor/assets/javascripts/ui.overlay.js +0 -79
- data/vendor/assets/javascripts/ui.split-button.js +0 -108
- data/vendor/assets/stylesheets/ui.card.css +0 -55
- data/vendor/assets/stylesheets/ui.color-picker.css +0 -6
- data/vendor/assets/stylesheets/ui.confirmation.css +0 -7
- data/vendor/assets/stylesheets/ui.css +0 -337
- data/vendor/assets/stylesheets/ui.dialog.css +0 -92
- data/vendor/assets/stylesheets/ui.menu.css +0 -32
- data/vendor/assets/stylesheets/ui.notification.css +0 -107
- data/vendor/assets/stylesheets/ui.overlay.css +0 -16
- data/vendor/assets/stylesheets/ui.split-button.css +0 -27
@@ -0,0 +1,183 @@
|
|
1
|
+
// Name: Slidenav
|
2
|
+
// Description: Defines styles for a previous/next navigation between slides
|
3
|
+
//
|
4
|
+
// Component: `uk-slidenav`
|
5
|
+
//
|
6
|
+
// Modifiers: `uk-slidenav-previous`
|
7
|
+
// `uk-slidenav-next`
|
8
|
+
// `uk-slidenav-contrast`
|
9
|
+
//
|
10
|
+
// Sub-objects: `uk-slidenav-position`
|
11
|
+
//
|
12
|
+
// Uses: Icon: FontAwesome
|
13
|
+
//
|
14
|
+
// Markup:
|
15
|
+
//
|
16
|
+
// <!-- uk-slidenav -->
|
17
|
+
// <a href="" class="uk-slidenav uk-slidenav-previous"></a>
|
18
|
+
// <a href="" class="uk-slidenav uk-slidenav-next"></a>
|
19
|
+
//
|
20
|
+
// <!-- uk-slidenav-position -->
|
21
|
+
// <div class="uk-slidenav-position">
|
22
|
+
// <img src="" alt="">
|
23
|
+
// <a href="" class="uk-slidenav uk-slidenav-previous"></a>
|
24
|
+
// <a href="" class="uk-slidenav uk-slidenav-next"></a>
|
25
|
+
// </div>
|
26
|
+
//
|
27
|
+
// ========================================================================
|
28
|
+
|
29
|
+
|
30
|
+
// Variables
|
31
|
+
// ========================================================================
|
32
|
+
|
33
|
+
$slidenav-width: 60px !default;
|
34
|
+
$slidenav-height: $slidenav-width !default;
|
35
|
+
$slidenav-color: rgba(50,50,50,0.4) !default;
|
36
|
+
$slidenav-font-size: 60px !default;
|
37
|
+
$slidenav-line-height: $slidenav-height !default;
|
38
|
+
$slidenav-previous-icon: "\f104" !default;
|
39
|
+
$slidenav-next-icon: "\f105" !default;
|
40
|
+
|
41
|
+
$slidenav-hover-color: rgba(50,50,50,0.7) !default;
|
42
|
+
|
43
|
+
$slidenav-active-color: rgba(50,50,50,0.9) !default;
|
44
|
+
|
45
|
+
$slidenav-position-previous: 20px !default;
|
46
|
+
$slidenav-position-next: $slidenav-position-previous !default;
|
47
|
+
|
48
|
+
$slidenav-contrast-color: rgba(255,255,255,0.5) !default;
|
49
|
+
$slidenav-contrast-hover-color: rgba(255,255,255,0.7) !default;
|
50
|
+
$slidenav-contrast-active-color: rgba(255,255,255,0.9) !default;
|
51
|
+
|
52
|
+
|
53
|
+
/* ========================================================================
|
54
|
+
Component: Slidenav
|
55
|
+
========================================================================== */
|
56
|
+
|
57
|
+
/*
|
58
|
+
* 1. Required for `a` elements
|
59
|
+
* 2. Dimension
|
60
|
+
* 3. Style
|
61
|
+
*/
|
62
|
+
|
63
|
+
.uk-slidenav {
|
64
|
+
/* 1 */
|
65
|
+
display: inline-block;
|
66
|
+
/* 2 */
|
67
|
+
box-sizing: border-box;
|
68
|
+
width: $slidenav-width;
|
69
|
+
height: $slidenav-height;
|
70
|
+
/* 3 */
|
71
|
+
line-height: $slidenav-line-height;
|
72
|
+
color: $slidenav-color;
|
73
|
+
font-size: $slidenav-font-size;
|
74
|
+
text-align: center;
|
75
|
+
@include hook-slidenav();
|
76
|
+
}
|
77
|
+
|
78
|
+
/*
|
79
|
+
* Hover
|
80
|
+
* 1. Apply hover style also to focus state
|
81
|
+
* 2. Remove default focus style
|
82
|
+
* 3. Required for `a` elements
|
83
|
+
* 4. Style
|
84
|
+
*/
|
85
|
+
|
86
|
+
.uk-slidenav:hover,
|
87
|
+
.uk-slidenav:focus { // 1
|
88
|
+
/* 2 */
|
89
|
+
outline: none;
|
90
|
+
/* 3 */
|
91
|
+
text-decoration: none;
|
92
|
+
/* 4 */
|
93
|
+
color: $slidenav-hover-color;
|
94
|
+
cursor: pointer;
|
95
|
+
@include hook-slidenav-hover();
|
96
|
+
}
|
97
|
+
|
98
|
+
/* Active */
|
99
|
+
.uk-slidenav:active {
|
100
|
+
color: $slidenav-active-color;
|
101
|
+
@include hook-slidenav-active();
|
102
|
+
}
|
103
|
+
|
104
|
+
/*
|
105
|
+
* Icons
|
106
|
+
*/
|
107
|
+
|
108
|
+
.uk-slidenav-previous:before {
|
109
|
+
content: $slidenav-previous-icon;
|
110
|
+
font-family: FontAwesome;
|
111
|
+
}
|
112
|
+
|
113
|
+
.uk-slidenav-next:before {
|
114
|
+
content: $slidenav-next-icon;
|
115
|
+
font-family: FontAwesome;
|
116
|
+
}
|
117
|
+
|
118
|
+
|
119
|
+
/* Sub-object: `uk-slidenav-position`
|
120
|
+
========================================================================== */
|
121
|
+
|
122
|
+
/*
|
123
|
+
* Create position context
|
124
|
+
*/
|
125
|
+
|
126
|
+
.uk-slidenav-position { position: relative; }
|
127
|
+
|
128
|
+
/*
|
129
|
+
* Center vertically
|
130
|
+
*/
|
131
|
+
|
132
|
+
.uk-slidenav-position .uk-slidenav {
|
133
|
+
display: none;
|
134
|
+
position: absolute;
|
135
|
+
top: 50%;
|
136
|
+
z-index: 1;
|
137
|
+
margin-top: -($slidenav-height / 2);
|
138
|
+
}
|
139
|
+
|
140
|
+
.uk-slidenav-position:hover .uk-slidenav { display: block; }
|
141
|
+
|
142
|
+
.uk-slidenav-position .uk-slidenav-previous { left: $slidenav-position-previous; }
|
143
|
+
.uk-slidenav-position .uk-slidenav-next { right: $slidenav-position-next; }
|
144
|
+
|
145
|
+
|
146
|
+
/* Modifier: `uk-slidenav-contrast`
|
147
|
+
========================================================================== */
|
148
|
+
|
149
|
+
.uk-slidenav-contrast {
|
150
|
+
color: $slidenav-contrast-color;
|
151
|
+
@include hook-slidenav-contrast();
|
152
|
+
}
|
153
|
+
|
154
|
+
/*
|
155
|
+
* Hover
|
156
|
+
* 1. Apply hover style also to focus state
|
157
|
+
*/
|
158
|
+
|
159
|
+
.uk-slidenav-contrast:hover,
|
160
|
+
.uk-slidenav-contrast:focus { // 1
|
161
|
+
color: $slidenav-contrast-hover-color;
|
162
|
+
@include hook-slidenav-contrast-hover();
|
163
|
+
}
|
164
|
+
|
165
|
+
/* Active */
|
166
|
+
.uk-slidenav-contrast:active {
|
167
|
+
color: $slidenav-contrast-active-color;
|
168
|
+
@include hook-slidenav-contrast-active();
|
169
|
+
}
|
170
|
+
|
171
|
+
|
172
|
+
// Hooks
|
173
|
+
// ========================================================================
|
174
|
+
|
175
|
+
@include hook-slidenav-misc();
|
176
|
+
|
177
|
+
// @mixin hook-slidenav(){}
|
178
|
+
// @mixin hook-slidenav-hover(){}
|
179
|
+
// @mixin hook-slidenav-active(){}
|
180
|
+
// @mixin hook-slidenav-contrast(){}
|
181
|
+
// @mixin hook-slidenav-contrast-hover(){}
|
182
|
+
// @mixin hook-slidenav-contrast-active(){}
|
183
|
+
// @mixin hook-slidenav-misc(){}
|
@@ -0,0 +1,131 @@
|
|
1
|
+
// Name: Slider
|
2
|
+
// Description: Defines styles for a horizontal slider
|
3
|
+
//
|
4
|
+
// Component: `uk-slider`
|
5
|
+
//
|
6
|
+
// Sub-objects: `uk-slider-container`
|
7
|
+
//
|
8
|
+
// Modifier: `uk-slider-fullscreen`
|
9
|
+
//
|
10
|
+
// States: `uk-drag`
|
11
|
+
//
|
12
|
+
// Markup:
|
13
|
+
//
|
14
|
+
// <!-- uk-slider -->
|
15
|
+
// <div data-uk-slider>
|
16
|
+
// <div class="uk-slider-container">
|
17
|
+
// <ul class="uk-slider">
|
18
|
+
// <li></li>
|
19
|
+
// <li></li>
|
20
|
+
// </ul>
|
21
|
+
// </div>
|
22
|
+
// </div>
|
23
|
+
//
|
24
|
+
// ========================================================================
|
25
|
+
|
26
|
+
|
27
|
+
/* ========================================================================
|
28
|
+
Component: Slider
|
29
|
+
========================================================================== */
|
30
|
+
|
31
|
+
/*
|
32
|
+
* 1. Create position context
|
33
|
+
* 2. Create stacking context to prevent z-index issues with other components
|
34
|
+
* 3. Deactivate browser history navigation in IE11
|
35
|
+
*/
|
36
|
+
|
37
|
+
.uk-slider {
|
38
|
+
/* 1 */
|
39
|
+
position: relative;
|
40
|
+
/* 2 */
|
41
|
+
z-index: 0;
|
42
|
+
/* 3 */
|
43
|
+
touch-action: pan-y;
|
44
|
+
}
|
45
|
+
|
46
|
+
/*
|
47
|
+
* 1. Reset list style without interfering with grid
|
48
|
+
*/
|
49
|
+
|
50
|
+
.uk-slider:not(.uk-grid) {
|
51
|
+
/* 1 */
|
52
|
+
margin: 0;
|
53
|
+
padding: 0;
|
54
|
+
list-style: none;
|
55
|
+
}
|
56
|
+
|
57
|
+
/*
|
58
|
+
* Sub-object item
|
59
|
+
* 1. Position items above each other
|
60
|
+
*/
|
61
|
+
|
62
|
+
.uk-slider > * {
|
63
|
+
/* 1 */
|
64
|
+
position: absolute;
|
65
|
+
top: 0;
|
66
|
+
left: 0;
|
67
|
+
}
|
68
|
+
|
69
|
+
/*
|
70
|
+
* Clip child elements
|
71
|
+
*/
|
72
|
+
|
73
|
+
.uk-slider-container { overflow: hidden; }
|
74
|
+
|
75
|
+
/*
|
76
|
+
* Dragged
|
77
|
+
*/
|
78
|
+
|
79
|
+
.uk-slider:not(.uk-drag) {
|
80
|
+
-webkit-transition: -webkit-transform 200ms linear;
|
81
|
+
transition: transform 200ms linear;
|
82
|
+
}
|
83
|
+
|
84
|
+
/*
|
85
|
+
* 1. Makes text unselectable
|
86
|
+
*/
|
87
|
+
|
88
|
+
.uk-slider.uk-drag {
|
89
|
+
cursor: col-resize;
|
90
|
+
/* 1 */
|
91
|
+
-moz-user-select: none;
|
92
|
+
-webkit-user-select: none;
|
93
|
+
-ms-user-select: none;
|
94
|
+
user-select: none;
|
95
|
+
}
|
96
|
+
|
97
|
+
/*
|
98
|
+
* 1. Prevents images and links from being dragged (default browser behavior)
|
99
|
+
* 2. Disables the default callout shown when you touch and hold a touch target
|
100
|
+
* Currently only works in Webkit
|
101
|
+
*/
|
102
|
+
|
103
|
+
.uk-slider a,
|
104
|
+
.uk-slider img {
|
105
|
+
/* 1 */
|
106
|
+
-webkit-user-drag: none;
|
107
|
+
user-drag: none;
|
108
|
+
/* 2 */
|
109
|
+
-webkit-touch-callout: none;
|
110
|
+
}
|
111
|
+
|
112
|
+
/*
|
113
|
+
* 1. Prevents images and links from being dragged in Firefox
|
114
|
+
*/
|
115
|
+
|
116
|
+
.uk-slider img { pointer-events: none; }
|
117
|
+
|
118
|
+
|
119
|
+
/* Modifier: `uk-slider-fullscreen`
|
120
|
+
========================================================================== */
|
121
|
+
|
122
|
+
.uk-slider-fullscreen,
|
123
|
+
.uk-slider-fullscreen > li { height: 100vh; }
|
124
|
+
|
125
|
+
|
126
|
+
// Hooks
|
127
|
+
// ========================================================================
|
128
|
+
|
129
|
+
@include hook-slider-misc();
|
130
|
+
|
131
|
+
// @mixin hook-slider-misc(){}
|
@@ -0,0 +1,208 @@
|
|
1
|
+
// Name: Slideshow
|
2
|
+
// Description: Defines styles for a slideshow
|
3
|
+
//
|
4
|
+
// Component: `uk-slideshow`
|
5
|
+
//
|
6
|
+
// Modifier: `uk-slideshow-fullscreen`
|
7
|
+
//
|
8
|
+
// Sub-modifier: `uk-slideshow-fade-out`
|
9
|
+
// `uk-slideshow-scroll-forward-in`
|
10
|
+
// `uk-slideshow-scroll-forward-out`
|
11
|
+
// `uk-slideshow-scroll-backward-in`
|
12
|
+
// `uk-slideshow-scroll-backward-out`
|
13
|
+
// `uk-slideshow-scale-out`
|
14
|
+
// `uk-slideshow-swipe-forward-in`
|
15
|
+
// `uk-slideshow-swipe-forward-out`
|
16
|
+
// `uk-slideshow-swipe-backward-in`
|
17
|
+
// `uk-slideshow-swipe-backward-out`
|
18
|
+
//
|
19
|
+
// States: `uk-active`
|
20
|
+
//
|
21
|
+
// Uses: Cover (JS)
|
22
|
+
//
|
23
|
+
// Markup:
|
24
|
+
//
|
25
|
+
// <!-- uk-slideshow -->
|
26
|
+
// <ul class="uk-slideshow" data-uk-slideshow>
|
27
|
+
// <li><img src="" width="" height="" alt=""></li>
|
28
|
+
// </ul>
|
29
|
+
//
|
30
|
+
// ========================================================================
|
31
|
+
|
32
|
+
|
33
|
+
/* ========================================================================
|
34
|
+
Component: Slideshow
|
35
|
+
========================================================================== */
|
36
|
+
|
37
|
+
/*
|
38
|
+
* 1. Create position context
|
39
|
+
* 2. Create stacking context to prevent z-index issues with other components
|
40
|
+
* 3. Set width because child elements are positioned absolute. Height is set via JS
|
41
|
+
* 4. Reset list style
|
42
|
+
* 5. Clip child elements
|
43
|
+
* 6. Deactivate browser history navigation in IE11
|
44
|
+
*/
|
45
|
+
|
46
|
+
.uk-slideshow {
|
47
|
+
/* 1 */
|
48
|
+
position: relative;
|
49
|
+
/* 2 */
|
50
|
+
z-index: 0;
|
51
|
+
/* 3 */
|
52
|
+
width: 100%;
|
53
|
+
/* 4 */
|
54
|
+
margin: 0;
|
55
|
+
padding: 0;
|
56
|
+
list-style: none;
|
57
|
+
/* 5 */
|
58
|
+
overflow: hidden;
|
59
|
+
/* 6 */
|
60
|
+
touch-action: pan-y;
|
61
|
+
}
|
62
|
+
|
63
|
+
/*
|
64
|
+
* Sub-object item
|
65
|
+
* 1. Position items above each other
|
66
|
+
* 2. Expand to parent container width
|
67
|
+
* 3. Hide by default
|
68
|
+
*/
|
69
|
+
|
70
|
+
.uk-slideshow > li {
|
71
|
+
/* 1 */
|
72
|
+
position: absolute;
|
73
|
+
top: 0;
|
74
|
+
left: 0;
|
75
|
+
/* 2 */
|
76
|
+
width: 100%;
|
77
|
+
/* 3 */
|
78
|
+
opacity: 0;
|
79
|
+
}
|
80
|
+
|
81
|
+
/*
|
82
|
+
* Active
|
83
|
+
* 1. Stack at first
|
84
|
+
* 2. Show slide
|
85
|
+
*/
|
86
|
+
|
87
|
+
.uk-slideshow > .uk-active {
|
88
|
+
/* 1 */
|
89
|
+
z-index: 10;
|
90
|
+
/* 2 */
|
91
|
+
opacity: 1;
|
92
|
+
}
|
93
|
+
|
94
|
+
/*
|
95
|
+
* Hide default images which is only relevant to keep existing proportions
|
96
|
+
*/
|
97
|
+
|
98
|
+
.uk-slideshow > li > img { visibility: hidden; }
|
99
|
+
|
100
|
+
/*
|
101
|
+
* Pointer for controls
|
102
|
+
*/
|
103
|
+
|
104
|
+
[data-uk-slideshow-slide] { cursor: pointer; }
|
105
|
+
|
106
|
+
|
107
|
+
/* Modifier: `uk-slideshow-fullscreen`
|
108
|
+
========================================================================== */
|
109
|
+
|
110
|
+
.uk-slideshow-fullscreen,
|
111
|
+
.uk-slideshow-fullscreen > li { height: 100vh; }
|
112
|
+
|
113
|
+
|
114
|
+
/* Animations
|
115
|
+
========================================================================== */
|
116
|
+
|
117
|
+
/*
|
118
|
+
* Fade
|
119
|
+
*/
|
120
|
+
|
121
|
+
.uk-slideshow-fade-in {
|
122
|
+
-webkit-animation: uk-fade 0.5s linear;
|
123
|
+
animation: uk-fade 0.5s linear;
|
124
|
+
}
|
125
|
+
|
126
|
+
.uk-slideshow-fade-out {
|
127
|
+
-webkit-animation: uk-fade 0.5s linear reverse;
|
128
|
+
animation: uk-fade 0.5s linear reverse;
|
129
|
+
}
|
130
|
+
|
131
|
+
/*
|
132
|
+
* Scroll
|
133
|
+
*/
|
134
|
+
|
135
|
+
.uk-slideshow-scroll-forward-in {
|
136
|
+
-webkit-animation: uk-slide-right 0.5s ease-in-out;
|
137
|
+
animation: uk-slide-right 0.5s ease-in-out;
|
138
|
+
}
|
139
|
+
|
140
|
+
.uk-slideshow-scroll-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-scroll-backward-in {
|
146
|
+
-webkit-animation: uk-slide-left 0.5s ease-in-out;
|
147
|
+
animation: uk-slide-left 0.5s ease-in-out;
|
148
|
+
}
|
149
|
+
|
150
|
+
.uk-slideshow-scroll-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
|
+
/*
|
156
|
+
* Scale
|
157
|
+
*/
|
158
|
+
|
159
|
+
.uk-slideshow-scale-out {
|
160
|
+
-webkit-animation: uk-fade-scale-15 0.5s ease-in-out reverse;
|
161
|
+
animation: uk-fade-scale-15 0.5s ease-in-out reverse;
|
162
|
+
}
|
163
|
+
|
164
|
+
/*
|
165
|
+
* Swipe
|
166
|
+
*/
|
167
|
+
|
168
|
+
.uk-slideshow-swipe-forward-in {
|
169
|
+
-webkit-animation: uk-slide-left-33 0.5s ease-in-out;
|
170
|
+
animation: uk-slide-left-33 0.5s ease-in-out;
|
171
|
+
}
|
172
|
+
|
173
|
+
.uk-slideshow-swipe-forward-out {
|
174
|
+
-webkit-animation: uk-slide-left 0.5s ease-in-out reverse;
|
175
|
+
animation: uk-slide-left 0.5s ease-in-out reverse;
|
176
|
+
}
|
177
|
+
|
178
|
+
.uk-slideshow-swipe-backward-in {
|
179
|
+
-webkit-animation: uk-slide-right-33 0.5s ease-in-out;
|
180
|
+
animation: uk-slide-right-33 0.5s ease-in-out;
|
181
|
+
}
|
182
|
+
|
183
|
+
.uk-slideshow-swipe-backward-out {
|
184
|
+
-webkit-animation: uk-slide-right 0.5s ease-in-out reverse;
|
185
|
+
animation: uk-slide-right 0.5s ease-in-out reverse;
|
186
|
+
}
|
187
|
+
|
188
|
+
.uk-slideshow-swipe-forward-in:before,
|
189
|
+
.uk-slideshow-swipe-backward-in:before {
|
190
|
+
content: '';
|
191
|
+
position: absolute;
|
192
|
+
top: 0;
|
193
|
+
bottom: 0;
|
194
|
+
left: 0;
|
195
|
+
right: 0;
|
196
|
+
z-index: 1;
|
197
|
+
background: rgba(0,0,0,0.6);
|
198
|
+
-webkit-animation: uk-fade 0.5s ease-in-out reverse;
|
199
|
+
animation: uk-fade 0.5s ease-in-out reverse;
|
200
|
+
}
|
201
|
+
|
202
|
+
|
203
|
+
// Hooks
|
204
|
+
// ========================================================================
|
205
|
+
|
206
|
+
@include hook-slideshow-misc();
|
207
|
+
|
208
|
+
// @mixin hook-slideshow-misc(){}
|