activeadmin_blaze_theme 0.5.10 → 0.6.2

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