uikit-on-rails 1.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +18 -0
- data/README.md +37 -0
- data/Rakefile +1 -0
- data/lib/uikit-on-rails.rb +1 -0
- data/lib/uikit/sass/rails.rb +2 -0
- data/lib/uikit/sass/rails/engine.rb +12 -0
- data/lib/uikit/sass/rails/version.rb +7 -0
- data/uikit-on-rails.gemspec +23 -0
- 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 +565 -0
- 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 +19 -0
- data/vendor/assets/javascripts/uikit/components/accordion.js +180 -0
- data/vendor/assets/javascripts/uikit/components/autocomplete.js +340 -0
- data/vendor/assets/javascripts/uikit/components/datepicker.js +3167 -0
- data/vendor/assets/javascripts/uikit/components/form-password.js +67 -0
- data/vendor/assets/javascripts/uikit/components/form-select.js +85 -0
- data/vendor/assets/javascripts/uikit/components/grid-parallax.js +168 -0
- data/vendor/assets/javascripts/uikit/components/grid.js +540 -0
- data/vendor/assets/javascripts/uikit/components/htmleditor.js +679 -0
- data/vendor/assets/javascripts/uikit/components/lightbox.js +591 -0
- data/vendor/assets/javascripts/uikit/components/nestable.js +653 -0
- data/vendor/assets/javascripts/uikit/components/notify.js +189 -0
- data/vendor/assets/javascripts/uikit/components/pagination.js +147 -0
- data/vendor/assets/javascripts/uikit/components/parallax.js +462 -0
- data/vendor/assets/javascripts/uikit/components/search.js +92 -0
- data/vendor/assets/javascripts/uikit/components/slider.js +552 -0
- data/vendor/assets/javascripts/uikit/components/slideset.js +523 -0
- data/vendor/assets/javascripts/uikit/components/slideshow-fx.js +383 -0
- data/vendor/assets/javascripts/uikit/components/slideshow.js +596 -0
- data/vendor/assets/javascripts/uikit/components/sortable.js +688 -0
- data/vendor/assets/javascripts/uikit/components/sticky.js +364 -0
- data/vendor/assets/javascripts/uikit/components/timepicker.js +192 -0
- data/vendor/assets/javascripts/uikit/components/tooltip.js +234 -0
- data/vendor/assets/javascripts/uikit/components/upload.js +262 -0
- data/vendor/assets/javascripts/uikit/core/alert.js +66 -0
- data/vendor/assets/javascripts/uikit/core/button.js +156 -0
- data/vendor/assets/javascripts/uikit/core/core.js +820 -0
- data/vendor/assets/javascripts/uikit/core/cover.js +95 -0
- data/vendor/assets/javascripts/uikit/core/dropdown.js +529 -0
- data/vendor/assets/javascripts/uikit/core/grid.js +117 -0
- data/vendor/assets/javascripts/uikit/core/modal.js +389 -0
- data/vendor/assets/javascripts/uikit/core/nav.js +152 -0
- data/vendor/assets/javascripts/uikit/core/offcanvas.js +197 -0
- data/vendor/assets/javascripts/uikit/core/scrollspy.js +209 -0
- data/vendor/assets/javascripts/uikit/core/smooth-scroll.js +62 -0
- data/vendor/assets/javascripts/uikit/core/switcher.js +309 -0
- data/vendor/assets/javascripts/uikit/core/tab.js +167 -0
- data/vendor/assets/javascripts/uikit/core/toggle.js +124 -0
- data/vendor/assets/javascripts/uikit/core/touch.js +175 -0
- data/vendor/assets/javascripts/uikit/core/utility.js +338 -0
- data/vendor/assets/javascripts/uikit/uikit.js +3905 -0
- data/vendor/assets/stylesheets/extra/font-awesome.scss +14 -0
- data/vendor/assets/stylesheets/uikit.scss +7 -0
- data/vendor/assets/stylesheets/uikit/components/accordion.scss +94 -0
- data/vendor/assets/stylesheets/uikit/components/autocomplete.scss +107 -0
- data/vendor/assets/stylesheets/uikit/components/datepicker.scss +197 -0
- data/vendor/assets/stylesheets/uikit/components/dotnav.scss +212 -0
- data/vendor/assets/stylesheets/uikit/components/form-advanced.scss +128 -0
- data/vendor/assets/stylesheets/uikit/components/form-file.scss +63 -0
- data/vendor/assets/stylesheets/uikit/components/form-password.scss +74 -0
- data/vendor/assets/stylesheets/uikit/components/form-select.scss +66 -0
- data/vendor/assets/stylesheets/uikit/components/htmleditor.scss +269 -0
- data/vendor/assets/stylesheets/uikit/components/nestable.scss +231 -0
- data/vendor/assets/stylesheets/uikit/components/notify.scss +190 -0
- data/vendor/assets/stylesheets/uikit/components/placeholder.scss +66 -0
- data/vendor/assets/stylesheets/uikit/components/progress.scss +173 -0
- data/vendor/assets/stylesheets/uikit/components/search.scss +309 -0
- data/vendor/assets/stylesheets/uikit/components/slidenav.scss +183 -0
- data/vendor/assets/stylesheets/uikit/components/slider.scss +139 -0
- data/vendor/assets/stylesheets/uikit/components/slideshow.scss +208 -0
- data/vendor/assets/stylesheets/uikit/components/sortable.scss +124 -0
- data/vendor/assets/stylesheets/uikit/components/sticky.scss +57 -0
- data/vendor/assets/stylesheets/uikit/components/tooltip.scss +177 -0
- data/vendor/assets/stylesheets/uikit/components/upload.scss +34 -0
- data/vendor/assets/stylesheets/uikit/core/alert.scss +141 -0
- data/vendor/assets/stylesheets/uikit/core/animation.scss +599 -0
- data/vendor/assets/stylesheets/uikit/core/article.scss +139 -0
- data/vendor/assets/stylesheets/uikit/core/badge.scss +110 -0
- data/vendor/assets/stylesheets/uikit/core/base.scss +563 -0
- data/vendor/assets/stylesheets/uikit/core/block.scss +155 -0
- data/vendor/assets/stylesheets/uikit/core/breadcrumb.scss +86 -0
- data/vendor/assets/stylesheets/uikit/core/button.scss +406 -0
- data/vendor/assets/stylesheets/uikit/core/close.scss +132 -0
- data/vendor/assets/stylesheets/uikit/core/column.scss +209 -0
- data/vendor/assets/stylesheets/uikit/core/comment.scss +172 -0
- data/vendor/assets/stylesheets/uikit/core/contrast.scss +493 -0
- data/vendor/assets/stylesheets/uikit/core/cover.scss +70 -0
- data/vendor/assets/stylesheets/uikit/core/description-list.scss +71 -0
- data/vendor/assets/stylesheets/uikit/core/dropdown.scss +280 -0
- data/vendor/assets/stylesheets/uikit/core/flex.scss +320 -0
- data/vendor/assets/stylesheets/uikit/core/form.scss +629 -0
- data/vendor/assets/stylesheets/uikit/core/grid.scss +731 -0
- data/vendor/assets/stylesheets/uikit/core/icon.scss +930 -0
- data/vendor/assets/stylesheets/uikit/core/list.scss +102 -0
- data/vendor/assets/stylesheets/uikit/core/modal.scss +343 -0
- data/vendor/assets/stylesheets/uikit/core/nav.scss +468 -0
- data/vendor/assets/stylesheets/uikit/core/navbar.scss +325 -0
- data/vendor/assets/stylesheets/uikit/core/offcanvas.scss +203 -0
- data/vendor/assets/stylesheets/uikit/core/overlay.scss +534 -0
- data/vendor/assets/stylesheets/uikit/core/pagination.scss +197 -0
- data/vendor/assets/stylesheets/uikit/core/panel.scss +332 -0
- data/vendor/assets/stylesheets/uikit/core/print.scss +61 -0
- data/vendor/assets/stylesheets/uikit/core/subnav.scss +213 -0
- data/vendor/assets/stylesheets/uikit/core/switcher.scss +38 -0
- data/vendor/assets/stylesheets/uikit/core/tab.scss +368 -0
- data/vendor/assets/stylesheets/uikit/core/table.scss +147 -0
- data/vendor/assets/stylesheets/uikit/core/text.scss +136 -0
- data/vendor/assets/stylesheets/uikit/core/thumbnail.scss +122 -0
- data/vendor/assets/stylesheets/uikit/core/thumbnav.scss +122 -0
- data/vendor/assets/stylesheets/uikit/core/utility.scss +610 -0
- data/vendor/assets/stylesheets/uikit/core/variables.scss +23 -0
- data/vendor/assets/stylesheets/uikit/uikit-mixins.scss +327 -0
- data/vendor/assets/stylesheets/uikit/uikit-variables.scss +819 -0
- data/vendor/assets/stylesheets/uikit/uikit.scss +52 -0
- metadata +177 -0
@@ -0,0 +1,610 @@
|
|
1
|
+
// Name: Utility
|
2
|
+
// Description: Collection of useful utility classes to style your content
|
3
|
+
//
|
4
|
+
// Component: `uk-container-*`
|
5
|
+
// `uk-clearfix`
|
6
|
+
// `uk-nbfc-*`
|
7
|
+
// `uk-float-*`
|
8
|
+
// `uk-align-*`
|
9
|
+
// `uk-vertical-align-*`
|
10
|
+
// `uk-height-*`
|
11
|
+
// `uk-responsive-*`
|
12
|
+
// `uk-margin-*`
|
13
|
+
// `uk-padding-*`
|
14
|
+
// `uk-border-*`
|
15
|
+
// `uk-heading-*`
|
16
|
+
// `uk-link-*`
|
17
|
+
// `uk-scrollable-*`
|
18
|
+
// `uk-overflow-*`
|
19
|
+
// `uk-position-*`
|
20
|
+
// `uk-display-*`
|
21
|
+
// `uk-visible-*`
|
22
|
+
// `uk-hidden-*`
|
23
|
+
// `uk-invisible`
|
24
|
+
//
|
25
|
+
// Used by: Overlay
|
26
|
+
//
|
27
|
+
// ========================================================================
|
28
|
+
|
29
|
+
|
30
|
+
// Variables
|
31
|
+
// ========================================================================
|
32
|
+
|
33
|
+
$utility-container-max-width: 980px !default;
|
34
|
+
$utility-container-padding-horizontal: 25px !default;
|
35
|
+
|
36
|
+
$utility-container-large-max-width: 1200px !default;
|
37
|
+
$utility-container-large-padding-horizontal: 35px !default;
|
38
|
+
|
39
|
+
$utility-align-horizontal: 15px !default;
|
40
|
+
$utility-align-vertical: 15px !default;
|
41
|
+
|
42
|
+
$utility-height-viewport-min-height: 600px !default;
|
43
|
+
|
44
|
+
$utility-margin: 15px !default;
|
45
|
+
$utility-margin-small: 5px !default;
|
46
|
+
$utility-margin-large: 50px !default;
|
47
|
+
|
48
|
+
$utility-border-rounded: 5px !default;
|
49
|
+
|
50
|
+
$utility-heading-large-small-font-size: 36px !default;
|
51
|
+
$utility-heading-large-small-line-height: 42px !default;
|
52
|
+
$utility-heading-large-font-size: 52px !default;
|
53
|
+
$utility-heading-large-line-height: 64px !default;
|
54
|
+
|
55
|
+
$utility-link-muted-color: #444 !default;
|
56
|
+
$utility-link-muted-hover-color: #444 !default;
|
57
|
+
|
58
|
+
$utility-scrollable-text-height: 300px !default;
|
59
|
+
|
60
|
+
$utility-scrollable-box-height: 170px !default;
|
61
|
+
$utility-scrollable-box-padding: 10px !default;
|
62
|
+
$utility-scrollable-box-border: #ddd !default;
|
63
|
+
$utility-scrollable-box-border-width: 1px !default;
|
64
|
+
|
65
|
+
|
66
|
+
/* ========================================================================
|
67
|
+
Component: Utility
|
68
|
+
========================================================================== */
|
69
|
+
|
70
|
+
/* Container
|
71
|
+
========================================================================== */
|
72
|
+
|
73
|
+
.uk-container {
|
74
|
+
box-sizing: border-box;
|
75
|
+
max-width: $utility-container-max-width;
|
76
|
+
padding: 0 $utility-container-padding-horizontal;
|
77
|
+
@include hook-container();
|
78
|
+
}
|
79
|
+
|
80
|
+
/* Large screen and bigger */
|
81
|
+
@media (min-width: $breakpoint-xlarge) {
|
82
|
+
|
83
|
+
.uk-container {
|
84
|
+
max-width: $utility-container-large-max-width;
|
85
|
+
padding: 0 $utility-container-large-padding-horizontal;
|
86
|
+
}
|
87
|
+
|
88
|
+
}
|
89
|
+
|
90
|
+
/*
|
91
|
+
* Micro clearfix
|
92
|
+
*/
|
93
|
+
|
94
|
+
.uk-container:before,
|
95
|
+
.uk-container:after {
|
96
|
+
content: "";
|
97
|
+
display: table;
|
98
|
+
}
|
99
|
+
|
100
|
+
.uk-container:after { clear: both; }
|
101
|
+
|
102
|
+
/*
|
103
|
+
* Center container
|
104
|
+
*/
|
105
|
+
|
106
|
+
.uk-container-center {
|
107
|
+
margin-left: auto;
|
108
|
+
margin-right: auto;
|
109
|
+
}
|
110
|
+
|
111
|
+
|
112
|
+
/* Clearing
|
113
|
+
========================================================================== */
|
114
|
+
|
115
|
+
/*
|
116
|
+
* Micro clearfix
|
117
|
+
* `table-cell` is used with `:before` because `table` creates a 1px gap when it becomes a flex item, only in Webkit
|
118
|
+
* `table` is used again with `:after` because `clear` only works with block elements.
|
119
|
+
* Note: `display: block` with `overflow: hidden` is currently not working in the latest Safari
|
120
|
+
*/
|
121
|
+
|
122
|
+
.uk-clearfix:before {
|
123
|
+
content: "";
|
124
|
+
display: table-cell;
|
125
|
+
}
|
126
|
+
|
127
|
+
.uk-clearfix:after {
|
128
|
+
content: "";
|
129
|
+
display: table;
|
130
|
+
clear: both;
|
131
|
+
}
|
132
|
+
|
133
|
+
|
134
|
+
/*
|
135
|
+
* Create a new block formatting context
|
136
|
+
*/
|
137
|
+
|
138
|
+
.uk-nbfc { overflow: hidden; }
|
139
|
+
|
140
|
+
.uk-nbfc-alt {
|
141
|
+
display: table-cell;
|
142
|
+
width: 10000px;
|
143
|
+
}
|
144
|
+
|
145
|
+
|
146
|
+
/* Alignment of block elements
|
147
|
+
========================================================================== */
|
148
|
+
|
149
|
+
/*
|
150
|
+
* Float blocks
|
151
|
+
* 1. Prevent content overflow on small devices
|
152
|
+
*/
|
153
|
+
|
154
|
+
.uk-float-left { float: left; }
|
155
|
+
.uk-float-right { float: right; }
|
156
|
+
|
157
|
+
/* 1 */
|
158
|
+
[class*='uk-float-'] { max-width: 100%; }
|
159
|
+
|
160
|
+
|
161
|
+
/* Alignment of images and objects
|
162
|
+
========================================================================== */
|
163
|
+
|
164
|
+
/*
|
165
|
+
* Alignment
|
166
|
+
*/
|
167
|
+
|
168
|
+
[class*='uk-align-'] {
|
169
|
+
display: block;
|
170
|
+
margin-bottom: $utility-align-vertical;
|
171
|
+
}
|
172
|
+
|
173
|
+
.uk-align-left {
|
174
|
+
margin-right: $utility-align-horizontal;
|
175
|
+
float: left;
|
176
|
+
}
|
177
|
+
|
178
|
+
.uk-align-right {
|
179
|
+
margin-left: $utility-align-horizontal;
|
180
|
+
float: right;
|
181
|
+
}
|
182
|
+
|
183
|
+
/* Tablet and bigger */
|
184
|
+
@media (min-width: $breakpoint-medium) {
|
185
|
+
|
186
|
+
.uk-align-medium-left {
|
187
|
+
margin-right: $utility-align-horizontal;
|
188
|
+
float: left;
|
189
|
+
}
|
190
|
+
|
191
|
+
.uk-align-medium-right {
|
192
|
+
margin-left: $utility-align-horizontal;
|
193
|
+
float: right;
|
194
|
+
}
|
195
|
+
|
196
|
+
}
|
197
|
+
|
198
|
+
.uk-align-center {
|
199
|
+
margin-left: auto;
|
200
|
+
margin-right: auto;
|
201
|
+
}
|
202
|
+
|
203
|
+
|
204
|
+
/* Vertical alignment
|
205
|
+
========================================================================== */
|
206
|
+
|
207
|
+
/*
|
208
|
+
* Remove whitespace between child elements when using `inline-block`
|
209
|
+
*/
|
210
|
+
|
211
|
+
.uk-vertical-align { font-size: 0.001px; }
|
212
|
+
|
213
|
+
/*
|
214
|
+
* The `uk-vertical-align` container needs a specific height
|
215
|
+
*/
|
216
|
+
|
217
|
+
.uk-vertical-align:before {
|
218
|
+
content: '';
|
219
|
+
display: inline-block;
|
220
|
+
height: 100%;
|
221
|
+
vertical-align: middle;
|
222
|
+
}
|
223
|
+
|
224
|
+
/*
|
225
|
+
* Sub-object which can have any height
|
226
|
+
* 1. Reset whitespace hack
|
227
|
+
*/
|
228
|
+
|
229
|
+
.uk-vertical-align-middle,
|
230
|
+
.uk-vertical-align-bottom {
|
231
|
+
display: inline-block;
|
232
|
+
max-width: 100%;
|
233
|
+
/* 1 */
|
234
|
+
font-size: 1rem;
|
235
|
+
}
|
236
|
+
|
237
|
+
.uk-vertical-align-middle { vertical-align: middle; }
|
238
|
+
.uk-vertical-align-bottom { vertical-align: bottom; }
|
239
|
+
|
240
|
+
|
241
|
+
/* Height
|
242
|
+
========================================================================== */
|
243
|
+
|
244
|
+
/*
|
245
|
+
* More robust if padding and border are used
|
246
|
+
*/
|
247
|
+
|
248
|
+
[class*='uk-height'] { box-sizing: border-box; }
|
249
|
+
|
250
|
+
/*
|
251
|
+
* Useful to extend the `html` and `body` element to the full height of the page.
|
252
|
+
*/
|
253
|
+
|
254
|
+
.uk-height-1-1 { height: 100%; }
|
255
|
+
|
256
|
+
/*
|
257
|
+
* Useful to create image teasers
|
258
|
+
*/
|
259
|
+
|
260
|
+
.uk-height-viewport {
|
261
|
+
height: 100vh;
|
262
|
+
min-height: $utility-height-viewport-min-height;
|
263
|
+
}
|
264
|
+
|
265
|
+
|
266
|
+
/* Responsive objects
|
267
|
+
* Note: Images are already responsive by default, see Base component
|
268
|
+
========================================================================== */
|
269
|
+
|
270
|
+
/*
|
271
|
+
* 1. Corrects `max-width` and `max-height` behavior if padding and border are used
|
272
|
+
*/
|
273
|
+
|
274
|
+
.uk-responsive-width,
|
275
|
+
.uk-responsive-height { box-sizing: border-box; }
|
276
|
+
|
277
|
+
/*
|
278
|
+
* Responsiveness: Sets a maximum width relative to the parent and auto scales the height
|
279
|
+
* `important` needed to override `uk-img-preserve img`
|
280
|
+
*/
|
281
|
+
|
282
|
+
.uk-responsive-width {
|
283
|
+
max-width: 100% !important;
|
284
|
+
height: auto;
|
285
|
+
}
|
286
|
+
|
287
|
+
/*
|
288
|
+
* Responsiveness: Sets a maximum height relative to the parent and auto scales the width
|
289
|
+
* Only works if the parent element has a fixed height.
|
290
|
+
*/
|
291
|
+
|
292
|
+
.uk-responsive-height {
|
293
|
+
max-height: 100%;
|
294
|
+
width: auto;
|
295
|
+
}
|
296
|
+
|
297
|
+
|
298
|
+
/* Margin
|
299
|
+
========================================================================== */
|
300
|
+
|
301
|
+
/*
|
302
|
+
* Create a block with the same margin of a paragraph
|
303
|
+
* Add margin if adjacent element
|
304
|
+
*/
|
305
|
+
|
306
|
+
.uk-margin { margin-bottom: $utility-margin; }
|
307
|
+
* + .uk-margin { margin-top: $utility-margin; }
|
308
|
+
|
309
|
+
.uk-margin-top { margin-top: $utility-margin !important; }
|
310
|
+
.uk-margin-bottom { margin-bottom: $utility-margin !important; }
|
311
|
+
.uk-margin-left { margin-left: $utility-margin !important; }
|
312
|
+
.uk-margin-right { margin-right: $utility-margin !important; }
|
313
|
+
|
314
|
+
/*
|
315
|
+
* Larger margins
|
316
|
+
*/
|
317
|
+
|
318
|
+
.uk-margin-large { margin-bottom: $utility-margin-large; }
|
319
|
+
* + .uk-margin-large { margin-top: $utility-margin-large; }
|
320
|
+
|
321
|
+
.uk-margin-large-top { margin-top: $utility-margin-large !important; }
|
322
|
+
.uk-margin-large-bottom { margin-bottom: $utility-margin-large !important; }
|
323
|
+
.uk-margin-large-left { margin-left: $utility-margin-large !important; }
|
324
|
+
.uk-margin-large-right { margin-right: $utility-margin-large !important; }
|
325
|
+
|
326
|
+
/*
|
327
|
+
* Smaller margins
|
328
|
+
*/
|
329
|
+
|
330
|
+
.uk-margin-small { margin-bottom: $utility-margin-small; }
|
331
|
+
* + .uk-margin-small { margin-top: $utility-margin-small; }
|
332
|
+
|
333
|
+
.uk-margin-small-top { margin-top: $utility-margin-small !important; }
|
334
|
+
.uk-margin-small-bottom { margin-bottom: $utility-margin-small !important; }
|
335
|
+
.uk-margin-small-left { margin-left: $utility-margin-small !important; }
|
336
|
+
.uk-margin-small-right { margin-right: $utility-margin-small !important; }
|
337
|
+
|
338
|
+
/*
|
339
|
+
* Remove margins
|
340
|
+
*/
|
341
|
+
|
342
|
+
.uk-margin-remove { margin: 0 !important; }
|
343
|
+
.uk-margin-top-remove { margin-top: 0 !important; }
|
344
|
+
.uk-margin-bottom-remove { margin-bottom: 0 !important; }
|
345
|
+
|
346
|
+
|
347
|
+
/* Padding
|
348
|
+
========================================================================== */
|
349
|
+
|
350
|
+
.uk-padding-remove { padding: 0 !important; }
|
351
|
+
.uk-padding-top-remove { padding-top: 0 !important; }
|
352
|
+
.uk-padding-bottom-remove { padding-bottom: 0 !important; }
|
353
|
+
|
354
|
+
.uk-padding-vertical-remove {
|
355
|
+
padding-top: 0 !important;
|
356
|
+
padding-bottom: 0 !important;
|
357
|
+
}
|
358
|
+
|
359
|
+
/* Border
|
360
|
+
========================================================================== */
|
361
|
+
|
362
|
+
.uk-border-circle { border-radius: 50%; }
|
363
|
+
.uk-border-rounded { border-radius: $utility-border-rounded; }
|
364
|
+
|
365
|
+
|
366
|
+
/* Headings
|
367
|
+
========================================================================== */
|
368
|
+
|
369
|
+
.uk-heading-large {
|
370
|
+
font-size: $utility-heading-large-small-font-size;
|
371
|
+
line-height: $utility-heading-large-small-line-height;
|
372
|
+
}
|
373
|
+
|
374
|
+
/* Tablet and bigger */
|
375
|
+
@media (min-width: $breakpoint-medium) {
|
376
|
+
|
377
|
+
.uk-heading-large {
|
378
|
+
font-size: $utility-heading-large-font-size;
|
379
|
+
line-height: $utility-heading-large-line-height;
|
380
|
+
}
|
381
|
+
|
382
|
+
}
|
383
|
+
|
384
|
+
|
385
|
+
/* Link
|
386
|
+
========================================================================== */
|
387
|
+
|
388
|
+
/*
|
389
|
+
* Let links appear in default text color
|
390
|
+
*/
|
391
|
+
|
392
|
+
.uk-link-muted,
|
393
|
+
.uk-link-muted a { color: $utility-link-muted-color; }
|
394
|
+
|
395
|
+
.uk-link-muted:hover,
|
396
|
+
.uk-link-muted a:hover { color: $utility-link-muted-hover-color; }
|
397
|
+
|
398
|
+
/*
|
399
|
+
* Reset link style
|
400
|
+
*/
|
401
|
+
|
402
|
+
.uk-link-reset,
|
403
|
+
.uk-link-reset a,
|
404
|
+
.uk-link-reset:hover,
|
405
|
+
.uk-link-reset a:hover,
|
406
|
+
.uk-link-reset:focus,
|
407
|
+
.uk-link-reset a:focus {
|
408
|
+
color: inherit;
|
409
|
+
text-decoration: none;
|
410
|
+
}
|
411
|
+
|
412
|
+
|
413
|
+
/* Scrollable
|
414
|
+
========================================================================== */
|
415
|
+
|
416
|
+
/*
|
417
|
+
* Enable scrolling for preformatted text
|
418
|
+
*/
|
419
|
+
|
420
|
+
.uk-scrollable-text {
|
421
|
+
height: $utility-scrollable-text-height;
|
422
|
+
overflow-y: scroll;
|
423
|
+
-webkit-overflow-scrolling: touch;
|
424
|
+
resize: both;
|
425
|
+
}
|
426
|
+
|
427
|
+
/*
|
428
|
+
* Box with scrolling enabled
|
429
|
+
*/
|
430
|
+
|
431
|
+
.uk-scrollable-box {
|
432
|
+
box-sizing: border-box;
|
433
|
+
height: $utility-scrollable-box-height;
|
434
|
+
padding: $utility-scrollable-box-padding;
|
435
|
+
border: $utility-scrollable-box-border-width solid $utility-scrollable-box-border;
|
436
|
+
overflow: auto;
|
437
|
+
-webkit-overflow-scrolling: touch;
|
438
|
+
resize: both;
|
439
|
+
@include hook-scrollable-box();
|
440
|
+
}
|
441
|
+
|
442
|
+
.uk-scrollable-box > :last-child { margin-bottom: 0; }
|
443
|
+
|
444
|
+
|
445
|
+
/* Overflow
|
446
|
+
========================================================================== */
|
447
|
+
|
448
|
+
.uk-overflow-hidden { overflow: hidden; }
|
449
|
+
|
450
|
+
/*
|
451
|
+
* Enable scrollbars if content is clipped
|
452
|
+
*/
|
453
|
+
|
454
|
+
.uk-overflow-container {
|
455
|
+
overflow: auto;
|
456
|
+
-webkit-overflow-scrolling: touch;
|
457
|
+
}
|
458
|
+
|
459
|
+
.uk-overflow-container > :last-child { margin-bottom: 0; }
|
460
|
+
|
461
|
+
|
462
|
+
/* Position
|
463
|
+
========================================================================== */
|
464
|
+
|
465
|
+
.uk-position-absolute,
|
466
|
+
[class*='uk-position-top'],
|
467
|
+
[class*='uk-position-bottom'] { position: absolute !important; }
|
468
|
+
|
469
|
+
/* Don't use `width: 100%` because it is wrong if the parent has padding. */
|
470
|
+
.uk-position-top {
|
471
|
+
top: 0;
|
472
|
+
left: 0;
|
473
|
+
right: 0;
|
474
|
+
}
|
475
|
+
|
476
|
+
.uk-position-bottom {
|
477
|
+
bottom: 0;
|
478
|
+
left: 0;
|
479
|
+
right: 0;
|
480
|
+
}
|
481
|
+
|
482
|
+
.uk-position-top-left {
|
483
|
+
top: 0;
|
484
|
+
left: 0;
|
485
|
+
}
|
486
|
+
|
487
|
+
.uk-position-top-right {
|
488
|
+
top: 0;
|
489
|
+
right: 0;
|
490
|
+
}
|
491
|
+
|
492
|
+
.uk-position-bottom-left {
|
493
|
+
bottom: 0;
|
494
|
+
left: 0;
|
495
|
+
}
|
496
|
+
|
497
|
+
.uk-position-bottom-right {
|
498
|
+
bottom: 0;
|
499
|
+
right: 0;
|
500
|
+
}
|
501
|
+
|
502
|
+
/*
|
503
|
+
* Cover
|
504
|
+
*/
|
505
|
+
|
506
|
+
.uk-position-cover {
|
507
|
+
position: absolute;
|
508
|
+
top: 0;
|
509
|
+
bottom: 0;
|
510
|
+
left: 0;
|
511
|
+
right: 0;
|
512
|
+
}
|
513
|
+
|
514
|
+
/*
|
515
|
+
* Relative
|
516
|
+
*/
|
517
|
+
|
518
|
+
.uk-position-relative { position: relative !important; }
|
519
|
+
|
520
|
+
/*
|
521
|
+
* Z-index
|
522
|
+
*/
|
523
|
+
|
524
|
+
.uk-position-z-index { z-index: 1; }
|
525
|
+
|
526
|
+
|
527
|
+
/* Display
|
528
|
+
========================================================================== */
|
529
|
+
|
530
|
+
/*
|
531
|
+
* Display
|
532
|
+
* 1. Required if child is a responsive image
|
533
|
+
*/
|
534
|
+
|
535
|
+
.uk-display-block { display: block !important; }
|
536
|
+
.uk-display-inline { display: inline !important; }
|
537
|
+
|
538
|
+
.uk-display-inline-block {
|
539
|
+
display: inline-block !important;
|
540
|
+
/* 1 */
|
541
|
+
max-width: 100%;
|
542
|
+
}
|
543
|
+
|
544
|
+
/*
|
545
|
+
* Visibility
|
546
|
+
* Avoids setting display to `block` so it works also with `inline-block` and `table`
|
547
|
+
*/
|
548
|
+
|
549
|
+
/* Desktop and bigger */
|
550
|
+
@media (min-width: $breakpoint-large) {
|
551
|
+
|
552
|
+
.uk-visible-small { display: none !important; }
|
553
|
+
.uk-visible-medium { display: none !important; }
|
554
|
+
.uk-hidden-large { display: none !important; }
|
555
|
+
|
556
|
+
}
|
557
|
+
|
558
|
+
/* Tablets portrait */
|
559
|
+
@media (min-width: $breakpoint-medium) and (max-width: $breakpoint-medium-max) {
|
560
|
+
|
561
|
+
.uk-visible-small { display: none !important; }
|
562
|
+
.uk-visible-large { display: none !important ; }
|
563
|
+
.uk-hidden-medium { display: none !important; }
|
564
|
+
|
565
|
+
}
|
566
|
+
|
567
|
+
/* Phone landscape and smaller*/
|
568
|
+
@media (max-width: $breakpoint-small-max) {
|
569
|
+
|
570
|
+
.uk-visible-medium { display: none !important; }
|
571
|
+
.uk-visible-large { display: none !important; }
|
572
|
+
.uk-hidden-small { display: none !important; }
|
573
|
+
|
574
|
+
}
|
575
|
+
|
576
|
+
/* Remove from the flow and screen readers on any device */
|
577
|
+
.uk-hidden {
|
578
|
+
display: none !important;
|
579
|
+
visibility: hidden !important;
|
580
|
+
}
|
581
|
+
|
582
|
+
/* It's hidden, but still affects layout */
|
583
|
+
.uk-invisible { visibility: hidden !important; }
|
584
|
+
|
585
|
+
/* Show on hover */
|
586
|
+
.uk-visible-hover:hover .uk-hidden,
|
587
|
+
.uk-visible-hover:hover .uk-invisible {
|
588
|
+
display: block !important;
|
589
|
+
visibility: visible !important;
|
590
|
+
}
|
591
|
+
|
592
|
+
.uk-visible-hover-inline:hover .uk-hidden,
|
593
|
+
.uk-visible-hover-inline:hover .uk-invisible {
|
594
|
+
display: inline-block !important;
|
595
|
+
visibility: visible !important;
|
596
|
+
}
|
597
|
+
|
598
|
+
/* Hide on touch */
|
599
|
+
.uk-touch .uk-hidden-touch,
|
600
|
+
.uk-notouch .uk-hidden-notouch { display: none !important; }
|
601
|
+
|
602
|
+
|
603
|
+
// Hooks
|
604
|
+
// ========================================================================
|
605
|
+
|
606
|
+
@include hook-utility-misc();
|
607
|
+
|
608
|
+
// @mixin hook-container(){}
|
609
|
+
// @mixin hook-scrollable-box(){}
|
610
|
+
// @mixin hook-utility-misc(){}
|