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
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af3f001d6915ecc2ab8b31b3161503ae7dec0ddbb3d73e540f84400021286ef8
4
- data.tar.gz: 8e738b5f803ccb3aecc414fe3b85b4cc71806b0ba1f2d94b19a756fee83d333a
3
+ metadata.gz: 23b73dccd520bea5c06eae163694ef16f3fbbbc6833ca83174212b5f5134d092
4
+ data.tar.gz: 8f1d6ae7ede072fa6300c2d01598ab2857d6af94a48f83ff8b2445929292ced3
5
5
  SHA512:
6
- metadata.gz: 5a2f5c9cd1161cd38baad128f22eb90c5d05dc00807dec294908f8463be2d4d67efac5b11bb8061af7ab6f13a56a10b2eeaa1779ad239512d9fd4f6ef194b4cb
7
- data.tar.gz: 8c7ebfe0ca82825ae580c4a8a9309c35d5cb16f9203bb04d40a0decc1ea6984994b180a045b2eb33ea8478952fec8b40a1ed49d40612d780da3c26a554f6d333
6
+ metadata.gz: 3522b5c31e56cd92ff1c9715a212a31f7342f1cb7d4de81248aabd098447b39b4e6ca5e34e23a90b21cd62a02acd4636fddb0ccc912b5653560c67518cdcc761
7
+ data.tar.gz: c9faf4f11d4f43d6a9a342c44f38431c76b9bec35d4c5e8eb9d90c1f904a4ca314bdeb2853fd8f54a6d0747b411b4591880fd239556123e683e6922d77da775f
data/LICENSE.txt CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2017 Mattia Roccoberton
1
+ Copyright (c) 2020 Mattia Roccoberton
2
2
 
3
3
  MIT License
4
4
 
data/README.md CHANGED
@@ -1,53 +1,87 @@
1
1
  # Active Admin Blaze Theme
2
- [![Gem Version](https://badge.fury.io/rb/activeadmin_blaze_theme.svg)](https://badge.fury.io/rb/activeadmin_blaze_theme) [![CircleCI](https://circleci.com/gh/blocknotes/activeadmin_blaze_theme.svg?style=svg)](https://circleci.com/gh/blocknotes/activeadmin_blaze_theme)
2
+ [![gem version](https://badge.fury.io/rb/activeadmin_blaze_theme.svg)](https://badge.fury.io/rb/activeadmin_blaze_theme) [![gem downloads](https://badgen.net/rubygems/dt/activeadmin_blaze_theme)](https://rubygems.org/gems/activeadmin_blaze_theme) [![linters](https://github.com/blocknotes/activeadmin_blaze_theme/actions/workflows/linters.yml/badge.svg)](https://github.com/blocknotes/activeadmin_blaze_theme/actions/workflows/linters.yml) [![specs](https://github.com/blocknotes/activeadmin_blaze_theme/actions/workflows/specs.yml/badge.svg)](https://github.com/blocknotes/activeadmin_blaze_theme/actions/workflows/specs.yml)
3
3
 
4
- A theme for Active Admin using [Blaze CSS](http://blazecss.com/).
4
+ A theme for Active Admin based on [Blaze CSS](http://blazecss.com) 3.x
5
5
 
6
6
  Features:
7
+
7
8
  - CSS only theme with clean UI
8
9
  - compact nested forms
9
10
  - [customizable](#customize) options: colors, sidebar position, squared style, scroll on cells
10
11
  - custom controls / components: [toggle](#toggle), [Sidebar menu](#sidebar-menu), [Accordion](#accordion), [Readonly field](#readonly-field), [Styled table](#styled-table)
11
12
  - Blaze CSS [widgets](#blaze-widgets)
12
13
 
14
+ See some [screenshots](#screenshots).
15
+
16
+ Please :star: if you like it.
17
+
13
18
  ## Install
14
- - Add to your Gemfile: `gem 'activeadmin_blaze_theme'`
15
- - Execute bundle
16
- - Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_): `@import "activeadmin_blaze_theme/theme";`
19
+
20
+ First, add to your Gemfile: `gem 'activeadmin_blaze_theme'` (and execute `bundle`)
21
+
22
+ Then, if you installed Active Admin **without Webpacker** support (so using Sprockets):
23
+
24
+ - Add at the end of your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
25
+
26
+ ```scss
27
+ @import "activeadmin_blaze_theme/theme";
28
+ ```
29
+
30
+ Otherwise, **with Webpacker**:
31
+
32
+ - Add the component to the _package.json_: `yarn add blocknotes/activeadmin_blaze_theme`
33
+ - Add at the end of your Active Admin javascript pack (_app/javascript/packs/active_admin.js_):
34
+
35
+ ```js
36
+ require('activeadmin_blaze_theme');
37
+ ```
38
+
39
+ - Another option is appending to _app/javascript/stylesheets/active_admin.scss_ (in this case the JS require line is not needed):
40
+
41
+ ```scss
42
+ // ...
43
+ // optionally add custom colors variables here
44
+ @import "~activeadmin_blaze_theme/app/assets/stylesheets/activeadmin_blaze_theme/theme";
45
+ ```
46
+
47
+ - Sometimes it could be necessary to remove the _node_modules_ path and recreate it (using `yarn install --check-files`) or to clean the tmp path: `bin/rails tmp:clear`
17
48
 
18
49
  ## Customize
19
- - To change colors add before your Active Admin styles (_app/assets/stylesheets/active_admin.scss_):
50
+
51
+ - Colors customization is available using some Sass variables;
52
+ - With Sprockets: you need to update your Active Admin styles (before **activeadmin_blaze_theme/theme** import line);
53
+ - With Webpacker: you need to import the theme using the Sass/Scss option as described above.
20
54
 
21
55
  ```scss
22
56
  // blaze colors
23
- $color-brand: #2C3E50;
57
+ $color-brand: #2c3e50;
24
58
  $color-info: #4dabf5;
25
59
  $color-warning: #ff9800;
26
60
  $color-success: #4caf50;
27
61
  $color-error: #f44336;
28
62
  // main variables
29
- $bg-footer: #dfdfdf !default; // bg footer bar
30
- $bg-form1: #f4f4f4 !default; // bg 1st level forms
31
- $bg-form2: darken($bg-form1, 3%) !default; // bg 2nd level forms (nested)
32
- $bg-form3: darken($bg-form1, 6%) !default; // bg 3rd level forms (nested)
33
- $bg-form4: darken($bg-form1, 9%) !default; // bg 4th level forms (nested)
34
- $bg-form-sub-headings: lighten( $color-brand, 64% ) !default; // bg nested forms title
35
- $bg-header: $color-brand !default; // bg header bar
36
- $bg-inputs: #fff !default; // bg forms inputs
37
- $bg-menu-active: #7b929e !default; // bg menu item current / hover
38
- $bg-sidebar: #efefef; // bg sidebar
39
- $fg-box-title: #fff !default;
40
- $fg-button-link: #fff !default;
41
- $fg-menu-items: #f8f8f8 !default;
42
- $fg-table-borders: #e4e4e4 !default;
43
- $fg-table-link: #eee !default;
63
+ $bg-footer: #dfdfdf; // bg footer bar
64
+ $bg-form1: #f4f4f4; // bg 1st level forms
65
+ $bg-form2: darken($bg-form1, 3%); // bg 2nd level forms (nested)
66
+ $bg-form3: darken($bg-form1, 6%); // bg 3rd level forms (nested)
67
+ $bg-form4: darken($bg-form1, 9%); // bg 4th level forms (nested)
68
+ $bg-form-sub-headings: lighten($color-brand, 64%); // bg nested forms title
69
+ $bg-header: $color-brand; // bg header bar
70
+ $bg-inputs: #fff; // bg forms inputs
71
+ $bg-menu-active: #7b929e; // bg menu item current / hover
72
+ $bg-sidebar: #efefef; // bg sidebar
73
+ $fg-box-title: #fff;
74
+ $fg-button-link: #fff;
75
+ $fg-menu-items: #f8f8f8;
76
+ $fg-table-borders: #e4e4e4;
77
+ $fg-table-link: #eee;
44
78
  // other variables
45
- $form-padding: 10px !default;
46
- $inputs-spacing: 10px !default;
47
- $height-inputs: 26px !default;
48
- $height-topbar: 40px !default;
49
- $height-titlebar: 38px !default;
50
- $text-shadow: #000 !default;
79
+ $form-padding: 10px;
80
+ $inputs-spacing: 10px;
81
+ $height-inputs: 26px;
82
+ $height-topbar: 40px;
83
+ $height-titlebar: 38px;
84
+ $text-shadow: #000;
51
85
  ```
52
86
 
53
87
  - To move sidebar on the left add to your Active Admin styles (after blaze theme import):
@@ -85,6 +119,7 @@ body.active_admin .cke {
85
119
  ## Custom fields / components
86
120
 
87
121
  ### Toggle
122
+
88
123
  In *form* \ *inputs* block:
89
124
 
90
125
  ```ruby
@@ -106,6 +141,7 @@ f.input :boolean, as: :blaze_toggle, input_html: { simple_checkbox: true }
106
141
  ```
107
142
 
108
143
  ### Sidebar menu
144
+
109
145
  A sidebar menu (*priority* option permit to put the sidebar above the filters):
110
146
 
111
147
  ```ruby
@@ -124,9 +160,8 @@ sidebar :help, priority: 0 do
124
160
  end
125
161
  ```
126
162
 
127
- ![menu](extra/screenshot4.jpg)
128
-
129
163
  ### Accordion
164
+
130
165
  An accordion group in a form:
131
166
 
132
167
  ```ruby
@@ -147,6 +182,7 @@ end
147
182
  ```
148
183
 
149
184
  ### Readonly field
185
+
150
186
  Some readonly fields in a form:
151
187
 
152
188
  ```ruby
@@ -175,6 +211,7 @@ end
175
211
  ```
176
212
 
177
213
  ## Blaze widgets
214
+
178
215
  See components available in Blaze CSS [docs](http://blazecss.com/components/buttons/).
179
216
 
180
217
  Badge example:
@@ -198,25 +235,28 @@ end
198
235
  ```
199
236
 
200
237
  ## Notes
238
+
201
239
  - To use this plugins with Active Admin 1.x please use the version [0.5.12](https://github.com/blocknotes/activeadmin_blaze_theme/releases/tag/v0.5.12)
202
240
 
203
241
  ## Screenshots
242
+
204
243
  Index:
205
- ![index](extra/screenshot1.jpg)
244
+ ![index](extra/index.png)
206
245
 
207
246
  Edit:
208
- ![edit](extra/screenshot2.jpg)
209
-
210
- Show - sidebar on the left:
211
- ![edit](extra/screenshot3.jpg)
247
+ ![edit](extra/edit.png)
212
248
 
213
249
  ## Do you like it? Star it!
214
- If you use this component just star it. A developer is more motivated to improve a project when there is some interest.
215
250
 
216
- Take a look at [other Active Admin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source) if you are curious.
251
+ If you use this component just star it. A developer is more motivated to improve a project when there is some interest. My other [Active Admin components](https://github.com/blocknotes?utf8=✓&tab=repositories&q=activeadmin&type=source).
252
+
253
+ Or consider offering me a coffee, it's a small thing but it is greatly appreciated: [about me](https://www.blocknot.es/about-me).
217
254
 
218
255
  ## Contributors
256
+
219
257
  - [Mattia Roccoberton](http://blocknot.es): author
258
+ - The good guys that opened issues and pull requests from time to time
220
259
 
221
260
  ## License
261
+
222
262
  The gem is available as open-source under the terms of the [MIT](LICENSE.txt).
@@ -0,0 +1,197 @@
1
+ body.active_admin {
2
+ font-family: 'Roboto', sans-serif;
3
+ font-size: 12px;
4
+ min-height: 100vh;
5
+
6
+ .button-base {
7
+ @extend .c-button;
8
+
9
+ background-image: none;
10
+ box-shadow: initial;
11
+ color: #f4f4f4;
12
+ text-shadow: $text-shadow 0 1px 0;
13
+ }
14
+ .c-input-group .c-button:not(:first-child) {
15
+ border-left: 1px solid #ddd;
16
+ }
17
+
18
+ // misc
19
+ a.member_link {
20
+ color: #f4f4f4;
21
+ text-decoration: none;
22
+ }
23
+ .download_links {
24
+ padding-bottom: 10px;
25
+
26
+ >a {
27
+ @extend .c-button;
28
+ @extend .c-button--info;
29
+ @extend .u-small;
30
+ }
31
+ }
32
+ .ui-datepicker {
33
+ > .ui-datepicker-header {
34
+ border-bottom: 0 none;
35
+ border-radius: 0;
36
+ height: auto;
37
+ margin: 0;
38
+ padding: 8px 10px;
39
+ width: 100%;
40
+ }
41
+ .ui-datepicker-calendar th {
42
+ padding: 3px 0;
43
+ }
44
+ > .ui-datepicker-calendar {
45
+ left: 0;
46
+ width: 100%;
47
+ a {
48
+ text-decoration: none;
49
+ }
50
+ }
51
+ }
52
+
53
+ // comments
54
+ .comments {
55
+ .actions {
56
+ padding: 0;
57
+ }
58
+
59
+ .inputs >ol {
60
+ background-color: transparent;
61
+ }
62
+
63
+ .pagination_information {
64
+ float: none;
65
+ }
66
+ }
67
+
68
+ // boolean values
69
+ .status_tag {
70
+ min-width: 30px;
71
+ display: inline-block;
72
+ text-align: center;
73
+ &.no {
74
+ background-color: $color-error;
75
+ }
76
+ &.yes {
77
+ background-color: $color-success;
78
+ }
79
+ }
80
+
81
+ // dialogs
82
+ .ui-dialog {
83
+ button.ui-button {
84
+ @extend .button-base;
85
+ margin-right: 10px;
86
+ &:hover, &.ui-widget:hover {
87
+ background-color: #aaa;
88
+ background-image: none;
89
+ }
90
+ &.ui-dialog-titlebar-close {
91
+ // display: none; // hides close button
92
+ margin-right: 0;
93
+ }
94
+ }
95
+ .ui-dialog-content {
96
+ min-height: auto;
97
+ }
98
+ .ui-dialog-titlebar {
99
+ display: flex;
100
+ justify-content: space-between;
101
+ > * {
102
+ align-self: center
103
+ }
104
+ }
105
+ // .ui-dialog-buttonset {
106
+ // text-align: right;
107
+ // }
108
+ }
109
+
110
+ // special components
111
+ .filter_form .select-one-inputs {
112
+ display: flex;
113
+ >input[type="text"], >select {
114
+ width: 49%;
115
+ }
116
+ >input[type="text"] {
117
+ margin: 0 1% 0 0;
118
+ }
119
+ select {
120
+ margin: 0 0 0 1%;
121
+ }
122
+ }
123
+ .selectize.input > .selectize-control > .selectize-input {
124
+ padding-left: 4px;
125
+ padding-top: 3px;
126
+ }
127
+
128
+ // optional customizations
129
+ .compact_titlebar {
130
+ white-space: initial;
131
+ }
132
+ .sidebar_left {
133
+ #main_content_wrapper {
134
+ order: 2;
135
+ width: calc( 100% - 270px );
136
+ #main_content {
137
+ width: 100%;
138
+ }
139
+ }
140
+ #sidebar {
141
+ order: 1;
142
+ margin-left: 0;
143
+ }
144
+ }
145
+ table.scrollable_cells {
146
+ th, td {
147
+ max-width: 200px;
148
+ overflow: scroll;
149
+ }
150
+ }
151
+ .ckeditor_width_fix {
152
+ display: inline-block;
153
+ min-width: 450px;
154
+ width: auto;
155
+ // width: calc(80% - 22px);
156
+ }
157
+ .no_rounded {
158
+ *, .action_items span.action_item > a, .panel {
159
+ border-radius: 0;
160
+ }
161
+ }
162
+
163
+ // menu
164
+ .blaze-menu {
165
+ @extend .c-card;
166
+ @extend .c-card--menu;
167
+ @extend .u-high;
168
+ li {
169
+ @extend .c-card__item;
170
+ padding: 0;
171
+ a {
172
+ display: block;
173
+ padding: 0.5em;
174
+ text-decoration: none;
175
+ }
176
+ }
177
+ }
178
+ .sidebar_section .blaze-menu {
179
+ margin-bottom: 4px;
180
+ }
181
+
182
+ // textarea comments
183
+ #active_admin_comment_body {
184
+ width: 100%;
185
+ }
186
+
187
+ // misc
188
+ #active_admin_content.without_sidebar #main_content_wrapper #main_content {
189
+ width: 100%;
190
+ }
191
+ #wrapper {
192
+ display: block;
193
+ min-height: 100vh;
194
+ padding-bottom: 40px; // footer height
195
+ position: relative;
196
+ }
197
+ }
@@ -0,0 +1,43 @@
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
+ background: $bg-form1;
11
+ > h3 {
12
+ @extend .c-card__item;
13
+ @extend .c-card__item--brand;
14
+ background-image: none;
15
+ border: 0 none !important;
16
+ color: $fg-box-title;
17
+ margin: 0;
18
+ padding: 8px 11px;
19
+ text-shadow: $text-shadow 0 1px 0;
20
+ }
21
+ > .panel_contents .actions {
22
+ margin: 0;
23
+ }
24
+ table {
25
+ margin: 0;
26
+ }
27
+ }
28
+ .section {
29
+ background: transparent;
30
+ box-shadow: none;
31
+ margin-bottom: 0;
32
+ }
33
+ }
34
+
35
+ // admin content
36
+ #active_admin_content {
37
+ display: flex;
38
+ padding: 0;
39
+ }
40
+ &.logged_out #active_admin_content { // devise forms
41
+ display: block;
42
+ }
43
+ }