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,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(){}
|