alchemy_cms 7.4.10 → 8.0.0.b
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of alchemy_cms might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +16 -5
- data/app/assets/builds/alchemy/admin/page-select.css +1 -1
- data/app/assets/builds/alchemy/admin/print.css +1 -1
- data/app/assets/builds/alchemy/admin.css +2 -2
- data/app/assets/builds/alchemy/dark-theme.css +1 -0
- data/app/assets/builds/alchemy/light-theme.css +1 -0
- data/app/assets/builds/alchemy/theme.css +1 -0
- data/app/assets/builds/alchemy/welcome.css +1 -1
- data/app/assets/builds/tinymce/skins/content/alchemy/content.min.css +1 -1
- data/app/assets/builds/tinymce/skins/content/alchemy-dark/content.min.css +1 -0
- data/app/assets/builds/tinymce/skins/ui/alchemy/content.min.css +1 -0
- data/app/assets/builds/tinymce/skins/ui/alchemy/skin.min.css +1 -1
- data/app/assets/builds/tinymce/skins/ui/alchemy-dark/content.min.css +1 -0
- data/app/assets/builds/tinymce/skins/ui/alchemy-dark/skin.min.css +1 -0
- data/app/assets/config/alchemy_manifest.js +0 -2
- data/app/assets/images/alchemy/element_icons/default.svg +1 -0
- data/app/assets/images/alchemy/icons-sprite.svg +1 -0
- data/app/components/alchemy/admin/element_select.rb +39 -0
- data/app/components/alchemy/admin/resource/applied_filter.rb +29 -0
- data/app/components/alchemy/admin/resource/checkbox_filter.rb +36 -0
- data/app/components/alchemy/admin/resource/datepicker_filter.rb +42 -0
- data/app/components/alchemy/admin/resource/select_filter.rb +43 -0
- data/app/components/alchemy/admin/toolbar_button.rb +5 -2
- data/app/components/alchemy/ingredients/number_view.rb +18 -0
- data/app/controllers/alchemy/admin/attachments_controller.rb +10 -15
- data/app/controllers/alchemy/admin/clipboard_controller.rb +2 -6
- data/app/controllers/alchemy/admin/elements_controller.rb +3 -1
- data/app/controllers/alchemy/admin/languages_controller.rb +1 -1
- data/app/controllers/alchemy/admin/pages_controller.rb +15 -15
- data/app/controllers/alchemy/admin/pictures_controller.rb +27 -37
- data/app/controllers/alchemy/admin/resources_controller.rb +16 -106
- data/app/controllers/alchemy/attachments_controller.rb +43 -14
- data/app/controllers/alchemy/messages_controller.rb +1 -1
- data/app/controllers/alchemy/pages_controller.rb +26 -4
- data/app/controllers/concerns/alchemy/admin/resource_filter.rb +93 -0
- data/app/decorators/alchemy/element_editor.rb +5 -48
- data/app/decorators/alchemy/ingredient_editor.rb +3 -53
- data/app/helpers/alchemy/admin/attachments_helper.rb +5 -5
- data/app/helpers/alchemy/admin/base_helper.rb +14 -84
- data/app/helpers/alchemy/admin/pages_helper.rb +1 -1
- data/app/helpers/alchemy/base_helper.rb +0 -30
- data/app/helpers/alchemy/elements_block_helper.rb +0 -14
- data/app/helpers/alchemy/pages_helper.rb +1 -1
- data/{lib → app/helpers}/alchemy/resources_helper.rb +5 -45
- data/app/javascript/alchemy_admin/components/action.js +2 -0
- data/app/javascript/alchemy_admin/components/alchemy_html_element.js +3 -3
- data/app/javascript/alchemy_admin/components/auto_submit.js +20 -0
- data/app/javascript/alchemy_admin/components/datepicker.js +18 -7
- data/app/javascript/alchemy_admin/components/element_editor/delete_element_button.js +8 -7
- data/app/javascript/alchemy_admin/components/element_editor.js +25 -15
- data/app/javascript/alchemy_admin/components/element_select.js +43 -0
- data/app/javascript/alchemy_admin/components/index.js +3 -0
- data/app/javascript/alchemy_admin/components/link_buttons.js +6 -2
- data/app/javascript/alchemy_admin/components/remote_select.js +9 -2
- data/app/javascript/alchemy_admin/components/tags_autocomplete.js +5 -1
- data/app/javascript/alchemy_admin/components/tinymce.js +93 -14
- data/app/javascript/alchemy_admin/components/update_check.js +42 -0
- data/app/javascript/alchemy_admin/components/uploader/file_upload.js +15 -8
- data/app/javascript/alchemy_admin/components/uploader/progress.js +12 -6
- data/app/javascript/alchemy_admin/components/uploader.js +4 -2
- data/app/javascript/alchemy_admin/confirm_dialog.js +27 -57
- data/app/javascript/alchemy_admin/dialog.js +1 -1
- data/app/javascript/alchemy_admin/dirty.js +3 -2
- data/app/javascript/alchemy_admin/file_editors.js +1 -1
- data/app/javascript/alchemy_admin/i18n.js +15 -16
- data/app/javascript/alchemy_admin/image_loader.js +4 -2
- data/app/javascript/alchemy_admin/initializer.js +1 -49
- data/app/javascript/alchemy_admin/picture_editors.js +7 -4
- data/app/javascript/alchemy_admin/picture_selector.js +4 -4
- data/app/javascript/alchemy_admin/utils/ajax.js +51 -44
- data/app/javascript/alchemy_admin.js +3 -8
- data/app/jobs/alchemy/delete_picture_job.rb +12 -0
- data/app/models/alchemy/admin/filters/base.rb +38 -0
- data/app/models/alchemy/admin/filters/checkbox.rb +24 -0
- data/app/models/alchemy/admin/filters/datepicker.rb +53 -0
- data/app/models/alchemy/admin/filters/select.rb +70 -0
- data/app/models/alchemy/admin/resource_name.rb +27 -0
- data/app/models/alchemy/attachment.rb +49 -44
- data/app/models/alchemy/base_record.rb +2 -0
- data/app/models/alchemy/element/definitions.rb +1 -1
- data/app/models/alchemy/element/element_ingredients.rb +6 -6
- data/app/models/alchemy/element/presenters.rb +3 -12
- data/app/models/alchemy/element.rb +10 -27
- data/app/models/alchemy/element_definition.rb +190 -0
- data/app/models/alchemy/ingredient.rb +10 -43
- data/app/models/alchemy/ingredient_definition.rb +134 -0
- data/app/models/alchemy/ingredient_validator.rb +7 -3
- data/app/models/alchemy/ingredients/number.rb +19 -0
- data/app/models/alchemy/language.rb +2 -21
- data/app/models/alchemy/message.rb +3 -7
- data/app/models/alchemy/node.rb +1 -1
- data/app/models/alchemy/page/{page_layouts.rb → definitions.rb} +12 -19
- data/app/models/alchemy/page/fixed_attributes.rb +1 -1
- data/app/models/alchemy/page/page_elements.rb +13 -14
- data/app/models/alchemy/page/page_naming.rb +3 -11
- data/app/models/alchemy/page/page_natures.rb +20 -15
- data/app/models/alchemy/page/page_scopes.rb +1 -1
- data/app/models/alchemy/page.rb +12 -39
- data/app/models/alchemy/page_definition.rb +115 -0
- data/app/models/alchemy/picture.rb +71 -99
- data/app/models/alchemy/picture_variant.rb +115 -5
- data/{lib → app/models}/alchemy/resource.rb +4 -18
- data/{lib → app/models}/alchemy/searchable_resource.rb +15 -0
- data/app/models/alchemy/site/layout.rb +5 -5
- data/app/models/alchemy/site.rb +1 -21
- data/app/models/alchemy/storage_adapter/active_storage/attachment_url.rb +41 -0
- data/app/models/alchemy/storage_adapter/active_storage/picture_url.rb +55 -0
- data/app/models/alchemy/storage_adapter/active_storage/preprocessor.rb +40 -0
- data/app/models/alchemy/storage_adapter/active_storage.rb +173 -0
- data/app/models/alchemy/{attachment/url.rb → storage_adapter/dragonfly/attachment_url.rb} +12 -12
- data/app/models/alchemy/storage_adapter/dragonfly/picture_url.rb +75 -0
- data/app/models/alchemy/{picture → storage_adapter/dragonfly}/preprocessor.rb +4 -4
- data/app/models/alchemy/storage_adapter/dragonfly.rb +205 -0
- data/app/models/alchemy/storage_adapter.rb +74 -0
- data/app/models/concerns/alchemy/picture_thumbnails.rb +19 -6
- data/app/models/concerns/alchemy/relatable_resource.rb +28 -0
- data/app/serializers/alchemy/element_serializer.rb +0 -1
- data/app/services/alchemy/dragonfly_to_image_processing.rb +100 -0
- data/app/stylesheets/alchemy/_custom-properties.scss +162 -0
- data/app/stylesheets/alchemy/_defaults.scss +3 -0
- data/app/stylesheets/alchemy/_extends.scss +69 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/_mixins.scss +40 -68
- data/app/stylesheets/alchemy/_themes.scss +540 -0
- data/app/stylesheets/alchemy/_variables.scss +5 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/archive.scss +45 -42
- data/app/stylesheets/alchemy/admin/attachments.scss +17 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/base.scss +20 -15
- data/app/stylesheets/alchemy/admin/buttons.scss +135 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/clipboard.scss +2 -2
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/dashboard.scss +13 -16
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/dialogs.scss +33 -16
- data/app/stylesheets/alchemy/admin/element-select.scss +11 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/elements.scss +239 -133
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/errors.scss +5 -5
- data/app/stylesheets/alchemy/admin/filters.scss +57 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/flatpickr.scss +54 -76
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/form_fields.scss +10 -11
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/forms.scss +28 -21
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/frame.scss +20 -18
- data/app/stylesheets/alchemy/admin/hints.scss +5 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/icons.scss +1 -1
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/image_library.scss +21 -61
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/images.scss +1 -1
- data/app/stylesheets/alchemy/admin/labels.scss +5 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/lists.scss +3 -3
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/navigation.scss +55 -59
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/node-select.scss +1 -10
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/nodes.scss +21 -18
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/notices.scss +20 -19
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/page-select.scss +18 -2
- data/app/stylesheets/alchemy/admin/pagination.scss +137 -0
- data/app/stylesheets/alchemy/admin/preview_window.scss +46 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/print.scss +1 -1
- data/app/stylesheets/alchemy/admin/resource_info.scss +148 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/search.scss +10 -7
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/selects.scss +85 -46
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/shoelace.scss +37 -68
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/sitemap.scss +39 -34
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/tables.scss +9 -7
- data/app/stylesheets/alchemy/admin/tags.scss +143 -0
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/toolbar.scss +6 -6
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/typography.scss +3 -6
- data/app/{assets/stylesheets → stylesheets}/alchemy/admin/upload.scss +7 -5
- data/app/stylesheets/alchemy/admin.scss +44 -0
- data/app/stylesheets/alchemy/dark-theme.scss +5 -0
- data/app/stylesheets/alchemy/light-theme.scss +6 -0
- data/app/stylesheets/alchemy/theme.scss +13 -0
- data/app/stylesheets/alchemy/welcome.scss +75 -0
- data/app/stylesheets/tinymce/skins/content/alchemy/content.scss +69 -0
- data/app/{assets/stylesheets/tinymce/skins/content/alchemy → stylesheets/tinymce/skins/content/alchemy-dark}/content.scss +12 -12
- data/app/stylesheets/tinymce/skins/ui/alchemy/content.scss +1 -0
- data/app/{assets/stylesheets → stylesheets}/tinymce/skins/ui/alchemy/skin.scss +158 -176
- data/app/stylesheets/tinymce/skins/ui/alchemy-dark/content.scss +1 -0
- data/app/stylesheets/tinymce/skins/ui/alchemy-dark/skin.scss +3784 -0
- data/app/views/alchemy/admin/attachments/_files_list.html.erb +22 -12
- data/app/views/alchemy/admin/attachments/_overlay_file_list.html.erb +1 -1
- data/app/views/alchemy/admin/attachments/assign.js.erb +4 -3
- data/app/views/alchemy/admin/attachments/show.html.erb +55 -43
- data/app/views/alchemy/admin/{elements/_clipboard_button.html.erb → clipboard/_button.html.erb} +3 -5
- data/app/views/alchemy/admin/clipboard/_update_nested_element_button.turbo_stream.erb +11 -0
- data/app/views/alchemy/admin/clipboard/clear.turbo_stream.erb +4 -0
- data/app/views/alchemy/admin/clipboard/index.html.erb +15 -13
- data/app/views/alchemy/admin/clipboard/insert.turbo_stream.erb +18 -0
- data/app/views/alchemy/admin/clipboard/remove.turbo_stream.erb +9 -0
- data/app/views/alchemy/admin/crop.html.erb +1 -1
- data/app/views/alchemy/admin/dashboard/info.html.erb +17 -31
- data/app/views/alchemy/admin/elements/_element.html.erb +4 -8
- data/app/views/alchemy/admin/elements/_form.html.erb +9 -9
- data/app/views/alchemy/admin/elements/_header.html.erb +5 -1
- data/app/views/alchemy/admin/elements/_toolbar.html.erb +4 -6
- data/app/views/alchemy/admin/elements/create.turbo_stream.erb +2 -1
- data/app/views/alchemy/admin/elements/index.html.erb +2 -2
- data/app/views/alchemy/admin/ingredients/_file_fields.html.erb +3 -16
- data/app/views/alchemy/admin/ingredients/_picture_fields.html.erb +0 -9
- data/app/views/alchemy/admin/languages/_form.html.erb +1 -1
- data/app/views/alchemy/admin/languages/_table.html.erb +1 -1
- data/app/views/alchemy/admin/languages/index.html.erb +5 -2
- data/app/views/alchemy/admin/layoutpages/index.html.erb +1 -12
- data/app/views/alchemy/admin/pages/_form.html.erb +2 -2
- data/app/views/alchemy/admin/pages/_page.html.erb +2 -3
- data/app/views/alchemy/admin/pages/_toolbar.html.erb +1 -15
- data/app/views/alchemy/admin/pages/index.html.erb +1 -1
- data/app/views/alchemy/admin/partials/_remote_search_form.html.erb +9 -12
- data/app/views/alchemy/admin/partials/_search_form.html.erb +4 -9
- data/app/views/alchemy/admin/pictures/_archive.html.erb +16 -29
- data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +3 -7
- data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_form.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_infos.html.erb +21 -52
- data/app/views/alchemy/admin/pictures/_library_sidebar.html.erb +7 -0
- data/app/views/alchemy/admin/pictures/_picture.html.erb +14 -20
- data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +20 -16
- data/app/views/alchemy/admin/pictures/_sorting_select.html.erb +13 -0
- data/app/views/alchemy/admin/pictures/_tag_list.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/edit_multiple.html.erb +1 -6
- data/app/views/alchemy/admin/pictures/index.html.erb +5 -19
- data/app/views/alchemy/admin/pictures/show.html.erb +10 -5
- data/app/views/alchemy/admin/resources/_applied_filters.html.erb +8 -0
- data/app/views/alchemy/admin/resources/_filter_bar.html.erb +5 -25
- data/app/views/alchemy/admin/resources/_pagination.html.erb +6 -0
- data/app/views/alchemy/admin/resources/_per_page_select.html.erb +4 -2
- data/app/views/alchemy/admin/resources/_resource_table.html.erb +1 -1
- data/app/views/alchemy/admin/resources/_resource_usage_info.html.erb +36 -0
- data/app/views/alchemy/admin/resources/_table_header.html.erb +1 -15
- data/app/views/alchemy/admin/sites/index.html.erb +5 -1
- data/app/views/alchemy/admin/styleguide/index.html.erb +118 -58
- data/app/views/alchemy/admin/tags/index.html.erb +1 -1
- data/app/views/alchemy/admin/tinymce/_setup.html.erb +7 -7
- data/app/{javascript/alchemy_admin/locales/en.js → views/alchemy/admin/translations/_en.js} +5 -2
- data/app/views/alchemy/admin/uploader/_button.html.erb +1 -1
- data/app/views/alchemy/admin/uploader/_setup.html.erb +4 -4
- data/app/views/alchemy/base/error_notice.html.erb +1 -1
- data/app/views/alchemy/ingredients/_number_editor.html.erb +24 -0
- data/app/views/alchemy/no_index.html.erb +31 -0
- data/app/views/alchemy/welcome.html.erb +12 -10
- data/app/views/kaminari/alchemy/_first_page.html.erb +5 -3
- data/app/views/kaminari/alchemy/_last_page.html.erb +5 -3
- data/app/views/kaminari/alchemy/_next_page.html.erb +5 -3
- data/app/views/kaminari/alchemy/_paginator.html.erb +18 -13
- data/app/views/kaminari/alchemy/_prev_page.html.erb +5 -3
- data/app/views/layouts/alchemy/admin.html.erb +25 -24
- data/config/alchemy/config.yml +3 -2
- data/config/initializers/dragonfly.rb +0 -1
- data/config/initializers/mime_types.rb +1 -0
- data/config/locales/alchemy.en.yml +57 -21
- data/config/routes.rb +0 -2
- data/db/migrate/20250905140323_add_created_at_index_to_pictures_and_attachments.rb +14 -0
- data/lib/alchemy/admin/preview_url.rb +4 -5
- data/lib/alchemy/cache_digests/template_tracker.rb +6 -9
- data/lib/alchemy/config_missing.rb +14 -0
- data/lib/alchemy/configuration/base_option.rb +24 -0
- data/lib/alchemy/configuration/boolean_option.rb +16 -0
- data/lib/alchemy/configuration/class_option.rb +15 -0
- data/lib/alchemy/configuration/class_set_option.rb +46 -0
- data/lib/alchemy/configuration/integer_list_option.rb +13 -0
- data/lib/alchemy/configuration/integer_option.rb +12 -0
- data/lib/alchemy/configuration/list_option.rb +22 -0
- data/lib/alchemy/configuration/regexp_option.rb +11 -0
- data/lib/alchemy/configuration/string_list_option.rb +13 -0
- data/lib/alchemy/configuration/string_option.rb +11 -0
- data/lib/alchemy/configuration.rb +115 -0
- data/lib/alchemy/configuration_methods.rb +3 -1
- data/lib/alchemy/configurations/default_language.rb +12 -0
- data/lib/alchemy/configurations/default_site.rb +10 -0
- data/lib/alchemy/configurations/format_matchers.rb +11 -0
- data/lib/alchemy/configurations/mailer.rb +16 -0
- data/lib/alchemy/configurations/main.rb +223 -0
- data/lib/alchemy/configurations/page_cache.rb +19 -0
- data/lib/alchemy/configurations/preview.rb +32 -0
- data/lib/alchemy/configurations/sitemap.rb +10 -0
- data/lib/alchemy/configurations/uploader.rb +34 -0
- data/lib/alchemy/engine.rb +81 -24
- data/lib/alchemy/hints.rb +3 -7
- data/lib/alchemy/install/tasks.rb +0 -12
- data/lib/alchemy/on_page_layout.rb +2 -2
- data/lib/alchemy/propshaft/tinymce_asset.rb +15 -0
- data/lib/alchemy/seeder.rb +2 -2
- data/lib/alchemy/tasks/tidy.rb +18 -0
- data/lib/alchemy/tasks/usage.rb +4 -4
- data/lib/alchemy/test_support/config_stubbing.rb +1 -7
- data/lib/alchemy/test_support/factories/attachment_factory.rb +13 -2
- data/lib/alchemy/test_support/factories/language_factory.rb +1 -1
- data/lib/alchemy/test_support/factories/page_factory.rb +2 -3
- data/lib/alchemy/test_support/factories/picture_factory.rb +31 -2
- data/lib/alchemy/test_support/factories/site_factory.rb +2 -2
- data/lib/alchemy/test_support/having_crop_action_examples.rb +2 -2
- data/lib/alchemy/test_support/having_picture_thumbnails_examples.rb +80 -26
- data/lib/alchemy/test_support/relatable_resource_examples.rb +58 -0
- data/lib/alchemy/test_support/shared_ingredient_examples.rb +5 -5
- data/lib/alchemy/tinymce.rb +0 -1
- data/lib/alchemy/upgrader/eight_zero.rb +14 -0
- data/lib/alchemy/upgrader.rb +33 -20
- data/lib/alchemy/version.rb +1 -1
- data/lib/alchemy.rb +185 -172
- data/lib/alchemy_cms.rb +1 -7
- data/lib/generators/alchemy/ingredient/ingredient_generator.rb +0 -3
- data/lib/generators/alchemy/install/files/_article.html.erb +6 -4
- data/lib/generators/alchemy/install/files/alchemy.en.yml +22 -3
- data/lib/generators/alchemy/install/files/application.html.erb +5 -0
- data/lib/generators/alchemy/install/install_generator.rb +25 -23
- data/lib/generators/alchemy/install/templates/alchemy.rb.tt +200 -0
- data/lib/generators/alchemy/install/templates/dragonfly.rb.tt +0 -1
- data/lib/generators/alchemy/install/templates/elements.yml.tt +3 -1
- data/lib/generators/alchemy/install/templates/menus.yml.tt +1 -1
- data/lib/generators/alchemy/install/templates/page_layouts.yml.tt +2 -2
- data/lib/generators/alchemy/page_layouts/page_layouts_generator.rb +2 -2
- data/lib/tasks/alchemy/assets.rake +14 -0
- data/lib/tasks/alchemy/tidy.rake +6 -0
- data/lib/tasks/alchemy/upgrade.rake +12 -47
- data/vendor/assets/stylesheets/tinymce/skins/content/dark/content.min.css +1 -0
- data/vendor/assets/stylesheets/tinymce/skins/content/default/content.min.css +1 -0
- data/vendor/assets/stylesheets/tinymce/skins/ui/oxide/skin.min.css +1 -0
- data/vendor/assets/stylesheets/tinymce/skins/ui/oxide-dark/content.min.css +1 -0
- data/vendor/assets/stylesheets/tinymce/skins/ui/oxide-dark/skin.min.css +1 -0
- data/vendor/javascript/clipboard.min.js +1 -1
- data/vendor/javascript/cropperjs.min.js +1 -1
- data/vendor/javascript/handlebars.min.js +3 -3
- data/vendor/javascript/jquery.min.js +1 -1
- data/vendor/javascript/select2.min.js +3 -3
- data/vendor/javascript/shoelace.min.js +92 -76
- data/vendor/javascript/sortable.min.js +2 -2
- data/vendor/javascript/tinymce.min.js +1 -1
- data/vendor/javascript/ungap-custom-elements.min.js +2 -2
- metadata +223 -208
- data/CHANGELOG.md +0 -2041
- data/CODE_OF_CONDUCT.md +0 -13
- data/CONTRIBUTING.md +0 -73
- data/Gemfile +0 -71
- data/Rakefile +0 -102
- data/SECURITY.md +0 -13
- data/alchemy_cms.gemspec +0 -88
- data/app/assets/builds/alchemy/admin/page-select.css.map +0 -1
- data/app/assets/builds/alchemy/admin/print.css.map +0 -1
- data/app/assets/builds/alchemy/admin.css.map +0 -1
- data/app/assets/builds/alchemy/custom-properties.css +0 -1
- data/app/assets/builds/alchemy/custom-properties.css.map +0 -1
- data/app/assets/builds/alchemy/welcome.css.map +0 -1
- data/app/assets/builds/tinymce/skins/content/alchemy/content.min.css.map +0 -1
- data/app/assets/builds/tinymce/skins/ui/alchemy/skin.min.css.map +0 -1
- data/app/assets/javascripts/alchemy/admin.js +0 -10
- data/app/assets/stylesheets/alchemy/_defaults.scss +0 -3
- data/app/assets/stylesheets/alchemy/_deprecated_variables.scss +0 -45
- data/app/assets/stylesheets/alchemy/_deprecation.scss +0 -17
- data/app/assets/stylesheets/alchemy/_extends.scss +0 -62
- data/app/assets/stylesheets/alchemy/_variables.scss +0 -201
- data/app/assets/stylesheets/alchemy/admin/attachments.scss +0 -40
- data/app/assets/stylesheets/alchemy/admin/buttons.scss +0 -123
- data/app/assets/stylesheets/alchemy/admin/hints.scss +0 -5
- data/app/assets/stylesheets/alchemy/admin/labels.scss +0 -3
- data/app/assets/stylesheets/alchemy/admin/pagination.scss +0 -92
- data/app/assets/stylesheets/alchemy/admin/preview_window.scss +0 -33
- data/app/assets/stylesheets/alchemy/admin/resource_info.scss +0 -42
- data/app/assets/stylesheets/alchemy/admin/tags.scss +0 -158
- data/app/assets/stylesheets/alchemy/admin.scss +0 -42
- data/app/assets/stylesheets/alchemy/custom-properties.css +0 -98
- data/app/assets/stylesheets/alchemy/welcome.scss +0 -57
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/content.css +0 -711
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/content.inline.css +0 -705
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/content.inline.min.css +0 -7
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/content.min.css +0 -7
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/content.mobile.css +0 -29
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/content.mobile.min.css +0 -7
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/skin.mobile.css +0 -677
- data/app/assets/stylesheets/tinymce/skins/ui/alchemy/skin.mobile.min.css +0 -7
- data/app/controllers/alchemy/elements_controller.rb +0 -32
- data/app/helpers/alchemy/admin/elements_helper.rb +0 -25
- data/app/models/alchemy/element/dom_id.rb +0 -31
- data/app/models/alchemy/picture/calculations.rb +0 -49
- data/app/models/alchemy/picture/transformations.rb +0 -115
- data/app/models/alchemy/picture/url.rb +0 -54
- data/app/views/alchemy/admin/attachments/destroy.js.erb +0 -1
- data/app/views/alchemy/admin/clipboard/clear.js.erb +0 -3
- data/app/views/alchemy/admin/clipboard/insert.js.erb +0 -29
- data/app/views/alchemy/admin/clipboard/remove.js.erb +0 -10
- data/app/views/alchemy/admin/resources/_filter.html.erb +0 -12
- data/app/views/alchemy/admin/resources/_resource.html.erb +0 -34
- data/app/views/alchemy/admin/resources/_table.html.erb +0 -29
- data/app/views/alchemy/elements/show.html.erb +0 -1
- data/app/views/alchemy/elements/show.js.erb +0 -1
- data/app/views/alchemy/ingredients/_audio_view.html.erb +0 -1
- data/app/views/alchemy/ingredients/_boolean_view.html.erb +0 -1
- data/app/views/alchemy/ingredients/_datetime_view.html.erb +0 -3
- data/app/views/alchemy/ingredients/_file_view.html.erb +0 -4
- data/app/views/alchemy/ingredients/_headline_view.html.erb +0 -4
- data/app/views/alchemy/ingredients/_html_view.html.erb +0 -1
- data/app/views/alchemy/ingredients/_link_view.html.erb +0 -4
- data/app/views/alchemy/ingredients/_node_view.html.erb +0 -1
- data/app/views/alchemy/ingredients/_page_view.html.erb +0 -1
- data/app/views/alchemy/ingredients/_picture_view.html.erb +0 -4
- data/app/views/alchemy/ingredients/_richtext_view.html.erb +0 -3
- data/app/views/alchemy/ingredients/_select_view.html.erb +0 -1
- data/app/views/alchemy/ingredients/_text_view.html.erb +0 -4
- data/app/views/alchemy/ingredients/_video_view.html.erb +0 -3
- data/babel.config.js +0 -12
- data/bin/importmap +0 -4
- data/bin/rails +0 -9
- data/bin/rspec +0 -3
- data/bin/setup +0 -30
- data/bin/start +0 -17
- data/bun.lockb +0 -0
- data/bundles/shoelace.js +0 -12
- data/bundles/tinymce.js +0 -22
- data/config/initializers/assets.rb +0 -4
- data/eslint.config.js +0 -17
- data/lib/alchemy/config.rb +0 -114
- data/lib/alchemy/element_definition.rb +0 -73
- data/lib/alchemy/page_layout.rb +0 -73
- data/lib/alchemy/resource_filter.rb +0 -40
- data/lib/alchemy/upgrader/seven_point_four.rb +0 -26
- data/lib/alchemy/upgrader/seven_point_three.rb +0 -52
- data/lib/alchemy/upgrader/tasks/.keep +0 -0
- data/lib/generators/alchemy/ingredient/templates/view.html.erb +0 -1
- data/lib/generators/alchemy/install/files/alchemy_admin.js +0 -1
- data/lib/generators/alchemy/install/files/all.js +0 -11
- data/lib/generators/alchemy/install/files/article.css +0 -25
- data/rollup.config.mjs +0 -108
- data/vendor/assets/images/remixicon.symbol.svg +0 -11
- /data/app/{assets/stylesheets → stylesheets}/alchemy/_fonts.scss +0 -0
- /data/app/{assets/stylesheets → stylesheets}/alchemy/admin/attachment-select.scss +0 -0
- /data/app/{assets/stylesheets → stylesheets}/alchemy/admin/flash.scss +0 -0
- /data/app/{assets/stylesheets → stylesheets}/alchemy/admin/list_filter.scss +0 -0
- /data/app/{assets/stylesheets → stylesheets}/alchemy/admin/spinner.scss +0 -0
- /data/app/{assets/stylesheets → stylesheets}/tinymce/skins/skintool.json +0 -0
- /data/app/{assets/stylesheets → stylesheets}/tinymce/skins/ui/alchemy/fonts/tinymce-mobile.woff +0 -0
@@ -1,3 +1,5 @@
|
|
1
|
+
@use "../mixins";
|
2
|
+
|
1
3
|
.nodes_tree.list {
|
2
4
|
margin: 2em 0;
|
3
5
|
|
@@ -22,6 +24,7 @@
|
|
22
24
|
white-space: nowrap;
|
23
25
|
text-overflow: ellipsis;
|
24
26
|
overflow: hidden;
|
27
|
+
gap: var(--spacing-0);
|
25
28
|
|
26
29
|
> a {
|
27
30
|
overflow: hidden;
|
@@ -48,10 +51,10 @@
|
|
48
51
|
align-items: center;
|
49
52
|
padding: 0 var(--spacing-2);
|
50
53
|
white-space: nowrap;
|
51
|
-
background-color:
|
52
|
-
line-height:
|
54
|
+
background-color: var(--sitemap-info-background-color);
|
55
|
+
line-height: var(--sitemap-line-height);
|
53
56
|
font-size: var(--font-size_small);
|
54
|
-
@include border-right-radius(
|
57
|
+
@include mixins.border-right-radius(var(--border-radius_medium));
|
55
58
|
}
|
56
59
|
|
57
60
|
.node_folder {
|
@@ -69,11 +72,11 @@
|
|
69
72
|
}
|
70
73
|
|
71
74
|
li {
|
72
|
-
line-height:
|
75
|
+
line-height: var(--sitemap-line-height);
|
73
76
|
padding-left: var(--spacing-1);
|
74
77
|
|
75
78
|
li {
|
76
|
-
padding-left:
|
79
|
+
padding-left: var(--sitemap-line-height);
|
77
80
|
}
|
78
81
|
}
|
79
82
|
}
|
@@ -86,12 +89,12 @@
|
|
86
89
|
.sitemap_node {
|
87
90
|
display: flex;
|
88
91
|
align-items: center;
|
89
|
-
height:
|
92
|
+
height: var(--sitemap-line-height);
|
90
93
|
margin: var(--spacing-3) 0;
|
91
|
-
transition: background-color
|
94
|
+
transition: background-color var(--transition-duration);
|
92
95
|
|
93
96
|
&.highlight {
|
94
|
-
background-color:
|
97
|
+
background-color: var(--sitemap-highlight-color);
|
95
98
|
}
|
96
99
|
|
97
100
|
&.no-match .sitemap_pagename_link {
|
@@ -99,25 +102,25 @@
|
|
99
102
|
}
|
100
103
|
|
101
104
|
&:hover {
|
102
|
-
background-color:
|
103
|
-
border-radius:
|
105
|
+
background-color: var(--sitemap-page-hover-color);
|
106
|
+
border-radius: var(--border-radius_medium);
|
104
107
|
}
|
105
108
|
|
106
109
|
.node_name {
|
107
110
|
display: flex;
|
108
|
-
height:
|
111
|
+
height: var(--sitemap-line-height);
|
109
112
|
flex: 1;
|
110
113
|
justify-content: space-between;
|
111
|
-
@include border-left-radius(
|
114
|
+
@include mixins.border-left-radius(var(--border-radius_medium));
|
112
115
|
padding: 0 0 0 10px;
|
113
116
|
margin: var(--spacing-0);
|
114
117
|
text-decoration: none;
|
115
118
|
overflow: hidden;
|
116
|
-
background-color:
|
119
|
+
background-color: var(--sitemap-page-background-color);
|
117
120
|
cursor: move;
|
118
121
|
|
119
122
|
&.without-status {
|
120
|
-
@include border-right-radius(
|
123
|
+
@include mixins.border-right-radius(var(--border-radius_medium));
|
121
124
|
}
|
122
125
|
|
123
126
|
&.inactive {
|
@@ -132,20 +135,20 @@
|
|
132
135
|
align-items: center;
|
133
136
|
position: relative;
|
134
137
|
width: 32px;
|
135
|
-
height:
|
138
|
+
height: var(--sitemap-line-height);
|
136
139
|
padding: 0 var(--spacing-2);
|
137
140
|
}
|
138
141
|
|
139
142
|
.nodes_tree-right_tools {
|
140
143
|
display: flex;
|
141
|
-
height:
|
144
|
+
height: var(--sitemap-line-height);
|
142
145
|
padding: 0 var(--spacing-2);
|
143
146
|
align-items: center;
|
144
147
|
|
145
148
|
> a {
|
146
149
|
display: inline-flex;
|
147
|
-
width:
|
148
|
-
height:
|
150
|
+
width: var(--sitemap-line-height);
|
151
|
+
height: var(--sitemap-line-height);
|
149
152
|
align-items: center;
|
150
153
|
text-decoration: none;
|
151
154
|
margin: 0;
|
@@ -1,8 +1,8 @@
|
|
1
1
|
alchemy-message {
|
2
2
|
display: block;
|
3
|
-
border-width:
|
4
|
-
border-style:
|
5
|
-
border-radius:
|
3
|
+
border-width: var(--border-width_small);
|
4
|
+
border-style: var(--border-style);
|
5
|
+
border-radius: var(--border-radius_medium);
|
6
6
|
position: relative;
|
7
7
|
padding: var(--spacing-2) var(--spacing-4) var(--spacing-2) var(--spacing-8);
|
8
8
|
margin-bottom: var(--spacing-2);
|
@@ -21,35 +21,35 @@ alchemy-message {
|
|
21
21
|
}
|
22
22
|
|
23
23
|
&[type="notice"] {
|
24
|
-
border-color:
|
25
|
-
color:
|
26
|
-
background-color:
|
24
|
+
border-color: var(--notice-success-border-color);
|
25
|
+
color: var(--notice-success-text-color);
|
26
|
+
background-color: var(--notice-success-background-color);
|
27
27
|
}
|
28
28
|
|
29
29
|
&[type="hint"] {
|
30
|
-
background-color:
|
31
|
-
border-color:
|
32
|
-
color:
|
30
|
+
background-color: var(--hint-background-color);
|
31
|
+
border-color: var(--hint-background-color);
|
32
|
+
color: var(--hint-text-color);
|
33
33
|
}
|
34
34
|
|
35
35
|
&[type="info"] {
|
36
|
-
background-color:
|
37
|
-
border-color:
|
38
|
-
color:
|
36
|
+
background-color: var(--notice-info-background-color);
|
37
|
+
border-color: var(--notice-info-border-color);
|
38
|
+
color: var(--notice-info-text-color);
|
39
39
|
}
|
40
40
|
|
41
41
|
&[type="error"] {
|
42
|
-
background-color:
|
43
|
-
border-color:
|
44
|
-
color:
|
42
|
+
background-color: var(--notice-error-background-color);
|
43
|
+
border-color: var(--notice-error-border-color);
|
44
|
+
color: var(--notice-error-text-color);
|
45
45
|
}
|
46
46
|
|
47
47
|
&[type="warning"],
|
48
48
|
&[type="warn"],
|
49
49
|
&[type="alert"] {
|
50
|
-
background-color:
|
51
|
-
border-color:
|
52
|
-
color:
|
50
|
+
background-color: var(--notice-warning-background-color);
|
51
|
+
border-color: var(--notice-warning-border-color);
|
52
|
+
color: var(--notice-warning-text-color);
|
53
53
|
}
|
54
54
|
|
55
55
|
alchemy-icon {
|
@@ -74,8 +74,9 @@ alchemy-message {
|
|
74
74
|
margin-top: 0;
|
75
75
|
}
|
76
76
|
|
77
|
-
a {
|
77
|
+
a[href] {
|
78
78
|
text-decoration: underline;
|
79
|
+
color: var(--hint-text-link-color);
|
79
80
|
|
80
81
|
&:hover {
|
81
82
|
color: inherit;
|
@@ -15,7 +15,7 @@
|
|
15
15
|
--size-3: var(--spacing-2, 8px);
|
16
16
|
--small-font-size: var(--font-size_small, 10px);
|
17
17
|
--grey: var(--color-grey_light, hsl(0deg, 0%, 94%));
|
18
|
-
--color: var(--color
|
18
|
+
--color: var(--text-color, hsla(224deg, 23%, 26%, 0.8));
|
19
19
|
--highlight-color: var(--grey);
|
20
20
|
|
21
21
|
display: flex;
|
@@ -48,7 +48,7 @@
|
|
48
48
|
}
|
49
49
|
|
50
50
|
.page-select--page-urlname {
|
51
|
-
color: var(--color-
|
51
|
+
color: var(--text-color-muted, hsla(224deg, 23%, 26%, 0.5));
|
52
52
|
padding-right: var(--size-2);
|
53
53
|
|
54
54
|
.select2-highlighted & {
|
@@ -79,3 +79,19 @@
|
|
79
79
|
padding: var(--size-2) 0 var(--size-2) var(--size-3);
|
80
80
|
font-size: var(--small-font-size);
|
81
81
|
}
|
82
|
+
|
83
|
+
@media (prefers-color-scheme: dark) {
|
84
|
+
.page-select--page {
|
85
|
+
--grey: var(--a-dark-grey, hsl(200deg, 5%, 17.5%));
|
86
|
+
--color: var(--select-text-color, hsl(200deg, 5%, 70%));
|
87
|
+
--highlight-color: var(--select-hover-text-color, hsl(0deg, 0%, 100%));
|
88
|
+
}
|
89
|
+
|
90
|
+
.page-select--page-urlname {
|
91
|
+
color: var(--a-lighter-grey, hsl(200deg, 5%, 70%));
|
92
|
+
}
|
93
|
+
|
94
|
+
.page-select--language-code {
|
95
|
+
--highlight-bg-color: var(--bg-color);
|
96
|
+
}
|
97
|
+
}
|
@@ -0,0 +1,137 @@
|
|
1
|
+
@use "../variables" as vars;
|
2
|
+
|
3
|
+
.pagination-wrapper {
|
4
|
+
display: flex;
|
5
|
+
position: fixed;
|
6
|
+
background: var(--pagination-background-color);
|
7
|
+
bottom: 0;
|
8
|
+
right: 0;
|
9
|
+
width: 100%;
|
10
|
+
left: 0px;
|
11
|
+
height: var(--pagination-height);
|
12
|
+
padding-left: var(--main-menu-width);
|
13
|
+
text-align: left;
|
14
|
+
border-top: 1px solid var(--pagination-border-color, --border-color);
|
15
|
+
z-index: 10;
|
16
|
+
}
|
17
|
+
|
18
|
+
.pagination {
|
19
|
+
display: flex;
|
20
|
+
flex-grow: 1;
|
21
|
+
align-items: center;
|
22
|
+
justify-content: space-between;
|
23
|
+
padding: var(--spacing-2);
|
24
|
+
|
25
|
+
a,
|
26
|
+
span,
|
27
|
+
em {
|
28
|
+
font-size: var(--font-size_medium);
|
29
|
+
font-weight: var(--font-weight_normal);
|
30
|
+
color: var(--icon-color);
|
31
|
+
padding: var(--spacing-1);
|
32
|
+
margin: var(--spacing-0);
|
33
|
+
border-radius: var(--border-radius_medium);
|
34
|
+
}
|
35
|
+
|
36
|
+
a:hover {
|
37
|
+
color: var(--text-color);
|
38
|
+
background-color: var(--border-color);
|
39
|
+
text-decoration: none;
|
40
|
+
}
|
41
|
+
|
42
|
+
span a {
|
43
|
+
padding: 0;
|
44
|
+
}
|
45
|
+
|
46
|
+
.arrows {
|
47
|
+
display: inline-flex;
|
48
|
+
flex-wrap: nowrap;
|
49
|
+
}
|
50
|
+
|
51
|
+
.pages {
|
52
|
+
display: flex;
|
53
|
+
align-items: center;
|
54
|
+
justify-content: center;
|
55
|
+
overflow-x: auto;
|
56
|
+
overflow-y: visible;
|
57
|
+
max-width: 75%;
|
58
|
+
|
59
|
+
@media screen and (max-width: vars.$large-screen-break-point) {
|
60
|
+
max-width: 60vw;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
|
64
|
+
.page {
|
65
|
+
padding: var(--spacing-1) var(--spacing-2);
|
66
|
+
text-align: center;
|
67
|
+
}
|
68
|
+
|
69
|
+
.current {
|
70
|
+
color: var(--pagination-active-text-color);
|
71
|
+
background-color: var(--pagination-active-bg-color);
|
72
|
+
cursor: default;
|
73
|
+
}
|
74
|
+
|
75
|
+
.previous_page {
|
76
|
+
margin-right: var(--spacing-2);
|
77
|
+
}
|
78
|
+
|
79
|
+
.next_page {
|
80
|
+
margin-left: var(--spacing-2);
|
81
|
+
}
|
82
|
+
|
83
|
+
.disabled {
|
84
|
+
color: var(--pagination-disabled-text-color);
|
85
|
+
}
|
86
|
+
|
87
|
+
.gap {
|
88
|
+
border: none;
|
89
|
+
background: transparent;
|
90
|
+
cursor: default;
|
91
|
+
margin: 0;
|
92
|
+
color: var(--pagination-disabled-text-color);
|
93
|
+
}
|
94
|
+
|
95
|
+
.next_page,
|
96
|
+
.previous_page,
|
97
|
+
.first-page,
|
98
|
+
.last-page,
|
99
|
+
.gap {
|
100
|
+
display: inline-flex;
|
101
|
+
align-items: center;
|
102
|
+
justify-content: center;
|
103
|
+
}
|
104
|
+
|
105
|
+
.icon {
|
106
|
+
fill: currentColor;
|
107
|
+
}
|
108
|
+
}
|
109
|
+
|
110
|
+
.per-page-select-form {
|
111
|
+
display: inline-flex;
|
112
|
+
align-items: center;
|
113
|
+
flex-shrink: 0;
|
114
|
+
justify-content: end;
|
115
|
+
width: var(--sidebar-width);
|
116
|
+
margin-left: auto;
|
117
|
+
padding: var(--spacing-2);
|
118
|
+
|
119
|
+
@media screen and (max-width: vars.$large-screen-break-point) {
|
120
|
+
--sidebar-width: auto;
|
121
|
+
|
122
|
+
label span {
|
123
|
+
display: none;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
127
|
+
@media screen and (max-width: vars.$medium-screen-break-point) {
|
128
|
+
display: none;
|
129
|
+
}
|
130
|
+
}
|
131
|
+
|
132
|
+
#assign_image_list .pagination-wrapper,
|
133
|
+
#assign_file_list .pagination-wrapper {
|
134
|
+
position: absolute;
|
135
|
+
padding-left: 0;
|
136
|
+
padding-right: 0;
|
137
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
@use "../variables" as vars;
|
2
|
+
|
3
|
+
:root {
|
4
|
+
--preview-window-min-width: 0px;
|
5
|
+
|
6
|
+
@media screen and (min-width: vars.$large-screen-break-point) {
|
7
|
+
--preview-window-min-width: 240px;
|
8
|
+
}
|
9
|
+
}
|
10
|
+
|
11
|
+
#alchemy_preview_window {
|
12
|
+
position: absolute;
|
13
|
+
left: var(--main-menu-width);
|
14
|
+
top: 75px;
|
15
|
+
width: calc(
|
16
|
+
100vw - var(--main-menu-width) - var(--elements-window-width) +
|
17
|
+
var(--border-width_small)
|
18
|
+
);
|
19
|
+
min-width: var(--preview-window-min-width);
|
20
|
+
max-width: calc(100vw - var(--main-menu-width));
|
21
|
+
height: calc(100vh - var(--top-menu-height));
|
22
|
+
border: 0 none;
|
23
|
+
|
24
|
+
// This seems weird, but the correct way to create iframes that handle light/dark themes.
|
25
|
+
// https://fvsch.com/transparent-iframes
|
26
|
+
background-color: white;
|
27
|
+
color-scheme: light;
|
28
|
+
|
29
|
+
border-right: var(--border-default);
|
30
|
+
transition-duration: var(--transition-duration);
|
31
|
+
transition-timing-function: var(--transition-duration);
|
32
|
+
transition-property: width, max-width;
|
33
|
+
|
34
|
+
.elements-window-visible & {
|
35
|
+
max-width: calc(
|
36
|
+
100vw - var(--main-menu-width) - var(--elements-window-min-width) +
|
37
|
+
var(--border-width_small)
|
38
|
+
);
|
39
|
+
}
|
40
|
+
}
|
41
|
+
|
42
|
+
@media (prefers-color-scheme: dark) {
|
43
|
+
#alchemy_preview_window {
|
44
|
+
color-scheme: dark;
|
45
|
+
}
|
46
|
+
}
|
@@ -0,0 +1,148 @@
|
|
1
|
+
@use "base";
|
2
|
+
@use "../mixins";
|
3
|
+
|
4
|
+
.resource-details {
|
5
|
+
display: flex;
|
6
|
+
gap: var(--spacing-5);
|
7
|
+
--form-left-column-width: 30%;
|
8
|
+
--form-right-column-width: 70%;
|
9
|
+
|
10
|
+
> .resource-preview {
|
11
|
+
flex-grow: 0;
|
12
|
+
width: 50%;
|
13
|
+
|
14
|
+
&:empty {
|
15
|
+
display: none;
|
16
|
+
}
|
17
|
+
}
|
18
|
+
|
19
|
+
aside {
|
20
|
+
flex-grow: 1;
|
21
|
+
}
|
22
|
+
|
23
|
+
.resource_info {
|
24
|
+
margin-bottom: var(--spacing-4);
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
.resource-preview {
|
29
|
+
iframe {
|
30
|
+
width: 100%;
|
31
|
+
background-color: white;
|
32
|
+
min-height: 565px;
|
33
|
+
}
|
34
|
+
}
|
35
|
+
|
36
|
+
.resource_info {
|
37
|
+
.value {
|
38
|
+
position: relative;
|
39
|
+
@include mixins.clearfix;
|
40
|
+
|
41
|
+
> label {
|
42
|
+
@include mixins.form-label;
|
43
|
+
}
|
44
|
+
|
45
|
+
> p {
|
46
|
+
float: right;
|
47
|
+
width: var(--form-right-column-width);
|
48
|
+
margin: var(--form-field-margin);
|
49
|
+
padding: var(--spacing-1) var(--spacing-2);
|
50
|
+
line-height: 21px;
|
51
|
+
min-height: var(--form-field-height);
|
52
|
+
background: var(--form-field-background-color);
|
53
|
+
border-radius: var(--border-radius_medium);
|
54
|
+
@include mixins.truncate(var(--form-right-column-width));
|
55
|
+
}
|
56
|
+
|
57
|
+
&.with-icon {
|
58
|
+
> p {
|
59
|
+
white-space: nowrap;
|
60
|
+
padding-right: 40px;
|
61
|
+
}
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
65
|
+
.icon_button--right {
|
66
|
+
display: flex;
|
67
|
+
align-items: center;
|
68
|
+
justify-content: center;
|
69
|
+
position: absolute;
|
70
|
+
right: 0;
|
71
|
+
top: var(--spacing-1);
|
72
|
+
height: var(--form-field-height);
|
73
|
+
background-color: var(--form-field-addon-background-color);
|
74
|
+
padding: 0 var(--spacing-2);
|
75
|
+
transition: background-color 0.3s;
|
76
|
+
@extend .right-rounded-border;
|
77
|
+
|
78
|
+
&:hover {
|
79
|
+
cursor: pointer;
|
80
|
+
background-color: var(--icon-button-hover-bg-color);
|
81
|
+
text-decoration: none;
|
82
|
+
}
|
83
|
+
}
|
84
|
+
|
85
|
+
&.file-infos .value {
|
86
|
+
label {
|
87
|
+
text-align: left;
|
88
|
+
width: 30%;
|
89
|
+
}
|
90
|
+
|
91
|
+
p {
|
92
|
+
max-width: 70%;
|
93
|
+
width: 70%;
|
94
|
+
}
|
95
|
+
}
|
96
|
+
}
|
97
|
+
|
98
|
+
.file-infos,
|
99
|
+
.resource-usage-info {
|
100
|
+
margin-top: var(--spacing-4);
|
101
|
+
|
102
|
+
alchemy-message {
|
103
|
+
margin: var(--spacing-5) 0;
|
104
|
+
}
|
105
|
+
|
106
|
+
h3 {
|
107
|
+
font-size: 1rem;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
.resource_page_list {
|
112
|
+
padding-left: 0;
|
113
|
+
list-style-type: none;
|
114
|
+
|
115
|
+
h3 {
|
116
|
+
display: flex;
|
117
|
+
align-items: center;
|
118
|
+
gap: var(--spacing-1);
|
119
|
+
padding: var(--spacing-1) var(--spacing-2) 0;
|
120
|
+
margin: 0;
|
121
|
+
}
|
122
|
+
|
123
|
+
.list {
|
124
|
+
margin: var(--spacing-2) 0;
|
125
|
+
|
126
|
+
li {
|
127
|
+
display: flex;
|
128
|
+
align-items: center;
|
129
|
+
gap: var(--spacing-1);
|
130
|
+
padding: var(--spacing-2);
|
131
|
+
border-radius: var(--border-radius_medium);
|
132
|
+
white-space: normal;
|
133
|
+
margin-bottom: 1em;
|
134
|
+
}
|
135
|
+
}
|
136
|
+
|
137
|
+
p {
|
138
|
+
margin: 0;
|
139
|
+
}
|
140
|
+
|
141
|
+
a {
|
142
|
+
color: var(--text-color);
|
143
|
+
|
144
|
+
&:hover {
|
145
|
+
color: var(--text-link-color);
|
146
|
+
}
|
147
|
+
}
|
148
|
+
}
|
@@ -1,3 +1,6 @@
|
|
1
|
+
@use "../mixins";
|
2
|
+
@use "../variables" as vars;
|
3
|
+
|
1
4
|
.search_field {
|
2
5
|
position: relative;
|
3
6
|
margin-bottom: var(--spacing-1);
|
@@ -56,10 +59,10 @@
|
|
56
59
|
width: 0;
|
57
60
|
height: 100%;
|
58
61
|
border: none;
|
59
|
-
background-color:
|
62
|
+
background-color: var(--search-field-background-color);
|
60
63
|
transition:
|
61
|
-
width
|
62
|
-
background-color
|
64
|
+
width var(--transition-duration) ease-in-out,
|
65
|
+
background-color var(--transition-duration) linear;
|
63
66
|
border-radius: 0;
|
64
67
|
padding: var(--spacing-2) var(--spacing-4) var(--spacing-2) var(--spacing-8);
|
65
68
|
margin: 0;
|
@@ -67,16 +70,16 @@
|
|
67
70
|
box-shadow: none;
|
68
71
|
-webkit-appearance: none;
|
69
72
|
|
70
|
-
@media screen and (min-width:
|
73
|
+
@media screen and (min-width: vars.$medium-screen-break-point) {
|
71
74
|
width: 150px;
|
72
75
|
}
|
73
76
|
|
74
77
|
&:focus {
|
75
78
|
width: 250px;
|
76
|
-
background-color:
|
79
|
+
background-color: var(--form-field-background-color);
|
77
80
|
|
78
|
-
@include default-focus-style(
|
79
|
-
$box-shadow: inset 0 0 0 2px
|
81
|
+
@include mixins.default-focus-style(
|
82
|
+
$box-shadow: inset 0 0 0 2px var(--focus-color),
|
80
83
|
$border-radius: 0
|
81
84
|
);
|
82
85
|
}
|