activeadmin_blaze_theme 0.5.16 → 0.7.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (124) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +77 -37
  4. data/app/assets/stylesheets/activeadmin_blaze_theme/_base.scss +197 -0
  5. data/app/assets/stylesheets/activeadmin_blaze_theme/_contents.scss +43 -0
  6. data/app/assets/stylesheets/activeadmin_blaze_theme/_footer.scss +15 -0
  7. data/app/assets/stylesheets/activeadmin_blaze_theme/_form.scss +384 -0
  8. data/app/assets/stylesheets/activeadmin_blaze_theme/_header.scss +140 -0
  9. data/app/assets/stylesheets/activeadmin_blaze_theme/_navigation.scss +69 -0
  10. data/app/assets/stylesheets/activeadmin_blaze_theme/_sidebars.scss +64 -0
  11. data/app/assets/stylesheets/activeadmin_blaze_theme/_tables.scss +96 -0
  12. data/app/assets/stylesheets/activeadmin_blaze_theme/_variables.scss +46 -0
  13. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.scss +2 -0
  14. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.inputs.scss +0 -9
  15. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.overlays.scss +8 -1
  16. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.typography.scss +1 -0
  17. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.grid.scss +4 -3
  18. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.alignment.scss +12 -0
  19. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.visibility.scss +47 -0
  20. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.containers.scss +0 -2
  21. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.drawers.scss +6 -6
  22. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.modals.scss +1 -1
  23. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.alignment.scss +12 -0
  24. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.visibility.scss +45 -0
  25. data/app/assets/stylesheets/activeadmin_blaze_theme/theme.scss +11 -989
  26. data/index.js +2 -0
  27. data/lib/activeadmin/views/activeadmin_form.rb +1 -1
  28. data/lib/activeadmin_blaze_theme.rb +3 -3
  29. data/lib/activeadmin_blaze_theme/version.rb +1 -1
  30. data/lib/formtastic/inputs/blaze_toggle_input.rb +1 -1
  31. data/package.json +13 -0
  32. metadata +23 -295
  33. data/.circleci/config.yml +0 -33
  34. data/.gitignore +0 -13
  35. data/.rspec +0 -3
  36. data/.rubocop.yml +0 -27
  37. data/Gemfile +0 -5
  38. data/Rakefile +0 -3
  39. data/activeadmin_blaze_theme.gemspec +0 -33
  40. data/bin/rails +0 -29
  41. data/bin/rake +0 -29
  42. data/bin/rspec +0 -29
  43. data/bin/rubocop +0 -29
  44. data/extra/screenshot1.jpg +0 -0
  45. data/extra/screenshot2.jpg +0 -0
  46. data/extra/screenshot3.jpg +0 -0
  47. data/extra/screenshot4.jpg +0 -0
  48. data/spec/dummy/.ruby-version +0 -1
  49. data/spec/dummy/.tool-versions +0 -1
  50. data/spec/dummy/Rakefile +0 -6
  51. data/spec/dummy/app/admin/authors.rb +0 -57
  52. data/spec/dummy/app/admin/dashboard.rb +0 -32
  53. data/spec/dummy/app/admin/posts.rb +0 -50
  54. data/spec/dummy/app/admin/tags.rb +0 -4
  55. data/spec/dummy/app/assets/config/manifest.js +0 -3
  56. data/spec/dummy/app/assets/images/.keep +0 -0
  57. data/spec/dummy/app/assets/javascripts/active_admin.js +0 -1
  58. data/spec/dummy/app/assets/stylesheets/active_admin.scss +0 -4
  59. data/spec/dummy/app/assets/stylesheets/application.css +0 -15
  60. data/spec/dummy/app/channels/application_cable/channel.rb +0 -4
  61. data/spec/dummy/app/channels/application_cable/connection.rb +0 -4
  62. data/spec/dummy/app/controllers/application_controller.rb +0 -2
  63. data/spec/dummy/app/controllers/concerns/.keep +0 -0
  64. data/spec/dummy/app/helpers/application_helper.rb +0 -2
  65. data/spec/dummy/app/javascript/packs/application.js +0 -15
  66. data/spec/dummy/app/jobs/application_job.rb +0 -7
  67. data/spec/dummy/app/mailers/application_mailer.rb +0 -4
  68. data/spec/dummy/app/models/application_record.rb +0 -7
  69. data/spec/dummy/app/models/author.rb +0 -26
  70. data/spec/dummy/app/models/concerns/.keep +0 -0
  71. data/spec/dummy/app/models/post.rb +0 -25
  72. data/spec/dummy/app/models/post_tag.rb +0 -9
  73. data/spec/dummy/app/models/profile.rb +0 -9
  74. data/spec/dummy/app/models/tag.rb +0 -6
  75. data/spec/dummy/app/views/layouts/application.html.erb +0 -14
  76. data/spec/dummy/app/views/layouts/mailer.html.erb +0 -13
  77. data/spec/dummy/app/views/layouts/mailer.text.erb +0 -1
  78. data/spec/dummy/bin/rails +0 -4
  79. data/spec/dummy/bin/rake +0 -4
  80. data/spec/dummy/bin/setup +0 -33
  81. data/spec/dummy/config.ru +0 -5
  82. data/spec/dummy/config/application.rb +0 -18
  83. data/spec/dummy/config/boot.rb +0 -5
  84. data/spec/dummy/config/cable.yml +0 -10
  85. data/spec/dummy/config/database.yml +0 -8
  86. data/spec/dummy/config/environment.rb +0 -5
  87. data/spec/dummy/config/environments/development.rb +0 -62
  88. data/spec/dummy/config/environments/production.rb +0 -112
  89. data/spec/dummy/config/environments/test.rb +0 -49
  90. data/spec/dummy/config/initializers/active_admin.rb +0 -335
  91. data/spec/dummy/config/initializers/application_controller_renderer.rb +0 -8
  92. data/spec/dummy/config/initializers/assets.rb +0 -12
  93. data/spec/dummy/config/initializers/backtrace_silencers.rb +0 -7
  94. data/spec/dummy/config/initializers/content_security_policy.rb +0 -28
  95. data/spec/dummy/config/initializers/cookies_serializer.rb +0 -5
  96. data/spec/dummy/config/initializers/filter_parameter_logging.rb +0 -4
  97. data/spec/dummy/config/initializers/inflections.rb +0 -16
  98. data/spec/dummy/config/initializers/mime_types.rb +0 -4
  99. data/spec/dummy/config/initializers/wrap_parameters.rb +0 -14
  100. data/spec/dummy/config/locales/en.yml +0 -33
  101. data/spec/dummy/config/puma.rb +0 -38
  102. data/spec/dummy/config/routes.rb +0 -3
  103. data/spec/dummy/config/spring.rb +0 -6
  104. data/spec/dummy/config/storage.yml +0 -7
  105. data/spec/dummy/db/migrate/20170806125915_create_active_storage_tables.active_storage.rb +0 -27
  106. data/spec/dummy/db/migrate/20180101010101_create_active_admin_comments.rb +0 -16
  107. data/spec/dummy/db/migrate/20180607053251_create_authors.rb +0 -13
  108. data/spec/dummy/db/migrate/20180607053254_create_profiles.rb +0 -12
  109. data/spec/dummy/db/migrate/20180607053255_create_tags.rb +0 -11
  110. data/spec/dummy/db/migrate/20180607053257_create_post_tags.rb +0 -12
  111. data/spec/dummy/db/migrate/20180607053739_create_posts.rb +0 -17
  112. data/spec/dummy/db/schema.rb +0 -99
  113. data/spec/dummy/lib/assets/.keep +0 -0
  114. data/spec/dummy/public/404.html +0 -67
  115. data/spec/dummy/public/422.html +0 -67
  116. data/spec/dummy/public/500.html +0 -66
  117. data/spec/dummy/public/apple-touch-icon-precomposed.png +0 -0
  118. data/spec/dummy/public/apple-touch-icon.png +0 -0
  119. data/spec/dummy/public/favicon.ico +0 -0
  120. data/spec/rails_helper.rb +0 -36
  121. data/spec/spec_helper.rb +0 -20
  122. data/spec/support/capybara.rb +0 -3
  123. data/spec/support/drivers.rb +0 -7
  124. data/spec/system/theme_spec.rb +0 -15
@@ -0,0 +1,15 @@
1
+ body.active_admin {
2
+ #footer {
3
+ bottom: 0;
4
+ position: absolute;
5
+ background-color: $bg-footer;
6
+ line-height: 20px;
7
+ padding: 10px;
8
+ text-align: center;
9
+ width: 100%;
10
+ > p {
11
+ margin: 0;
12
+ padding: 0;
13
+ }
14
+ }
15
+ }
@@ -0,0 +1,384 @@
1
+ body.active_admin {
2
+ form {
3
+ // inputs
4
+ input[type='datetime-local'],
5
+ input[type='email'],
6
+ input[type='number'],
7
+ input[type='password'],
8
+ input[type='search'],
9
+ input[type='tel'],
10
+ input[type='text'],
11
+ input[type='time'],
12
+ input[type='url'],
13
+ select,
14
+ textarea {
15
+ @extend .c-field;
16
+ background-color: $bg-inputs;
17
+ display: inline-block;
18
+ height: $height-inputs;
19
+ padding: 1px 6px;
20
+ }
21
+ input[type='radio'] {
22
+ margin-right: 0.4em;
23
+ }
24
+ input[type='range'] {
25
+ @extend .c-range;
26
+ background: transparent;
27
+ display: inline-block;
28
+ height: $height-inputs;
29
+ min-width: 200px;
30
+ width: 30%;
31
+ }
32
+ select {
33
+ padding: 1px 5px;
34
+ }
35
+ select[multiple], textarea {
36
+ height: auto;
37
+ }
38
+ select.c-field:not([multiple]), select:not([multiple]) {
39
+ background: transparent;
40
+ -webkit-appearance: menulist;
41
+ }
42
+ textarea {
43
+ padding: 6px;
44
+ }
45
+ abbr {
46
+ padding-left: 3px;
47
+ }
48
+
49
+ // buttons
50
+ a.button.has_many_add,
51
+ button,
52
+ input[type='button'],
53
+ input[type='submit'],
54
+ &.filter_form a.clear_filters_btn,
55
+ fieldset.buttons li.cancel a,
56
+ fieldset.actions li.cancel a {
57
+ @extend .button-base;
58
+
59
+ color: #f4f4f4;
60
+ }
61
+ .buttons, .actions {
62
+ button,
63
+ input[type='button'],
64
+ input[type='submit'] {
65
+ color: #f4f4f4;
66
+ margin-right: 10px;
67
+ }
68
+ }
69
+
70
+ a.button.has_many_add:hover,
71
+ button:hover,
72
+ input[type='button']:hover,
73
+ input[type='submit']:hover,
74
+ &.filter_form a.clear_filters_btn:hover,
75
+ fieldset.buttons li.cancel a:hover,
76
+ fieldset.actions li.cancel a:hover {
77
+ background-color: #aaa;
78
+ background-image: none;
79
+ }
80
+
81
+ > .actions {
82
+ margin: 5px 0 0 0;
83
+ }
84
+
85
+ // submits
86
+ input[type='submit'] {
87
+ @extend .c-button--success;
88
+
89
+ color: #f4f4f4;
90
+ }
91
+
92
+ // custom fields
93
+ .blaze_toggle {
94
+ label {
95
+ display: inline-block;
96
+ }
97
+ .field_with_errors {
98
+ display: inline;
99
+ }
100
+ .inline-errors {
101
+ margin-top: 0;
102
+ }
103
+ }
104
+ .readonly-field {
105
+ div {
106
+ display: inline-block;
107
+ line-height: $height-inputs;
108
+ min-width: 450px;
109
+ }
110
+ .field_label {
111
+ display: block;
112
+ float: left;
113
+ width: 20%;
114
+ }
115
+ .field_value {
116
+ border-bottom: 1px dashed #ccc;
117
+ display: inline-block;
118
+ width: 100%;
119
+ padding: 0 6px;
120
+ }
121
+ }
122
+
123
+ // filter forms
124
+ &.filter_form {
125
+ .filter_form_field {
126
+ > input, > select, .separator, .seperator {
127
+ float: left;
128
+ }
129
+ > label {
130
+ padding-top: 8px;
131
+ }
132
+ .separator, .seperator {
133
+ line-height: $height-inputs;
134
+ }
135
+ }
136
+ .filter_form_field.select_and_search {
137
+ >input, >select {
138
+ background-color: $bg-inputs;
139
+ width: 49%;
140
+ }
141
+ >input {
142
+ margin: 0 0 0 1%;
143
+ }
144
+ >select {
145
+ margin: 0 1% 0 0;
146
+ }
147
+ }
148
+ .filter_form_field.filter_date_range {
149
+ >input {
150
+ background-color: $bg-inputs;
151
+ width: 49%;
152
+ margin: 0 1% 0 0;
153
+ }
154
+ >input:last-child {
155
+ margin: 0 0 0 1%;
156
+ }
157
+ }
158
+ .buttons {
159
+ clear: both;
160
+ padding-top: 14px;
161
+ }
162
+ }
163
+
164
+ // fieldsets
165
+ fieldset {
166
+ &.buttons li, &.actions li {
167
+ float: none;
168
+ display: inline-block;
169
+ }
170
+ &.inputs {
171
+ background-color: transparent;
172
+ box-shadow: none;
173
+ padding: 0;
174
+ input[type='datetime-local'],
175
+ input[type='email'],
176
+ input[type='number'],
177
+ input[type='password'],
178
+ input[type='search'],
179
+ input[type='tel'],
180
+ input[type='text'],
181
+ input[type='time'],
182
+ input[type='url'],
183
+ select,
184
+ textarea {
185
+ background-color: $bg-inputs;
186
+ min-width: 450px;
187
+ width: auto;
188
+ // width: calc(80% - 22px);
189
+ }
190
+ // select {
191
+ // background-image: none;
192
+ // }
193
+ label {
194
+ line-height: $height-inputs;
195
+ }
196
+ li.input.hidden {
197
+ padding: 0;
198
+ }
199
+ // .boolean > label { // not working
200
+ // @extend .c-field;
201
+ // @extend .c-field--choice;
202
+ // }
203
+ .button {
204
+ @extend .button-base;
205
+ display: inline-block;
206
+ margin-left: 10px;
207
+ margin-top: 10px;
208
+ &:hover {
209
+ background-color: #aaa;
210
+ background-image: none;
211
+ }
212
+ &.has_many_add {
213
+ @extend .c-button--info;
214
+ }
215
+ &.has_many_remove {
216
+ @extend .c-button--error;
217
+ }
218
+ }
219
+ // .datepicker > input {
220
+ // -webkit-appearance: menulist;
221
+ // }
222
+ .fragment {
223
+ input[type='datetime-local'],
224
+ input[type='email'],
225
+ input[type='number'],
226
+ input[type='password'],
227
+ input[type='search'],
228
+ input[type='tel'],
229
+ input[type='text'],
230
+ input[type='time'],
231
+ input[type='url'],
232
+ select {
233
+ min-width: auto;
234
+ width: auto;
235
+ }
236
+ }
237
+ .input.error select {
238
+ border: 1px solid $color-validation-error;
239
+ }
240
+ }
241
+ > ol {
242
+ padding: 0;
243
+ > li {
244
+ padding: 0 0 $inputs-spacing 0;
245
+ &.boolean label, &.blaze_toggle label {
246
+ float: none;
247
+ }
248
+ &.has_many_container {
249
+ padding: $form-padding;
250
+ }
251
+ }
252
+ }
253
+ }
254
+ > fieldset.inputs, div.c-card__item > fieldset.inputs, .ui-tabs-panel > fieldset.inputs {
255
+ > legend {
256
+ @extend .c-card__item;
257
+ @extend .c-card__item--brand;
258
+ border-radius: 5px 5px 0 0;
259
+ box-shadow: 0 0 1px rgba(17, 17, 17, 0.6), 0 5px 10px -3px rgba(17, 17, 17, 0.4);
260
+ color: $fg-box-title;
261
+ padding: 8px 11px;
262
+ text-shadow: $text-shadow 0 1px 0;
263
+ > span {
264
+ background-color: transparent;
265
+ background-image: none;
266
+ border: 0 none;
267
+ box-shadow: initial;
268
+ color: inherit;
269
+ margin: 0;
270
+ padding: 0;
271
+ text-shadow: inherit;
272
+ }
273
+ }
274
+ > ol {
275
+ @extend .c-card;
276
+ @extend .u-high;
277
+ background-color: $bg-form1;
278
+ border-radius: 0 0 5px 5px;
279
+ overflow: visible;
280
+ padding: $form-padding;
281
+ > .has_many_container {
282
+ background-color: $bg-form2;
283
+ ol {
284
+ background-color: $bg-form2;
285
+ // padding: 0;
286
+ }
287
+
288
+ // > .has_many_fields > ol {
289
+ // background-color: $bg-form3;
290
+ // > .has_many_container {
291
+ // background-color: $bg-form3;
292
+ // }
293
+ // }
294
+
295
+ // > fieldset > ol > .has_many_container {
296
+ // background-color: $bg-form3;
297
+ // > fieldset > ol > .has_many_container {
298
+ // background-color: $bg-form4;
299
+ // }
300
+ // }
301
+ }
302
+ }
303
+ .has_many_container {
304
+ @extend .c-card;
305
+ @extend .u-high;
306
+ // border-left: 2px solid lighten( $color-brand, 20% );
307
+ border-radius: 0;
308
+ box-shadow: none;
309
+ padding: 0;
310
+ > h3 {
311
+ @extend .c-card__item;
312
+ // @extend .c-card__item--info;
313
+ background: $bg-form-sub-headings;
314
+ margin-bottom: 2px;
315
+ margin-top: 0;
316
+ padding: 10px;
317
+ }
318
+ // ol {
319
+ // border-left: 2px solid lighten( $color-brand, 20% );
320
+ // padding: 10px 0 10px 10px;
321
+ // }
322
+ .input {
323
+ padding: 10px 0 0 10px;
324
+ }
325
+ .inputs {
326
+ border-bottom: 1px solid #ccc;
327
+ border-radius: 0;
328
+ margin: 0;
329
+ padding: 0 0 5px 0;
330
+ // padding: $form-padding;
331
+ }
332
+ // .has_many_fields {
333
+ // margin: 0;
334
+ // padding: 0;
335
+ // }
336
+ > .button {
337
+ margin-left: $form-padding;
338
+ margin-bottom: $form-padding;
339
+ }
340
+ }
341
+ .choices-group li.choice {
342
+ display: inline-block;
343
+ margin-right: 10px;
344
+ }
345
+ }
346
+ div.c-card__item > fieldset.inputs {
347
+ margin-bottom: 0;
348
+ }
349
+
350
+ // tabs
351
+ .ui-tabs > .tab-content {
352
+ padding-bottom: 0;
353
+ padding-top: 25px;
354
+ }
355
+ .ui-tabs-nav {
356
+ li {
357
+ a {
358
+ background: #eee;
359
+ color: #555;
360
+ }
361
+ &:first-child a {
362
+ border-top-left-radius: 6px;
363
+ border-bottom-left-radius: 6px;
364
+ }
365
+ &:last-child a {
366
+ border-top-right-radius: 6px;
367
+ border-bottom-right-radius: 6px;
368
+ }
369
+ &.ui-tabs-active a {
370
+ color: #222;
371
+ border-color: #AAA;
372
+ background-image: none;
373
+ background-color: #fff;
374
+ }
375
+ }
376
+ }
377
+
378
+ // misc
379
+ a.c-button {
380
+ color: $fg-button-link;
381
+ text-decoration: none;
382
+ }
383
+ }
384
+ }
@@ -0,0 +1,140 @@
1
+ body.active_admin {
2
+ #header {
3
+ background-color: $bg-header;
4
+ background-image: none;
5
+ border-bottom: 0 none;
6
+ padding: 0;
7
+ position: relative;
8
+ .header-item {
9
+ top: 0;
10
+ }
11
+ .site_title {
12
+ color: $fg-menu-items;
13
+ padding-top: 0;
14
+ padding-bottom: 0;
15
+ img {
16
+ max-height: $height-topbar;
17
+ max-width: 250px;
18
+ // top: -1px;
19
+ vertical-align: middle;
20
+ }
21
+ }
22
+ ul.tabs {
23
+ >li {
24
+ margin-left: 1px;
25
+ padding: 0;
26
+ }
27
+ li {
28
+ height: $height-topbar;
29
+ line-height: $height-topbar;
30
+ }
31
+ li > a {
32
+ color: $fg-menu-items;
33
+ height: $height-topbar;
34
+ line-height: $height-topbar;
35
+ padding-left: 20px;
36
+ padding-right: 20px;
37
+ }
38
+ li:hover, li.current {
39
+ background: $bg-menu-active;
40
+ }
41
+ > li.has_nested {
42
+ > a {
43
+ background-color: transparent;
44
+ border-bottom: 0;
45
+ }
46
+ > ul {
47
+ background: lighten( $bg-header, 5% );
48
+ border-radius: 0;
49
+ padding: 0;
50
+ margin: 0;
51
+ a {
52
+ line-height: 2em;
53
+ }
54
+ li:hover {
55
+ background: $bg-menu-active;
56
+ }
57
+ }
58
+ }
59
+ }
60
+ }
61
+
62
+ #tabs, #utility_nav {
63
+ @extend .c-nav;
64
+ // @extend .c-nav--inline;
65
+ background-color: $bg-header;
66
+ > li {
67
+ @extend .c-nav__item;
68
+ float: left;
69
+ margin: 0;
70
+ &.current {
71
+ @extend .c-nav__item--active;
72
+ > a {
73
+ background: transparent;
74
+ }
75
+ }
76
+ > a {
77
+ display: block;
78
+ padding: 0;
79
+ }
80
+ > a:hover {
81
+ background: transparent;
82
+ }
83
+ }
84
+ > li:hover > a {
85
+ background: transparent;
86
+ }
87
+ }
88
+
89
+ #utility_nav {
90
+ position: absolute;
91
+ right: 0;
92
+ width: auto;
93
+ }
94
+
95
+ // title bar
96
+ #title_bar {
97
+ background-image: none;
98
+ box-shadow: none;
99
+ padding-top: 0;
100
+ padding-bottom: 0;
101
+ .breadcrumb {
102
+ float: left;
103
+ font-size: 1em;
104
+ line-height: initial;
105
+ margin: 0;
106
+ padding: 0;
107
+ > a, > a:link, > a:visited, > a:active {
108
+ opacity: 0.7;
109
+ }
110
+ }
111
+ .action_items span.action_item {
112
+ > a,
113
+ > .dropdown_menu > a {
114
+ @extend .button-base;
115
+ @extend .c-button--info;
116
+
117
+ color: #f4f4f4;
118
+ }
119
+ > a:hover,
120
+ > .dropdown_menu > a:hover {
121
+ background-color: #aaa;
122
+ background-image: none;
123
+ }
124
+ a[data-method='delete'] {
125
+ @extend .c-button--error;
126
+ }
127
+ }
128
+ #page_title {
129
+ display: block;
130
+ float: left;
131
+ font-size: 1em;
132
+ // font-size: 2em;
133
+ line-height: initial;
134
+ margin-left: 5px;
135
+ }
136
+ #titlebar_left, #titlebar_right {
137
+ height: $height-titlebar;
138
+ }
139
+ }
140
+ }