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.
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,229 @@
1
+ // Name: Nestable
2
+ // Description: Defines styles for nestable lists
3
+ //
4
+ // Component: `uk-nestable`
5
+ //
6
+ // Sub-objects: `uk-nestable-list`
7
+ // `uk-nestable-item`
8
+ // `uk-nestable-handle`
9
+ // `uk-nestable-moving`
10
+ // `uk-nestable-toggle`
11
+ // `uk-nestable-panel`
12
+ //
13
+ // Modifier: `uk-nestable-dragged`
14
+ // `uk-nestable-placeholder`
15
+ //
16
+ // States: `uk-parent`
17
+ // `uk-collapsed`
18
+ //
19
+ // Markup:
20
+ //
21
+ // <!-- uk-nestable -->
22
+ // <ul class="uk-nestable" data-uk-nestable>
23
+ // <li></li>
24
+ // <li></li>
25
+ // </ul>
26
+ //
27
+ // ========================================================================
28
+
29
+
30
+ // Variables
31
+ // ========================================================================
32
+
33
+ $nestable-padding-left: 40px !default;
34
+
35
+ $nestable-item-margin: 10px !default;
36
+
37
+ $nestable-dragged-z-index: 1050 !default;
38
+
39
+ $nestable-placeholder-border: #ddd !default;
40
+
41
+ $nestable-empty-height: 30px !default;
42
+
43
+ $nestable-toggle-icon: "\f147" !default;
44
+ $nestable-toggle-collapsed-icon: "\f196" !default;
45
+
46
+ $nestable-panel-padding: 5px !default;
47
+ $nestable-panel-background: #f5f5f5 !default;
48
+
49
+
50
+ /* ========================================================================
51
+ Component: Nestable
52
+ ========================================================================== */
53
+
54
+ .uk-nestable {
55
+ padding: 0;
56
+ list-style: none;
57
+ @include hook-nestable();
58
+ }
59
+
60
+ /*
61
+ * Disables the default callout shown when you touch and hold a touch target
62
+ * Currently only works in Webkit
63
+ */
64
+
65
+ .uk-nestable a,
66
+ .uk-nestable img { -webkit-touch-callout: none; }
67
+
68
+
69
+ /* Sub-object `uk-nestable-list`
70
+ ========================================================================== */
71
+
72
+ .uk-nestable-list {
73
+ margin: 0;
74
+ padding-left: $nestable-padding-left;
75
+ list-style: none;
76
+ }
77
+
78
+
79
+ /* Sub-modifier `uk-nestable-item`
80
+ ========================================================================== */
81
+
82
+ /*
83
+ * 1. Deactivate browser touch actions in IE11
84
+ */
85
+
86
+ .uk-nestable-item {
87
+ /* 1 */
88
+ touch-action: none;
89
+ @include hook-nestable-item();
90
+ }
91
+
92
+ .uk-nestable-item + .uk-nestable-item { margin-top: $nestable-item-margin; }
93
+
94
+ .uk-nestable-list:not(.uk-nestable-dragged) > .uk-nestable-item:first-child { margin-top: $nestable-item-margin; }
95
+
96
+
97
+ /* Sub-modifier `uk-nestable-dragged`
98
+ ========================================================================== */
99
+
100
+ /*
101
+ * 1. Reset style
102
+ */
103
+
104
+ .uk-nestable-dragged {
105
+ position: absolute;
106
+ z-index: $nestable-dragged-z-index;
107
+ pointer-events: none;
108
+ /* 1 */
109
+ padding-left: 0;
110
+ @include hook-nestable-dragged();
111
+ }
112
+
113
+
114
+ /* Sub-modifier `uk-nestable-placeholder`
115
+ ========================================================================== */
116
+
117
+ .uk-nestable-placeholder { position: relative; }
118
+
119
+ .uk-nestable-placeholder > * { opacity: 0; }
120
+
121
+ .uk-nestable-placeholder:after {
122
+ content: '';
123
+ position: absolute;
124
+ top: 0;
125
+ bottom: 0;
126
+ left: 0;
127
+ right: 0;
128
+ border: 1px dashed $nestable-placeholder-border;
129
+ opacity: 1;
130
+ @include hook-nestable-placeholder();
131
+ }
132
+
133
+
134
+ /* Empty List
135
+ ========================================================================== */
136
+
137
+ .uk-nestable-empty {
138
+ min-height: $nestable-empty-height;
139
+ @include hook-nestable-empty();
140
+ }
141
+
142
+
143
+ /* Sub-object `uk-nestable-handle`
144
+ ========================================================================== */
145
+
146
+ /*
147
+ * Deactivate browser touch actions in IE11
148
+ */
149
+
150
+ .uk-nestable-handle { touch-action: none; }
151
+
152
+ /* Hover */
153
+ .uk-nestable-handle:hover { cursor: move; }
154
+
155
+
156
+ /* Sub-object `uk-nestable-moving`
157
+ ========================================================================== */
158
+
159
+ .uk-nestable-moving,
160
+ /* Needed if moving over links or buttons */
161
+ .uk-nestable-moving * { cursor: move; }
162
+
163
+
164
+ /* [data-nestable-action='toggle']
165
+ ========================================================================== */
166
+
167
+ /*
168
+ * 1. Makes text unselectable. Happens if double clicked by mistake
169
+ */
170
+
171
+ [data-nestable-action='toggle'] {
172
+ cursor: pointer;
173
+ /* 1 */
174
+ -moz-user-select: none;
175
+ -webkit-user-select: none;
176
+ -ms-user-select: none;
177
+ user-select: none;
178
+ }
179
+
180
+
181
+ /* Sub-object `.uk-nestable-toggle`
182
+ ========================================================================== */
183
+
184
+ .uk-nestable-toggle {
185
+ display: inline-block;
186
+ visibility: hidden;
187
+ @include hook-nestable-toggle();
188
+ }
189
+
190
+ .uk-nestable-toggle:after {
191
+ content: $nestable-toggle-icon;
192
+ font-family: FontAwesome;
193
+ }
194
+
195
+ .uk-parent > :not(.uk-nestable-list) .uk-nestable-toggle { visibility: visible; }
196
+
197
+ /*
198
+ * Collapsed
199
+ */
200
+
201
+ .uk-collapsed .uk-nestable-list { display: none; }
202
+
203
+ .uk-collapsed .uk-nestable-toggle:after { content: $nestable-toggle-collapsed-icon; }
204
+
205
+
206
+ /* Sub-object `uk-nestable-panel`
207
+ ========================================================================== */
208
+
209
+ .uk-nestable-panel {
210
+ padding: $nestable-panel-padding;
211
+ background: $nestable-panel-background;
212
+ @include hook-nestable-panel();
213
+ }
214
+
215
+
216
+ // Hooks
217
+ // ========================================================================
218
+
219
+ @include hook-nestable-misc();
220
+
221
+ // @mixin hook-nestable(){}
222
+ // @mixin hook-nestable-item(){}
223
+ // @mixin hook-nestable-dragged(){}
224
+ // @mixin hook-nestable-placeholder(){}
225
+ // @mixin hook-nestable-empty(){}
226
+ // @mixin hook-nestable-handle(){}
227
+ // @mixin hook-nestable-toggle(){}
228
+ // @mixin hook-nestable-panel(){}
229
+ // @mixin hook-nestable-misc(){}
@@ -0,0 +1,190 @@
1
+ // Name: Notify
2
+ // Description: Defines styles for toggleable notifications
3
+ //
4
+ // Component: `uk-notify`
5
+ //
6
+ // Sub-objects: `uk-notify-message`
7
+ //
8
+ // Modifiers: `uk-notify-top-center`
9
+ // `uk-notify-top-right`
10
+ // `uk-notify-bottom-left`
11
+ // `uk-notify-bottom-center`
12
+ // `uk-notify-bottom-right`
13
+ // `uk-notify-message-primary`
14
+ // `uk-notify-message-success`
15
+ // `uk-notify-message-warning`
16
+ // `uk-notify-message-danger`
17
+ //
18
+ // Uses: Close: `uk-close`
19
+ //
20
+ // ========================================================================
21
+
22
+
23
+ // Variables
24
+ // ========================================================================
25
+
26
+ $notify-position: 10px !default;
27
+ $notify-z-index: 1040 !default;
28
+ $notify-width: 350px !default;
29
+
30
+ $notify-message-margin-bottom: 10px !default;
31
+ $notify-message-padding: 15px !default;
32
+ $notify-message-background: #444 !default;
33
+ $notify-message-color: #fff !default;
34
+ $notify-message-font-size: 16px !default;
35
+ $notify-message-line-height: 22px !default;
36
+
37
+ $notify-message-primary-background: #ebf7fd !default;
38
+ $notify-message-primary-color: #2d7091 !default;
39
+
40
+ $notify-message-success-background: #f2fae3 !default;
41
+ $notify-message-success-color: #659f13 !default;
42
+
43
+ $notify-message-warning-background: #fffceb !default;
44
+ $notify-message-warning-color: #e28327 !default;
45
+
46
+ $notify-message-danger-background: #fff1f0 !default;
47
+ $notify-message-danger-color: #d85030 !default;
48
+
49
+
50
+ /* ========================================================================
51
+ Component: Notify
52
+ ========================================================================== */
53
+
54
+ /*
55
+ * Message container for positioning
56
+ */
57
+
58
+ .uk-notify {
59
+ position: fixed;
60
+ top: $notify-position;
61
+ left: $notify-position;
62
+ z-index: $notify-z-index;
63
+ box-sizing: border-box;
64
+ width: $notify-width;
65
+ @include hook-notify();
66
+ }
67
+
68
+
69
+ /* Position modifiers
70
+ ========================================================================== */
71
+
72
+ .uk-notify-top-right,
73
+ .uk-notify-bottom-right {
74
+ left: auto;
75
+ right: $notify-position;
76
+ }
77
+
78
+ .uk-notify-top-center,
79
+ .uk-notify-bottom-center {
80
+ left: 50%;
81
+ margin-left: ($notify-width / -2);
82
+ }
83
+
84
+ .uk-notify-bottom-left,
85
+ .uk-notify-bottom-right,
86
+ .uk-notify-bottom-center {
87
+ top: auto;
88
+ bottom: $notify-position;
89
+ }
90
+
91
+
92
+ /* Responsiveness
93
+ ========================================================================== */
94
+
95
+ /* Phones portrait and smaller */
96
+ @media (max-width: $breakpoint-mini-max) {
97
+
98
+ /*
99
+ * Fit in small screen
100
+ */
101
+
102
+ .uk-notify {
103
+ left: 10px;
104
+ right: 10px;
105
+ width: auto;
106
+ margin: 0;
107
+ }
108
+
109
+ }
110
+
111
+
112
+ /* Sub-object: `uk-notify-message`
113
+ ========================================================================== */
114
+
115
+ .uk-notify-message {
116
+ position: relative;
117
+ margin-bottom: $notify-message-margin-bottom;
118
+ padding: $notify-message-padding;
119
+ background: $notify-message-background;
120
+ color: $notify-message-color;
121
+ font-size: $notify-message-font-size;
122
+ line-height: $notify-message-line-height;
123
+ cursor: pointer;
124
+ @include hook-notify-message();
125
+ }
126
+
127
+
128
+ /* Close in notify
129
+ ========================================================================== */
130
+
131
+ .uk-notify-message > .uk-close {
132
+ visibility: hidden;
133
+ float: right;
134
+ }
135
+
136
+ .uk-notify-message:hover > .uk-close { visibility: visible; }
137
+
138
+
139
+ /* Modifier: `uk-alert-info`
140
+ ========================================================================== */
141
+
142
+ .uk-notify-message-primary {
143
+ background: $notify-message-primary-background;
144
+ color: $notify-message-primary-color;
145
+ @include hook-notify-message-primary();
146
+ }
147
+
148
+
149
+ /* Modifier: `uk-alert-success`
150
+ ========================================================================== */
151
+
152
+ .uk-notify-message-success {
153
+ background: $notify-message-success-background;
154
+ color: $notify-message-success-color;
155
+ @include hook-notify-message-success();
156
+ }
157
+
158
+
159
+ /* Modifier: `uk-notify-message-warning`
160
+ ========================================================================== */
161
+
162
+ .uk-notify-message-warning {
163
+ background: $notify-message-warning-background;
164
+ color: $notify-message-warning-color;
165
+ @include hook-notify-message-warning();
166
+ }
167
+
168
+
169
+ /* Modifier: `uk-notify-message-danger`
170
+ ========================================================================== */
171
+
172
+ .uk-notify-message-danger {
173
+ background: $notify-message-danger-background;
174
+ color: $notify-message-danger-color;
175
+ @include hook-notify-message-danger();
176
+ }
177
+
178
+
179
+ // Hooks
180
+ // ========================================================================
181
+
182
+ @include hook-notify-misc();
183
+
184
+ // @mixin hook-notify(){}
185
+ // @mixin hook-notify-message(){}
186
+ // @mixin hook-notify-message-primary(){}
187
+ // @mixin hook-notify-message-success(){}
188
+ // @mixin hook-notify-message-warning(){}
189
+ // @mixin hook-notify-message-danger(){}
190
+ // @mixin hook-notify-misc(){}
@@ -0,0 +1,66 @@
1
+ // Name: Placeholder
2
+ // Description: Defines styles for placeholder boxes
3
+ //
4
+ // Component: `uk-placeholder`
5
+ //
6
+ // Modifiers: `uk-placeholder-large`
7
+ //
8
+ // ========================================================================
9
+
10
+
11
+ // Variables
12
+ // ========================================================================
13
+
14
+ $placeholder-margin-vertical: 15px !default;
15
+ $placeholder-padding: 20px !default;
16
+ $placeholder-border: #ddd !default;
17
+ $placeholder-background: #fafafa !default;
18
+ $placeholder-color: #444 !default;
19
+
20
+ $placeholder-large-padding-vertical: 80px !default;
21
+
22
+
23
+ /* ========================================================================
24
+ Component: Placeholder
25
+ ========================================================================== */
26
+
27
+ .uk-placeholder {
28
+ margin-bottom: $placeholder-margin-vertical;
29
+ padding: $placeholder-padding;
30
+ border: 1px dashed $placeholder-border;
31
+ background: $placeholder-background;
32
+ color: $placeholder-color;
33
+ @include hook-placeholder();
34
+ }
35
+
36
+ /*
37
+ * Add margin if adjacent element
38
+ */
39
+
40
+ * + .uk-placeholder { margin-top: $placeholder-margin-vertical; }
41
+
42
+ /*
43
+ * Remove margin from the last-child
44
+ */
45
+
46
+ .uk-placeholder > :last-child { margin-bottom: 0; }
47
+
48
+
49
+ /* Modifier: `uk-placeholder-large`
50
+ ========================================================================== */
51
+
52
+ .uk-placeholder-large {
53
+ padding-top: $placeholder-large-padding-vertical;
54
+ padding-bottom: $placeholder-large-padding-vertical;
55
+ @include hook-placeholder-large();
56
+ }
57
+
58
+
59
+ // Hooks
60
+ // ========================================================================
61
+
62
+ @include hook-placeholder-misc();
63
+
64
+ // @mixin hook-placeholder(){}
65
+ // @mixin hook-placeholder-large(){}
66
+ // @mixin hook-placeholder-misc(){}