activeadmin_blaze_theme 0.5.16 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (119) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +1 -1
  3. data/README.md +28 -24
  4. data/app/assets/stylesheets/activeadmin_blaze_theme/_base.scss +197 -0
  5. data/app/assets/stylesheets/activeadmin_blaze_theme/_contents.scss +42 -0
  6. data/app/assets/stylesheets/activeadmin_blaze_theme/_footer.scss +15 -0
  7. data/app/assets/stylesheets/activeadmin_blaze_theme/_form.scss +381 -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/_components.addresses.scss +11 -0
  14. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.alerts.scss +78 -0
  15. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.avatars.scss +38 -0
  16. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.back-to-top.scss +17 -0
  17. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.badges.scss +71 -0
  18. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.breadcrumbs.scss +24 -0
  19. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.buttons.scss +91 -0
  20. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.calendars.scss +80 -0
  21. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.cards.scss +195 -0
  22. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.divider.scss +39 -0
  23. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.file-upload.scss +24 -0
  24. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.github-buttons.scss +131 -0
  25. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.headings.scss +12 -0
  26. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.hints.scss +21 -0
  27. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.input-groups.scss +164 -0
  28. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.inputs.scss +128 -0
  29. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.links.scss +72 -0
  30. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.lists.scss +64 -0
  31. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.navs.scss +83 -0
  32. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.overlays.scss +23 -0
  33. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.pagination.scss +31 -0
  34. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.progress.scss +83 -0
  35. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.ranges.scss +176 -0
  36. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tables.scss +86 -0
  37. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tabs.scss +68 -0
  38. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.tags.scss +39 -0
  39. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.timelines.scss +113 -0
  40. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.toggles.scss +89 -0
  41. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{components.tooltips.scss → _components.tooltips.scss} +28 -30
  42. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_components.trees.scss +48 -0
  43. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_generics.global.scss +17 -0
  44. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.containers.scss +37 -0
  45. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.drawers.scss +91 -0
  46. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.forms.scss +25 -0
  47. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{objects.grid.responsive.scss → _objects.grid.responsive.scss} +14 -14
  48. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{objects.grid.scss → _objects.grid.scss} +2 -2
  49. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{objects.images.scss → _objects.images.scss} +1 -1
  50. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{objects.media.scss → _objects.media.scss} +3 -3
  51. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_objects.modals.scss +70 -0
  52. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{objects.panels.scss → _objects.panels.scss} +1 -11
  53. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/{utilities.alignment.scss → _utilities.alignment.scss} +13 -1
  54. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.boxing.scss +111 -0
  55. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.elevation.scss +17 -0
  56. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.radius.scss +11 -0
  57. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.sizes.scss +23 -0
  58. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.typography.scss +160 -0
  59. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_utilities.visibility.scss +54 -0
  60. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/_variables.scss +93 -0
  61. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.scss +49 -41
  62. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.buttons.scss +82 -43
  63. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.inputs.scss +2 -40
  64. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.grid.scss +35 -6
  65. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_tools.mediaqueries.scss +13 -34
  66. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.alignment.scss +12 -0
  67. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.states.scss +7 -0
  68. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.visibility.scss +7 -0
  69. data/app/assets/stylesheets/activeadmin_blaze_theme/theme.scss +10 -988
  70. data/lib/activeadmin_blaze_theme/version.rb +1 -1
  71. metadata +61 -57
  72. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/blaze.colors.scss +0 -30
  73. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.addresses.scss +0 -12
  74. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.alerts.scss +0 -59
  75. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.avatars.scss +0 -36
  76. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.badges.scss +0 -60
  77. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.breadcrumbs.scss +0 -20
  78. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.bubbles.scss +0 -49
  79. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.buttons.scss +0 -77
  80. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.calendars.scss +0 -69
  81. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.cards.scss +0 -213
  82. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.headings.scss +0 -14
  83. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.hints.scss +0 -27
  84. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.input-groups.scss +0 -163
  85. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.inputs.scss +0 -144
  86. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.links.scss +0 -31
  87. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.lists.scss +0 -60
  88. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.navs.scss +0 -126
  89. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.overlays.scss +0 -26
  90. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.pagination.scss +0 -42
  91. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.progress.scss +0 -51
  92. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.ranges.scss +0 -114
  93. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tables.scss +0 -88
  94. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tabs.scss +0 -72
  95. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.tags.scss +0 -42
  96. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.toggles.scss +0 -74
  97. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.trees.scss +0 -47
  98. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/components.typography.scss +0 -94
  99. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/generics.global.scss +0 -13
  100. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.alerts.scss +0 -6
  101. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.badges.scss +0 -8
  102. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.links.scss +0 -22
  103. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.lists.scss +0 -10
  104. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.navs.scss +0 -29
  105. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.ranges.scss +0 -89
  106. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.tabs.scss +0 -5
  107. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.toggles.scss +0 -6
  108. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_components.typography.scss +0 -25
  109. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_objects.containers.scss +0 -10
  110. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_settings.global.scss +0 -864
  111. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/mixins/_utilities.boxing.scss +0 -125
  112. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.containers.scss +0 -31
  113. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.drawers.scss +0 -88
  114. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.forms.scss +0 -25
  115. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/objects.modals.scss +0 -58
  116. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/themes/blaze.example.scss +0 -7
  117. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.boxing.scss +0 -101
  118. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.elevation.scss +0 -19
  119. data/app/assets/stylesheets/activeadmin_blaze_theme/blaze/utilities.sizes.scss +0 -25
@@ -0,0 +1,7 @@
1
+ @mixin visually-hidden {
2
+ position: absolute;
3
+ width: 1px;
4
+ height: 1px;
5
+ overflow: hidden;
6
+ clip-path: inset(50%);
7
+ }
@@ -1,992 +1,14 @@
1
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
- // pagination
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
- // optional customizations
959
- .compact_titlebar {
960
- white-space: initial;
961
- }
962
- .sidebar_left {
963
- #main_content_wrapper {
964
- order: 2;
965
- width: calc( 100% - 270px );
966
- #main_content {
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';