uikit-rails 0.0.2 → 1.0.1

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