activeadmin_blaze_theme 0.5.14 → 0.7.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/specs.yml +26 -0
- data/.gitignore +11 -2
- data/.rspec +2 -0
- data/.rubocop.yml +27 -0
- data/Gemfile +15 -0
- data/LICENSE.txt +1 -1
- data/README.md +102 -54
- data/Rakefile +15 -1
- data/activeadmin_blaze_theme.gemspec +2 -12
- data/app/assets/stylesheets/activeadmin_blaze_theme/_base.scss +197 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_contents.scss +43 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_footer.scss +15 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_form.scss +381 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_header.scss +140 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_navigation.scss +69 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_sidebars.scss +64 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_tables.scss +96 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/_variables.scss +46 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.scss +2 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.inputs.scss +0 -9
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.overlays.scss +8 -1
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.typography.scss +1 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.grid.scss +4 -3
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.alignment.scss +12 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.visibility.scss +47 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.containers.scss +0 -2
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.drawers.scss +6 -6
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.modals.scss +1 -1
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.alignment.scss +12 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.visibility.scss +45 -0
- data/app/assets/stylesheets/activeadmin_blaze_theme/theme.scss +11 -989
- data/bin/rails +29 -0
- data/bin/rake +29 -0
- data/bin/rspec +29 -0
- data/bin/rubocop +29 -0
- data/extra/edit.png +0 -0
- data/extra/index.png +0 -0
- data/index.js +2 -0
- data/lib/activeadmin/views/activeadmin_form.rb +6 -2
- data/lib/activeadmin_blaze_theme.rb +8 -5
- data/lib/activeadmin_blaze_theme/version.rb +1 -1
- data/lib/formtastic/inputs/blaze_toggle_input.rb +12 -8
- data/package.json +13 -0
- data/spec/dummy/.ruby-version +1 -0
- data/spec/dummy/.tool-versions +1 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/admin/authors.rb +57 -0
- data/spec/dummy/app/admin/dashboard.rb +32 -0
- data/spec/dummy/app/admin/posts.rb +50 -0
- data/spec/dummy/app/admin/tags.rb +4 -0
- data/spec/dummy/app/assets/config/manifest.js +3 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/active_admin.js +1 -0
- data/spec/dummy/app/assets/stylesheets/active_admin.scss +4 -0
- data/spec/dummy/app/assets/stylesheets/application.css +15 -0
- data/spec/dummy/app/channels/application_cable/channel.rb +4 -0
- data/spec/dummy/app/channels/application_cable/connection.rb +4 -0
- data/spec/dummy/app/controllers/application_controller.rb +2 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/javascript/packs/application.js +15 -0
- data/spec/dummy/app/jobs/application_job.rb +7 -0
- data/spec/dummy/app/mailers/application_mailer.rb +4 -0
- data/spec/dummy/app/models/application_record.rb +7 -0
- data/spec/dummy/app/models/author.rb +26 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/post.rb +25 -0
- data/spec/dummy/app/models/post_tag.rb +9 -0
- data/spec/dummy/app/models/profile.rb +9 -0
- data/spec/dummy/app/models/tag.rb +6 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/app/views/layouts/mailer.html.erb +13 -0
- data/spec/dummy/app/views/layouts/mailer.text.erb +1 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/bin/setup +33 -0
- data/spec/dummy/config.ru +5 -0
- data/spec/dummy/config/application.rb +18 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/cable.yml +10 -0
- data/spec/dummy/config/database.yml +8 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +62 -0
- data/spec/dummy/config/environments/production.rb +112 -0
- data/spec/dummy/config/environments/test.rb +49 -0
- data/spec/dummy/config/initializers/active_admin.rb +335 -0
- data/spec/dummy/config/initializers/application_controller_renderer.rb +8 -0
- data/spec/dummy/config/initializers/assets.rb +12 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/content_security_policy.rb +28 -0
- data/spec/dummy/config/initializers/cookies_serializer.rb +5 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +4 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +33 -0
- data/spec/dummy/config/puma.rb +38 -0
- data/spec/dummy/config/routes.rb +3 -0
- data/spec/dummy/config/spring.rb +6 -0
- data/spec/dummy/config/storage.yml +7 -0
- data/spec/dummy/db/migrate/20170806125915_create_active_storage_tables.active_storage.rb +27 -0
- data/spec/dummy/db/migrate/20180101010101_create_active_admin_comments.rb +16 -0
- data/spec/dummy/db/migrate/20180607053251_create_authors.rb +13 -0
- data/spec/dummy/db/migrate/20180607053254_create_profiles.rb +12 -0
- data/spec/dummy/db/migrate/20180607053255_create_tags.rb +11 -0
- data/spec/dummy/db/migrate/20180607053257_create_post_tags.rb +12 -0
- data/spec/dummy/db/migrate/20180607053739_create_posts.rb +17 -0
- data/spec/dummy/db/schema.rb +99 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/public/404.html +67 -0
- data/spec/dummy/public/422.html +67 -0
- data/spec/dummy/public/500.html +66 -0
- data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
- data/spec/dummy/public/apple-touch-icon.png +0 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/rails_helper.rb +36 -0
- data/spec/spec_helper.rb +20 -0
- data/spec/support/capybara.rb +3 -0
- data/spec/support/drivers.rb +7 -0
- data/spec/system/theme_spec.rb +15 -0
- metadata +186 -136
- data/extra/screenshot1.jpg +0 -0
- data/extra/screenshot2.jpg +0 -0
- data/extra/screenshot3.jpg +0 -0
- data/extra/screenshot4.jpg +0 -0
@@ -16,12 +16,12 @@
|
|
16
16
|
box-shadow: none;
|
17
17
|
}
|
18
18
|
|
19
|
-
.
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
&:not(.o-drawer--visible) {
|
20
|
+
&.u-high,
|
21
|
+
&.u-higher,
|
22
|
+
&.u-highest {
|
23
|
+
box-shadow: none;
|
24
|
+
}
|
25
25
|
}
|
26
26
|
}
|
27
27
|
|
@@ -0,0 +1,45 @@
|
|
1
|
+
@import "mixins/utilities.visibility";
|
2
|
+
|
3
|
+
.u-visible {
|
4
|
+
@include visible;
|
5
|
+
}
|
6
|
+
|
7
|
+
.u-invisible {
|
8
|
+
@include invisible;
|
9
|
+
}
|
10
|
+
|
11
|
+
.u-display-none {
|
12
|
+
@include display-none;
|
13
|
+
}
|
14
|
+
|
15
|
+
.u-display-initial {
|
16
|
+
@include display-initial;
|
17
|
+
}
|
18
|
+
|
19
|
+
.u-display-inline {
|
20
|
+
@include display-inline;
|
21
|
+
}
|
22
|
+
|
23
|
+
.u-display-inline-block {
|
24
|
+
@include display-inline-block;
|
25
|
+
}
|
26
|
+
|
27
|
+
.u-display-block {
|
28
|
+
@include display-block;
|
29
|
+
}
|
30
|
+
|
31
|
+
.u-display-table {
|
32
|
+
@include display-table;
|
33
|
+
}
|
34
|
+
|
35
|
+
.u-display-table-cell {
|
36
|
+
@include display-table-cell;
|
37
|
+
}
|
38
|
+
|
39
|
+
.u-display-flex {
|
40
|
+
@include display-flex;
|
41
|
+
}
|
42
|
+
|
43
|
+
.u-display-inline-flex {
|
44
|
+
@include display-inline-flex;
|
45
|
+
}
|
@@ -1,992 +1,14 @@
|
|
1
|
-
@import 'icomoon';
|
1
|
+
// @import 'icomoon';
|
2
2
|
@import 'blaze/blaze';
|
3
|
-
@import url('https://fonts.googleapis.com/css?family=Roboto');
|
4
|
-
|
5
|
-
// main variables
|
6
|
-
$bg-footer: #dfdfdf !default; // bg footer bar
|
7
|
-
$bg-form1: #f4f4f4 !default; // bg 1st level forms
|
8
|
-
$bg-form2: darken($bg-form1, 3%) !default; // bg 2nd level forms (nested)
|
9
|
-
$bg-form3: darken($bg-form1, 6%) !default; // bg 3rd level forms (nested)
|
10
|
-
$bg-form4: darken($bg-form1, 9%) !default; // bg 4th level forms (nested)
|
11
|
-
$bg-form-sub-headings: lighten( $color-brand, 64% ) !default; // bg nested forms title
|
12
|
-
$bg-header: $color-brand !default; // bg header bar
|
13
|
-
$bg-inputs: #fff !default; // bg forms inputs
|
14
|
-
$bg-menu-active: #7b929e !default; // bg menu item current / hover
|
15
|
-
$bg-sidebar: #efefef; // bg sidebar
|
16
|
-
$fg-box-title: #fff !default;
|
17
|
-
$fg-button-link: #fff !default;
|
18
|
-
$fg-menu-items: #f8f8f8 !default;
|
19
|
-
$fg-table-borders: #e4e4e4 !default;
|
20
|
-
$fg-table-link: #eee !default;
|
21
|
-
|
22
|
-
// other variables
|
23
|
-
$color-validation-error: #932419 !default;
|
24
|
-
$form-padding: 10px !default;
|
25
|
-
$inputs-spacing: 10px !default;
|
26
|
-
$height-inputs: 26px !default;
|
27
|
-
$height-topbar: 40px !default;
|
28
|
-
$height-titlebar: 38px !default;
|
29
|
-
$text-shadow: #000 !default;
|
30
|
-
|
31
|
-
// active_admin theme styles
|
32
|
-
body.active_admin {
|
33
|
-
font-family: 'Roboto', sans-serif;
|
34
|
-
font-size: 12px;
|
35
|
-
min-height: 100vh;
|
36
|
-
|
37
|
-
// generics
|
38
|
-
.button-base {
|
39
|
-
@extend .c-button;
|
40
|
-
// @extend .c-button--rounded;
|
41
|
-
background-image: none;
|
42
|
-
box-shadow: initial;
|
43
|
-
text-shadow: $text-shadow 0 1px 0;
|
44
|
-
}
|
45
|
-
.c-input-group .c-button:not(:first-child) {
|
46
|
-
border-left: 1px solid #ddd;
|
47
|
-
}
|
48
|
-
|
49
|
-
// forms
|
50
|
-
form {
|
51
|
-
// inputs
|
52
|
-
input[type='datetime-local'],
|
53
|
-
input[type='email'],
|
54
|
-
input[type='number'],
|
55
|
-
input[type='password'],
|
56
|
-
input[type='search'],
|
57
|
-
input[type='tel'],
|
58
|
-
input[type='text'],
|
59
|
-
input[type='time'],
|
60
|
-
input[type='url'],
|
61
|
-
select,
|
62
|
-
textarea {
|
63
|
-
@extend .c-field;
|
64
|
-
background-color: $bg-inputs;
|
65
|
-
display: inline-block;
|
66
|
-
height: $height-inputs;
|
67
|
-
padding: 1px 6px;
|
68
|
-
}
|
69
|
-
input[type='radio'] {
|
70
|
-
margin-right: 0.4em;
|
71
|
-
}
|
72
|
-
input[type='range'] {
|
73
|
-
@extend .c-range;
|
74
|
-
background: transparent;
|
75
|
-
display: inline-block;
|
76
|
-
height: $height-inputs;
|
77
|
-
min-width: 200px;
|
78
|
-
width: 30%;
|
79
|
-
}
|
80
|
-
select {
|
81
|
-
padding: 1px 5px;
|
82
|
-
}
|
83
|
-
select[multiple], textarea {
|
84
|
-
height: auto;
|
85
|
-
}
|
86
|
-
select.c-field:not([multiple]), select:not([multiple]) {
|
87
|
-
background: transparent;
|
88
|
-
-webkit-appearance: menulist;
|
89
|
-
}
|
90
|
-
textarea {
|
91
|
-
padding: 6px;
|
92
|
-
}
|
93
|
-
abbr {
|
94
|
-
padding-left: 3px;
|
95
|
-
}
|
96
|
-
|
97
|
-
// buttons
|
98
|
-
button,
|
99
|
-
input[type='button'],
|
100
|
-
input[type='submit'],
|
101
|
-
&.filter_form a.clear_filters_btn,
|
102
|
-
fieldset.buttons li.cancel a,
|
103
|
-
fieldset.actions li.cancel a {
|
104
|
-
@extend .button-base;
|
105
|
-
}
|
106
|
-
.buttons, .actions {
|
107
|
-
button,
|
108
|
-
input[type='button'],
|
109
|
-
input[type='submit'] {
|
110
|
-
margin-right: 10px;
|
111
|
-
}
|
112
|
-
}
|
113
|
-
button:hover,
|
114
|
-
input[type='button']:hover,
|
115
|
-
input[type='submit']:hover,
|
116
|
-
&.filter_form a.clear_filters_btn:hover,
|
117
|
-
fieldset.buttons li.cancel a:hover,
|
118
|
-
fieldset.actions li.cancel a:hover {
|
119
|
-
background-image: none;
|
120
|
-
}
|
121
|
-
> .actions {
|
122
|
-
margin: 5px 0 0 0;
|
123
|
-
}
|
124
|
-
|
125
|
-
// submits
|
126
|
-
input[type='submit'] {
|
127
|
-
@extend .c-button--success;
|
128
|
-
}
|
129
|
-
|
130
|
-
// custom fields
|
131
|
-
.blaze_toggle {
|
132
|
-
label {
|
133
|
-
display: inline-block;
|
134
|
-
}
|
135
|
-
.field_with_errors {
|
136
|
-
display: inline;
|
137
|
-
}
|
138
|
-
.inline-errors {
|
139
|
-
margin-top: 0;
|
140
|
-
}
|
141
|
-
}
|
142
|
-
.readonly-field {
|
143
|
-
div {
|
144
|
-
display: inline-block;
|
145
|
-
line-height: $height-inputs;
|
146
|
-
min-width: 450px;
|
147
|
-
}
|
148
|
-
.field_label {
|
149
|
-
display: block;
|
150
|
-
float: left;
|
151
|
-
width: 20%;
|
152
|
-
}
|
153
|
-
.field_value {
|
154
|
-
border-bottom: 1px dashed #ccc;
|
155
|
-
display: inline-block;
|
156
|
-
width: 100%;
|
157
|
-
padding: 0 6px;
|
158
|
-
}
|
159
|
-
}
|
160
|
-
|
161
|
-
// filter forms
|
162
|
-
&.filter_form {
|
163
|
-
.filter_form_field {
|
164
|
-
> input, > select, .separator, .seperator {
|
165
|
-
float: left;
|
166
|
-
}
|
167
|
-
> label {
|
168
|
-
padding-top: 8px;
|
169
|
-
}
|
170
|
-
.separator, .seperator {
|
171
|
-
line-height: $height-inputs;
|
172
|
-
}
|
173
|
-
}
|
174
|
-
.filter_form_field.select_and_search {
|
175
|
-
>input, >select {
|
176
|
-
background-color: $bg-inputs;
|
177
|
-
width: 49%;
|
178
|
-
}
|
179
|
-
>input {
|
180
|
-
margin: 0 0 0 1%;
|
181
|
-
}
|
182
|
-
>select {
|
183
|
-
margin: 0 1% 0 0;
|
184
|
-
}
|
185
|
-
}
|
186
|
-
.filter_form_field.filter_date_range {
|
187
|
-
>input {
|
188
|
-
background-color: $bg-inputs;
|
189
|
-
width: 49%;
|
190
|
-
margin: 0 1% 0 0;
|
191
|
-
}
|
192
|
-
>input:last-child {
|
193
|
-
margin: 0 0 0 1%;
|
194
|
-
}
|
195
|
-
}
|
196
|
-
.buttons {
|
197
|
-
clear: both;
|
198
|
-
padding-top: 14px;
|
199
|
-
}
|
200
|
-
}
|
201
|
-
|
202
|
-
// fieldsets
|
203
|
-
fieldset {
|
204
|
-
&.buttons li, &.actions li {
|
205
|
-
float: initial;
|
206
|
-
display: inline-block;
|
207
|
-
}
|
208
|
-
&.inputs {
|
209
|
-
background-color: transparent;
|
210
|
-
box-shadow: none;
|
211
|
-
padding: 0;
|
212
|
-
input[type='datetime-local'],
|
213
|
-
input[type='email'],
|
214
|
-
input[type='number'],
|
215
|
-
input[type='password'],
|
216
|
-
input[type='search'],
|
217
|
-
input[type='tel'],
|
218
|
-
input[type='text'],
|
219
|
-
input[type='time'],
|
220
|
-
input[type='url'],
|
221
|
-
select,
|
222
|
-
textarea {
|
223
|
-
background-color: $bg-inputs;
|
224
|
-
min-width: 450px;
|
225
|
-
width: auto;
|
226
|
-
// width: calc(80% - 22px);
|
227
|
-
}
|
228
|
-
// select {
|
229
|
-
// background-image: none;
|
230
|
-
// }
|
231
|
-
label {
|
232
|
-
line-height: $height-inputs;
|
233
|
-
}
|
234
|
-
li.input.hidden {
|
235
|
-
padding: 0;
|
236
|
-
}
|
237
|
-
// .boolean > label { // not working
|
238
|
-
// @extend .c-field;
|
239
|
-
// @extend .c-field--choice;
|
240
|
-
// }
|
241
|
-
.button {
|
242
|
-
@extend .button-base;
|
243
|
-
display: inline-block;
|
244
|
-
margin-left: 10px;
|
245
|
-
margin-top: 10px;
|
246
|
-
&:hover {
|
247
|
-
background-image: none;
|
248
|
-
}
|
249
|
-
&.has_many_add {
|
250
|
-
@extend .c-button--info;
|
251
|
-
}
|
252
|
-
&.has_many_remove {
|
253
|
-
@extend .c-button--error;
|
254
|
-
}
|
255
|
-
}
|
256
|
-
// .datepicker > input {
|
257
|
-
// -webkit-appearance: menulist;
|
258
|
-
// }
|
259
|
-
.fragment {
|
260
|
-
input[type='datetime-local'],
|
261
|
-
input[type='email'],
|
262
|
-
input[type='number'],
|
263
|
-
input[type='password'],
|
264
|
-
input[type='search'],
|
265
|
-
input[type='tel'],
|
266
|
-
input[type='text'],
|
267
|
-
input[type='time'],
|
268
|
-
input[type='url'],
|
269
|
-
select {
|
270
|
-
min-width: auto;
|
271
|
-
width: auto;
|
272
|
-
}
|
273
|
-
}
|
274
|
-
.input.error select {
|
275
|
-
border: 1px solid $color-validation-error;
|
276
|
-
}
|
277
|
-
}
|
278
|
-
> ol {
|
279
|
-
padding: 0;
|
280
|
-
> li {
|
281
|
-
padding: 0 0 $inputs-spacing 0;
|
282
|
-
&.boolean label, &.blaze_toggle label {
|
283
|
-
float: none;
|
284
|
-
}
|
285
|
-
&.has_many_container {
|
286
|
-
padding: $form-padding;
|
287
|
-
}
|
288
|
-
}
|
289
|
-
}
|
290
|
-
}
|
291
|
-
> fieldset.inputs, div.c-card__item > fieldset.inputs, .ui-tabs-panel > fieldset.inputs {
|
292
|
-
> legend {
|
293
|
-
@extend .c-card__item;
|
294
|
-
@extend .c-card__item--brand;
|
295
|
-
border-radius: 5px 5px 0 0;
|
296
|
-
box-shadow: 0 0 1px rgba(17, 17, 17, 0.6), 0 5px 10px -3px rgba(17, 17, 17, 0.4);
|
297
|
-
color: $fg-box-title;
|
298
|
-
padding: 8px 11px;
|
299
|
-
text-shadow: $text-shadow 0 1px 0;
|
300
|
-
> span {
|
301
|
-
background-color: transparent;
|
302
|
-
background-image: none;
|
303
|
-
border: 0 none;
|
304
|
-
box-shadow: initial;
|
305
|
-
color: inherit;
|
306
|
-
margin: 0;
|
307
|
-
padding: 0;
|
308
|
-
text-shadow: inherit;
|
309
|
-
}
|
310
|
-
}
|
311
|
-
> ol {
|
312
|
-
@extend .c-card;
|
313
|
-
@extend .u-high;
|
314
|
-
background-color: $bg-form1;
|
315
|
-
border-radius: 0 0 5px 5px;
|
316
|
-
overflow: visible;
|
317
|
-
padding: $form-padding;
|
318
|
-
> .has_many_container {
|
319
|
-
background-color: $bg-form2;
|
320
|
-
ol {
|
321
|
-
background-color: $bg-form2;
|
322
|
-
// padding: 0;
|
323
|
-
}
|
324
|
-
|
325
|
-
// > .has_many_fields > ol {
|
326
|
-
// background-color: $bg-form3;
|
327
|
-
// > .has_many_container {
|
328
|
-
// background-color: $bg-form3;
|
329
|
-
// }
|
330
|
-
// }
|
331
|
-
|
332
|
-
// > fieldset > ol > .has_many_container {
|
333
|
-
// background-color: $bg-form3;
|
334
|
-
// > fieldset > ol > .has_many_container {
|
335
|
-
// background-color: $bg-form4;
|
336
|
-
// }
|
337
|
-
// }
|
338
|
-
}
|
339
|
-
}
|
340
|
-
.has_many_container {
|
341
|
-
@extend .c-card;
|
342
|
-
@extend .u-high;
|
343
|
-
// border-left: 2px solid lighten( $color-brand, 20% );
|
344
|
-
border-radius: 0;
|
345
|
-
box-shadow: none;
|
346
|
-
padding: 0;
|
347
|
-
> h3 {
|
348
|
-
@extend .c-card__item;
|
349
|
-
// @extend .c-card__item--info;
|
350
|
-
background: $bg-form-sub-headings;
|
351
|
-
margin-bottom: 2px;
|
352
|
-
margin-top: 0;
|
353
|
-
padding: 10px;
|
354
|
-
}
|
355
|
-
// ol {
|
356
|
-
// border-left: 2px solid lighten( $color-brand, 20% );
|
357
|
-
// padding: 10px 0 10px 10px;
|
358
|
-
// }
|
359
|
-
.input {
|
360
|
-
padding: 10px 0 0 10px;
|
361
|
-
}
|
362
|
-
.inputs {
|
363
|
-
border-bottom: 1px solid #ccc;
|
364
|
-
border-radius: 0;
|
365
|
-
margin: 0;
|
366
|
-
padding: 0 0 5px 0;
|
367
|
-
// padding: $form-padding;
|
368
|
-
}
|
369
|
-
// .has_many_fields {
|
370
|
-
// margin: 0;
|
371
|
-
// padding: 0;
|
372
|
-
// }
|
373
|
-
> .button {
|
374
|
-
margin-left: $form-padding;
|
375
|
-
margin-bottom: $form-padding;
|
376
|
-
}
|
377
|
-
}
|
378
|
-
.choices-group li.choice {
|
379
|
-
display: inline-block;
|
380
|
-
margin-right: 10px;
|
381
|
-
}
|
382
|
-
}
|
383
|
-
div.c-card__item > fieldset.inputs {
|
384
|
-
margin-bottom: 0;
|
385
|
-
}
|
386
|
-
|
387
|
-
// tabs
|
388
|
-
.ui-tabs > .tab-content {
|
389
|
-
padding-bottom: 0;
|
390
|
-
padding-top: 25px;
|
391
|
-
}
|
392
|
-
.ui-tabs-nav {
|
393
|
-
li {
|
394
|
-
a {
|
395
|
-
background: #eee;
|
396
|
-
color: #555;
|
397
|
-
}
|
398
|
-
&:first-child a {
|
399
|
-
border-top-left-radius: 6px;
|
400
|
-
border-bottom-left-radius: 6px;
|
401
|
-
}
|
402
|
-
&:last-child a {
|
403
|
-
border-top-right-radius: 6px;
|
404
|
-
border-bottom-right-radius: 6px;
|
405
|
-
}
|
406
|
-
&.ui-tabs-active a {
|
407
|
-
color: #222;
|
408
|
-
border-color: #AAA;
|
409
|
-
background-image: none;
|
410
|
-
background-color: #fff;
|
411
|
-
}
|
412
|
-
}
|
413
|
-
}
|
414
|
-
|
415
|
-
// misc
|
416
|
-
a.c-button {
|
417
|
-
color: $fg-button-link;
|
418
|
-
text-decoration: none;
|
419
|
-
}
|
420
|
-
}
|
421
|
-
|
422
|
-
// header
|
423
|
-
#header {
|
424
|
-
background-color: $bg-header;
|
425
|
-
background-image: none;
|
426
|
-
border-bottom: 0 none;
|
427
|
-
padding: 0;
|
428
|
-
position: relative;
|
429
|
-
.header-item {
|
430
|
-
top: 0;
|
431
|
-
}
|
432
|
-
.site_title {
|
433
|
-
color: $fg-menu-items;
|
434
|
-
padding-top: 0;
|
435
|
-
padding-bottom: 0;
|
436
|
-
img {
|
437
|
-
max-height: $height-topbar;
|
438
|
-
max-width: 250px;
|
439
|
-
// top: -1px;
|
440
|
-
vertical-align: middle;
|
441
|
-
}
|
442
|
-
}
|
443
|
-
ul.tabs {
|
444
|
-
>li {
|
445
|
-
margin-left: 1px;
|
446
|
-
padding: 0;
|
447
|
-
}
|
448
|
-
li {
|
449
|
-
height: $height-topbar;
|
450
|
-
line-height: $height-topbar;
|
451
|
-
}
|
452
|
-
li > a {
|
453
|
-
color: $fg-menu-items;
|
454
|
-
height: $height-topbar;
|
455
|
-
line-height: $height-topbar;
|
456
|
-
padding-left: 20px;
|
457
|
-
padding-right: 20px;
|
458
|
-
}
|
459
|
-
li:hover, li.current {
|
460
|
-
background: $bg-menu-active;
|
461
|
-
}
|
462
|
-
> li.has_nested {
|
463
|
-
> a {
|
464
|
-
background-color: transparent;
|
465
|
-
border-bottom: 0;
|
466
|
-
}
|
467
|
-
> ul {
|
468
|
-
background: lighten( $bg-header, 5% );
|
469
|
-
border-radius: 0;
|
470
|
-
padding: 0;
|
471
|
-
margin: 0;
|
472
|
-
a {
|
473
|
-
line-height: 2em;
|
474
|
-
}
|
475
|
-
li:hover {
|
476
|
-
background: $bg-menu-active;
|
477
|
-
}
|
478
|
-
}
|
479
|
-
}
|
480
|
-
}
|
481
|
-
}
|
482
3
|
|
483
|
-
|
484
|
-
nav.pagination {
|
485
|
-
@extend .c-pagination;
|
486
|
-
span > a {
|
487
|
-
background: transparent;
|
488
|
-
background-image: none;
|
489
|
-
border: 0 none;
|
490
|
-
box-shadow: none;
|
491
|
-
color: initial;
|
492
|
-
cursor: pointer;
|
493
|
-
padding: 6px 10px;
|
494
|
-
margin: 0 auto;
|
495
|
-
text-shadow: none;
|
496
|
-
}
|
497
|
-
a:hover, span:hover > a {
|
498
|
-
background: transparent;
|
499
|
-
background-image: none;
|
500
|
-
color: #fff;
|
501
|
-
text-shadow: none;
|
502
|
-
}
|
503
|
-
.first, .prev, .next, .last {
|
504
|
-
@extend .c-pagination__control;
|
505
|
-
display: inline-block;
|
506
|
-
margin-right: 2px;
|
507
|
-
padding: 0;
|
508
|
-
}
|
509
|
-
.prev {
|
510
|
-
margin-right: 16px;
|
511
|
-
}
|
512
|
-
.next {
|
513
|
-
margin-left: 14px;
|
514
|
-
}
|
515
|
-
.page {
|
516
|
-
@extend .c-pagination__page;
|
517
|
-
display: inline-block;
|
518
|
-
margin-right: 2px;
|
519
|
-
padding: 0;
|
520
|
-
&.current {
|
521
|
-
@extend .c-pagination__page--current;
|
522
|
-
background-image: none;
|
523
|
-
padding: 6px 10px;
|
524
|
-
}
|
525
|
-
&.current:hover {
|
526
|
-
background-image: none;
|
527
|
-
}
|
528
|
-
&.gap {
|
529
|
-
border: 0 none;
|
530
|
-
}
|
531
|
-
&.gap:hover {
|
532
|
-
background-color: transparent;
|
533
|
-
color: initial;
|
534
|
-
cursor: default;
|
535
|
-
}
|
536
|
-
}
|
537
|
-
}
|
538
|
-
|
539
|
-
// navbar / menu
|
540
|
-
#tabs, #utility_nav {
|
541
|
-
@extend .c-nav;
|
542
|
-
@extend .c-nav--inline;
|
543
|
-
background-color: $bg-header;
|
544
|
-
> li {
|
545
|
-
@extend .c-nav__item;
|
546
|
-
float: left;
|
547
|
-
margin: 0;
|
548
|
-
&.current {
|
549
|
-
@extend .c-nav__item--active;
|
550
|
-
> a {
|
551
|
-
background: transparent;
|
552
|
-
}
|
553
|
-
}
|
554
|
-
> a {
|
555
|
-
display: block;
|
556
|
-
padding: 0;
|
557
|
-
}
|
558
|
-
> a:hover {
|
559
|
-
background: transparent;
|
560
|
-
}
|
561
|
-
}
|
562
|
-
> li:hover > a {
|
563
|
-
background: transparent;
|
564
|
-
}
|
565
|
-
}
|
566
|
-
#utility_nav {
|
567
|
-
position: absolute;
|
568
|
-
right: 0;
|
569
|
-
width: auto;
|
570
|
-
}
|
571
|
-
|
572
|
-
// sidebars
|
573
|
-
#sidebar {
|
574
|
-
background: $bg-sidebar;
|
575
|
-
min-height: calc(100vh - #{$height-topbar + $height-titlebar + 2 + 40});
|
576
|
-
padding: 0 15px;
|
577
|
-
.sidebar_section {
|
578
|
-
margin-bottom: 20px;
|
579
|
-
}
|
580
|
-
.filter_form .selectize-control > .selectize-input {
|
581
|
-
width: 100%;
|
582
|
-
}
|
583
|
-
}
|
584
|
-
#active_admin_content > #sidebar, #active_admin_content > #main_content_wrapper {
|
585
|
-
float: none;
|
586
|
-
}
|
587
|
-
.panel_contents {
|
588
|
-
@extend .c-card__item;
|
589
|
-
padding: 8px 10px 10px 10px;
|
590
|
-
}
|
591
|
-
.sidebar_section {
|
592
|
-
@extend .c-card;
|
593
|
-
@extend .u-high;
|
594
|
-
.filter_form_field {
|
595
|
-
input[type='datetime-local'],
|
596
|
-
input[type='email'],
|
597
|
-
input[type='number'],
|
598
|
-
input[type='password'],
|
599
|
-
input[type='search'],
|
600
|
-
input[type='tel'],
|
601
|
-
input[type='text'],
|
602
|
-
input[type='time'],
|
603
|
-
input[type='url'],
|
604
|
-
textarea {
|
605
|
-
background-color: $bg-inputs;
|
606
|
-
background-image: none;
|
607
|
-
}
|
608
|
-
select {
|
609
|
-
background-color: $bg-inputs;
|
610
|
-
}
|
611
|
-
}
|
612
|
-
> h3 {
|
613
|
-
@extend .c-card__item;
|
614
|
-
@extend .c-card__item--brand;
|
615
|
-
background-image: none;
|
616
|
-
border: 0 none !important;
|
617
|
-
color: $fg-box-title;
|
618
|
-
margin-bottom: 2px;
|
619
|
-
margin-top: 0;
|
620
|
-
padding: 8px 11px;
|
621
|
-
text-shadow: $text-shadow 0 1px 0;
|
622
|
-
}
|
623
|
-
h4 {
|
624
|
-
margin: 0;
|
625
|
-
}
|
626
|
-
input[type='submit'] {
|
627
|
-
@extend .c-button--info;
|
628
|
-
}
|
629
|
-
ul {
|
630
|
-
margin: 0 0 8px 0;
|
631
|
-
}
|
632
|
-
}
|
633
|
-
|
634
|
-
// tables
|
635
|
-
.table_tools {
|
636
|
-
a {
|
637
|
-
@extend .button-base;
|
638
|
-
margin-right: 10px;
|
639
|
-
span {
|
640
|
-
color: $fg-table-link;
|
641
|
-
}
|
642
|
-
}
|
643
|
-
a:hover,
|
644
|
-
a.table_tools_button:hover,
|
645
|
-
.dropdown_menu_button:hover {
|
646
|
-
background-image: none;
|
647
|
-
}
|
648
|
-
.dropdown_menu_list a {
|
649
|
-
width: 100%;
|
650
|
-
}
|
651
|
-
}
|
652
|
-
.index_table {
|
653
|
-
th {
|
654
|
-
background-image: none;
|
655
|
-
background-color: #eee;
|
656
|
-
border: 0 none;
|
657
|
-
box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3), 0 0 1px #fff inset;
|
658
|
-
}
|
659
|
-
tbody > tr > td:first-child {
|
660
|
-
border-left: 1px solid $fg-table-borders;
|
661
|
-
}
|
662
|
-
tbody > tr > td {
|
663
|
-
border-right: 1px solid $fg-table-borders;
|
664
|
-
}
|
665
|
-
.col.col-selectable > div {
|
666
|
-
text-align: center;
|
667
|
-
}
|
668
|
-
}
|
669
|
-
.index_as_table {
|
670
|
-
overflow-x: scroll;
|
671
|
-
}
|
672
|
-
.panel_contents table tr:last-child {
|
673
|
-
> td, > th {
|
674
|
-
border-bottom: 0 none;
|
675
|
-
}
|
676
|
-
}
|
677
|
-
.col-actions {
|
678
|
-
padding: 1px 2px 0 6px;
|
679
|
-
vertical-align: middle;
|
680
|
-
a.c-button {
|
681
|
-
color: #222;
|
682
|
-
margin-right: 1px;
|
683
|
-
margin-left: 1px;
|
684
|
-
}
|
685
|
-
// .table_actions {
|
686
|
-
// text-align: center;
|
687
|
-
// }
|
688
|
-
}
|
689
|
-
|
690
|
-
// title bar
|
691
|
-
#title_bar {
|
692
|
-
background-image: none;
|
693
|
-
box-shadow: none;
|
694
|
-
padding-top: 0;
|
695
|
-
padding-bottom: 0;
|
696
|
-
.breadcrumb {
|
697
|
-
float: left;
|
698
|
-
font-size: 1em;
|
699
|
-
line-height: initial;
|
700
|
-
margin: 0;
|
701
|
-
padding: 0;
|
702
|
-
> a, > a:link, > a:visited, > a:active {
|
703
|
-
opacity: 0.7;
|
704
|
-
}
|
705
|
-
}
|
706
|
-
.action_items span.action_item {
|
707
|
-
> a,
|
708
|
-
> .dropdown_menu > a {
|
709
|
-
@extend .button-base;
|
710
|
-
@extend .c-button--info;
|
711
|
-
}
|
712
|
-
> a:hover,
|
713
|
-
> .dropdown_menu > a:hover {
|
714
|
-
background-image: none;
|
715
|
-
}
|
716
|
-
a[data-method='delete'] {
|
717
|
-
@extend .c-button--error;
|
718
|
-
}
|
719
|
-
}
|
720
|
-
#page_title {
|
721
|
-
display: inline-block;
|
722
|
-
float: left;
|
723
|
-
font-size: 1em;
|
724
|
-
// font-size: 2em;
|
725
|
-
line-height: initial;
|
726
|
-
margin-left: 5px;
|
727
|
-
}
|
728
|
-
#titlebar_left, #titlebar_right {
|
729
|
-
height: $height-titlebar;
|
730
|
-
}
|
731
|
-
}
|
732
|
-
|
733
|
-
// main content
|
734
|
-
#main_content {
|
735
|
-
margin: 0;
|
736
|
-
padding: 25px 20px;
|
737
|
-
width: calc(100% - 270px);
|
738
|
-
.panel {
|
739
|
-
@extend .c-card;
|
740
|
-
@extend .u-high;
|
741
|
-
> h3 {
|
742
|
-
@extend .c-card__item;
|
743
|
-
@extend .c-card__item--brand;
|
744
|
-
background-image: none;
|
745
|
-
border: 0 none !important;
|
746
|
-
color: $fg-box-title;
|
747
|
-
margin: 0;
|
748
|
-
padding: 8px 11px;
|
749
|
-
text-shadow: $text-shadow 0 1px 0;
|
750
|
-
}
|
751
|
-
> .panel_contents .actions {
|
752
|
-
margin: 0;
|
753
|
-
}
|
754
|
-
table {
|
755
|
-
margin: 0;
|
756
|
-
}
|
757
|
-
}
|
758
|
-
.section {
|
759
|
-
background: transparent;
|
760
|
-
box-shadow: none;
|
761
|
-
margin-bottom: 0;
|
762
|
-
}
|
763
|
-
}
|
764
|
-
|
765
|
-
// admin content
|
766
|
-
#active_admin_content {
|
767
|
-
display: flex;
|
768
|
-
padding: 0;
|
769
|
-
}
|
770
|
-
&.logged_out #active_admin_content { // devise forms
|
771
|
-
display: block;
|
772
|
-
}
|
773
|
-
|
774
|
-
// dialogs
|
775
|
-
.ui-dialog {
|
776
|
-
button.ui-button {
|
777
|
-
@extend .button-base;
|
778
|
-
margin-right: 10px;
|
779
|
-
&:hover, &.ui-widget:hover {
|
780
|
-
background-image: none;
|
781
|
-
}
|
782
|
-
&.ui-dialog-titlebar-close {
|
783
|
-
// display: none; // hides close button
|
784
|
-
margin-right: 0;
|
785
|
-
}
|
786
|
-
}
|
787
|
-
.ui-dialog-content {
|
788
|
-
min-height: auto;
|
789
|
-
}
|
790
|
-
.ui-dialog-titlebar {
|
791
|
-
display: flex;
|
792
|
-
justify-content: space-between;
|
793
|
-
> * {
|
794
|
-
align-self: center
|
795
|
-
}
|
796
|
-
}
|
797
|
-
// .ui-dialog-buttonset {
|
798
|
-
// text-align: right;
|
799
|
-
// }
|
800
|
-
}
|
801
|
-
|
802
|
-
// footer
|
803
|
-
#footer {
|
804
|
-
bottom: 0;
|
805
|
-
position: absolute;
|
806
|
-
background-color: $bg-footer;
|
807
|
-
line-height: 20px;
|
808
|
-
padding: 10px;
|
809
|
-
text-align: center;
|
810
|
-
width: 100%;
|
811
|
-
> p {
|
812
|
-
margin: 0;
|
813
|
-
padding: 0;
|
814
|
-
}
|
815
|
-
}
|
816
|
-
|
817
|
-
// misc
|
818
|
-
a.member_link {
|
819
|
-
text-decoration: none;
|
820
|
-
}
|
821
|
-
.download_links > a {
|
822
|
-
@extend .c-button;
|
823
|
-
@extend .c-button--info;
|
824
|
-
@extend .u-small;
|
825
|
-
}
|
826
|
-
.ui-datepicker {
|
827
|
-
> .ui-datepicker-header {
|
828
|
-
border-bottom: 0 none;
|
829
|
-
border-radius: 0;
|
830
|
-
height: auto;
|
831
|
-
margin: 0;
|
832
|
-
padding: 8px 10px;
|
833
|
-
width: 100%;
|
834
|
-
}
|
835
|
-
.ui-datepicker-calendar th {
|
836
|
-
padding: 3px 0;
|
837
|
-
}
|
838
|
-
> .ui-datepicker-calendar {
|
839
|
-
left: 0;
|
840
|
-
width: 100%;
|
841
|
-
a {
|
842
|
-
text-decoration: none;
|
843
|
-
}
|
844
|
-
}
|
845
|
-
}
|
846
|
-
|
847
|
-
// textarea comments
|
848
|
-
#active_admin_comment_body {
|
849
|
-
width: 100%;
|
850
|
-
}
|
851
|
-
|
852
|
-
// comments
|
853
|
-
.comments {
|
854
|
-
.actions {
|
855
|
-
padding: 0;
|
856
|
-
}
|
857
|
-
.pagination_information {
|
858
|
-
float: none;
|
859
|
-
}
|
860
|
-
}
|
861
|
-
|
862
|
-
// boolean values
|
863
|
-
.status_tag {
|
864
|
-
min-width: 30px;
|
865
|
-
display: inline-block;
|
866
|
-
text-align: center;
|
867
|
-
&.no {
|
868
|
-
background-color: $color-error;
|
869
|
-
}
|
870
|
-
&.yes {
|
871
|
-
background-color: $color-success;
|
872
|
-
}
|
873
|
-
}
|
874
|
-
|
875
|
-
// misc
|
876
|
-
#active_admin_content.without_sidebar #main_content_wrapper #main_content {
|
877
|
-
width: 100%;
|
878
|
-
}
|
879
|
-
#wrapper {
|
880
|
-
display: block;
|
881
|
-
min-height: 100vh;
|
882
|
-
padding-bottom: 40px; // footer height
|
883
|
-
position: relative;
|
884
|
-
}
|
885
|
-
|
886
|
-
.blaze-menu {
|
887
|
-
@extend .c-card;
|
888
|
-
@extend .c-card--menu;
|
889
|
-
@extend .u-high;
|
890
|
-
li {
|
891
|
-
@extend .c-card__item;
|
892
|
-
padding: 0;
|
893
|
-
a {
|
894
|
-
display: block;
|
895
|
-
padding: 0.5em;
|
896
|
-
text-decoration: none;
|
897
|
-
}
|
898
|
-
}
|
899
|
-
}
|
900
|
-
.sidebar_section .blaze-menu {
|
901
|
-
margin-bottom: 4px;
|
902
|
-
}
|
903
|
-
.blaze-table {
|
904
|
-
@extend .c-table;
|
905
|
-
// @extend .c-table--striped;
|
906
|
-
// @extend .c-table--condensed;
|
907
|
-
>thead {
|
908
|
-
@extend .c-table__head;
|
909
|
-
>tr {
|
910
|
-
@extend .c-table__row;
|
911
|
-
@extend .c-table__row--heading;
|
912
|
-
>th {
|
913
|
-
@extend .c-table__cell;
|
914
|
-
}
|
915
|
-
}
|
916
|
-
}
|
917
|
-
>tbody {
|
918
|
-
@extend .c-table__body;
|
919
|
-
>tr {
|
920
|
-
@extend .c-table__row;
|
921
|
-
>td {
|
922
|
-
@extend .c-table__cell;
|
923
|
-
}
|
924
|
-
}
|
925
|
-
}
|
926
|
-
&.table-bordered {
|
927
|
-
border: 1px solid #ddd;
|
928
|
-
&.table-rows {
|
929
|
-
border-bottom: 0 none;
|
930
|
-
}
|
931
|
-
}
|
932
|
-
&.table-rows >tbody >tr {
|
933
|
-
border-bottom: 1px solid #ddd;
|
934
|
-
}
|
935
|
-
&.table-striped >tbody >tr.even {
|
936
|
-
background: #f4f4f4;
|
937
|
-
}
|
938
|
-
}
|
939
|
-
|
940
|
-
// special components
|
941
|
-
.filter_form .select-one-inputs {
|
942
|
-
display: flex;
|
943
|
-
>input[type="text"], >select {
|
944
|
-
width: 49%;
|
945
|
-
}
|
946
|
-
>input[type="text"] {
|
947
|
-
margin: 0 1% 0 0;
|
948
|
-
}
|
949
|
-
select {
|
950
|
-
margin: 0 0 0 1%;
|
951
|
-
}
|
952
|
-
}
|
953
|
-
.selectize.input > .selectize-control > .selectize-input {
|
954
|
-
padding-left: 4px;
|
955
|
-
padding-top: 3px;
|
956
|
-
}
|
4
|
+
@import url('https://fonts.googleapis.com/css?family=Roboto');
|
957
5
|
|
958
|
-
|
959
|
-
|
960
|
-
|
961
|
-
|
962
|
-
|
963
|
-
|
964
|
-
|
965
|
-
|
966
|
-
|
967
|
-
width: 100%;
|
968
|
-
}
|
969
|
-
}
|
970
|
-
#sidebar {
|
971
|
-
order: 1;
|
972
|
-
margin-left: 0;
|
973
|
-
}
|
974
|
-
}
|
975
|
-
table.scrollable_cells {
|
976
|
-
th, td {
|
977
|
-
max-width: 200px;
|
978
|
-
overflow: scroll;
|
979
|
-
}
|
980
|
-
}
|
981
|
-
.ckeditor_width_fix {
|
982
|
-
display: inline-block;
|
983
|
-
min-width: 450px;
|
984
|
-
width: auto;
|
985
|
-
// width: calc(80% - 22px);
|
986
|
-
}
|
987
|
-
.no_rounded {
|
988
|
-
*, .action_items span.action_item > a, .panel {
|
989
|
-
border-radius: 0;
|
990
|
-
}
|
991
|
-
}
|
992
|
-
}
|
6
|
+
@import 'variables';
|
7
|
+
@import 'base';
|
8
|
+
@import 'form';
|
9
|
+
@import 'header';
|
10
|
+
@import 'navigation';
|
11
|
+
@import 'sidebars';
|
12
|
+
@import 'tables';
|
13
|
+
@import 'contents';
|
14
|
+
@import 'footer';
|