activeadmin_materialize_theme 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/MIT-LICENSE +20 -0
- data/README.md +26 -0
- data/Rakefile +34 -0
- data/app/assets/config/activeadmin_materialize_theme_manifest.js +1 -0
- data/app/assets/javascripts/activeadmin_materialize_theme.js +65 -0
- data/app/assets/javascripts/materialize/anime.min.js +34 -0
- data/app/assets/javascripts/materialize/autocomplete.js +450 -0
- data/app/assets/javascripts/materialize/bin/materialize.js +12374 -0
- data/app/assets/javascripts/materialize/bin/materialize.min.js +6 -0
- data/app/assets/javascripts/materialize/buttons.js +354 -0
- data/app/assets/javascripts/materialize/cards.js +40 -0
- data/app/assets/javascripts/materialize/carousel.js +717 -0
- data/app/assets/javascripts/materialize/cash.js +960 -0
- data/app/assets/javascripts/materialize/characterCounter.js +136 -0
- data/app/assets/javascripts/materialize/chips.js +481 -0
- data/app/assets/javascripts/materialize/collapsible.js +275 -0
- data/app/assets/javascripts/materialize/component.js +44 -0
- data/app/assets/javascripts/materialize/datepicker.js +975 -0
- data/app/assets/javascripts/materialize/dropdown.js +617 -0
- data/app/assets/javascripts/materialize/forms.js +275 -0
- data/app/assets/javascripts/materialize/global.js +427 -0
- data/app/assets/javascripts/materialize/materialbox.js +453 -0
- data/app/assets/javascripts/materialize/modal.js +382 -0
- data/app/assets/javascripts/materialize/parallax.js +138 -0
- data/app/assets/javascripts/materialize/pushpin.js +145 -0
- data/app/assets/javascripts/materialize/range.js +263 -0
- data/app/assets/javascripts/materialize/scrollspy.js +295 -0
- data/app/assets/javascripts/materialize/select.js +432 -0
- data/app/assets/javascripts/materialize/sidenav.js +580 -0
- data/app/assets/javascripts/materialize/slider.js +359 -0
- data/app/assets/javascripts/materialize/tabs.js +402 -0
- data/app/assets/javascripts/materialize/tapTarget.js +314 -0
- data/app/assets/javascripts/materialize/timepicker.js +647 -0
- data/app/assets/javascripts/materialize/toasts.js +310 -0
- data/app/assets/javascripts/materialize/tooltip.js +303 -0
- data/app/assets/javascripts/materialize/waves.js +335 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/base.scss +107 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/components/footer.scss +18 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/components/form.scss +140 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/components/header.scss +61 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/components/layout_index.scss +83 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/components/layout_show.scss +56 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/components/sidebar.scss +37 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/components/title_bar.scss +43 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/LICENSE +21 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/README.md +91 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_badges.scss +55 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_buttons.scss +322 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_cards.scss +195 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_carousel.scss +90 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_chips.scss +90 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_collapsible.scss +91 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_color-classes.scss +32 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_color-variables.scss +370 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_datepicker.scss +191 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_dropdown.scss +85 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_global.scss +769 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_grid.scss +156 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_icons-material-design.scss +5 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_materialbox.scss +43 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_modal.scss +94 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_navbar.scss +208 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_normalize.scss +447 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_preloader.scss +334 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_pulse.scss +34 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_sidenav.scss +216 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_slider.scss +92 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_table_of_contents.scss +33 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_tabs.scss +99 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_tapTarget.scss +103 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_timepicker.scss +183 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_toast.scss +58 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_tooltip.scss +32 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_transitions.scss +13 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_typography.scss +60 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_variables.scss +349 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/_waves.scss +114 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_checkboxes.scss +200 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_file-input.scss +44 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_forms.scss +22 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_input-fields.scss +354 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_radio-buttons.scss +115 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_range.scss +161 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_select.scss +180 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/components/forms/_switches.scss +89 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/materialize/materialize.scss +41 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/normalize.css +349 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/theme.scss +13 -0
- data/app/assets/stylesheets/activeadmin_materialize_theme/variables.scss +14 -0
- data/lib/activeadmin_materialize_theme.rb +6 -0
- data/lib/activeadmin_materialize_theme/engine.rb +7 -0
- data/lib/activeadmin_materialize_theme/version.rb +5 -0
- metadata +149 -0
@@ -0,0 +1,335 @@
|
|
1
|
+
/*!
|
2
|
+
* Waves v0.6.4
|
3
|
+
* http://fian.my.id/Waves
|
4
|
+
*
|
5
|
+
* Copyright 2014 Alfiana E. Sibuea and other contributors
|
6
|
+
* Released under the MIT license
|
7
|
+
* https://github.com/fians/Waves/blob/master/LICENSE
|
8
|
+
*/
|
9
|
+
|
10
|
+
;(function(window) {
|
11
|
+
'use strict';
|
12
|
+
|
13
|
+
var Waves = Waves || {};
|
14
|
+
var $$ = document.querySelectorAll.bind(document);
|
15
|
+
|
16
|
+
// Find exact position of element
|
17
|
+
function isWindow(obj) {
|
18
|
+
return obj !== null && obj === obj.window;
|
19
|
+
}
|
20
|
+
|
21
|
+
function getWindow(elem) {
|
22
|
+
return isWindow(elem) ? elem : elem.nodeType === 9 && elem.defaultView;
|
23
|
+
}
|
24
|
+
|
25
|
+
function offset(elem) {
|
26
|
+
var docElem, win,
|
27
|
+
box = {top: 0, left: 0},
|
28
|
+
doc = elem && elem.ownerDocument;
|
29
|
+
|
30
|
+
docElem = doc.documentElement;
|
31
|
+
|
32
|
+
if (typeof elem.getBoundingClientRect !== typeof undefined) {
|
33
|
+
box = elem.getBoundingClientRect();
|
34
|
+
}
|
35
|
+
win = getWindow(doc);
|
36
|
+
return {
|
37
|
+
top: box.top + win.pageYOffset - docElem.clientTop,
|
38
|
+
left: box.left + win.pageXOffset - docElem.clientLeft
|
39
|
+
};
|
40
|
+
}
|
41
|
+
|
42
|
+
function convertStyle(obj) {
|
43
|
+
var style = '';
|
44
|
+
|
45
|
+
for (var a in obj) {
|
46
|
+
if (obj.hasOwnProperty(a)) {
|
47
|
+
style += (a + ':' + obj[a] + ';');
|
48
|
+
}
|
49
|
+
}
|
50
|
+
|
51
|
+
return style;
|
52
|
+
}
|
53
|
+
|
54
|
+
var Effect = {
|
55
|
+
|
56
|
+
// Effect delay
|
57
|
+
duration: 750,
|
58
|
+
|
59
|
+
show: function(e, element) {
|
60
|
+
|
61
|
+
// Disable right click
|
62
|
+
if (e.button === 2) {
|
63
|
+
return false;
|
64
|
+
}
|
65
|
+
|
66
|
+
var el = element || this;
|
67
|
+
|
68
|
+
// Create ripple
|
69
|
+
var ripple = document.createElement('div');
|
70
|
+
ripple.className = 'waves-ripple';
|
71
|
+
el.appendChild(ripple);
|
72
|
+
|
73
|
+
// Get click coordinate and element witdh
|
74
|
+
var pos = offset(el);
|
75
|
+
var relativeY = (e.pageY - pos.top);
|
76
|
+
var relativeX = (e.pageX - pos.left);
|
77
|
+
var scale = 'scale('+((el.clientWidth / 100) * 10)+')';
|
78
|
+
|
79
|
+
// Support for touch devices
|
80
|
+
if ('touches' in e) {
|
81
|
+
relativeY = (e.touches[0].pageY - pos.top);
|
82
|
+
relativeX = (e.touches[0].pageX - pos.left);
|
83
|
+
}
|
84
|
+
|
85
|
+
// Attach data to element
|
86
|
+
ripple.setAttribute('data-hold', Date.now());
|
87
|
+
ripple.setAttribute('data-scale', scale);
|
88
|
+
ripple.setAttribute('data-x', relativeX);
|
89
|
+
ripple.setAttribute('data-y', relativeY);
|
90
|
+
|
91
|
+
// Set ripple position
|
92
|
+
var rippleStyle = {
|
93
|
+
'top': relativeY+'px',
|
94
|
+
'left': relativeX+'px'
|
95
|
+
};
|
96
|
+
|
97
|
+
ripple.className = ripple.className + ' waves-notransition';
|
98
|
+
ripple.setAttribute('style', convertStyle(rippleStyle));
|
99
|
+
ripple.className = ripple.className.replace('waves-notransition', '');
|
100
|
+
|
101
|
+
// Scale the ripple
|
102
|
+
rippleStyle['-webkit-transform'] = scale;
|
103
|
+
rippleStyle['-moz-transform'] = scale;
|
104
|
+
rippleStyle['-ms-transform'] = scale;
|
105
|
+
rippleStyle['-o-transform'] = scale;
|
106
|
+
rippleStyle.transform = scale;
|
107
|
+
rippleStyle.opacity = '1';
|
108
|
+
|
109
|
+
rippleStyle['-webkit-transition-duration'] = Effect.duration + 'ms';
|
110
|
+
rippleStyle['-moz-transition-duration'] = Effect.duration + 'ms';
|
111
|
+
rippleStyle['-o-transition-duration'] = Effect.duration + 'ms';
|
112
|
+
rippleStyle['transition-duration'] = Effect.duration + 'ms';
|
113
|
+
|
114
|
+
rippleStyle['-webkit-transition-timing-function'] = 'cubic-bezier(0.250, 0.460, 0.450, 0.940)';
|
115
|
+
rippleStyle['-moz-transition-timing-function'] = 'cubic-bezier(0.250, 0.460, 0.450, 0.940)';
|
116
|
+
rippleStyle['-o-transition-timing-function'] = 'cubic-bezier(0.250, 0.460, 0.450, 0.940)';
|
117
|
+
rippleStyle['transition-timing-function'] = 'cubic-bezier(0.250, 0.460, 0.450, 0.940)';
|
118
|
+
|
119
|
+
ripple.setAttribute('style', convertStyle(rippleStyle));
|
120
|
+
},
|
121
|
+
|
122
|
+
hide: function(e) {
|
123
|
+
TouchHandler.touchup(e);
|
124
|
+
|
125
|
+
var el = this;
|
126
|
+
var width = el.clientWidth * 1.4;
|
127
|
+
|
128
|
+
// Get first ripple
|
129
|
+
var ripple = null;
|
130
|
+
var ripples = el.getElementsByClassName('waves-ripple');
|
131
|
+
if (ripples.length > 0) {
|
132
|
+
ripple = ripples[ripples.length - 1];
|
133
|
+
} else {
|
134
|
+
return false;
|
135
|
+
}
|
136
|
+
|
137
|
+
var relativeX = ripple.getAttribute('data-x');
|
138
|
+
var relativeY = ripple.getAttribute('data-y');
|
139
|
+
var scale = ripple.getAttribute('data-scale');
|
140
|
+
|
141
|
+
// Get delay beetween mousedown and mouse leave
|
142
|
+
var diff = Date.now() - Number(ripple.getAttribute('data-hold'));
|
143
|
+
var delay = 350 - diff;
|
144
|
+
|
145
|
+
if (delay < 0) {
|
146
|
+
delay = 0;
|
147
|
+
}
|
148
|
+
|
149
|
+
// Fade out ripple after delay
|
150
|
+
setTimeout(function() {
|
151
|
+
var style = {
|
152
|
+
'top': relativeY+'px',
|
153
|
+
'left': relativeX+'px',
|
154
|
+
'opacity': '0',
|
155
|
+
|
156
|
+
// Duration
|
157
|
+
'-webkit-transition-duration': Effect.duration + 'ms',
|
158
|
+
'-moz-transition-duration': Effect.duration + 'ms',
|
159
|
+
'-o-transition-duration': Effect.duration + 'ms',
|
160
|
+
'transition-duration': Effect.duration + 'ms',
|
161
|
+
'-webkit-transform': scale,
|
162
|
+
'-moz-transform': scale,
|
163
|
+
'-ms-transform': scale,
|
164
|
+
'-o-transform': scale,
|
165
|
+
'transform': scale,
|
166
|
+
};
|
167
|
+
|
168
|
+
ripple.setAttribute('style', convertStyle(style));
|
169
|
+
|
170
|
+
setTimeout(function() {
|
171
|
+
try {
|
172
|
+
el.removeChild(ripple);
|
173
|
+
} catch(e) {
|
174
|
+
return false;
|
175
|
+
}
|
176
|
+
}, Effect.duration);
|
177
|
+
}, delay);
|
178
|
+
},
|
179
|
+
|
180
|
+
// Little hack to make <input> can perform waves effect
|
181
|
+
wrapInput: function(elements) {
|
182
|
+
for (var a = 0; a < elements.length; a++) {
|
183
|
+
var el = elements[a];
|
184
|
+
|
185
|
+
if (el.tagName.toLowerCase() === 'input') {
|
186
|
+
var parent = el.parentNode;
|
187
|
+
|
188
|
+
// If input already have parent just pass through
|
189
|
+
if (parent.tagName.toLowerCase() === 'i' && parent.className.indexOf('waves-effect') !== -1) {
|
190
|
+
continue;
|
191
|
+
}
|
192
|
+
|
193
|
+
// Put element class and style to the specified parent
|
194
|
+
var wrapper = document.createElement('i');
|
195
|
+
wrapper.className = el.className + ' waves-input-wrapper';
|
196
|
+
|
197
|
+
var elementStyle = el.getAttribute('style');
|
198
|
+
|
199
|
+
if (!elementStyle) {
|
200
|
+
elementStyle = '';
|
201
|
+
}
|
202
|
+
|
203
|
+
wrapper.setAttribute('style', elementStyle);
|
204
|
+
|
205
|
+
el.className = 'waves-button-input';
|
206
|
+
el.removeAttribute('style');
|
207
|
+
|
208
|
+
// Put element as child
|
209
|
+
parent.replaceChild(wrapper, el);
|
210
|
+
wrapper.appendChild(el);
|
211
|
+
}
|
212
|
+
}
|
213
|
+
}
|
214
|
+
};
|
215
|
+
|
216
|
+
|
217
|
+
/**
|
218
|
+
* Disable mousedown event for 500ms during and after touch
|
219
|
+
*/
|
220
|
+
var TouchHandler = {
|
221
|
+
/* uses an integer rather than bool so there's no issues with
|
222
|
+
* needing to clear timeouts if another touch event occurred
|
223
|
+
* within the 500ms. Cannot mouseup between touchstart and
|
224
|
+
* touchend, nor in the 500ms after touchend. */
|
225
|
+
touches: 0,
|
226
|
+
allowEvent: function(e) {
|
227
|
+
var allow = true;
|
228
|
+
|
229
|
+
if (e.type === 'touchstart') {
|
230
|
+
TouchHandler.touches += 1; //push
|
231
|
+
} else if (e.type === 'touchend' || e.type === 'touchcancel') {
|
232
|
+
setTimeout(function() {
|
233
|
+
if (TouchHandler.touches > 0) {
|
234
|
+
TouchHandler.touches -= 1; //pop after 500ms
|
235
|
+
}
|
236
|
+
}, 500);
|
237
|
+
} else if (e.type === 'mousedown' && TouchHandler.touches > 0) {
|
238
|
+
allow = false;
|
239
|
+
}
|
240
|
+
|
241
|
+
return allow;
|
242
|
+
},
|
243
|
+
touchup: function(e) {
|
244
|
+
TouchHandler.allowEvent(e);
|
245
|
+
}
|
246
|
+
};
|
247
|
+
|
248
|
+
|
249
|
+
/**
|
250
|
+
* Delegated click handler for .waves-effect element.
|
251
|
+
* returns null when .waves-effect element not in "click tree"
|
252
|
+
*/
|
253
|
+
function getWavesEffectElement(e) {
|
254
|
+
if (TouchHandler.allowEvent(e) === false) {
|
255
|
+
return null;
|
256
|
+
}
|
257
|
+
|
258
|
+
var element = null;
|
259
|
+
var target = e.target || e.srcElement;
|
260
|
+
|
261
|
+
while (target.parentNode !== null) {
|
262
|
+
if (!(target instanceof SVGElement) && target.className.indexOf('waves-effect') !== -1) {
|
263
|
+
element = target;
|
264
|
+
break;
|
265
|
+
}
|
266
|
+
target = target.parentNode;
|
267
|
+
}
|
268
|
+
return element;
|
269
|
+
}
|
270
|
+
|
271
|
+
/**
|
272
|
+
* Bubble the click and show effect if .waves-effect elem was found
|
273
|
+
*/
|
274
|
+
function showEffect(e) {
|
275
|
+
var element = getWavesEffectElement(e);
|
276
|
+
|
277
|
+
if (element !== null) {
|
278
|
+
Effect.show(e, element);
|
279
|
+
|
280
|
+
if ('ontouchstart' in window) {
|
281
|
+
element.addEventListener('touchend', Effect.hide, false);
|
282
|
+
element.addEventListener('touchcancel', Effect.hide, false);
|
283
|
+
}
|
284
|
+
|
285
|
+
element.addEventListener('mouseup', Effect.hide, false);
|
286
|
+
element.addEventListener('mouseleave', Effect.hide, false);
|
287
|
+
element.addEventListener('dragend', Effect.hide, false);
|
288
|
+
}
|
289
|
+
}
|
290
|
+
|
291
|
+
Waves.displayEffect = function(options) {
|
292
|
+
options = options || {};
|
293
|
+
|
294
|
+
if ('duration' in options) {
|
295
|
+
Effect.duration = options.duration;
|
296
|
+
}
|
297
|
+
|
298
|
+
//Wrap input inside <i> tag
|
299
|
+
Effect.wrapInput($$('.waves-effect'));
|
300
|
+
|
301
|
+
if ('ontouchstart' in window) {
|
302
|
+
document.body.addEventListener('touchstart', showEffect, false);
|
303
|
+
}
|
304
|
+
|
305
|
+
document.body.addEventListener('mousedown', showEffect, false);
|
306
|
+
};
|
307
|
+
|
308
|
+
/**
|
309
|
+
* Attach Waves to an input element (or any element which doesn't
|
310
|
+
* bubble mouseup/mousedown events).
|
311
|
+
* Intended to be used with dynamically loaded forms/inputs, or
|
312
|
+
* where the user doesn't want a delegated click handler.
|
313
|
+
*/
|
314
|
+
Waves.attach = function(element) {
|
315
|
+
//FUTURE: automatically add waves classes and allow users
|
316
|
+
// to specify them with an options param? Eg. light/classic/button
|
317
|
+
if (element.tagName.toLowerCase() === 'input') {
|
318
|
+
Effect.wrapInput([element]);
|
319
|
+
element = element.parentNode;
|
320
|
+
}
|
321
|
+
|
322
|
+
if ('ontouchstart' in window) {
|
323
|
+
element.addEventListener('touchstart', showEffect, false);
|
324
|
+
}
|
325
|
+
|
326
|
+
element.addEventListener('mousedown', showEffect, false);
|
327
|
+
};
|
328
|
+
|
329
|
+
window.Waves = Waves;
|
330
|
+
|
331
|
+
document.addEventListener('DOMContentLoaded', function() {
|
332
|
+
Waves.displayEffect();
|
333
|
+
}, false);
|
334
|
+
|
335
|
+
})(window);
|
@@ -0,0 +1,107 @@
|
|
1
|
+
html {
|
2
|
+
font-size: 62.5%;
|
3
|
+
}
|
4
|
+
|
5
|
+
body.active_admin {
|
6
|
+
font-size: 1.4rem;
|
7
|
+
min-height: 100vh;
|
8
|
+
|
9
|
+
[type="submit"] {
|
10
|
+
@extend .btn;
|
11
|
+
}
|
12
|
+
|
13
|
+
.col-selectable {
|
14
|
+
text-align: center;
|
15
|
+
}
|
16
|
+
|
17
|
+
.dropdown_menu_button {
|
18
|
+
border: 1px solid #ccc;
|
19
|
+
padding: 0.5rem 0.6rem;
|
20
|
+
|
21
|
+
&::after {
|
22
|
+
content: ' ▼';
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
.flash {
|
27
|
+
@extend .z-depth-2;
|
28
|
+
|
29
|
+
margin: 0.7rem;
|
30
|
+
padding: 1rem;
|
31
|
+
text-align: center;
|
32
|
+
|
33
|
+
&.flash_error {
|
34
|
+
background: color('red', 'base');
|
35
|
+
}
|
36
|
+
|
37
|
+
&.flash_notice {
|
38
|
+
background: color('green', 'base');
|
39
|
+
}
|
40
|
+
|
41
|
+
&.flash_warning {
|
42
|
+
background: #fb1;
|
43
|
+
}
|
44
|
+
}
|
45
|
+
|
46
|
+
.sorted-asc::after {
|
47
|
+
content: ' ↑';
|
48
|
+
}
|
49
|
+
|
50
|
+
.sorted-desc::after {
|
51
|
+
content: ' ↓';
|
52
|
+
}
|
53
|
+
|
54
|
+
.resource_selection_cell span {
|
55
|
+
padding: 0 1rem;
|
56
|
+
vertical-align: middle;
|
57
|
+
}
|
58
|
+
|
59
|
+
.ui-dialog {
|
60
|
+
@extend .modal;
|
61
|
+
|
62
|
+
padding: 1rem;
|
63
|
+
|
64
|
+
>.ui-dialog-buttonpane {
|
65
|
+
@extend .modal-footer;
|
66
|
+
|
67
|
+
.ui-button {
|
68
|
+
@extend .btn, .btn-small;
|
69
|
+
|
70
|
+
margin-left: 1rem;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
|
74
|
+
.ui-dialog-titlebar-close {
|
75
|
+
float: right;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
#active_admin_content {
|
80
|
+
@extend .row;
|
81
|
+
|
82
|
+
padding-bottom: 5rem;
|
83
|
+
margin-bottom: 0;
|
84
|
+
|
85
|
+
&.with_sidebar #main_content_wrapper {
|
86
|
+
@extend .col, .s9;
|
87
|
+
}
|
88
|
+
|
89
|
+
&.without_sidebar #main_content_wrapper {
|
90
|
+
@extend .col, .s12;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
|
94
|
+
#dashboard_default_message {
|
95
|
+
margin: 2rem auto;
|
96
|
+
padding: 2rem 0;
|
97
|
+
text-align: center;
|
98
|
+
}
|
99
|
+
|
100
|
+
#wrapper {
|
101
|
+
@extend .container;
|
102
|
+
|
103
|
+
background: $admin-bg-color;
|
104
|
+
min-height: 100vh;
|
105
|
+
position: relative;
|
106
|
+
}
|
107
|
+
}
|
@@ -0,0 +1,18 @@
|
|
1
|
+
body.active_admin .footer {
|
2
|
+
@extend .row;
|
3
|
+
|
4
|
+
background: $footer-bg-color;
|
5
|
+
bottom: 0;
|
6
|
+
color: $footer-fg-color;
|
7
|
+
margin-bottom: 0;
|
8
|
+
position: absolute;
|
9
|
+
width: 100%;
|
10
|
+
|
11
|
+
a {
|
12
|
+
color: $footer-fg-link-color;
|
13
|
+
}
|
14
|
+
|
15
|
+
>p {
|
16
|
+
@extend .col, .s12, .center-align;
|
17
|
+
}
|
18
|
+
}
|