alchemy_cms 7.2.7 → 7.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +97 -14
  3. data/Gemfile +4 -3
  4. data/Rakefile +1 -0
  5. data/alchemy_cms.gemspec +7 -7
  6. data/app/assets/builds/alchemy/admin/print.css +1 -0
  7. data/app/assets/builds/alchemy/admin/print.css.map +1 -0
  8. data/app/assets/builds/alchemy/admin.css +1 -0
  9. data/app/assets/builds/alchemy/admin.css.map +1 -0
  10. data/app/assets/builds/alchemy/welcome.css +1 -0
  11. data/app/assets/builds/alchemy/welcome.css.map +1 -0
  12. data/app/assets/builds/tinymce/skins/content/alchemy/content.css +1 -0
  13. data/app/assets/builds/tinymce/skins/content/alchemy/content.css.map +1 -0
  14. data/app/assets/builds/tinymce/skins/content/alchemy/content.min.css +1 -0
  15. data/app/assets/builds/tinymce/skins/content/alchemy/content.min.css.map +1 -0
  16. data/app/assets/builds/tinymce/skins/ui/alchemy/skin.css +1 -0
  17. data/app/assets/builds/tinymce/skins/ui/alchemy/skin.css.map +1 -0
  18. data/app/assets/builds/tinymce/skins/ui/alchemy/skin.min.css +1 -0
  19. data/app/assets/builds/tinymce/skins/ui/alchemy/skin.min.css.map +1 -0
  20. data/app/assets/config/alchemy_manifest.js +1 -5
  21. data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +4 -0
  22. data/app/assets/stylesheets/alchemy/{_custom-properties.scss → _custom-properties.css} +28 -25
  23. data/app/assets/stylesheets/alchemy/_deprecated_variables.scss +41 -0
  24. data/app/assets/stylesheets/alchemy/_deprecation.scss +17 -0
  25. data/app/assets/stylesheets/alchemy/_extends.scss +1 -1
  26. data/app/assets/stylesheets/alchemy/_mixins.scss +20 -23
  27. data/app/assets/stylesheets/alchemy/_variables.scss +98 -94
  28. data/app/assets/stylesheets/alchemy/{archive.scss → admin/archive.scss} +23 -23
  29. data/app/assets/stylesheets/alchemy/{attachment-select.scss → admin/attachment-select.scss} +2 -2
  30. data/app/assets/stylesheets/alchemy/{attachments.scss → admin/attachments.scss} +4 -4
  31. data/app/assets/stylesheets/alchemy/{base.scss → admin/base.scss} +9 -9
  32. data/app/assets/stylesheets/alchemy/{buttons.scss → admin/buttons.scss} +3 -3
  33. data/app/assets/stylesheets/alchemy/{clipboard.scss → admin/clipboard.scss} +9 -6
  34. data/app/assets/stylesheets/alchemy/{dashboard.scss → admin/dashboard.scss} +8 -8
  35. data/app/assets/stylesheets/alchemy/{dialogs.scss → admin/dialogs.scss} +20 -20
  36. data/app/assets/stylesheets/alchemy/{elements.scss → admin/elements.scss} +128 -88
  37. data/app/assets/stylesheets/alchemy/{errors.scss → admin/errors.scss} +22 -6
  38. data/app/assets/stylesheets/alchemy/{flash.scss → admin/flash.scss} +3 -3
  39. data/app/assets/stylesheets/alchemy/{flatpickr.scss → admin/flatpickr.scss} +55 -35
  40. data/app/assets/stylesheets/alchemy/{form_fields.scss → admin/form_fields.scss} +8 -6
  41. data/app/assets/stylesheets/alchemy/{forms.scss → admin/forms.scss} +20 -16
  42. data/app/assets/stylesheets/alchemy/{frame.scss → admin/frame.scss} +9 -9
  43. data/app/assets/stylesheets/alchemy/{image_library.scss → admin/image_library.scss} +34 -33
  44. data/app/assets/stylesheets/alchemy/admin/labels.scss +3 -0
  45. data/app/assets/stylesheets/alchemy/{list_filter.scss → admin/list_filter.scss} +4 -4
  46. data/app/assets/stylesheets/alchemy/{lists.scss → admin/lists.scss} +9 -7
  47. data/app/assets/stylesheets/alchemy/{navigation.scss → admin/navigation.scss} +17 -17
  48. data/app/assets/stylesheets/alchemy/{node-select.scss → admin/node-select.scss} +5 -5
  49. data/app/assets/stylesheets/alchemy/{nodes.scss → admin/nodes.scss} +11 -11
  50. data/app/assets/stylesheets/alchemy/{notices.scss → admin/notices.scss} +11 -7
  51. data/app/assets/stylesheets/alchemy/{page-select.scss → admin/page-select.scss} +10 -10
  52. data/app/assets/stylesheets/alchemy/{pagination.scss → admin/pagination.scss} +10 -10
  53. data/app/assets/stylesheets/alchemy/{print.scss → admin/print.scss} +2 -6
  54. data/app/assets/stylesheets/alchemy/{resource_info.scss → admin/resource_info.scss} +6 -7
  55. data/app/assets/stylesheets/alchemy/{search.scss → admin/search.scss} +6 -6
  56. data/app/assets/stylesheets/alchemy/{selects.scss → admin/selects.scss} +46 -39
  57. data/app/assets/stylesheets/alchemy/{shoelace.scss → admin/shoelace.scss} +10 -10
  58. data/app/assets/stylesheets/alchemy/{sitemap.scss → admin/sitemap.scss} +18 -19
  59. data/app/assets/stylesheets/alchemy/{tables.scss → admin/tables.scss} +26 -22
  60. data/app/assets/stylesheets/alchemy/admin/tags.scss +158 -0
  61. data/app/assets/stylesheets/alchemy/{toolbar.scss → admin/toolbar.scss} +10 -10
  62. data/app/assets/stylesheets/alchemy/{typography.scss → admin/typography.scss} +3 -3
  63. data/app/assets/stylesheets/alchemy/{upload.scss → admin/upload.scss} +1 -1
  64. data/app/assets/stylesheets/alchemy/admin.scss +40 -45
  65. data/app/assets/stylesheets/alchemy/welcome.scss +57 -0
  66. data/app/assets/stylesheets/tinymce/skins/content/alchemy/{content.min.scss → content.scss} +5 -4
  67. data/app/assets/stylesheets/tinymce/skins/ui/alchemy/{skin.min.scss → skin.scss} +40 -40
  68. data/app/components/alchemy/admin/resource/action.rb +46 -0
  69. data/app/components/alchemy/admin/resource/cell.rb +34 -0
  70. data/app/components/alchemy/admin/resource/header.rb +46 -0
  71. data/app/components/alchemy/admin/resource/table.rb +153 -0
  72. data/app/components/alchemy/ingredients/datetime_view.rb +2 -2
  73. data/app/controllers/alchemy/admin/base_controller.rb +2 -1
  74. data/app/controllers/alchemy/admin/elements_controller.rb +7 -3
  75. data/app/controllers/alchemy/admin/legacy_page_urls_controller.rb +1 -1
  76. data/app/controllers/alchemy/admin/pages_controller.rb +1 -1
  77. data/app/controllers/alchemy/admin/pictures_controller.rb +2 -2
  78. data/app/controllers/alchemy/admin/resources_controller.rb +2 -2
  79. data/app/controllers/alchemy/base_controller.rb +2 -0
  80. data/app/controllers/concerns/alchemy/admin/uploader_responses.rb +2 -11
  81. data/app/decorators/alchemy/ingredient_editor.rb +17 -0
  82. data/app/helpers/alchemy/admin/pages_helper.rb +6 -10
  83. data/app/helpers/alchemy/base_helper.rb +2 -2
  84. data/app/helpers/alchemy/elements_block_helper.rb +13 -1
  85. data/app/helpers/alchemy/pages_helper.rb +2 -2
  86. data/app/javascript/alchemy_admin/components/element_editor.js +23 -31
  87. data/app/javascript/alchemy_admin/components/preview_window.js +2 -3
  88. data/app/javascript/alchemy_admin/picture_selector.js +38 -10
  89. data/app/models/alchemy/attachment.rb +0 -8
  90. data/app/models/alchemy/element/dom_id.rb +1 -0
  91. data/app/models/alchemy/element/element_ingredients.rb +0 -73
  92. data/app/models/alchemy/element/presenters.rb +4 -1
  93. data/app/models/alchemy/element.rb +6 -0
  94. data/app/models/alchemy/elements_repository.rb +2 -2
  95. data/app/models/alchemy/ingredient_validator.rb +10 -0
  96. data/app/models/alchemy/page/page_scopes.rb +1 -1
  97. data/app/models/alchemy/picture.rb +0 -10
  98. data/app/views/alchemy/admin/attachments/_files_list.html.erb +74 -16
  99. data/app/views/alchemy/admin/clipboard/index.html.erb +38 -33
  100. data/app/views/alchemy/admin/dashboard/_dashboard.html.erb +3 -0
  101. data/app/views/alchemy/admin/dashboard/_left_column.html.erb +4 -0
  102. data/app/views/alchemy/admin/dashboard/_right_column.html.erb +9 -0
  103. data/app/views/alchemy/admin/dashboard/_top.html.erb +12 -0
  104. data/app/views/alchemy/admin/dashboard/index.html.erb +1 -25
  105. data/app/views/alchemy/admin/elements/_element.html.erb +1 -2
  106. data/app/views/alchemy/admin/elements/_form.html.erb +1 -1
  107. data/app/views/alchemy/admin/ingredients/_picture_fields.html.erb +10 -3
  108. data/app/views/alchemy/admin/ingredients/update.turbo_stream.erb +7 -0
  109. data/app/views/alchemy/admin/languages/_table.html.erb +16 -42
  110. data/app/views/alchemy/admin/nodes/_form.html.erb +1 -1
  111. data/app/views/alchemy/admin/pages/_table.html.erb +92 -27
  112. data/app/views/alchemy/admin/pages/edit.html.erb +6 -8
  113. data/app/views/alchemy/admin/pages/index.html.erb +0 -4
  114. data/app/views/alchemy/admin/pictures/_form.html.erb +14 -12
  115. data/app/views/alchemy/admin/pictures/index.html.erb +1 -11
  116. data/app/views/alchemy/admin/pictures/update.turbo_stream.erb +6 -0
  117. data/app/views/alchemy/admin/resources/_resource_table.html.erb +3 -0
  118. data/app/views/alchemy/admin/resources/_table.html.erb +2 -0
  119. data/app/views/alchemy/admin/resources/index.html.erb +1 -1
  120. data/app/views/alchemy/admin/sites/index.html.erb +1 -1
  121. data/app/views/alchemy/admin/styleguide/index.html.erb +0 -4
  122. data/app/views/alchemy/admin/tags/index.html.erb +15 -14
  123. data/app/views/alchemy/base/403.html.erb +6 -0
  124. data/app/views/alchemy/base/500.html.erb +14 -12
  125. data/app/views/alchemy/ingredients/_datetime_editor.html.erb +13 -11
  126. data/app/views/alchemy/ingredients/_headline_editor.html.erb +29 -22
  127. data/app/views/alchemy/ingredients/_link_editor.html.erb +17 -11
  128. data/app/views/alchemy/ingredients/_page_editor.html.erb +1 -0
  129. data/app/views/alchemy/ingredients/_picture_editor.html.erb +3 -4
  130. data/app/views/alchemy/ingredients/_richtext_editor.html.erb +5 -1
  131. data/app/views/alchemy/ingredients/_select_editor.html.erb +2 -1
  132. data/app/views/alchemy/ingredients/_text_editor.html.erb +20 -14
  133. data/app/views/alchemy/ingredients/shared/_picture_css_class.html.erb +6 -0
  134. data/app/views/layouts/alchemy/admin.html.erb +4 -2
  135. data/bin/setup +2 -0
  136. data/bin/start +1 -1
  137. data/bun.lockb +0 -0
  138. data/config/alchemy/config.yml +9 -0
  139. data/config/locales/alchemy.en.yml +8 -29
  140. data/config/routes.rb +22 -22
  141. data/lib/alchemy/config.rb +3 -3
  142. data/lib/alchemy/install/tasks.rb +5 -2
  143. data/lib/alchemy/resources_helper.rb +3 -1
  144. data/lib/alchemy/test_support/capybara_helpers.rb +8 -5
  145. data/lib/alchemy/test_support/shared_uploader_examples.rb +0 -1
  146. data/lib/alchemy/upgrader/seven_point_three.rb +52 -0
  147. data/lib/alchemy/version.rb +1 -1
  148. data/lib/alchemy_cms.rb +1 -1
  149. data/lib/generators/alchemy/install/files/article.css +25 -0
  150. data/lib/generators/alchemy/install/files/custom.css +4 -0
  151. data/lib/generators/alchemy/install/install_generator.rb +6 -6
  152. data/lib/tasks/alchemy/upgrade.rake +29 -1
  153. data/vendor/assets/stylesheets/alchemy_admin/select2.css +1 -0
  154. data/vendor/assets/stylesheets/jquery.Jcrop.min.css +2 -0
  155. data/vendor/javascript/shoelace.min.js +62 -63
  156. data/vendor/javascript/tinymce.min.js +1 -1
  157. metadata +132 -105
  158. data/app/assets/images/alchemy/lupe.cur +0 -0
  159. data/app/assets/stylesheets/alchemy/labels.scss +0 -3
  160. data/app/assets/stylesheets/alchemy/tags.scss +0 -155
  161. data/app/assets/stylesheets/alchemy/welcome.sass +0 -49
  162. data/app/views/alchemy/admin/attachments/_attachment.html.erb +0 -81
  163. data/app/views/alchemy/admin/languages/_language.html.erb +0 -50
  164. data/app/views/alchemy/admin/pages/_table_row.html.erb +0 -111
  165. data/app/views/alchemy/admin/pages/list/_table.html.erb +0 -31
  166. data/app/views/alchemy/admin/pictures/update.js.erb +0 -6
  167. data/app/views/alchemy/admin/tags/_tag.html.erb +0 -32
  168. data/app/views/alchemy/base/update.js.erb +0 -5
  169. data/lib/generators/alchemy/install/files/all.css +0 -11
  170. data/lib/generators/alchemy/install/files/article.scss +0 -30
  171. data/package.json +0 -52
  172. data/vendor/assets/stylesheets/alchemy_admin/select2.scss +0 -741
  173. data/vendor/assets/stylesheets/jquery.Jcrop.min.scss +0 -2
  174. /data/app/assets/stylesheets/alchemy/{fonts.scss → _fonts.scss} +0 -0
  175. /data/app/assets/stylesheets/alchemy/{hints.scss → admin/hints.scss} +0 -0
  176. /data/app/assets/stylesheets/alchemy/{icons.scss → admin/icons.scss} +0 -0
  177. /data/app/assets/stylesheets/alchemy/{images.scss → admin/images.scss} +0 -0
  178. /data/app/assets/stylesheets/alchemy/{preview_window.scss → admin/preview_window.scss} +0 -0
  179. /data/app/assets/stylesheets/alchemy/{spinner.scss → admin/spinner.scss} +0 -0
  180. /data/app/views/alchemy/admin/dashboard/{_locked_pages.html.erb → widgets/_locked_pages.html.erb} +0 -0
  181. /data/app/views/alchemy/admin/dashboard/{_recent_pages.html.erb → widgets/_recent_pages.html.erb} +0 -0
  182. /data/app/views/alchemy/admin/dashboard/{_sites.html.erb → widgets/_sites.html.erb} +0 -0
  183. /data/app/views/alchemy/admin/dashboard/{_users.html.erb → widgets/_users.html.erb} +0 -0
@@ -34,7 +34,7 @@
34
34
 
35
35
  #main_navi {
36
36
  max-height: 100vh;
37
- padding-top: 28px;
37
+ padding-top: var(--spacing-7);
38
38
  padding-bottom: 80px;
39
39
 
40
40
  @media screen and (max-width: $medium-screen-break-point) {
@@ -48,7 +48,7 @@
48
48
  position: relative;
49
49
  display: block;
50
50
  line-height: 46px;
51
- margin-bottom: 3 * $default-padding;
51
+ margin-bottom: var(--spacing-3);
52
52
  background-color: transparent;
53
53
  transition: background-color $transition-duration $transition-easing;
54
54
 
@@ -87,8 +87,8 @@
87
87
  top: 0;
88
88
  left: $collapsed-main-menu-width - 1;
89
89
  width: auto;
90
- padding-left: 4 * $default-padding;
91
- padding-right: 4 * $default-padding;
90
+ padding-left: var(--spacing-4);
91
+ padding-right: var(--spacing-4);
92
92
  visibility: hidden;
93
93
  opacity: 0;
94
94
  background-color: $main-menu-active-bg-color;
@@ -103,7 +103,7 @@
103
103
  visibility: visible;
104
104
  max-width: $main-menu-entry-max-width;
105
105
  opacity: 1;
106
- padding-left: 2 * $default-padding;
106
+ padding-left: var(--spacing-2);
107
107
  background-color: transparent;
108
108
  }
109
109
  }
@@ -180,8 +180,8 @@
180
180
  }
181
181
 
182
182
  a {
183
- padding-left: 4 * $default-padding;
184
- padding-right: 4 * $default-padding;
183
+ padding-left: var(--spacing-4);
184
+ padding-right: var(--spacing-4);
185
185
  background-color: transparent;
186
186
  transition: background-color $transition-duration $transition-easing;
187
187
  @include truncate($main-menu-width, $display: block, $wrap: nowrap);
@@ -189,7 +189,7 @@
189
189
 
190
190
  &.active a,
191
191
  a:hover {
192
- background-color: darken($dark-orange, 5%);
192
+ background-color: hsl(28deg, 77%, 63%);
193
193
  }
194
194
  }
195
195
 
@@ -211,7 +211,7 @@
211
211
  line-height: 24px;
212
212
 
213
213
  a {
214
- padding: 8px 4px 8px 42px;
214
+ padding: var(--spacing-2) var(--spacing-1) var(--spacing-2) 42px;
215
215
  }
216
216
  }
217
217
  }
@@ -229,8 +229,8 @@
229
229
  font-size: $small-font-size;
230
230
  line-height: 27px;
231
231
  height: 27px;
232
- margin-left: 8px;
233
- margin-right: 4px;
232
+ margin-left: var(--spacing-2);
233
+ margin-right: var(--spacing-1);
234
234
  }
235
235
 
236
236
  img {
@@ -253,12 +253,12 @@
253
253
  form {
254
254
  align-self: center;
255
255
  justify-self: flex-end;
256
- margin-right: $default-padding;
256
+ margin-right: var(--spacing-1);
257
257
  line-height: 1;
258
258
  }
259
259
 
260
260
  &:hover {
261
- color: $text-color;
261
+ color: var(--color-text);
262
262
  text-decoration: none;
263
263
  }
264
264
 
@@ -266,7 +266,7 @@
266
266
  display: flex;
267
267
  align-items: end;
268
268
  cursor: pointer;
269
- padding: $default-padding 2 * $default-padding;
269
+ padding: var(--spacing-1) var(--spacing-2);
270
270
 
271
271
  &:focus {
272
272
  @include default-focus-style($box-shadow: inset 0 0 0 2px $focus-color);
@@ -279,16 +279,16 @@
279
279
  }
280
280
 
281
281
  .page_name {
282
- margin-right: $default-margin;
282
+ margin-right: var(--spacing-1);
283
283
  text-shadow: $text-shadow-light;
284
284
  }
285
285
 
286
286
  .page_language,
287
287
  .page_site {
288
288
  display: inline-block;
289
- color: $muted-text-color;
289
+ color: var(--color-text_muted);
290
290
  font-size: $small-font-size;
291
- margin-right: $default-margin;
291
+ margin-right: var(--spacing-1);
292
292
  }
293
293
 
294
294
  .page_language {
@@ -11,12 +11,12 @@
11
11
  height: 21px;
12
12
 
13
13
  > alchemy-icon {
14
- margin: 0 8px 0 4px;
14
+ margin: 0 var(--spacing-2) 0 var(--spacing-1);
15
15
  }
16
16
 
17
17
  .icon {
18
18
  .select2-highlighted & {
19
- fill: $white;
19
+ fill: var(--color-white);
20
20
  }
21
21
  }
22
22
  }
@@ -33,12 +33,12 @@
33
33
 
34
34
  .node-select--node-url {
35
35
  margin-left: auto;
36
- padding: $default-padding 2 * $default-padding;
37
- color: $dark-gray;
36
+ padding: var(--spacing-1) var(--spacing-2);
37
+ color: var(--color-grey_dark);
38
38
  font-size: $small-font-size;
39
39
 
40
40
  .select2-highlighted & {
41
- color: $white;
41
+ color: var(--color-white);
42
42
  }
43
43
  }
44
44
 
@@ -37,16 +37,16 @@
37
37
 
38
38
  .node_page {
39
39
  display: inline-flex;
40
- gap: $default-padding;
40
+ gap: var(--spacing-1);
41
41
  align-items: center;
42
- padding: 0 8px;
42
+ padding: 0 var(--spacing-2);
43
43
  margin-left: auto;
44
44
  }
45
45
 
46
46
  .node_url {
47
47
  display: flex;
48
48
  align-items: center;
49
- padding: 0 2 * $default-padding;
49
+ padding: 0 var(--spacing-2);
50
50
  white-space: nowrap;
51
51
  background-color: $sitemap-info-background-color;
52
52
  line-height: $sitemap-line-height;
@@ -70,7 +70,7 @@
70
70
 
71
71
  li {
72
72
  line-height: $sitemap-line-height;
73
- padding-left: $default-padding;
73
+ padding-left: var(--spacing-1);
74
74
 
75
75
  li {
76
76
  padding-left: $sitemap-line-height;
@@ -80,14 +80,14 @@
80
80
 
81
81
  #node_filter_result {
82
82
  display: none;
83
- margin-left: 2 * $default-margin;
83
+ margin-left: var(--spacing-2);
84
84
  }
85
85
 
86
86
  .sitemap_node {
87
87
  display: flex;
88
88
  align-items: center;
89
89
  height: $sitemap-line-height;
90
- margin: 3 * $default-margin 0;
90
+ margin: var(--spacing-3) 0;
91
91
  transition: background-color $transition-duration;
92
92
 
93
93
  &.highlight {
@@ -95,7 +95,7 @@
95
95
  }
96
96
 
97
97
  &.no-match .sitemap_pagename_link {
98
- color: $medium-gray;
98
+ color: var(--color-grey_light);
99
99
  }
100
100
 
101
101
  &:hover {
@@ -110,7 +110,7 @@
110
110
  justify-content: space-between;
111
111
  @include border-left-radius($default-border-radius);
112
112
  padding: 0 0 0 10px;
113
- margin: 2px;
113
+ margin: var(--spacing-0);
114
114
  text-decoration: none;
115
115
  overflow: hidden;
116
116
  background-color: $sitemap-page-background-color;
@@ -133,13 +133,13 @@
133
133
  position: relative;
134
134
  width: 32px;
135
135
  height: $sitemap-line-height;
136
- padding: 0 2 * $default-padding;
136
+ padding: 0 var(--spacing-2);
137
137
  }
138
138
 
139
139
  .nodes_tree-right_tools {
140
140
  display: flex;
141
141
  height: $sitemap-line-height;
142
- padding: 0 2 * $default-padding;
142
+ padding: 0 var(--spacing-2);
143
143
  align-items: center;
144
144
 
145
145
  > a {
@@ -157,7 +157,7 @@
157
157
  }
158
158
 
159
159
  .icon.blank {
160
- margin-left: 2px;
160
+ margin-left: var(--spacing-0);
161
161
  float: left;
162
162
  margin-top: 3px;
163
163
  margin-right: 3px;
@@ -4,16 +4,20 @@ alchemy-message {
4
4
  border-style: $default-border-style;
5
5
  border-radius: $default-border-radius;
6
6
  position: relative;
7
- padding: 8px 16px 8px 32px;
8
- margin-bottom: 8px;
7
+ padding: var(--spacing-2) var(--spacing-4) var(--spacing-2) var(--spacing-8);
8
+ margin-bottom: var(--spacing-2);
9
9
  text-align: left;
10
10
  min-height: 2.6em;
11
11
  word-break: break-word;
12
12
  line-height: 1.5;
13
13
 
14
+ turbo-frame & {
15
+ margin: var(--spacing-2);
16
+ }
17
+
14
18
  &[type="footnote"] {
15
19
  font-size: $small-font-size;
16
- margin: 16px;
20
+ margin: var(--spacing-4);
17
21
  }
18
22
 
19
23
  &[type="notice"] {
@@ -50,7 +54,7 @@ alchemy-message {
50
54
 
51
55
  alchemy-icon {
52
56
  position: absolute;
53
- left: 2 * $default-margin;
57
+ left: var(--spacing-2);
54
58
  top: 9px;
55
59
  color: inherit;
56
60
 
@@ -80,12 +84,12 @@ alchemy-message {
80
84
  }
81
85
 
82
86
  ol {
83
- margin: 0 0 8px;
84
- padding-left: 20px;
87
+ margin: 0 0 var(--spacing-2);
88
+ padding-left: var(--spacing-5);
85
89
 
86
90
  li {
87
91
  text-indent: 0;
88
- margin-bottom: 4px;
92
+ margin-bottom: var(--spacing-1);
89
93
  }
90
94
  }
91
95
  }
@@ -11,7 +11,7 @@
11
11
  flex-direction: column;
12
12
 
13
13
  alchemy-icon {
14
- margin-right: $default-margin;
14
+ margin-right: var(--spacing-1);
15
15
 
16
16
  .icon {
17
17
  fill: currentColor;
@@ -28,24 +28,24 @@
28
28
 
29
29
  .page-select--bottom {
30
30
  font-size: $small-font-size;
31
- padding-left: $default-padding / 2;
31
+ padding-left: var(--spacing-0);
32
32
  }
33
33
 
34
34
  .page-select--page-urlname {
35
- color: $muted-text-color;
36
- padding-right: $default-padding;
35
+ color: var(--color-text_muted);
36
+ padding-right: var(--spacing-1);
37
37
 
38
38
  .select2-highlighted & {
39
- color: $medium-gray;
39
+ color: var(--color-grey_light);
40
40
  }
41
41
  }
42
42
 
43
43
  .page-select--language-code {
44
44
  display: inline-block;
45
- background-color: $medium-gray;
45
+ background-color: var(--color-grey_light);
46
46
  margin-left: auto;
47
47
  border-radius: $default-border-radius;
48
- padding: $default-padding / 2 $default-padding;
48
+ padding: var(--spacing-0) var(--spacing-1);
49
49
  text-transform: uppercase;
50
50
 
51
51
  .select2-highlighted & {
@@ -56,11 +56,11 @@
56
56
 
57
57
  .page-select--site-name {
58
58
  margin-left: auto;
59
- padding: $default-padding 0 $default-padding 2 * $default-padding;
60
- color: $dark-gray;
59
+ padding: var(--spacing-1) 0 var(--spacing-1) var(--spacing-2);
60
+ color: var(--color-grey_dark);
61
61
  font-size: $small-font-size;
62
62
 
63
63
  .select2-highlighted & {
64
- color: $white;
64
+ color: var(--color-white);
65
65
  }
66
66
  }
@@ -8,7 +8,7 @@
8
8
  width: 100%;
9
9
  left: 0px;
10
10
  height: $pagination-height;
11
- padding: 2 * $default-padding;
11
+ padding: var(--spacing-2);
12
12
  padding-left: $main-menu-width + 10px;
13
13
  text-align: left;
14
14
  border-top: $default-border;
@@ -19,14 +19,14 @@
19
19
  em {
20
20
  font-size: $default-font-size;
21
21
  font-weight: bold;
22
- color: $icon-color;
23
- padding: $default-padding;
24
- margin: 0 $default-margin/2;
22
+ color: var(--color-icon);
23
+ padding: var(--spacing-1);
24
+ margin: 0 var(--spacing-0);
25
25
  border-radius: $default-border-radius;
26
26
  }
27
27
 
28
28
  a:hover {
29
- color: $text-color;
29
+ color: var(--color-text);
30
30
  background-color: $default-border-color;
31
31
  text-decoration: none;
32
32
  }
@@ -36,21 +36,21 @@
36
36
  }
37
37
 
38
38
  .page {
39
- padding: $default-padding 2 * $default-padding;
39
+ padding: var(--spacing-1) var(--spacing-2);
40
40
  }
41
41
 
42
42
  .current {
43
- color: $text-color;
43
+ color: var(--color-text);
44
44
  background-color: $default-border-color;
45
45
  cursor: default;
46
46
  }
47
47
 
48
48
  .previous_page {
49
- margin-right: 2 * $default-padding;
49
+ margin-right: var(--spacing-2);
50
50
  }
51
51
 
52
52
  .next_page {
53
- margin-left: 2 * $default-padding;
53
+ margin-left: var(--spacing-2);
54
54
  }
55
55
 
56
56
  .disabled,
@@ -88,5 +88,5 @@
88
88
  #assign_image_list .pagination,
89
89
  #assign_file_list .pagination {
90
90
  position: absolute;
91
- padding-left: 8px;
91
+ padding-left: var(--spacing-2);
92
92
  }
@@ -1,7 +1,3 @@
1
- /*
2
- *= require_self
3
- */
4
-
5
1
  @import "alchemy/defaults";
6
2
 
7
3
  div#main_menu,
@@ -18,7 +14,7 @@ div#archive_all {
18
14
  }
19
15
 
20
16
  span.icon.true:before {
21
- content: 'x';
17
+ content: "x";
22
18
  }
23
19
 
24
20
  div.pagination {
@@ -31,5 +27,5 @@ div.pagination em.current {
31
27
  }
32
28
 
33
29
  div.pagination em:before {
34
- content: 'Page ';
30
+ content: "Page ";
35
31
  }
@@ -1,7 +1,7 @@
1
1
  .resource_info {
2
2
  .value {
3
- @include clearfix;
4
3
  position: relative;
4
+ @include clearfix;
5
5
 
6
6
  > label {
7
7
  @include form-label;
@@ -25,18 +25,17 @@
25
25
  align-items: center;
26
26
  justify-content: center;
27
27
  position: absolute;
28
- right: 2 * $default-padding;
29
- top: 2 * $default-padding;
28
+ right: 0;
29
+ top: var(--spacing-1);
30
30
  height: $form-field-height;
31
- background-color: $medium-gray;
32
- margin: -$default-margin -2 * $default-margin;
33
- padding: 0 2 * $default-padding;
31
+ background-color: var(--color-grey_light);
32
+ padding: 0 var(--spacing-2);
34
33
  transition: background-color 0.3s;
35
34
  @extend .right-rounded-border;
36
35
 
37
36
  &:hover {
38
37
  cursor: pointer;
39
- background-color: darken($medium-gray, 10%);
38
+ background-color: hsl(0deg, 0%, 84%);
40
39
  text-decoration: none;
41
40
  }
42
41
  }
@@ -1,13 +1,13 @@
1
1
  .search_field {
2
2
  position: relative;
3
- margin-bottom: $default-margin;
3
+ margin-bottom: var(--spacing-1);
4
4
  height: 29px;
5
5
  }
6
6
 
7
7
  .search_field {
8
8
  .fa-search {
9
9
  position: absolute;
10
- left: 8px;
10
+ left: var(--spacing-2);
11
11
  top: 9px;
12
12
  }
13
13
 
@@ -32,7 +32,7 @@
32
32
  visibility: hidden;
33
33
  position: absolute;
34
34
  top: 7px;
35
- right: 8px;
35
+ right: var(--spacing-2);
36
36
  width: 16px;
37
37
  height: 16px;
38
38
  align-items: center;
@@ -56,12 +56,12 @@
56
56
  width: 0;
57
57
  height: 100%;
58
58
  border: none;
59
- background-color: transparentize($form-field-background-color, 0.25);
59
+ background-color: hsla(0deg, 0%, 100%, 0.75);
60
60
  transition:
61
61
  width $transition-duration ease-in-out,
62
62
  background-color $transition-duration linear;
63
63
  border-radius: 0;
64
- padding: 8px 16px 8px 32px;
64
+ padding: var(--spacing-2) var(--spacing-4) var(--spacing-2) var(--spacing-8);
65
65
  margin: 0;
66
66
  text-align: left;
67
67
  box-shadow: none;
@@ -87,6 +87,6 @@
87
87
  }
88
88
 
89
89
  .search_field_clear {
90
- top: 16px;
90
+ top: var(--spacing-4);
91
91
  }
92
92
  }