alchemy_cms 7.0.8 → 7.1.0.pre.b1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/backport.yml +36 -0
- data/.github/workflows/test.yml +3 -2
- data/.gitignore +1 -0
- data/.standard.yml +1 -1
- data/CHANGELOG.md +145 -0
- data/Gemfile +8 -10
- data/README.md +10 -8
- data/alchemy_cms.gemspec +3 -2
- data/app/assets/config/alchemy_manifest.js +0 -1
- data/app/assets/javascripts/alchemy/admin.js +1 -19
- data/app/assets/javascripts/alchemy/alchemy.confirm_dialog.js.coffee +2 -3
- data/app/assets/javascripts/alchemy/alchemy.dialog.js.coffee +19 -34
- data/app/assets/javascripts/alchemy/alchemy.elements_window.js.coffee +38 -13
- data/app/assets/javascripts/alchemy/alchemy.file_progress.js.coffee +1 -1
- data/app/assets/javascripts/alchemy/alchemy.fixed_elements.js +32 -25
- data/app/assets/javascripts/alchemy/alchemy.growler.js.coffee +1 -1
- data/app/assets/javascripts/alchemy/alchemy.image_overlay.coffee +3 -5
- data/app/assets/javascripts/alchemy/alchemy.initializer.js.coffee +0 -57
- data/app/assets/javascripts/alchemy/alchemy.link_dialog.js.coffee +22 -63
- data/app/assets/javascripts/alchemy/alchemy.list_filter.js.coffee +2 -2
- data/app/assets/javascripts/alchemy/alchemy.preview.js.coffee +5 -4
- data/app/assets/javascripts/alchemy/alchemy.preview_window.js.coffee +5 -5
- data/app/assets/javascripts/alchemy/templates/index.js +0 -2
- data/app/assets/javascripts/alchemy/templates/node_folder.hbs +1 -1
- data/app/assets/javascripts/alchemy/templates/page.hbs +1 -1
- data/app/assets/javascripts/alchemy/templates/page_folder.hbs +2 -2
- data/app/assets/stylesheets/alchemy/_custom-properties.scss +82 -0
- data/app/assets/stylesheets/alchemy/_mixins.scss +38 -30
- data/app/assets/stylesheets/alchemy/_variables.scss +12 -5
- data/app/assets/stylesheets/alchemy/admin.scss +3 -4
- data/app/assets/stylesheets/alchemy/archive.scss +107 -50
- data/app/assets/stylesheets/alchemy/attachments.scss +5 -4
- data/app/assets/stylesheets/alchemy/buttons.scss +38 -164
- data/app/assets/stylesheets/alchemy/dashboard.scss +31 -6
- data/app/assets/stylesheets/alchemy/dialogs.scss +12 -28
- data/app/assets/stylesheets/alchemy/elements.scss +273 -282
- data/app/assets/stylesheets/alchemy/flash.scss +20 -12
- data/app/assets/stylesheets/alchemy/forms.scss +21 -34
- data/app/assets/stylesheets/alchemy/frame.scss +11 -32
- data/app/assets/stylesheets/alchemy/hints.scss +4 -62
- data/app/assets/stylesheets/alchemy/image_library.scss +36 -33
- data/app/assets/stylesheets/alchemy/menubar.scss +7 -6
- data/app/assets/stylesheets/alchemy/navigation.scss +27 -15
- data/app/assets/stylesheets/alchemy/nodes.scss +11 -7
- data/app/assets/stylesheets/alchemy/notices.scss +16 -4
- data/app/assets/stylesheets/alchemy/page-select.scss +10 -2
- data/app/assets/stylesheets/alchemy/pagination.scss +22 -13
- data/app/assets/stylesheets/alchemy/resource_info.scss +7 -5
- data/app/assets/stylesheets/alchemy/selects.scss +49 -42
- data/app/assets/stylesheets/alchemy/shoelace.scss +345 -0
- data/app/assets/stylesheets/alchemy/sitemap.scss +24 -14
- data/app/assets/stylesheets/alchemy/spinner.scss +9 -19
- data/app/assets/stylesheets/alchemy/tables.scss +16 -24
- data/app/assets/stylesheets/alchemy/tags.scss +4 -0
- data/app/assets/stylesheets/alchemy/toolbar.scss +29 -25
- data/app/assets/stylesheets/alchemy/upload.scss +140 -89
- data/app/assets/stylesheets/tinymce/skins/alchemy/skin.min.css.scss +80 -108
- data/app/components/alchemy/admin/node_select.rb +39 -0
- data/app/components/alchemy/admin/page_select.rb +42 -0
- data/app/controllers/alchemy/admin/base_controller.rb +5 -6
- data/app/controllers/alchemy/admin/elements_controller.rb +63 -35
- data/app/controllers/alchemy/base_controller.rb +4 -2
- data/app/controllers/concerns/alchemy/admin/uploader_responses.rb +1 -1
- data/app/controllers/concerns/alchemy/site_redirects.rb +1 -1
- data/app/decorators/alchemy/element_editor.rb +0 -2
- data/app/helpers/alchemy/admin/attachments_helper.rb +6 -5
- data/app/helpers/alchemy/admin/base_helper.rb +17 -12
- data/app/helpers/alchemy/admin/ingredients_helper.rb +4 -1
- data/app/helpers/alchemy/admin/pages_helper.rb +5 -11
- data/app/helpers/alchemy/base_helper.rb +47 -13
- data/app/javascript/alchemy_admin/components/alchemy_html_element.js +129 -0
- data/app/javascript/alchemy_admin/components/button.js +59 -0
- data/app/javascript/alchemy_admin/components/char_counter.js +40 -0
- data/app/javascript/alchemy_admin/components/datepicker.js +39 -0
- data/app/javascript/alchemy_admin/components/dialog_link.js +45 -0
- data/app/javascript/alchemy_admin/components/element_editor/publish_element_button.js +36 -0
- data/app/javascript/alchemy_admin/components/element_editor.js +553 -0
- data/app/javascript/alchemy_admin/components/ingredient_group.js +54 -0
- data/app/javascript/alchemy_admin/components/link_buttons/link_button.js +48 -0
- data/app/javascript/alchemy_admin/components/link_buttons/unlink_button.js +38 -0
- data/app/javascript/alchemy_admin/components/link_buttons.js +79 -0
- data/app/javascript/alchemy_admin/components/node_select.js +45 -0
- data/app/javascript/alchemy_admin/components/overlay.js +18 -0
- data/app/javascript/alchemy_admin/components/page_select.js +63 -0
- data/app/javascript/alchemy_admin/components/remote_select.js +134 -0
- data/app/javascript/alchemy_admin/components/select.js +12 -0
- data/app/javascript/alchemy_admin/components/spinner.js +31 -0
- data/app/javascript/alchemy_admin/components/tinymce.js +146 -0
- data/app/javascript/alchemy_admin/components/uploader/file_upload.js +266 -0
- data/app/javascript/alchemy_admin/components/uploader/progress.js +258 -0
- data/app/javascript/alchemy_admin/components/uploader.js +132 -0
- data/app/javascript/alchemy_admin/dirty.js +49 -0
- data/app/javascript/alchemy_admin/file_editors.js +1 -1
- data/app/javascript/alchemy_admin/gui.js +14 -0
- data/app/javascript/alchemy_admin/i18n.js +12 -8
- data/app/javascript/alchemy_admin/image_cropper.js +6 -3
- data/app/javascript/alchemy_admin/image_loader.js +7 -15
- data/app/javascript/alchemy_admin/ingredient_anchor_link.js +2 -5
- data/app/javascript/alchemy_admin/initializer.js +65 -0
- data/app/javascript/alchemy_admin/locales/en.js +31 -0
- data/app/javascript/alchemy_admin/picture_editors.js +2 -2
- data/app/javascript/alchemy_admin/picture_selector.js +38 -0
- data/app/javascript/alchemy_admin/please_wait_overlay.js +8 -0
- data/app/javascript/alchemy_admin/sortable_elements.js +78 -0
- data/app/javascript/alchemy_admin/spinner.js +36 -0
- data/app/javascript/alchemy_admin/tags_autocomplete.js +46 -0
- data/app/javascript/alchemy_admin/utils/ajax.js +6 -5
- data/app/javascript/alchemy_admin/utils/dom_helpers.js +20 -0
- data/app/javascript/alchemy_admin/utils/format.js +11 -0
- data/app/javascript/alchemy_admin/utils/string_conversions.js +10 -0
- data/app/javascript/alchemy_admin.js +70 -13
- data/app/javascript/menubar.js +10 -0
- data/app/models/alchemy/attachment.rb +9 -11
- data/app/models/alchemy/element.rb +11 -0
- data/app/models/alchemy/ingredients/richtext.rb +1 -10
- data/app/models/alchemy/node.rb +4 -0
- data/app/models/alchemy/page/page_natures.rb +10 -2
- data/app/models/alchemy/page.rb +9 -49
- data/app/models/alchemy/picture/url.rb +1 -9
- data/app/serializers/alchemy/page_tree_serializer.rb +2 -1
- data/app/services/alchemy/copy_page.rb +98 -0
- data/app/views/alchemy/_menubar.html.erb +17 -13
- data/app/views/alchemy/admin/attachments/_archive_overlay.html.erb +14 -10
- data/app/views/alchemy/admin/attachments/_attachment.html.erb +44 -36
- data/app/views/alchemy/admin/attachments/_replace_button.html.erb +15 -21
- data/app/views/alchemy/admin/attachments/archive_overlay.js.erb +0 -1
- data/app/views/alchemy/admin/attachments/assign.js.erb +1 -1
- data/app/views/alchemy/admin/attachments/index.html.erb +6 -4
- data/app/views/alchemy/admin/attachments/show.html.erb +8 -8
- data/app/views/alchemy/admin/clipboard/clear.js.erb +1 -1
- data/app/views/alchemy/admin/clipboard/index.html.erb +3 -7
- data/app/views/alchemy/admin/clipboard/insert.js.erb +1 -1
- data/app/views/alchemy/admin/crop.html.erb +1 -1
- data/app/views/alchemy/admin/dashboard/_locked_pages.html.erb +1 -1
- data/app/views/alchemy/admin/dashboard/index.html.erb +13 -11
- data/app/views/alchemy/admin/dashboard/info.html.erb +7 -7
- data/app/views/alchemy/admin/elements/_add_nested_element_form.html.erb +21 -23
- data/app/views/alchemy/admin/elements/_element.html.erb +52 -44
- data/app/views/alchemy/admin/elements/_footer.html.erb +1 -1
- data/app/views/alchemy/admin/elements/_form.html.erb +1 -1
- data/app/views/alchemy/admin/elements/_header.html.erb +11 -12
- data/app/views/alchemy/admin/elements/_toolbar.html.erb +33 -45
- data/app/views/alchemy/admin/elements/create.js.erb +7 -15
- data/app/views/alchemy/admin/elements/destroy.js.erb +0 -2
- data/app/views/alchemy/admin/elements/index.html.erb +27 -24
- data/app/views/alchemy/admin/elements/new.html.erb +9 -11
- data/app/views/alchemy/admin/ingredients/_file_fields.html.erb +2 -2
- data/app/views/alchemy/admin/ingredients/_picture_fields.html.erb +3 -3
- data/app/views/alchemy/admin/ingredients/_video_fields.html.erb +1 -2
- data/app/views/alchemy/admin/languages/_form.html.erb +2 -3
- data/app/views/alchemy/admin/languages/_language.html.erb +15 -8
- data/app/views/alchemy/admin/languages/_table.html.erb +1 -0
- data/app/views/alchemy/admin/layoutpages/_layoutpage.html.erb +28 -16
- data/app/views/alchemy/admin/layoutpages/index.html.erb +2 -2
- data/app/views/alchemy/admin/legacy_page_urls/_legacy_page_url.html.erb +12 -8
- data/app/views/alchemy/admin/legacy_page_urls/_new.html.erb +1 -1
- data/app/views/alchemy/admin/nodes/_form.html.erb +20 -21
- data/app/views/alchemy/admin/nodes/_node.html.erb +39 -34
- data/app/views/alchemy/admin/nodes/index.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_anchor_link.html.erb +4 -4
- data/app/views/alchemy/admin/pages/_create_language_form.html.erb +2 -2
- data/app/views/alchemy/admin/pages/_current_page.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_external_link.html.erb +4 -4
- data/app/views/alchemy/admin/pages/_file_link.html.erb +5 -5
- data/app/views/alchemy/admin/pages/_form.html.erb +10 -21
- data/app/views/alchemy/admin/pages/_internal_link.html.erb +4 -4
- data/app/views/alchemy/admin/pages/_locked_page.html.erb +2 -2
- data/app/views/alchemy/admin/pages/_new_page_form.html.erb +4 -17
- data/app/views/alchemy/admin/pages/_page.html.erb +76 -72
- data/app/views/alchemy/admin/pages/_page_infos.html.erb +23 -7
- data/app/views/alchemy/admin/pages/_page_layout_filter.html.erb +2 -1
- data/app/views/alchemy/admin/pages/_page_status.html.erb +11 -21
- data/app/views/alchemy/admin/pages/_publication_fields.html.erb +2 -5
- data/app/views/alchemy/admin/pages/_table.html.erb +1 -1
- data/app/views/alchemy/admin/pages/_table_row.html.erb +43 -39
- data/app/views/alchemy/admin/pages/_toolbar.html.erb +43 -38
- data/app/views/alchemy/admin/pages/configure.html.erb +12 -14
- data/app/views/alchemy/admin/pages/edit.html.erb +80 -103
- data/app/views/alchemy/admin/pages/info.html.erb +20 -11
- data/app/views/alchemy/admin/pages/link.html.erb +22 -16
- data/app/views/alchemy/admin/pages/new.html.erb +9 -11
- data/app/views/alchemy/admin/pages/unlock.js.erb +10 -3
- data/app/views/alchemy/admin/partials/_language_tree_select.html.erb +15 -13
- data/app/views/alchemy/admin/partials/_main_navigation_entry.html.erb +3 -5
- data/app/views/alchemy/admin/partials/_routes.html.erb +10 -2
- data/app/views/alchemy/admin/partials/_site_select.html.erb +6 -5
- data/app/views/alchemy/admin/partials/_toolbar_button.html.erb +28 -23
- data/app/views/alchemy/admin/pictures/_archive.html.erb +5 -5
- data/app/views/alchemy/admin/pictures/_archive_overlay.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/_filter_and_size_bar.html.erb +21 -23
- data/app/views/alchemy/admin/pictures/_infos.html.erb +2 -6
- data/app/views/alchemy/admin/pictures/_picture.html.erb +15 -17
- data/app/views/alchemy/admin/pictures/_picture_to_assign.html.erb +17 -16
- data/app/views/alchemy/admin/pictures/_tag_list.html.erb +1 -1
- data/app/views/alchemy/admin/pictures/archive_overlay.js.erb +1 -1
- data/app/views/alchemy/admin/pictures/assign.js.erb +1 -1
- data/app/views/alchemy/admin/pictures/index.html.erb +34 -30
- data/app/views/alchemy/admin/pictures/show.html.erb +3 -3
- data/app/views/alchemy/admin/resources/_filter.html.erb +1 -1
- data/app/views/alchemy/admin/resources/_form.html.erb +2 -2
- data/app/views/alchemy/admin/resources/_resource.html.erb +16 -9
- data/app/views/alchemy/admin/resources/_table.html.erb +4 -1
- data/app/views/alchemy/admin/resources/index.html.erb +22 -19
- data/app/views/alchemy/admin/sites/index.html.erb +2 -1
- data/app/views/alchemy/admin/styleguide/index.html.erb +54 -28
- data/app/views/alchemy/admin/tags/_tag.html.erb +16 -14
- data/app/views/alchemy/admin/tags/index.html.erb +15 -12
- data/app/views/alchemy/admin/tinymce/_setup.html.erb +29 -0
- data/app/views/alchemy/admin/uploader/_button.html.erb +23 -29
- data/app/views/alchemy/admin/uploader/_setup.html.erb +3 -8
- data/app/views/alchemy/base/500.html.erb +1 -1
- data/app/views/alchemy/base/error_notice.js.erb +0 -1
- data/app/views/alchemy/ingredients/_boolean_editor.html.erb +1 -1
- data/app/views/alchemy/ingredients/_datetime_editor.html.erb +1 -1
- data/app/views/alchemy/ingredients/_file_editor.html.erb +5 -5
- data/app/views/alchemy/ingredients/_link_editor.html.erb +1 -1
- data/app/views/alchemy/ingredients/_node_editor.html.erb +6 -19
- data/app/views/alchemy/ingredients/_page_editor.html.erb +7 -19
- data/app/views/alchemy/ingredients/_picture_editor.html.erb +2 -2
- data/app/views/alchemy/ingredients/_richtext_editor.html.erb +6 -15
- data/app/views/alchemy/ingredients/_select_editor.html.erb +2 -1
- data/app/views/alchemy/ingredients/_text_editor.html.erb +1 -1
- data/app/views/alchemy/ingredients/shared/_anchor.html.erb +1 -1
- data/app/views/alchemy/ingredients/shared/_link_tools.html.erb +10 -20
- data/app/views/alchemy/ingredients/shared/_picture_tools.html.erb +42 -49
- data/app/views/kaminari/alchemy/_first_page.html.erb +4 -2
- data/app/views/kaminari/alchemy/_gap.html.erb +1 -1
- data/app/views/kaminari/alchemy/_last_page.html.erb +4 -2
- data/app/views/kaminari/alchemy/_next_page.html.erb +4 -2
- data/app/views/kaminari/alchemy/_prev_page.html.erb +4 -2
- data/app/views/layouts/alchemy/admin.html.erb +10 -29
- data/config/alchemy/modules.yml +30 -30
- data/config/importmap.rb +10 -1
- data/config/initializers/rails_live_reload.rb +13 -0
- data/config/locales/alchemy.en.yml +23 -9
- data/config/routes.rb +2 -1
- data/lib/alchemy/auth_accessors.rb +6 -1
- data/lib/alchemy/dev_support/live_reload_watcher.rb +5 -0
- data/lib/alchemy/engine.rb +8 -2
- data/lib/alchemy/forms/builder.rb +18 -12
- data/lib/alchemy/resources_helper.rb +3 -3
- data/lib/alchemy/test_support/capybara_helpers.rb +8 -5
- data/lib/alchemy/test_support/rspec_matchers.rb +14 -0
- data/lib/alchemy/test_support/shared_uploader_examples.rb +1 -1
- data/lib/alchemy/tinymce.rb +8 -3
- data/lib/alchemy/version.rb +1 -1
- data/package.json +14 -5
- data/vendor/assets/fonts/remixicon.eot +0 -0
- data/vendor/assets/fonts/remixicon.svg +7816 -0
- data/vendor/assets/fonts/remixicon.ttf +0 -0
- data/vendor/assets/fonts/remixicon.woff +0 -0
- data/vendor/assets/fonts/remixicon.woff2 +0 -0
- data/vendor/assets/stylesheets/remixicon.scss +10480 -0
- metadata +83 -88
- data/app/assets/javascripts/alchemy/alchemy.autocomplete.js.coffee +0 -30
- data/app/assets/javascripts/alchemy/alchemy.base.js.coffee +0 -53
- data/app/assets/javascripts/alchemy/alchemy.buttons.js.coffee +0 -45
- data/app/assets/javascripts/alchemy/alchemy.char_counter.js.coffee +0 -19
- data/app/assets/javascripts/alchemy/alchemy.dirty.js.coffee +0 -59
- data/app/assets/javascripts/alchemy/alchemy.dragndrop.js.coffee +0 -79
- data/app/assets/javascripts/alchemy/alchemy.element_editors.js.coffee +0 -267
- data/app/assets/javascripts/alchemy/alchemy.gui.js.coffee +0 -27
- data/app/assets/javascripts/alchemy/alchemy.spinner.js +0 -32
- data/app/assets/javascripts/alchemy/alchemy.tooltips.coffee +0 -10
- data/app/assets/javascripts/alchemy/alchemy.uploader.js.coffee +0 -131
- data/app/assets/javascripts/alchemy/menubar.js.coffee +0 -8
- data/app/assets/javascripts/alchemy/node_select.js +0 -39
- data/app/assets/javascripts/alchemy/page_select.js +0 -46
- data/app/assets/javascripts/alchemy/templates/node.hbs +0 -16
- data/app/assets/javascripts/alchemy/templates/spinner.hbs +0 -7
- data/app/assets/stylesheets/alchemy/jquery-ui.scss +0 -435
- data/app/javascript/alchemy_admin/datepicker.js +0 -33
- data/app/javascript/alchemy_admin/tinymce.js +0 -146
- data/app/javascript/alchemy_admin/translations.js +0 -32
- data/app/views/alchemy/admin/elements/fold.js.erb +0 -33
- data/app/views/alchemy/admin/elements/order.js.erb +0 -11
- data/app/views/alchemy/admin/elements/publish.js.erb +0 -21
- data/app/views/alchemy/admin/elements/update.js.erb +0 -27
- data/vendor/assets/fonts/fa-regular-400.eot +0 -0
- data/vendor/assets/fonts/fa-regular-400.svg +0 -803
- data/vendor/assets/fonts/fa-regular-400.ttf +0 -0
- data/vendor/assets/fonts/fa-regular-400.woff +0 -0
- data/vendor/assets/fonts/fa-regular-400.woff2 +0 -0
- data/vendor/assets/fonts/fa-solid-900.eot +0 -0
- data/vendor/assets/fonts/fa-solid-900.svg +0 -4938
- data/vendor/assets/fonts/fa-solid-900.ttf +0 -0
- data/vendor/assets/fonts/fa-solid-900.woff +0 -0
- data/vendor/assets/fonts/fa-solid-900.woff2 +0 -0
- data/vendor/assets/javascripts/fileupload/jquery.fileupload-process.js +0 -178
- data/vendor/assets/javascripts/fileupload/jquery.fileupload-validate.js +0 -125
- data/vendor/assets/javascripts/fileupload/jquery.fileupload.js +0 -1502
- data/vendor/assets/javascripts/fileupload/jquery.iframe-transport.js +0 -224
- data/vendor/assets/javascripts/jquery-ui/data.js +0 -45
- data/vendor/assets/javascripts/jquery-ui/ie.js +0 -20
- data/vendor/assets/javascripts/jquery-ui/keycode.js +0 -51
- data/vendor/assets/javascripts/jquery-ui/plugin.js +0 -49
- data/vendor/assets/javascripts/jquery-ui/safe-active-element.js +0 -46
- data/vendor/assets/javascripts/jquery-ui/safe-blur.js +0 -27
- data/vendor/assets/javascripts/jquery-ui/scroll-parent.js +0 -50
- data/vendor/assets/javascripts/jquery-ui/unique-id.js +0 -54
- data/vendor/assets/javascripts/jquery-ui/version.js +0 -20
- data/vendor/assets/javascripts/jquery-ui/widget.js +0 -754
- data/vendor/assets/javascripts/jquery-ui/widgets/draggable.js +0 -1268
- data/vendor/assets/javascripts/jquery-ui/widgets/mouse.js +0 -241
- data/vendor/assets/javascripts/jquery-ui/widgets/sortable.js +0 -1623
- data/vendor/assets/javascripts/jquery-ui/widgets/tabs.js +0 -931
- data/vendor/assets/javascripts/jquery_plugins/jquery.scrollTo.min.js +0 -7
- data/vendor/assets/javascripts/jquery_plugins/jquery.ui.tabspaging.js +0 -296
- data/vendor/assets/stylesheets/fontawesome/_animated.scss +0 -20
- data/vendor/assets/stylesheets/fontawesome/_bordered-pulled.scss +0 -20
- data/vendor/assets/stylesheets/fontawesome/_core.scss +0 -21
- data/vendor/assets/stylesheets/fontawesome/_fixed-width.scss +0 -6
- data/vendor/assets/stylesheets/fontawesome/_icons.scss +0 -1441
- data/vendor/assets/stylesheets/fontawesome/_larger.scss +0 -23
- data/vendor/assets/stylesheets/fontawesome/_list.scss +0 -18
- data/vendor/assets/stylesheets/fontawesome/_mixins.scss +0 -56
- data/vendor/assets/stylesheets/fontawesome/_rotated-flipped.scss +0 -24
- data/vendor/assets/stylesheets/fontawesome/_screen-reader.scss +0 -5
- data/vendor/assets/stylesheets/fontawesome/_stacked.scss +0 -31
- data/vendor/assets/stylesheets/fontawesome/_variables.scss +0 -1458
- data/vendor/assets/stylesheets/fontawesome/fontawesome.scss +0 -16
- data/vendor/assets/stylesheets/fontawesome/regular.scss +0 -23
- data/vendor/assets/stylesheets/fontawesome/solid.scss +0 -24
@@ -1,7 +1,8 @@
|
|
1
1
|
@mixin default-focus-style(
|
2
2
|
$border-color: $focus-color,
|
3
3
|
$box-shadow: 0 0 0 2px $focus-color,
|
4
|
-
$border-radius: $default-border-radius
|
4
|
+
$border-radius: $default-border-radius
|
5
|
+
) {
|
5
6
|
border-color: $border-color;
|
6
7
|
border-radius: $border-radius;
|
7
8
|
box-shadow: $box-shadow;
|
@@ -25,12 +26,15 @@
|
|
25
26
|
$color: $button-text-color,
|
26
27
|
$line-height: $form-field-line-height,
|
27
28
|
$focus-border-color: $button-focus-border-color,
|
28
|
-
$focus-box-shadow: $button-focus-box-shadow
|
29
|
-
|
29
|
+
$focus-box-shadow: $button-focus-box-shadow
|
30
|
+
) {
|
31
|
+
display: inline-flex;
|
32
|
+
align-items: center;
|
33
|
+
justify-content: center;
|
30
34
|
font-family: $default-font-family;
|
31
35
|
font-size: $default-font-size;
|
32
36
|
font-weight: $button-font-weight;
|
33
|
-
|
37
|
+
height: 30px;
|
34
38
|
padding: $padding;
|
35
39
|
cursor: pointer;
|
36
40
|
border-radius: $border-radius;
|
@@ -49,7 +53,8 @@
|
|
49
53
|
border-color: $hover-border-color;
|
50
54
|
}
|
51
55
|
|
52
|
-
&:active,
|
56
|
+
&:active,
|
57
|
+
&.active {
|
53
58
|
box-shadow: inset $button-box-shadow;
|
54
59
|
}
|
55
60
|
|
@@ -60,9 +65,12 @@
|
|
60
65
|
);
|
61
66
|
}
|
62
67
|
|
63
|
-
&.disabled,
|
64
|
-
|
65
|
-
&.disabled:
|
68
|
+
&.disabled,
|
69
|
+
&[disabled],
|
70
|
+
&.disabled:active,
|
71
|
+
&[disabled]:active,
|
72
|
+
&.disabled:hover,
|
73
|
+
&[disabled]:hover {
|
66
74
|
background-color: transparentize($button-bg-color, 0.5);
|
67
75
|
cursor: not-allowed;
|
68
76
|
box-shadow: none;
|
@@ -90,14 +98,17 @@
|
|
90
98
|
float: right;
|
91
99
|
width: $form-right-width;
|
92
100
|
margin: $form-field-margin;
|
93
|
-
padding: $default-padding 2
|
101
|
+
padding: $default-padding 2 * $default-padding;
|
94
102
|
line-height: 21px;
|
95
103
|
min-height: $form-field-height;
|
96
104
|
background: white;
|
97
105
|
border-radius: $default-border-radius;
|
98
106
|
}
|
99
107
|
|
100
|
-
@mixin form-hint(
|
108
|
+
@mixin form-hint(
|
109
|
+
$background-color: $light_yellow,
|
110
|
+
$border-color: $medium-gray
|
111
|
+
) {
|
101
112
|
font-size: $small-font-size;
|
102
113
|
line-height: 1.5em;
|
103
114
|
padding: $default-padding;
|
@@ -135,7 +146,10 @@
|
|
135
146
|
box-shadow: $shadow;
|
136
147
|
}
|
137
148
|
|
138
|
-
@mixin label-base(
|
149
|
+
@mixin label-base(
|
150
|
+
$margin: 2 * $default-margin 0,
|
151
|
+
$padding: $default-padding 3 * $default-padding
|
152
|
+
) {
|
139
153
|
display: inline-block;
|
140
154
|
vertical-align: middle;
|
141
155
|
padding: $padding;
|
@@ -147,18 +161,18 @@
|
|
147
161
|
color: $text-color;
|
148
162
|
}
|
149
163
|
|
150
|
-
@mixin tag-base(
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
);
|
164
|
+
@mixin tag-base(
|
165
|
+
$margin: 2 * $default-margin 0,
|
166
|
+
$padding: $default-padding 3 * $default-padding
|
167
|
+
) {
|
168
|
+
@include label-base($margin: $margin, $padding: $padding);
|
155
169
|
|
156
170
|
&:before {
|
157
|
-
content:
|
158
|
-
font-family:
|
159
|
-
font-weight:
|
160
|
-
font-size:
|
161
|
-
padding-right:
|
171
|
+
content: $ri-price-tag-3-line;
|
172
|
+
font-family: "remixicon";
|
173
|
+
font-weight: 400;
|
174
|
+
font-size: 1em;
|
175
|
+
padding-right: $default-padding;
|
162
176
|
}
|
163
177
|
|
164
178
|
&:focus {
|
@@ -169,7 +183,8 @@
|
|
169
183
|
@mixin linked-button(
|
170
184
|
$border-radius: $default-border-radius,
|
171
185
|
$line-height: $form-field-line-height,
|
172
|
-
$padding: 3px
|
186
|
+
$padding: 3px
|
187
|
+
) {
|
173
188
|
@include button-defaults(
|
174
189
|
$line-height: $line-height,
|
175
190
|
$background-color: $linked-button-color,
|
@@ -185,7 +200,7 @@
|
|
185
200
|
|
186
201
|
@mixin zoom-in {
|
187
202
|
cursor: pointer;
|
188
|
-
cursor: image-url(
|
203
|
+
cursor: image-url("alchemy/lupe.cur");
|
189
204
|
cursor: -webkit-zoom-in;
|
190
205
|
cursor: -moz-zoom-in;
|
191
206
|
cursor: zoom-in;
|
@@ -199,13 +214,6 @@
|
|
199
214
|
white-space: $wrap;
|
200
215
|
}
|
201
216
|
|
202
|
-
@mixin hint-hover-style {
|
203
|
-
visibility: visible;
|
204
|
-
top: 26px;
|
205
|
-
opacity: 1;
|
206
|
-
transition-delay: .2s;
|
207
|
-
}
|
208
|
-
|
209
217
|
@mixin clearfix {
|
210
218
|
&::after {
|
211
219
|
clear: both;
|
@@ -59,7 +59,7 @@ $form-field-border-style: $default-border-style !default;
|
|
59
59
|
$form-field-border-color: $default-border-color $default-border-color
|
60
60
|
$border-inset-color $border-inset-color !default;
|
61
61
|
$form-field-box-shadow: inset 0px 0 1px $medium-gray !default;
|
62
|
-
$form-field-padding:
|
62
|
+
$form-field-padding: $default-padding 2 * $default-padding !default;
|
63
63
|
$form-field-font-size: $default-font-size !default;
|
64
64
|
$form-field-line-height: 1.25 !default;
|
65
65
|
$form-field-text-color: $text-color !default;
|
@@ -80,7 +80,7 @@ $button-font-weight: 700 !default;
|
|
80
80
|
$button-text-shadow: none !default;
|
81
81
|
$button-box-shadow: 0px 1px 1px -1px #333 !default;
|
82
82
|
$button-focus-box-shadow: 0px 1px 1px 0px $button-focus-border-color !default;
|
83
|
-
$button-padding:
|
83
|
+
$button-padding: $default-padding 5 * $default-padding !default;
|
84
84
|
$small-button-padding: 0.4em 0.8em !default;
|
85
85
|
$button-margin: $form-field-margin !default;
|
86
86
|
|
@@ -108,7 +108,7 @@ $error_text_color: #a23434 !default;
|
|
108
108
|
$error_background_color: #efd3d3 !default;
|
109
109
|
|
110
110
|
$hint-background-color: $light_yellow !default;
|
111
|
-
$hint-text-color:
|
111
|
+
$hint-text-color: #59543e !default;
|
112
112
|
|
113
113
|
$form-left-width: 35% !default;
|
114
114
|
$form-right-width: 65% !default;
|
@@ -130,6 +130,7 @@ $main-menu-icon-color: $white !default;
|
|
130
130
|
$main-menu-entry-max-width: 110px !default;
|
131
131
|
$toolbar-bg-color: $medium-gray !default;
|
132
132
|
$toolbar-height: 46px !default;
|
133
|
+
$tab-bar-height: 51px !default;
|
133
134
|
$element-toolbar-height: 37px !default;
|
134
135
|
$header-height: 29px !default;
|
135
136
|
$header-background: #d8d8d8 !default;
|
@@ -147,7 +148,7 @@ $table-row-hover-color: rgba($light_yellow, 0.5) !default;
|
|
147
148
|
|
148
149
|
$elements-window-width: 22.5vw !default;
|
149
150
|
$elements-window-min-width: 400px !default;
|
150
|
-
$element-header-bg-color:
|
151
|
+
$element-header-bg-color: transparent !default;
|
151
152
|
$element-header-active-bg-color: $dark-blue !default;
|
152
153
|
$element-header-active-color: $white !default;
|
153
154
|
$element-header-deprecated-bg-color: rgba(253, 213, 175, 0.25) !default;
|
@@ -174,6 +175,12 @@ $select-hover-text-color: $white !default;
|
|
174
175
|
$medium-select-box-width: 90px;
|
175
176
|
$large-select-box-width: 120px;
|
176
177
|
|
177
|
-
$thumbnail-background
|
178
|
+
$thumbnail-background:
|
179
|
+
linear-gradient(45deg, $medium-gray 25%, transparent 25%) 0.5em 0.5em/1em 1em,
|
180
|
+
linear-gradient(-45deg, $medium-gray 25%, transparent 25%) -0.5em 0/1em 1em,
|
181
|
+
linear-gradient(45deg, transparent 75%, $medium-gray 75%) 0 0/1em 1em,
|
182
|
+
linear-gradient(-45deg, transparent 75%, $medium-gray 75%) 0 0.5em/1em 1em
|
183
|
+
$white !default;
|
184
|
+
|
178
185
|
$medium-screen-break-point: 700px;
|
179
186
|
$large-screen-break-point: 1000px;
|
@@ -3,9 +3,8 @@
|
|
3
3
|
*= require_self
|
4
4
|
*/
|
5
5
|
|
6
|
-
@import "
|
7
|
-
@import "
|
8
|
-
@import "fontawesome/solid";
|
6
|
+
@import "remixicon";
|
7
|
+
@import "alchemy/custom-properties";
|
9
8
|
@import "alchemy/defaults";
|
10
9
|
@import "alchemy/archive";
|
11
10
|
@import "alchemy/navigation";
|
@@ -39,6 +38,7 @@
|
|
39
38
|
@import "alchemy/resource_info";
|
40
39
|
@import "alchemy/search";
|
41
40
|
@import "alchemy/selects";
|
41
|
+
@import "alchemy/shoelace";
|
42
42
|
@import "alchemy/sitemap";
|
43
43
|
@import "alchemy/spinner";
|
44
44
|
@import "alchemy/tables";
|
@@ -46,5 +46,4 @@
|
|
46
46
|
@import "alchemy/typography";
|
47
47
|
@import "alchemy/lists";
|
48
48
|
@import "alchemy/upload";
|
49
|
-
@import "alchemy/jquery-ui";
|
50
49
|
@import "jquery.Jcrop.min";
|
@@ -1,5 +1,5 @@
|
|
1
1
|
.resources-header {
|
2
|
-
padding: 2 * $default-padding;
|
2
|
+
padding: 0 2 * $default-padding;
|
3
3
|
}
|
4
4
|
|
5
5
|
.applied-filter {
|
@@ -25,18 +25,14 @@
|
|
25
25
|
}
|
26
26
|
}
|
27
27
|
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
28
|
+
.selected_item_tools {
|
29
|
+
margin: -2 * $default-padding;
|
30
|
+
border-bottom: 1px solid $default-border-color;
|
31
|
+
margin-bottom: 4 * $default-padding;
|
32
|
+
padding: 4 * $default-padding;
|
32
33
|
|
33
|
-
|
34
|
-
|
35
|
-
margin: -2 * $default-padding;
|
36
|
-
border-bottom: 1px solid $default-border-color;
|
37
|
-
margin-bottom: 4 * $default-padding;
|
38
|
-
padding: 4 * $default-padding;
|
39
|
-
display: none;
|
34
|
+
.button {
|
35
|
+
vertical-align: middle;
|
40
36
|
}
|
41
37
|
}
|
42
38
|
|
@@ -45,9 +41,7 @@ div#image_assign_filter_and_image_sizing {
|
|
45
41
|
display: flex;
|
46
42
|
align-items: center;
|
47
43
|
justify-content: center;
|
48
|
-
|
49
|
-
width: 100%;
|
50
|
-
height: 120px;
|
44
|
+
box-shadow: 0 0 1px 1px $default-border-color;
|
51
45
|
|
52
46
|
&:hover {
|
53
47
|
text-decoration: none;
|
@@ -55,55 +49,62 @@ div#image_assign_filter_and_image_sizing {
|
|
55
49
|
}
|
56
50
|
|
57
51
|
.picture_thumbnail {
|
58
|
-
|
59
|
-
|
52
|
+
--picture-thumbnail-border-radius: var(--border-radius_medium);
|
53
|
+
display: flex;
|
54
|
+
align-items: center;
|
55
|
+
justify-content: center;
|
56
|
+
width: var(--picture-thumbnail-width);
|
57
|
+
height: var(--picture-thumbnail-height);
|
60
58
|
position: relative;
|
61
|
-
|
62
|
-
|
59
|
+
border-radius: var(--picture-thumbnail-border-radius);
|
60
|
+
padding: 2 * $default-padding;
|
61
|
+
padding-bottom: 2.5em;
|
62
|
+
transition: all $transition-duration;
|
63
|
+
|
64
|
+
img,
|
65
|
+
.thumbnail_background {
|
66
|
+
border-radius: var(--picture-thumbnail-border-radius);
|
67
|
+
}
|
63
68
|
|
64
69
|
img {
|
65
|
-
width: 100%;
|
66
|
-
height: 100%;
|
67
|
-
|
70
|
+
max-width: 100%;
|
71
|
+
max-height: 100%;
|
72
|
+
background: $thumbnail-background;
|
68
73
|
|
69
|
-
&[src
|
70
|
-
width:
|
71
|
-
height:
|
74
|
+
&[src*=".svg"] {
|
75
|
+
width: var(--picture-width);
|
76
|
+
max-height: var(--picture-height);
|
72
77
|
}
|
73
78
|
}
|
74
79
|
|
75
80
|
.picture_name {
|
76
|
-
|
81
|
+
position: absolute;
|
77
82
|
width: 100%;
|
78
83
|
text-align: center;
|
79
84
|
white-space: nowrap;
|
80
85
|
overflow: hidden;
|
81
86
|
bottom: 0;
|
82
87
|
left: 0;
|
83
|
-
line-height: 2;
|
88
|
+
line-height: 2.5;
|
84
89
|
padding: 0 $default-padding;
|
85
90
|
text-overflow: ellipsis;
|
86
91
|
}
|
87
92
|
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
.
|
92
|
-
|
93
|
+
&:hover,
|
94
|
+
&:focus-within {
|
95
|
+
.picture_tool,
|
96
|
+
.picture_tags {
|
97
|
+
visibility: visible;
|
98
|
+
opacity: 1;
|
93
99
|
}
|
94
100
|
}
|
95
101
|
|
96
|
-
|
97
|
-
|
102
|
+
&:hover,
|
103
|
+
&:focus-within,
|
104
|
+
&.active {
|
105
|
+
box-shadow: 0 0 4px 2px $default-border-color;
|
98
106
|
|
99
|
-
.
|
100
|
-
height: 180px;
|
101
|
-
}
|
102
|
-
}
|
103
|
-
|
104
|
-
&:hover {
|
105
|
-
.picture_tool,
|
106
|
-
.picture_tags {
|
107
|
+
.picture_tool.select {
|
107
108
|
visibility: visible;
|
108
109
|
opacity: 1;
|
109
110
|
}
|
@@ -112,8 +113,34 @@ div#image_assign_filter_and_image_sizing {
|
|
112
113
|
|
113
114
|
#pictures,
|
114
115
|
#overlay_picture_list {
|
115
|
-
|
116
|
-
|
116
|
+
--picture-width: 160px;
|
117
|
+
--picture-height: 120px;
|
118
|
+
--picture-thumbnail-width: calc(var(--picture-width) + var(--spacing-2));
|
119
|
+
--picture-thumbnail-height: calc(
|
120
|
+
var(--picture-height) + var(--spacing-2) + 2.5em
|
121
|
+
);
|
122
|
+
|
123
|
+
display: grid;
|
124
|
+
gap: 2 * $default-margin;
|
125
|
+
grid-template-columns: repeat(
|
126
|
+
auto-fill,
|
127
|
+
minmax(var(--picture-thumbnail-width), auto)
|
128
|
+
);
|
129
|
+
justify-items: center;
|
130
|
+
|
131
|
+
&.picture-size--small {
|
132
|
+
--picture-width: 80px;
|
133
|
+
--picture-height: 60px;
|
134
|
+
}
|
135
|
+
|
136
|
+
&.picture-size--large {
|
137
|
+
--picture-width: 240px;
|
138
|
+
--picture-height: 180px;
|
139
|
+
}
|
140
|
+
}
|
141
|
+
|
142
|
+
#picture_archive {
|
143
|
+
overflow: visible;
|
117
144
|
}
|
118
145
|
|
119
146
|
#pictures {
|
@@ -133,17 +160,23 @@ div.assign_image_list_image {
|
|
133
160
|
}
|
134
161
|
|
135
162
|
.picture_tool {
|
163
|
+
display: flex;
|
136
164
|
width: 20px;
|
137
165
|
height: 20px;
|
166
|
+
align-items: center;
|
167
|
+
justify-content: center;
|
138
168
|
position: absolute;
|
139
169
|
background-color: white;
|
140
170
|
top: $default-padding;
|
141
171
|
padding: $default-padding / 2;
|
142
172
|
z-index: 10;
|
143
|
-
text-align: center;
|
144
173
|
border-radius: $default-border-radius;
|
145
174
|
box-shadow: 0 0 1px $dark-gray;
|
146
175
|
|
176
|
+
&:hover {
|
177
|
+
text-decoration: none;
|
178
|
+
}
|
179
|
+
|
147
180
|
&.visible {
|
148
181
|
visibility: visible;
|
149
182
|
opacity: 1;
|
@@ -169,22 +202,32 @@ div.assign_image_list_image {
|
|
169
202
|
}
|
170
203
|
|
171
204
|
a {
|
172
|
-
display:
|
205
|
+
display: flex;
|
206
|
+
align-items: center;
|
207
|
+
justify-content: center;
|
173
208
|
width: 16px;
|
174
209
|
height: 16px;
|
175
210
|
cursor: pointer;
|
211
|
+
|
212
|
+
&:hover {
|
213
|
+
text-decoration: none;
|
214
|
+
}
|
176
215
|
}
|
177
216
|
}
|
178
217
|
|
179
218
|
.picture_tags {
|
180
219
|
overflow: hidden;
|
181
220
|
position: absolute;
|
182
|
-
bottom:
|
221
|
+
bottom: 28px;
|
183
222
|
left: 0;
|
184
223
|
width: 100%;
|
185
224
|
max-height: 80%;
|
186
225
|
padding: $default-padding;
|
187
226
|
pointer-events: none;
|
227
|
+
|
228
|
+
.tag {
|
229
|
+
box-shadow: 0 0 2px 2px $default-border-color;
|
230
|
+
}
|
188
231
|
}
|
189
232
|
|
190
233
|
.picture_tags,
|
@@ -237,11 +280,25 @@ div#filter_bar {
|
|
237
280
|
#assign_image_list,
|
238
281
|
#assign_file_list {
|
239
282
|
position: relative;
|
240
|
-
height:
|
283
|
+
height: 558px;
|
241
284
|
}
|
242
285
|
|
243
286
|
#assign_image_list {
|
244
|
-
padding-right:
|
287
|
+
padding-right: 240px;
|
288
|
+
padding-bottom: 60px;
|
289
|
+
}
|
290
|
+
|
291
|
+
#overlay_picture_list {
|
292
|
+
height: 100%;
|
293
|
+
overflow: auto;
|
294
|
+
|
295
|
+
.picture_thumbnail:hover {
|
296
|
+
box-shadow: none;
|
297
|
+
|
298
|
+
.thumbnail_background {
|
299
|
+
box-shadow: 0 0 4px 4px $default-border-color;
|
300
|
+
}
|
301
|
+
}
|
245
302
|
}
|
246
303
|
|
247
304
|
#overlay_file_list {
|
@@ -268,8 +325,8 @@ div#filter_bar {
|
|
268
325
|
}
|
269
326
|
|
270
327
|
.icon {
|
271
|
-
margin-top: -2px;
|
272
328
|
margin-right: 4px;
|
329
|
+
vertical-align: bottom;
|
273
330
|
}
|
274
331
|
}
|
275
332
|
}
|
@@ -2,18 +2,19 @@
|
|
2
2
|
background-color: $medium-gray;
|
3
3
|
margin-top: 12px;
|
4
4
|
|
5
|
-
audio,
|
5
|
+
audio,
|
6
|
+
video {
|
6
7
|
display: block;
|
7
8
|
}
|
8
9
|
|
9
10
|
&.image-preview {
|
10
11
|
height: 300px;
|
11
12
|
text-align: center;
|
12
|
-
padding: 2
|
13
|
+
padding: 2 * $default-padding;
|
13
14
|
white-space: nowrap;
|
14
15
|
|
15
16
|
&:before {
|
16
|
-
content:
|
17
|
+
content: "";
|
17
18
|
display: inline-block;
|
18
19
|
height: 100%;
|
19
20
|
vertical-align: middle;
|
@@ -34,6 +35,6 @@
|
|
34
35
|
.full-iframe {
|
35
36
|
width: 100%;
|
36
37
|
background-color: white;
|
37
|
-
min-height:
|
38
|
+
min-height: 435px;
|
38
39
|
margin-top: 12px;
|
39
40
|
}
|