alchemy_cms 7.1.10 → 7.2.0.b

Sign up to get free protection for your applications and to get access to all the features.
Files changed (308) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +132 -16
  3. data/Gemfile +2 -4
  4. data/LICENSE +1 -1
  5. data/README.md +5 -6
  6. data/SECURITY.md +1 -1
  7. data/alchemy_cms.gemspec +3 -4
  8. data/app/assets/javascripts/alchemy/admin.js +0 -9
  9. data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +5 -15
  10. data/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee +5 -4
  11. data/app/assets/javascripts/alchemy/templates/index.js +0 -1
  12. data/app/assets/javascripts/alchemy/templates/node_folder.hbs +1 -1
  13. data/app/assets/javascripts/alchemy/templates/page_folder.hbs +1 -1
  14. data/app/assets/javascripts/tinymce/plugins/alchemy_link/plugin.min.js +20 -7
  15. data/app/assets/stylesheets/alchemy/_custom-properties.scss +12 -0
  16. data/app/assets/stylesheets/alchemy/_mixins.scss +10 -6
  17. data/app/assets/stylesheets/alchemy/_variables.scss +3 -0
  18. data/app/assets/stylesheets/alchemy/admin.scss +2 -2
  19. data/app/assets/stylesheets/alchemy/archive.scss +4 -3
  20. data/app/assets/stylesheets/alchemy/attachment-select.scss +19 -0
  21. data/app/assets/stylesheets/alchemy/base.scss +31 -18
  22. data/app/assets/stylesheets/alchemy/buttons.scss +3 -4
  23. data/app/assets/stylesheets/alchemy/dashboard.scss +1 -1
  24. data/app/assets/stylesheets/alchemy/dialogs.scss +2 -5
  25. data/app/assets/stylesheets/alchemy/elements.scss +73 -41
  26. data/app/assets/stylesheets/alchemy/flash.scss +20 -70
  27. data/app/assets/stylesheets/alchemy/forms.scss +41 -36
  28. data/app/assets/stylesheets/alchemy/frame.scss +12 -3
  29. data/app/assets/stylesheets/alchemy/icons.scss +34 -2
  30. data/app/assets/stylesheets/alchemy/image_library.scss +18 -9
  31. data/app/assets/stylesheets/alchemy/{filter_field.scss → list_filter.scss} +8 -7
  32. data/app/assets/stylesheets/alchemy/lists.scss +1 -1
  33. data/app/assets/stylesheets/alchemy/navigation.scss +9 -12
  34. data/app/assets/stylesheets/alchemy/node-select.scss +1 -1
  35. data/app/assets/stylesheets/alchemy/nodes.scss +15 -13
  36. data/app/assets/stylesheets/alchemy/notices.scss +56 -39
  37. data/app/assets/stylesheets/alchemy/page-select.scss +1 -4
  38. data/app/assets/stylesheets/alchemy/pagination.scss +11 -1
  39. data/app/assets/stylesheets/alchemy/preview_window.scss +3 -3
  40. data/app/assets/stylesheets/alchemy/search.scss +4 -4
  41. data/app/assets/stylesheets/alchemy/selects.scss +13 -7
  42. data/app/assets/stylesheets/alchemy/shoelace.scss +33 -2
  43. data/app/assets/stylesheets/alchemy/sitemap.scss +155 -159
  44. data/app/assets/stylesheets/alchemy/tables.scss +49 -12
  45. data/app/assets/stylesheets/alchemy/tags.scss +17 -11
  46. data/app/assets/stylesheets/alchemy/toolbar.scss +2 -2
  47. data/app/assets/stylesheets/alchemy/typography.scss +41 -22
  48. data/app/assets/stylesheets/alchemy/upload.scss +5 -4
  49. data/app/components/alchemy/admin/attachment_select.rb +39 -0
  50. data/app/components/alchemy/admin/icon.rb +72 -0
  51. data/app/components/alchemy/admin/link_dialog/anchor_tab.rb +41 -0
  52. data/app/components/alchemy/admin/link_dialog/base_tab.rb +75 -0
  53. data/app/components/alchemy/admin/link_dialog/external_tab.rb +42 -0
  54. data/app/components/alchemy/admin/link_dialog/file_tab.rb +45 -0
  55. data/app/components/alchemy/admin/link_dialog/internal_tab.rb +66 -0
  56. data/app/components/alchemy/admin/link_dialog/tabs.rb +33 -0
  57. data/app/components/alchemy/admin/list_filter.rb +42 -0
  58. data/app/components/alchemy/admin/message.rb +19 -0
  59. data/app/components/alchemy/admin/tags_autocomplete.rb +25 -0
  60. data/app/components/alchemy/admin/toolbar_button.rb +111 -0
  61. data/app/components/alchemy/ingredients/link_view.rb +1 -7
  62. data/app/components/alchemy/ingredients/picture_view.rb +2 -2
  63. data/app/components/alchemy/ingredients/text_view.rb +1 -2
  64. data/app/controllers/alchemy/admin/base_controller.rb +1 -1
  65. data/app/controllers/alchemy/admin/elements_controller.rb +4 -2
  66. data/app/controllers/alchemy/admin/ingredients_controller.rb +2 -0
  67. data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
  68. data/app/controllers/alchemy/admin/legacy_page_urls_controller.rb +12 -4
  69. data/app/controllers/alchemy/admin/nodes_controller.rb +26 -0
  70. data/app/controllers/alchemy/admin/pages_controller.rb +11 -78
  71. data/app/controllers/alchemy/admin/picture_descriptions_controller.rb +15 -0
  72. data/app/controllers/alchemy/admin/pictures_controller.rb +18 -1
  73. data/app/controllers/alchemy/admin/resources_controller.rb +15 -10
  74. data/app/controllers/alchemy/api/attachments_controller.rb +44 -0
  75. data/app/controllers/alchemy/api/pages_controller.rb +10 -6
  76. data/app/controllers/alchemy/base_controller.rb +2 -2
  77. data/app/controllers/alchemy/messages_controller.rb +3 -3
  78. data/app/controllers/alchemy/pages_controller.rb +8 -6
  79. data/app/controllers/concerns/alchemy/admin/current_language.rb +1 -1
  80. data/app/controllers/concerns/alchemy/legacy_page_redirects.rb +1 -1
  81. data/app/decorators/alchemy/element_editor.rb +2 -2
  82. data/app/helpers/alchemy/admin/base_helper.rb +8 -60
  83. data/app/helpers/alchemy/admin/elements_helper.rb +1 -1
  84. data/app/helpers/alchemy/admin/ingredients_helper.rb +1 -1
  85. data/app/helpers/alchemy/base_helper.rb +9 -91
  86. data/app/helpers/alchemy/elements_helper.rb +3 -3
  87. data/app/helpers/alchemy/pages_helper.rb +16 -9
  88. data/app/javascript/alchemy_admin/components/attachment_select.js +24 -0
  89. data/app/javascript/alchemy_admin/components/button.js +3 -0
  90. data/app/javascript/alchemy_admin/components/clipboard_button.js +3 -2
  91. data/app/javascript/alchemy_admin/components/dialog_link.js +10 -7
  92. data/app/javascript/alchemy_admin/components/dom_id_select.js +69 -0
  93. data/app/javascript/alchemy_admin/components/element_editor/delete_element_button.js +42 -0
  94. data/app/javascript/alchemy_admin/components/element_editor/publish_element_button.js +4 -2
  95. data/app/javascript/alchemy_admin/components/element_editor.js +21 -13
  96. data/app/javascript/alchemy_admin/components/elements_window.js +87 -0
  97. data/app/javascript/alchemy_admin/components/growl.js +13 -0
  98. data/app/javascript/alchemy_admin/components/icon.js +51 -0
  99. data/app/javascript/alchemy_admin/components/index.js +24 -0
  100. data/app/javascript/alchemy_admin/components/ingredient_group.js +6 -0
  101. data/app/javascript/alchemy_admin/components/link_buttons/link_button.js +21 -11
  102. data/app/javascript/alchemy_admin/components/link_buttons/unlink_button.js +2 -1
  103. data/app/javascript/alchemy_admin/components/link_buttons.js +1 -0
  104. data/app/javascript/alchemy_admin/components/list_filter.js +68 -0
  105. data/app/javascript/alchemy_admin/components/message.js +69 -0
  106. data/app/javascript/alchemy_admin/components/node_select.js +1 -1
  107. data/app/javascript/alchemy_admin/components/overlay.js +6 -6
  108. data/app/javascript/alchemy_admin/components/page_select.js +3 -7
  109. data/app/javascript/alchemy_admin/components/preview_window.js +121 -0
  110. data/app/javascript/alchemy_admin/components/remote_select.js +4 -1
  111. data/app/javascript/alchemy_admin/components/select.js +37 -1
  112. data/app/javascript/alchemy_admin/components/tags_autocomplete.js +57 -0
  113. data/app/javascript/alchemy_admin/components/uploader/file_upload.js +4 -3
  114. data/app/javascript/alchemy_admin/components/uploader/progress.js +1 -1
  115. data/app/javascript/alchemy_admin/confirm_dialog.js +133 -0
  116. data/app/javascript/alchemy_admin/dirty.js +19 -14
  117. data/app/javascript/alchemy_admin/fixed_elements.js +24 -0
  118. data/app/javascript/alchemy_admin/growler.js +15 -0
  119. data/app/javascript/alchemy_admin/gui.js +2 -4
  120. data/app/javascript/alchemy_admin/hotkeys.js +60 -0
  121. data/app/javascript/alchemy_admin/image_loader.js +2 -2
  122. data/app/javascript/alchemy_admin/ingredient_anchor_link.js +2 -3
  123. data/app/javascript/alchemy_admin/initializer.js +1 -8
  124. data/app/javascript/alchemy_admin/link_dialog.js +131 -0
  125. data/app/javascript/alchemy_admin/locales/en.js +3 -0
  126. data/app/javascript/alchemy_admin/node_tree.js +4 -3
  127. data/app/javascript/alchemy_admin/page_sorter.js +23 -14
  128. data/app/javascript/alchemy_admin/picture_editors.js +3 -2
  129. data/app/javascript/alchemy_admin/shoelace_theme.js +60 -0
  130. data/app/javascript/alchemy_admin/sitemap.js +9 -3
  131. data/app/javascript/alchemy_admin/sortable_elements.js +4 -6
  132. data/app/javascript/alchemy_admin.js +18 -42
  133. data/app/models/alchemy/current.rb +26 -0
  134. data/app/models/alchemy/element.rb +1 -1
  135. data/app/models/alchemy/ingredients/audio.rb +0 -11
  136. data/app/models/alchemy/ingredients/headline.rb +8 -1
  137. data/app/models/alchemy/ingredients/picture.rb +6 -0
  138. data/app/models/alchemy/ingredients/video.rb +0 -12
  139. data/app/models/alchemy/language.rb +8 -6
  140. data/app/models/alchemy/node.rb +2 -2
  141. data/app/models/alchemy/page/page_elements.rb +8 -8
  142. data/app/models/alchemy/page/page_layouts.rb +3 -3
  143. data/app/models/alchemy/page/page_natures.rb +13 -9
  144. data/app/models/alchemy/page/page_scopes.rb +2 -2
  145. data/app/models/alchemy/page/publisher.rb +1 -0
  146. data/app/models/alchemy/page.rb +13 -28
  147. data/app/models/alchemy/picture.rb +8 -0
  148. data/app/models/alchemy/picture_description.rb +8 -0
  149. data/app/models/alchemy/picture_variant.rb +1 -1
  150. data/app/models/alchemy/site.rb +10 -7
  151. data/app/serializers/alchemy/attachment_serializer.rb +8 -0
  152. data/app/serializers/alchemy/page_node_serializer.rb +9 -0
  153. data/app/views/alchemy/_menubar.html.erb +1 -1
  154. data/app/views/alchemy/_preview_mode_code.html.erb +1 -1
  155. data/app/views/alchemy/admin/attachments/_tag_list.html.erb +2 -2
  156. data/app/views/alchemy/admin/attachments/archive_overlay.js.erb +0 -1
  157. data/app/views/alchemy/admin/attachments/edit.html.erb +3 -4
  158. data/app/views/alchemy/admin/clipboard/clear.js.erb +1 -1
  159. data/app/views/alchemy/admin/clipboard/index.html.erb +1 -1
  160. data/app/views/alchemy/admin/clipboard/insert.js.erb +1 -1
  161. data/app/views/alchemy/admin/clipboard/remove.js.erb +1 -1
  162. data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +1 -1
  163. data/app/views/alchemy/admin/dashboard/_sites.html.erb +1 -1
  164. data/app/views/alchemy/admin/dashboard/help.html.erb +48 -12
  165. data/app/views/alchemy/admin/dashboard/index.html.erb +1 -1
  166. data/app/views/alchemy/admin/dashboard/info.html.erb +5 -8
  167. data/app/views/alchemy/admin/elements/_add_nested_element_form.html.erb +1 -1
  168. data/app/views/alchemy/admin/elements/_element.html.erb +5 -5
  169. data/app/views/alchemy/admin/elements/_footer.html.erb +1 -1
  170. data/app/views/alchemy/admin/elements/_header.html.erb +6 -2
  171. data/app/views/alchemy/admin/elements/_toolbar.html.erb +8 -6
  172. data/app/views/alchemy/admin/elements/create.js.erb +0 -5
  173. data/app/views/alchemy/admin/elements/index.html.erb +70 -34
  174. data/app/views/alchemy/admin/ingredients/_file_fields.html.erb +1 -2
  175. data/app/views/alchemy/admin/ingredients/_picture_fields.html.erb +3 -5
  176. data/app/views/alchemy/admin/languages/_language.html.erb +1 -1
  177. data/app/views/alchemy/admin/languages/index.html.erb +2 -2
  178. data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +18 -18
  179. data/app/views/alchemy/admin/layoutpages/edit.html.erb +3 -4
  180. data/app/views/alchemy/admin/layoutpages/index.html.erb +2 -2
  181. data/app/views/alchemy/admin/legacy_page_urls/_legacy_page_url.html.erb +10 -11
  182. data/app/views/alchemy/admin/legacy_page_urls/_new.html.erb +15 -17
  183. data/app/views/alchemy/admin/legacy_page_urls/_table.html.erb +16 -0
  184. data/app/views/alchemy/admin/legacy_page_urls/_update.turbo_stream.erb +12 -0
  185. data/app/views/alchemy/admin/legacy_page_urls/create.turbo_stream.erb +8 -0
  186. data/app/views/alchemy/admin/legacy_page_urls/destroy.turbo_stream.erb +1 -0
  187. data/app/views/alchemy/admin/legacy_page_urls/edit.html.erb +27 -0
  188. data/app/views/alchemy/admin/legacy_page_urls/show.html.erb +1 -0
  189. data/app/views/alchemy/admin/legacy_page_urls/update.turbo_stream.erb +1 -0
  190. data/app/views/alchemy/admin/nodes/_form.html.erb +12 -11
  191. data/app/views/alchemy/admin/nodes/_label.html.erb +1 -0
  192. data/app/views/alchemy/admin/nodes/_node.html.erb +19 -19
  193. data/app/views/alchemy/admin/nodes/_page_nodes.html.erb +48 -0
  194. data/app/views/alchemy/admin/nodes/_update.turbo_stream.erb +9 -0
  195. data/app/views/alchemy/admin/nodes/create.turbo_stream.erb +1 -0
  196. data/app/views/alchemy/admin/nodes/destroy.turbo_stream.erb +1 -0
  197. data/app/views/alchemy/admin/nodes/index.html.erb +3 -3
  198. data/app/views/alchemy/admin/pages/_form.html.erb +3 -4
  199. data/app/views/alchemy/admin/pages/_legacy_urls.html.erb +4 -15
  200. data/app/views/alchemy/admin/pages/_page.html.erb +39 -39
  201. data/app/views/alchemy/admin/pages/_table_row.html.erb +3 -3
  202. data/app/views/alchemy/admin/pages/_toolbar.html.erb +2 -2
  203. data/app/views/alchemy/admin/pages/configure.html.erb +6 -0
  204. data/app/views/alchemy/admin/pages/edit.html.erb +15 -62
  205. data/app/views/alchemy/admin/pages/unlock.js.erb +3 -3
  206. data/app/views/alchemy/admin/partials/_autocomplete_tag_list.html.erb +3 -1
  207. data/app/views/alchemy/admin/partials/_flash_notices.html.erb +4 -2
  208. data/app/views/alchemy/admin/partials/_language_tree_select.html.erb +1 -1
  209. data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +5 -2
  210. data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +2 -2
  211. data/app/views/alchemy/admin/partials/_search_form.html.erb +2 -2
  212. data/app/views/alchemy/admin/partials/_site_select.html.erb +1 -1
  213. data/app/views/alchemy/admin/picture_descriptions/_form.html.erb +11 -0
  214. data/app/views/alchemy/admin/picture_descriptions/edit.html.erb +6 -0
  215. data/app/views/alchemy/admin/pictures/_form.html.erb +4 -3
  216. data/app/views/alchemy/admin/pictures/_infos.html.erb +1 -1
  217. data/app/views/alchemy/admin/pictures/_picture_description_field.html.erb +29 -0
  218. data/app/views/alchemy/admin/pictures/_tag_list.html.erb +2 -2
  219. data/app/views/alchemy/admin/pictures/archive_overlay.js.erb +0 -2
  220. data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +3 -3
  221. data/app/views/alchemy/admin/pictures/show.html.erb +3 -3
  222. data/app/views/alchemy/admin/resources/_form.html.erb +3 -4
  223. data/app/views/alchemy/admin/resources/_tag_list.html.erb +2 -2
  224. data/app/views/alchemy/admin/resources/index.html.erb +2 -2
  225. data/app/views/alchemy/admin/sites/index.html.erb +1 -1
  226. data/app/views/alchemy/admin/styleguide/index.html.erb +29 -24
  227. data/app/views/alchemy/admin/tags/_tag.html.erb +1 -1
  228. data/app/views/alchemy/admin/tags/edit.html.erb +1 -1
  229. data/app/views/alchemy/admin/tags/index.html.erb +1 -1
  230. data/app/views/alchemy/base/500.html.erb +7 -18
  231. data/app/views/alchemy/base/error_notice.html.erb +3 -1
  232. data/app/views/alchemy/ingredients/_boolean_editor.html.erb +1 -1
  233. data/app/views/alchemy/ingredients/_datetime_editor.html.erb +1 -1
  234. data/app/views/alchemy/ingredients/_headline_editor.html.erb +13 -8
  235. data/app/views/alchemy/ingredients/_picture_editor.html.erb +1 -1
  236. data/app/views/alchemy/ingredients/shared/_picture_tools.html.erb +1 -1
  237. data/app/views/alchemy/language_links/_language.html.erb +1 -1
  238. data/app/views/kaminari/alchemy/_first_page.html.erb +2 -2
  239. data/app/views/kaminari/alchemy/_gap.html.erb +1 -1
  240. data/app/views/kaminari/alchemy/_last_page.html.erb +2 -2
  241. data/app/views/kaminari/alchemy/_next_page.html.erb +2 -2
  242. data/app/views/kaminari/alchemy/_prev_page.html.erb +2 -2
  243. data/app/views/layouts/alchemy/admin.html.erb +2 -1
  244. data/bundles/shoelace.js +3 -1
  245. data/config/locales/alchemy.en.yml +16 -3
  246. data/config/routes.rb +3 -1
  247. data/db/migrate/20240314105244_create_alchemy_picture_descriptions.rb +11 -0
  248. data/lib/alchemy/configuration_methods.rb +1 -1
  249. data/lib/alchemy/controller_actions.rb +3 -3
  250. data/lib/alchemy/element_definition.rb +10 -6
  251. data/lib/alchemy/engine.rb +19 -2
  252. data/lib/alchemy/page_layout.rb +10 -6
  253. data/lib/alchemy/permissions.rb +3 -2
  254. data/lib/alchemy/routing_constraints.rb +1 -1
  255. data/lib/alchemy/seeder.rb +2 -2
  256. data/lib/alchemy/test_support/capybara_helpers.rb +4 -0
  257. data/lib/alchemy/test_support/factories/language_factory.rb +1 -1
  258. data/lib/alchemy/test_support/shared_contexts.rb +8 -0
  259. data/lib/alchemy/tinymce.rb +2 -1
  260. data/lib/alchemy/version.rb +1 -1
  261. data/lib/alchemy.rb +36 -0
  262. data/lib/alchemy_cms.rb +0 -1
  263. data/lib/generators/alchemy/menus/templates/node.html.erb +2 -2
  264. data/lib/generators/alchemy/menus/templates/node.html.haml +2 -2
  265. data/lib/generators/alchemy/menus/templates/node.html.slim +2 -2
  266. data/lib/generators/alchemy/menus/templates/wrapper.html.erb +1 -1
  267. data/lib/generators/alchemy/menus/templates/wrapper.html.haml +1 -1
  268. data/lib/generators/alchemy/menus/templates/wrapper.html.slim +1 -1
  269. data/lib/tasks/alchemy/sitemap.rake +97 -0
  270. data/package.json +8 -8
  271. data/vendor/assets/fonts/remixicon.symbol.svg +11 -0
  272. data/vendor/javascript/shoelace.min.js +333 -118
  273. data/vendor/javascript/sortable.min.js +1 -1
  274. data/vendor/javascript/tinymce.min.js +1 -1
  275. data/vendor/javascript/ungap-custom-elements.min.js +1 -1
  276. metadata +61 -54
  277. data/app/assets/javascripts/alchemy/alchemy.confirm_dialog.js.coffee +0 -85
  278. data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +0 -107
  279. data/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee +0 -66
  280. data/app/assets/javascripts/alchemy/alchemy.fixed_elements.js +0 -45
  281. data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +0 -24
  282. data/app/assets/javascripts/alchemy/alchemy.hotkeys.js.coffee +0 -49
  283. data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +0 -0
  284. data/app/assets/javascripts/alchemy/alchemy.link_dialog.js.coffee +0 -230
  285. data/app/assets/javascripts/alchemy/alchemy.list_filter.js.coffee +0 -49
  286. data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +0 -82
  287. data/app/assets/javascripts/alchemy/alchemy.string_extension.js.coffee +0 -11
  288. data/app/assets/javascripts/alchemy/templates/page.hbs +0 -19
  289. data/app/javascript/alchemy_admin/tags_autocomplete.js +0 -46
  290. data/app/models/alchemy/tree_node.rb +0 -7
  291. data/app/views/alchemy/admin/elements/destroy.js.erb +0 -8
  292. data/app/views/alchemy/admin/legacy_page_urls/_form.html.erb +0 -5
  293. data/app/views/alchemy/admin/legacy_page_urls/create.js.erb +0 -9
  294. data/app/views/alchemy/admin/legacy_page_urls/destroy.js.erb +0 -6
  295. data/app/views/alchemy/admin/legacy_page_urls/update.js.erb +0 -2
  296. data/app/views/alchemy/admin/pages/_anchor_link.html.erb +0 -22
  297. data/app/views/alchemy/admin/pages/_external_link.html.erb +0 -31
  298. data/app/views/alchemy/admin/pages/_file_link.html.erb +0 -31
  299. data/app/views/alchemy/admin/pages/_internal_link.html.erb +0 -35
  300. data/app/views/alchemy/admin/pages/link.html.erb +0 -26
  301. data/app/views/alchemy/admin/partials/_flash.html.erb +0 -4
  302. data/app/views/alchemy/admin/partials/_toolbar_button.html.erb +0 -29
  303. data/vendor/assets/fonts/remixicon.eot +0 -0
  304. data/vendor/assets/fonts/remixicon.svg +0 -7816
  305. data/vendor/assets/fonts/remixicon.ttf +0 -0
  306. data/vendor/assets/fonts/remixicon.woff +0 -0
  307. data/vendor/assets/fonts/remixicon.woff2 +0 -0
  308. data/vendor/assets/stylesheets/remixicon.scss +0 -10480
@@ -28,7 +28,8 @@ noscript {
28
28
  color: $warning_text_color;
29
29
  background-color: $warning_background_color;
30
30
 
31
- h1, p {
31
+ h1,
32
+ p {
32
33
  margin: 16px 0;
33
34
  }
34
35
  }
@@ -43,7 +44,9 @@ body {
43
44
  cursor: default;
44
45
 
45
46
  // Fix for strange element window offset
46
- &.pages.edit { overflow: hidden }
47
+ &.pages.edit {
48
+ overflow: hidden;
49
+ }
47
50
 
48
51
  &.prevent-scrolling {
49
52
  overflow: hidden;
@@ -57,6 +60,7 @@ a {
57
60
 
58
61
  &:hover {
59
62
  text-decoration: underline;
63
+ text-decoration-thickness: 1px;
60
64
  }
61
65
 
62
66
  img {
@@ -64,7 +68,8 @@ a {
64
68
  }
65
69
  }
66
70
 
67
- a:focus, [tabindex]:focus {
71
+ a:focus,
72
+ [tabindex]:focus {
68
73
  @include default-focus-style;
69
74
  }
70
75
 
@@ -82,14 +87,18 @@ hr {
82
87
  width: 80%;
83
88
  max-width: 500px;
84
89
  margin: 2em auto;
85
- padding: 4*$default-padding;
90
+ padding: 4 * $default-padding;
86
91
  background: $medium-gray;
87
92
  border-radius: $default-border-radius;
88
93
  }
89
94
 
90
- .float_right { float: right }
95
+ .float_right {
96
+ float: right;
97
+ }
91
98
 
92
- .float_left { float: left }
99
+ .float_left {
100
+ float: left;
101
+ }
93
102
 
94
103
  .center {
95
104
  text-align: center;
@@ -124,11 +133,11 @@ hr {
124
133
  }
125
134
 
126
135
  .with_padding {
127
- padding: 2*$default-padding;
136
+ padding: 2 * $default-padding;
128
137
  }
129
138
 
130
139
  .with_margin {
131
- margin: 2*$default-margin;
140
+ margin: 2 * $default-margin;
132
141
  }
133
142
 
134
143
  a img {
@@ -140,20 +149,24 @@ a img {
140
149
  }
141
150
 
142
151
  .hidden {
143
- display: none;
152
+ display: none !important;
144
153
  }
145
154
 
146
- @-moz-keyframes spin {
147
- from { -moz-transform: rotate(0deg); }
148
- to { -moz-transform: rotate(360deg); }
155
+ .mx-1 {
156
+ margin-left: var(--spacing-1);
157
+ margin-right: var(--spacing-1);
149
158
  }
150
159
 
151
- @-webkit-keyframes spin {
152
- from { -webkit-transform: rotate(0deg); }
153
- to { -webkit-transform: rotate(360deg); }
160
+ .mx-2 {
161
+ margin-left: var(--spacing-2);
162
+ margin-right: var(--spacing-2);
163
+ }
164
+
165
+ .my-0 {
166
+ margin-top: 0;
167
+ margin-bottom: 0;
154
168
  }
155
169
 
156
- @keyframes spin {
157
- from {transform:rotate(0deg);}
158
- to {transform:rotate(360deg);}
170
+ .p-0 {
171
+ padding: 0 !important;
159
172
  }
@@ -38,7 +38,7 @@ input.button {
38
38
  .icon {
39
39
  font-weight: normal;
40
40
  margin-right: $default-margin;
41
- color: inherit;
41
+ fill: currentColor;
42
42
  }
43
43
  }
44
44
 
@@ -76,15 +76,14 @@ input.button {
76
76
  }
77
77
 
78
78
  .icon {
79
- color: inherit;
80
- transition: color 250ms;
79
+ transition: fill 250ms;
81
80
  }
82
81
 
83
82
  &.disabled,
84
83
  &[disabled] {
85
84
  pointer-events: none;
86
85
 
87
- i {
86
+ svg {
88
87
  opacity: 0.3;
89
88
  }
90
89
 
@@ -68,7 +68,7 @@
68
68
  }
69
69
 
70
70
  .icon {
71
- color: inherit;
71
+ fill: currentColor;
72
72
  }
73
73
  }
74
74
 
@@ -147,13 +147,10 @@ $dialog-transition-duration: 150ms;
147
147
  .alchemy-image-overlay-close,
148
148
  .alchemy-dialog-close {
149
149
  cursor: pointer;
150
- }
151
-
152
- .alchemy-dialog-close {
153
- color: inherit;
150
+ height: 16px;
154
151
 
155
152
  .icon {
156
- color: inherit;
153
+ fill: currentColor;
157
154
  }
158
155
  }
159
156
 
@@ -3,6 +3,7 @@
3
3
  right: 0;
4
4
  top: $top-menu-height;
5
5
  z-index: 20;
6
+ display: block;
6
7
  width: calc(100vw - #{$collapsed-main-menu-width});
7
8
  height: calc(100vh - #{$top-menu-height});
8
9
  border-left: $default-border;
@@ -45,10 +46,6 @@
45
46
  textarea {
46
47
  width: 100%;
47
48
  }
48
-
49
- > .message {
50
- margin: 2 * $default-margin;
51
- }
52
49
  }
53
50
 
54
51
  alchemy-tinymce {
@@ -78,10 +75,16 @@ alchemy-tinymce {
78
75
  white-space: nowrap;
79
76
  text-overflow: ellipsis;
80
77
  transition: color $transition-duration;
78
+ line-height: 1;
79
+ max-width: 85%;
80
+
81
+ .element-hidden & {
82
+ max-width: 65%;
83
+ }
81
84
 
82
85
  .preview_text_quote {
83
86
  font-size: $small-font-size;
84
- line-height: 15px;
87
+ margin-left: $default-margin / 2;
85
88
  }
86
89
  }
87
90
 
@@ -109,7 +112,11 @@ alchemy-tinymce {
109
112
  color: inherit;
110
113
  box-shadow: none;
111
114
  padding: 0;
112
- margin: 0;
115
+ margin: 0 0 0 auto;
116
+
117
+ .element-hidden & {
118
+ margin-left: unset;
119
+ }
113
120
 
114
121
  &:hover {
115
122
  &:not(:focus):not(:active) {
@@ -121,10 +128,6 @@ alchemy-tinymce {
121
128
 
122
129
  .icon {
123
130
  pointer-events: none;
124
-
125
- &.hidden {
126
- display: none;
127
- }
128
131
  }
129
132
  }
130
133
 
@@ -141,7 +144,7 @@ alchemy-tinymce {
141
144
  margin-top: 0;
142
145
  }
143
146
 
144
- &.hidden {
147
+ &.element-hidden {
145
148
  display: block;
146
149
  border-style: dashed;
147
150
  opacity: 0.7;
@@ -155,7 +158,15 @@ alchemy-tinymce {
155
158
  background-color: transparent;
156
159
 
157
160
  .element-hidden-icon {
158
- display: inline;
161
+ display: inline-flex;
162
+ align-items: center;
163
+ gap: $default-padding;
164
+ margin-left: auto;
165
+ }
166
+
167
+ .element-hidden-label {
168
+ line-height: 1;
169
+ font-size: $small-font-size;
159
170
  }
160
171
  }
161
172
  }
@@ -202,12 +213,12 @@ alchemy-tinymce {
202
213
 
203
214
  &.selected:not(.is-fixed),
204
215
  &:hover:not(.is-fixed) {
205
- &:not(.hidden) {
216
+ &:not(.element-hidden) {
206
217
  box-shadow: 0 2px 8px rgba(#9b9b9b, 0.75);
207
218
  }
208
219
  }
209
220
 
210
- &.selected:not(.is-fixed):not(.folded):not(.dirty):not(.hidden):not(
221
+ &.selected:not(.is-fixed):not(.folded):not(.dirty):not(.element-hidden):not(
211
222
  .deprecated
212
223
  ) {
213
224
  > .element-header {
@@ -221,7 +232,7 @@ alchemy-tinymce {
221
232
  .element-body,
222
233
  .element-footer,
223
234
  .nestable-elements,
224
- .message,
235
+ alchemy-message,
225
236
  .nested-elements {
226
237
  display: none;
227
238
  }
@@ -290,10 +301,6 @@ alchemy-tinymce {
290
301
 
291
302
  &:not(.folded) .element-toggle {
292
303
  pointer-events: none;
293
-
294
- i:before {
295
- content: $ri-more-2-line;
296
- }
297
304
  }
298
305
 
299
306
  .element-body {
@@ -332,6 +339,15 @@ alchemy-tinymce {
332
339
  }
333
340
  }
334
341
 
342
+ &.dismiss {
343
+ opacity: 0;
344
+ transform: scale(0);
345
+ transform-origin: top center;
346
+ transition:
347
+ opacity $transition-duration ease-out,
348
+ transform 1s ease-in;
349
+ }
350
+
335
351
  .element-body {
336
352
  margin: 2 * $default-padding;
337
353
  }
@@ -344,7 +360,7 @@ alchemy-tinymce {
344
360
  text-align: left;
345
361
  }
346
362
 
347
- .message {
363
+ alchemy-message {
348
364
  margin: 2 * $default-margin;
349
365
  }
350
366
 
@@ -353,6 +369,8 @@ alchemy-tinymce {
353
369
  }
354
370
 
355
371
  .autocomplete_tag_list {
372
+ display: block;
373
+ margin-top: $default-padding;
356
374
  padding: $default-padding 0;
357
375
 
358
376
  label {
@@ -397,8 +415,8 @@ alchemy-tinymce {
397
415
  }
398
416
 
399
417
  .icon {
400
- color: inherit;
401
- transition: color $transition-duration;
418
+ fill: currentColor;
419
+ transition: fill $transition-duration;
402
420
  }
403
421
  }
404
422
 
@@ -414,12 +432,16 @@ alchemy-tinymce {
414
432
  gap: $default-padding;
415
433
  height: $element-toolbar-height;
416
434
  border-top: 1px solid $medium-gray;
435
+ border-bottom: 1px solid $medium-gray;
417
436
 
418
437
  .is-fixed & {
419
438
  border-top-width: 0;
420
439
  }
421
440
 
422
- border-bottom: 1px solid $medium-gray;
441
+ .icon_button {
442
+ width: $icon-button-medium-width;
443
+ height: $icon-button-medium-height;
444
+ }
423
445
  }
424
446
 
425
447
  alchemy-publish-element-button {
@@ -427,6 +449,7 @@ alchemy-publish-element-button {
427
449
  align-items: center;
428
450
  margin-left: auto;
429
451
  margin-right: $default-margin;
452
+ line-height: 1;
430
453
 
431
454
  sl-switch {
432
455
  --thumb-size: 10px;
@@ -465,10 +488,6 @@ alchemy-publish-element-button {
465
488
  }
466
489
 
467
490
  &[open] {
468
- .ingredient-group-expand::before {
469
- content: $ri-arrow-down-s-line;
470
- }
471
-
472
491
  > :not(summary) {
473
492
  box-sizing: border-box;
474
493
  }
@@ -558,6 +577,12 @@ alchemy-publish-element-button {
558
577
  width: $icon-button-medium-width;
559
578
  height: $icon-button-medium-height;
560
579
  }
580
+
581
+ alchemy-link-buttons {
582
+ display: flex;
583
+ justify-content: space-between;
584
+ width: 38%;
585
+ }
561
586
  }
562
587
 
563
588
  .ingredient-editor.picture {
@@ -603,12 +628,12 @@ alchemy-publish-element-button {
603
628
  --picture-thumbnail-border-radius: 0;
604
629
  height: 120px;
605
630
 
606
- .icon {
607
- font-size: 3em;
631
+ alchemy-icon {
632
+ --icon-size: 3em;
608
633
  color: var(--color-grey_dark);
609
634
 
610
635
  &.error {
611
- font-size: 1.2em;
636
+ --icon-size: var(--icon-size-md);
612
637
  }
613
638
  }
614
639
  }
@@ -710,7 +735,10 @@ alchemy-publish-element-button {
710
735
  border-radius: 0 $default-border-radius $default-border-radius 0;
711
736
 
712
737
  a {
713
- text-align: center;
738
+ display: inline-flex;
739
+ padding: $default-padding;
740
+ justify-content: center;
741
+ align-items: center;
714
742
  text-decoration: none;
715
743
  width: 24px;
716
744
  }
@@ -765,7 +793,7 @@ select.long {
765
793
  }
766
794
 
767
795
  &.missing {
768
- .message {
796
+ alchemy-message {
769
797
  margin: 0;
770
798
  @include clearfix;
771
799
  }
@@ -827,7 +855,7 @@ select.long {
827
855
  }
828
856
 
829
857
  label {
830
- display: block;
858
+ display: flex;
831
859
  margin: $default-margin 0;
832
860
  font-size: $small-font-size;
833
861
  line-height: 15px;
@@ -897,10 +925,6 @@ textarea.has_tinymce {
897
925
  color: $error_text_color;
898
926
  border: 1px solid $error_border_color;
899
927
 
900
- &.hidden {
901
- display: none;
902
- }
903
-
904
928
  p {
905
929
  margin: 0;
906
930
  line-height: 24px;
@@ -961,18 +985,26 @@ textarea.has_tinymce {
961
985
  background-color: var(--color-yellow_light);
962
986
  }
963
987
 
964
- .ingredient-date--label,
988
+ label.ingredient-date--label,
965
989
  .edit-ingredient-anchor-link {
990
+ display: inline-flex;
991
+ align-items: center;
966
992
  position: absolute;
967
- right: 2 * $default-padding;
968
- bottom: 15px;
993
+ bottom: 3 * $default-padding;
969
994
  margin: 0 !important;
970
995
  }
971
996
 
997
+ label.ingredient-date--label {
998
+ padding: $default-padding;
999
+ right: 5px;
1000
+ }
1001
+
972
1002
  .edit-ingredient-anchor-link {
973
1003
  right: $default-padding;
974
1004
 
975
- > a {
1005
+ a {
1006
+ display: inline-flex;
1007
+ align-items: center;
976
1008
  padding: $default-padding;
977
1009
  }
978
1010
 
@@ -5,78 +5,28 @@ div#flash_notices {
5
5
  width: 400px;
6
6
  top: 0;
7
7
 
8
- .flash.error {
9
- cursor: pointer;
10
- padding-right: 32px;
11
-
12
- &:before {
13
- display: flex;
14
- position: absolute;
15
- right: 2 * $default-padding;
16
- top: 7px;
17
- width: 20px;
18
- height: 20px;
19
- font-family: "remixicon";
20
- content: $ri-close-line;
21
- align-items: center;
22
- justify-content: center;
8
+ alchemy-message {
9
+ font-weight: bold;
10
+ margin: $default-margin $default-margin 2 * $default-margin;
11
+ opacity: 0.95;
12
+ transition-property: opacity, transform;
13
+ transition-duration: 0.4s;
14
+
15
+ &.dismissed {
16
+ display: block;
17
+ opacity: 0;
18
+ transform: translate3d(0, -100%, 0);
23
19
  }
24
- }
25
- }
26
-
27
- div.flash {
28
- border-radius: $default-border-radius;
29
- opacity: 0.95;
30
- padding: 8px 16px 8px 32px;
31
- font-weight: bold;
32
- border-width: 1px;
33
- border-style: solid;
34
- z-index: 1000;
35
- margin: $default-margin $default-margin 2 * $default-margin;
36
- position: relative;
37
- min-height: 2.6em;
38
- word-break: break-word;
39
- transition-property: opacity, transform;
40
- transition-duration: 0.4s;
41
- line-height: 1.5;
42
-
43
- .icon {
44
- position: absolute;
45
- top: 5px;
46
- left: 2 * $default-padding;
47
- vertical-align: bottom;
48
- color: inherit;
49
- }
50
-
51
- &.dismissed {
52
- display: block;
53
- opacity: 0;
54
- transform: translate3d(0, -100%, 0);
55
- }
56
-
57
- &.notice {
58
- border-color: $success_border_color;
59
- color: $success_text_color;
60
- background-color: $success_background_color;
61
- }
62
20
 
63
- &.error {
64
- border-color: $error_border_color;
65
- color: $error_text_color;
66
- background-color: $error_background_color;
67
- }
21
+ &[type="error"] {
22
+ cursor: pointer;
23
+ padding-right: 32px;
68
24
 
69
- &.info {
70
- border-color: $info_border_color;
71
- color: $info_text_color;
72
- background-color: $info_background_color;
73
- }
74
-
75
- &.warn,
76
- &.warning,
77
- &.alert {
78
- border-color: $warning_border_color;
79
- color: $warning_text_color;
80
- background-color: $warning_background_color;
25
+ alchemy-icon[name="close"] {
26
+ position: absolute;
27
+ left: initial;
28
+ right: 2 * $default-padding;
29
+ }
30
+ }
81
31
  }
82
32
  }
@@ -19,6 +19,12 @@ form {
19
19
  @include form-label;
20
20
  }
21
21
 
22
+ .inline-label {
23
+ display: inline-flex;
24
+ align-items: center;
25
+ gap: var(--spacing-1);
26
+ }
27
+
22
28
  .input {
23
29
  padding: $default-padding 0;
24
30
  @include clearfix;
@@ -81,48 +87,48 @@ form {
81
87
  }
82
88
  }
83
89
 
84
- &.field_with_errors {
85
- input[type="text"],
86
- input[type="email"],
87
- input[type="password"],
88
- textarea,
89
- .select2-choices {
90
- @extend %field-with-error;
91
- }
90
+ &.language_locale small.error {
91
+ @include form-hint(
92
+ $background-color: $error_background_color,
93
+ $border-color: $error_border_color
94
+ );
95
+ text-align: left;
96
+ }
97
+ }
92
98
 
93
- .select2-choice,
94
- .select2-choices {
95
- border-color: $error_border_color;
96
- color: $error_text_color;
97
- margin-bottom: 4px;
99
+ .field_with_errors {
100
+ input[type="text"],
101
+ input[type="email"],
102
+ input[type="password"],
103
+ textarea,
104
+ .select2-choices {
105
+ @extend %field-with-error;
106
+ }
98
107
 
99
- input[type="text"] {
100
- box-shadow: none;
101
- }
102
- }
108
+ .select2-choice,
109
+ .select2-choices {
110
+ border-color: $error_border_color;
111
+ color: $error_text_color;
112
+ margin-bottom: 4px;
103
113
 
104
- label {
105
- color: $error_text_color;
114
+ input[type="text"] {
115
+ box-shadow: none;
106
116
  }
107
117
  }
108
118
 
109
- small.error {
119
+ label {
110
120
  color: $error_text_color;
111
- display: block;
112
- margin-left: $form-left-width;
113
- line-height: 1.5em;
114
- clear: both;
115
- text-align: right;
116
- margin-bottom: 0.25em;
117
121
  }
122
+ }
118
123
 
119
- &.language_locale small.error {
120
- @include form-hint(
121
- $background-color: $error_background_color,
122
- $border-color: $error_border_color
123
- );
124
- text-align: left;
125
- }
124
+ small.error {
125
+ color: $error_text_color;
126
+ display: block;
127
+ margin-left: $form-left-width;
128
+ line-height: 1.5em;
129
+ clear: both;
130
+ text-align: right;
131
+ margin-bottom: 0.25em;
126
132
  }
127
133
 
128
134
  .input-addon {
@@ -169,7 +175,8 @@ form {
169
175
  }
170
176
 
171
177
  .inline-input {
172
- @include clearfix;
178
+ align-items: center;
179
+ display: flex;
173
180
  margin: 0 -1 * $default-margin;
174
181
 
175
182
  .left-column,
@@ -179,12 +186,10 @@ form {
179
186
 
180
187
  .left-column {
181
188
  width: $form-right-width;
182
- float: left;
183
189
  }
184
190
 
185
191
  .right-column {
186
192
  width: $form-left-width;
187
- float: right;
188
193
  }
189
194
 
190
195
  button,
@@ -1,12 +1,21 @@
1
1
  alchemy-overlay {
2
- display: none;
2
+ visibility: hidden;
3
3
  position: fixed;
4
4
  left: 0;
5
5
  top: 0;
6
6
  width: 100%;
7
7
  height: 100%;
8
8
  z-index: 400000;
9
- background-color: rgba(229, 229, 229, 0.4);
9
+ background-color: transparent;
10
+ transition: all $transition-duration $transition-easing;
11
+ transition-delay: 0;
12
+
13
+ &.visible {
14
+ visibility: visible;
15
+ transition-delay: 300ms;
16
+ transition-property: background-color;
17
+ background-color: rgba(229, 229, 229, 0.2);
18
+ }
10
19
  }
11
20
 
12
21
  div#overlay_text_box {
@@ -52,7 +61,7 @@ div#overlay_text_box {
52
61
  }
53
62
 
54
63
  .page_status_and_name {
55
- align-items: end;
64
+ align-items: center;
56
65
  padding: $default-padding 2 * $default-padding;
57
66
  background-color: $medium-gray;
58
67
  text-shadow: $text-shadow-light;