light_admin 1.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +7 -0
- data/CHANGELOG.md +5 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +5 -0
- data/Gemfile.lock +123 -0
- data/LICENSE.txt +21 -0
- data/README.md +122 -0
- data/Rakefile +2 -0
- data/app/assets/javascripts/light_admin/filters_toggle.js +21 -0
- data/app/assets/stylesheets/light_admin/_rules.scss +50 -0
- data/app/assets/stylesheets/light_admin/base.scss +34 -0
- data/app/assets/stylesheets/light_admin/components/_breadcrumbs.scss +3 -0
- data/app/assets/stylesheets/light_admin/components/_buttons.scss +358 -0
- data/app/assets/stylesheets/light_admin/components/_comments.scss +66 -0
- data/app/assets/stylesheets/light_admin/components/_datepicker_calendar.scss +29 -0
- data/app/assets/stylesheets/light_admin/components/_flash_messages.scss +23 -0
- data/app/assets/stylesheets/light_admin/components/_footer.scss +3 -0
- data/app/assets/stylesheets/light_admin/components/_forms.scss +242 -0
- data/app/assets/stylesheets/light_admin/components/_header.scss +149 -0
- data/app/assets/stylesheets/light_admin/components/_images.scss +21 -0
- data/app/assets/stylesheets/light_admin/components/_list.scss +5 -0
- data/app/assets/stylesheets/light_admin/components/_panels.scss +139 -0
- data/app/assets/stylesheets/light_admin/components/_sidebars.scss +49 -0
- data/app/assets/stylesheets/light_admin/components/_status_tag.scss +12 -0
- data/app/assets/stylesheets/light_admin/components/_tables.scss +144 -0
- data/app/assets/stylesheets/light_admin/components/_titles.scss +37 -0
- data/app/assets/stylesheets/light_admin/components/_toggle_filters.scss +20 -0
- data/app/assets/stylesheets/light_admin/variables/_borders.scss +14 -0
- data/app/assets/stylesheets/light_admin/variables/_colors.scss +32 -0
- data/app/assets/stylesheets/light_admin/variables/_font.scss +4 -0
- data/app/assets/stylesheets/light_admin/variables/_shadows.scss +4 -0
- data/app/assets/stylesheets/light_admin/views/_login.scss +108 -0
- data/app/assets/stylesheets/utilities/_flex.scss +18 -0
- data/app/assets/stylesheets/utilities/_sizing.scss +3 -0
- data/app/assets/stylesheets/utilities/_spacing.scss +22 -0
- data/app/views/active_admin/devise/sessions/new.html.erb +36 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/doc/index-with-filter.png +0 -0
- data/doc/index-with-filter.png:Zone.Identifier +0 -0
- data/doc/index.png +0 -0
- data/doc/index.png:Zone.Identifier +0 -0
- data/doc/panel-with-link.png +0 -0
- data/doc/panel-with-link.png:Zone.Identifier +0 -0
- data/doc/show.png +0 -0
- data/doc/show.png:Zone.Identifier +0 -0
- data/lib/light_admin.rb +10 -0
- data/lib/light_admin/generators.rb +19 -0
- data/lib/light_admin/header.rb +30 -0
- data/lib/light_admin/panel_with_link.rb +17 -0
- data/lib/light_admin/version.rb +3 -0
- data/light_admin.gemspec +19 -0
- metadata +117 -0
@@ -0,0 +1,34 @@
|
|
1
|
+
// Variables
|
2
|
+
@import 'variables/colors';
|
3
|
+
@import 'variables/font';
|
4
|
+
@import 'variables/borders';
|
5
|
+
@import 'variables/shadows';
|
6
|
+
|
7
|
+
// Utilities
|
8
|
+
@import '../utilities/flex';
|
9
|
+
@import '../utilities/spacing';
|
10
|
+
@import '../utilities/sizing';
|
11
|
+
|
12
|
+
// Components
|
13
|
+
@import 'components/toggle_filters';
|
14
|
+
@import 'components/list';
|
15
|
+
@import 'components/status_tag';
|
16
|
+
@import 'components/images';
|
17
|
+
@import 'components/buttons';
|
18
|
+
@import 'components/header';
|
19
|
+
@import 'components/titles';
|
20
|
+
@import 'components/tables';
|
21
|
+
@import 'components/panels';
|
22
|
+
@import 'components/forms';
|
23
|
+
@import 'components/sidebars';
|
24
|
+
@import 'components/comments';
|
25
|
+
@import 'components/footer';
|
26
|
+
@import 'components/breadcrumbs';
|
27
|
+
@import 'components/flash_messages';
|
28
|
+
@import 'components/datepicker_calendar';
|
29
|
+
|
30
|
+
// Global
|
31
|
+
@import 'rules';
|
32
|
+
|
33
|
+
// Views
|
34
|
+
@import 'views/login';
|
@@ -0,0 +1,358 @@
|
|
1
|
+
/* BUTTONS IN THE TITLE BAR */
|
2
|
+
#title_bar {
|
3
|
+
.action_items {
|
4
|
+
span.action_item > a {
|
5
|
+
background: $bg-white;
|
6
|
+
border: $border-style-buttons;
|
7
|
+
border-radius: $border-radius-btn;
|
8
|
+
padding: .5rem 1rem;
|
9
|
+
box-shadow: $buttons-shadow;
|
10
|
+
text-shadow: none;
|
11
|
+
color: $text-buttons;
|
12
|
+
text-transform: none;
|
13
|
+
font-weight: 500;
|
14
|
+
font-family: $font-family;
|
15
|
+
margin-right: 15px;
|
16
|
+
transition: all .3s ease;
|
17
|
+
|
18
|
+
&:not(.disabled):hover {
|
19
|
+
background: $bg-light;
|
20
|
+
border: $border-style-buttons;
|
21
|
+
color: $text-buttons;
|
22
|
+
transform: translateY(-2px);
|
23
|
+
box-shadow: $buttons-shadow;
|
24
|
+
}
|
25
|
+
}
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
/* SCOPE BUTTONS GROUP & DROPDOWN MENU BUTTON */
|
30
|
+
.table_tools {
|
31
|
+
.scope-default-group {
|
32
|
+
margin: 0;
|
33
|
+
padding: 0;
|
34
|
+
}
|
35
|
+
|
36
|
+
.scopes {
|
37
|
+
border: $border-style;
|
38
|
+
border-radius: $border-radius-scope;
|
39
|
+
box-shadow: $buttons-shadow;
|
40
|
+
margin-left: 3rem;
|
41
|
+
|
42
|
+
li:first-child {
|
43
|
+
a {
|
44
|
+
margin-left: 0;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
.table_tools_segmented_control {
|
50
|
+
li:last-child {
|
51
|
+
a {
|
52
|
+
border-right-width: 0;
|
53
|
+
border-radius: 0;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.scope {
|
59
|
+
a {
|
60
|
+
background: none;
|
61
|
+
box-shadow: none;
|
62
|
+
border-radius: unset;
|
63
|
+
border-right: $border-style;
|
64
|
+
padding: .74rem;
|
65
|
+
color: $text-buttons;
|
66
|
+
font-weight: normal;
|
67
|
+
font-family: $font-family;
|
68
|
+
|
69
|
+
&:hover {
|
70
|
+
background: none;
|
71
|
+
color: $text-info;
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
.scope.selected a {
|
77
|
+
background: none;
|
78
|
+
color: $text-info;
|
79
|
+
border-bottom: 1px solid $info;
|
80
|
+
border-radius: 0;
|
81
|
+
box-shadow: none;
|
82
|
+
font-family: $font-family;
|
83
|
+
}
|
84
|
+
|
85
|
+
.dropdown_menu_button:focus:not(.disabled),
|
86
|
+
.dropdown_menu_button:hover:not(.disabled) {
|
87
|
+
background: $bg-buttons;
|
88
|
+
box-shadow: none;
|
89
|
+
}
|
90
|
+
|
91
|
+
}
|
92
|
+
|
93
|
+
/* GROUPED ACTIONS BUTTON */
|
94
|
+
a.table_tools_button, .table_tools .dropdown_menu_button {
|
95
|
+
box-shadow: none;
|
96
|
+
text-shadow: none;
|
97
|
+
border: none;
|
98
|
+
border-radius: $border-radius-btn;
|
99
|
+
color: $text-white;
|
100
|
+
font-size: $font-size;
|
101
|
+
font-weight: 500;
|
102
|
+
background: $bg-buttons;
|
103
|
+
padding: .5rem 1rem;
|
104
|
+
}
|
105
|
+
|
106
|
+
.table_tools_segmented_control li.selected a {
|
107
|
+
color: $text-buttons;
|
108
|
+
}
|
109
|
+
|
110
|
+
.dropdown_menu {
|
111
|
+
.dropdown_menu_button {
|
112
|
+
&:not(.disabled) {
|
113
|
+
&:hover {
|
114
|
+
background: $secondary;
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
|
119
|
+
.dropdown_menu_list_wrapper {
|
120
|
+
font-size: $font-family;
|
121
|
+
position: absolute;
|
122
|
+
background: $white;
|
123
|
+
background-image: none;
|
124
|
+
box-shadow: none;
|
125
|
+
background-image: none;
|
126
|
+
border: none;
|
127
|
+
border-top-color: unset;
|
128
|
+
border-bottom-color: unset;
|
129
|
+
|
130
|
+
.dropdown_menu_list {
|
131
|
+
border: $border-style-buttons;
|
132
|
+
box-shadow: $dropdown-shadow;
|
133
|
+
|
134
|
+
li {
|
135
|
+
a {
|
136
|
+
color: $global-text-color;
|
137
|
+
|
138
|
+
&:hover {
|
139
|
+
background: $white;
|
140
|
+
text-shadow: none;
|
141
|
+
color: $info;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
147
|
+
|
148
|
+
.dropdown_menu_nipple {
|
149
|
+
display: none;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
|
153
|
+
/* NAVIGATION TABS */
|
154
|
+
.tabs {
|
155
|
+
.ui-tabs-nav {
|
156
|
+
margin: 0;
|
157
|
+
display: flex;
|
158
|
+
|
159
|
+
li {
|
160
|
+
background: unset;
|
161
|
+
float: unset;
|
162
|
+
text-align: center;
|
163
|
+
|
164
|
+
a {
|
165
|
+
background: none;
|
166
|
+
font-family: $font-family;
|
167
|
+
color: $text-buttons;
|
168
|
+
font-weight: 500;
|
169
|
+
text-shadow: none;
|
170
|
+
border: none;
|
171
|
+
border-radius: none;
|
172
|
+
box-shadow: none;
|
173
|
+
padding: 0;
|
174
|
+
|
175
|
+
&:focus {
|
176
|
+
outline: none;
|
177
|
+
color: $text-info;
|
178
|
+
background: $bg-white;
|
179
|
+
}
|
180
|
+
|
181
|
+
&:hover {
|
182
|
+
background: none;
|
183
|
+
color: $text-info;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
li.ui-tabs-active {
|
189
|
+
a {
|
190
|
+
background: $bg-white;
|
191
|
+
color: $text-buttons;
|
192
|
+
font-weight: 500;
|
193
|
+
cursor: pointer;
|
194
|
+
box-shadow: none;
|
195
|
+
}
|
196
|
+
}
|
197
|
+
}
|
198
|
+
|
199
|
+
.nav-tabs {
|
200
|
+
background: none;
|
201
|
+
box-shadow: none;
|
202
|
+
border: none;
|
203
|
+
border-radius: none;
|
204
|
+
padding: 0;
|
205
|
+
justify-content: center;
|
206
|
+
margin: 25px 0 25px 0;
|
207
|
+
list-style: none;
|
208
|
+
|
209
|
+
li {
|
210
|
+
padding: 1rem;
|
211
|
+
|
212
|
+
&:first-child {
|
213
|
+
background: $bg-white;
|
214
|
+
border: $border-style-buttons;
|
215
|
+
box-shadow: $buttons-shadow;
|
216
|
+
border-radius: $border-radius-left;
|
217
|
+
}
|
218
|
+
}
|
219
|
+
|
220
|
+
li:not(:first-of-type):not(.ui-tabs-active) {
|
221
|
+
background: $bg-white;
|
222
|
+
box-shadow: $buttons-shadow;
|
223
|
+
border-left: none;
|
224
|
+
border-top: $border-style-buttons;
|
225
|
+
border-right: $border-style-buttons;
|
226
|
+
border-bottom: $border-style-buttons;
|
227
|
+
|
228
|
+
&:last-child {
|
229
|
+
border-radius: $border-radius-right;
|
230
|
+
}
|
231
|
+
}
|
232
|
+
|
233
|
+
li.ui-tabs-active {
|
234
|
+
background: $bg-white;
|
235
|
+
padding: 1rem;
|
236
|
+
margin-bottom: 0;
|
237
|
+
border-bottom: 2px solid $info;
|
238
|
+
border-top: $border-style-buttons;
|
239
|
+
border-right: $border-style-buttons;
|
240
|
+
border-radius: unset;
|
241
|
+
box-shadow: $buttons-shadow;
|
242
|
+
|
243
|
+
&:first-child {
|
244
|
+
border-radius: $border-radius-left;
|
245
|
+
border-left: $border-style-buttons;
|
246
|
+
border-bottom: 2px solid $info;
|
247
|
+
}
|
248
|
+
|
249
|
+
&:last-child {
|
250
|
+
border-radius: $border-radius-right;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
}
|
254
|
+
}
|
255
|
+
|
256
|
+
.tab-content {
|
257
|
+
border: none;
|
258
|
+
padding: 0;
|
259
|
+
}
|
260
|
+
|
261
|
+
/* FORMS BUTTONS */
|
262
|
+
form input[type=submit],
|
263
|
+
form input[type=button],
|
264
|
+
form button {
|
265
|
+
background: $bg-buttons;
|
266
|
+
color: $text-white;
|
267
|
+
font-family: $font-family;
|
268
|
+
font-weight: 500;
|
269
|
+
font-size: 80%;
|
270
|
+
text-shadow: none;
|
271
|
+
box-shadow: none;
|
272
|
+
border: .5px solid $white;
|
273
|
+
border-radius: $border-radius-btn;
|
274
|
+
|
275
|
+
&:not(.disabled):hover {
|
276
|
+
background: $bg-white;
|
277
|
+
color: $text-buttons;
|
278
|
+
border: $border-style-buttons;
|
279
|
+
}
|
280
|
+
}
|
281
|
+
|
282
|
+
form {
|
283
|
+
fieldset.actions {
|
284
|
+
li {
|
285
|
+
border: none;
|
286
|
+
}
|
287
|
+
|
288
|
+
li.cancel {
|
289
|
+
a {
|
290
|
+
background: $bg-danger;
|
291
|
+
color: $text-white;
|
292
|
+
font-family: $font-family;
|
293
|
+
font-weight: 500;
|
294
|
+
font-size: 80%;
|
295
|
+
text-shadow: none;
|
296
|
+
box-shadow: none;
|
297
|
+
border: .5px solid $white;
|
298
|
+
border-radius: $border-radius-btn;
|
299
|
+
|
300
|
+
&:not(.disabled):hover {
|
301
|
+
background: $bg-white;
|
302
|
+
color: $text-danger;
|
303
|
+
border: .5px solid $danger;
|
304
|
+
}
|
305
|
+
}
|
306
|
+
}
|
307
|
+
}
|
308
|
+
|
309
|
+
.buttons {
|
310
|
+
display: flex;
|
311
|
+
}
|
312
|
+
}
|
313
|
+
|
314
|
+
/* CLEAR FILTER BUTTON */
|
315
|
+
form.filter_form {
|
316
|
+
.buttons {
|
317
|
+
border-top: $border-style-light;
|
318
|
+
padding: 24px 14px;
|
319
|
+
margin: auto;
|
320
|
+
margin-top: 24px;
|
321
|
+
width: 90%;
|
322
|
+
|
323
|
+
a.clear_filters_btn {
|
324
|
+
background: $bg-danger;
|
325
|
+
color: $text-white;
|
326
|
+
font-family: $font-family;
|
327
|
+
font-weight: 500;
|
328
|
+
font-size: 80%;
|
329
|
+
text-shadow: none;
|
330
|
+
box-shadow: none;
|
331
|
+
border: .5px solid $white;
|
332
|
+
border-radius: $border-radius-btn;
|
333
|
+
margin-left: auto;
|
334
|
+
|
335
|
+
&:not(.disabled):hover {
|
336
|
+
background: $bg-white;
|
337
|
+
color: $text-danger;
|
338
|
+
border: .5px solid $danger;
|
339
|
+
}
|
340
|
+
}
|
341
|
+
}
|
342
|
+
}
|
343
|
+
|
344
|
+
/* BUTTONS FOR ADD AND ERASED DOCUMENTS */
|
345
|
+
a.button, a:link.button {
|
346
|
+
background: $bg-white;
|
347
|
+
border: $border-style-buttons;
|
348
|
+
border-radius: $border-radius-btn;
|
349
|
+
box-shadow: $buttons-shadow;
|
350
|
+
font-size: $font-size;
|
351
|
+
font-weight: 500;
|
352
|
+
text-shadow: none;
|
353
|
+
color: $text-buttons;
|
354
|
+
}
|
355
|
+
|
356
|
+
a.button:not(.disabled):hover, a:link.button:not(.disabled):hover {
|
357
|
+
background: $bg-light;
|
358
|
+
}
|
@@ -0,0 +1,66 @@
|
|
1
|
+
.comments {
|
2
|
+
.active_admin_comment {
|
3
|
+
.active_admin_comment_meta {
|
4
|
+
background: none;
|
5
|
+
width: unset;
|
6
|
+
float: unset;
|
7
|
+
border: none;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
.pagination_information {
|
12
|
+
float: unset;
|
13
|
+
min-width: 100%;
|
14
|
+
color: $global-text-color;
|
15
|
+
font-weight: bold;
|
16
|
+
font-size: .9rem;
|
17
|
+
padding: 0 15px;
|
18
|
+
}
|
19
|
+
|
20
|
+
form.active_admin_comment {
|
21
|
+
margin-left: 0;
|
22
|
+
|
23
|
+
.inputs {
|
24
|
+
box-shadow: none;
|
25
|
+
}
|
26
|
+
|
27
|
+
textarea {
|
28
|
+
max-width: 100%;
|
29
|
+
}
|
30
|
+
|
31
|
+
input[type=submit] {
|
32
|
+
margin-bottom: 24px;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
div.active_admin_comment {
|
38
|
+
background: none;
|
39
|
+
border: none;
|
40
|
+
border-bottom: $border-style-light;
|
41
|
+
border-radius: none;
|
42
|
+
box-shadow: none;
|
43
|
+
}
|
44
|
+
|
45
|
+
.active_admin_comment_meta {
|
46
|
+
padding: 30px 15px;
|
47
|
+
|
48
|
+
a[data-method='delete'] {
|
49
|
+
background: $bg-white;
|
50
|
+
border: .5px solid $danger;
|
51
|
+
border-radius: $border-radius-btn;
|
52
|
+
color: $danger;
|
53
|
+
font-size: 90%;
|
54
|
+
margin-left: 0;
|
55
|
+
|
56
|
+
&:hover {
|
57
|
+
background: $danger;
|
58
|
+
border: .5px solid $white;
|
59
|
+
color: $text-white;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.active_admin_comment_body {
|
65
|
+
padding: 30px 15px;
|
66
|
+
}
|