trestle 0.9.9 → 0.10.0.pre2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +26 -0
- data/.github/workflows/rspec.yml +37 -5
- data/.gitignore +3 -0
- data/Gemfile +14 -1
- data/README.md +2 -1
- data/app/assets/bundle/trestle/admin.css +23 -0
- data/app/assets/bundle/trestle/admin.js +83 -0
- data/app/assets/bundle/trestle/fa-brands-400.ttf +0 -0
- data/app/assets/bundle/trestle/fa-brands-400.woff2 +0 -0
- data/app/assets/bundle/trestle/fa-regular-400.ttf +0 -0
- data/app/assets/bundle/trestle/fa-regular-400.woff2 +0 -0
- data/app/assets/bundle/trestle/fa-solid-900.ttf +0 -0
- data/app/assets/bundle/trestle/fa-solid-900.woff2 +0 -0
- data/app/assets/bundle/trestle/locale/cs.js +110 -0
- data/app/assets/bundle/trestle/locale/de.js +116 -0
- data/app/assets/bundle/trestle/locale/en.js +329 -0
- data/app/assets/bundle/trestle/locale/es-MX.js +109 -0
- data/app/assets/bundle/trestle/locale/es.js +109 -0
- data/app/assets/bundle/trestle/locale/fr.js +111 -0
- data/app/assets/bundle/trestle/locale/ko.js +111 -0
- data/app/assets/bundle/trestle/locale/lv.js +109 -0
- data/app/assets/bundle/trestle/locale/nl.js +96 -0
- data/app/assets/bundle/trestle/locale/pl.js +99 -0
- data/app/assets/bundle/trestle/locale/pt-BR.js +98 -0
- data/app/assets/bundle/trestle/locale/vi.js +116 -0
- data/app/assets/bundle/trestle/locale/zh-CN.js +109 -0
- data/app/assets/bundle/trestle/photoswipe-7aa1aec9c3c1fd65c382.digested.js +6 -0
- data/app/assets/sprockets/trestle/custom.css +1 -0
- data/app/assets/sprockets/trestle/icons/font-awesome.css.erb +32 -0
- data/app/assets/sprockets/trestle/manifest.js +4 -0
- data/app/assets/stylesheets/trestle/custom.css +6 -1
- data/app/controllers/concerns/trestle/controller/helpers.rb +2 -0
- data/app/controllers/concerns/trestle/controller/location.rb +1 -6
- data/app/controllers/concerns/trestle/controller/modal.rb +23 -0
- data/app/controllers/concerns/trestle/controller/turbo_stream.rb +12 -0
- data/app/controllers/concerns/trestle/resource/controller/actions.rb +39 -28
- data/app/controllers/concerns/trestle/resource/controller/redirection.rb +5 -5
- data/app/controllers/trestle/application_controller.rb +2 -1
- data/app/helpers/trestle/flash_helper.rb +10 -0
- data/app/helpers/trestle/form_helper.rb +3 -2
- data/app/helpers/trestle/format_helper.rb +2 -1
- data/app/helpers/trestle/i18n_helper.rb +46 -7
- data/app/helpers/trestle/modal_helper.rb +29 -0
- data/app/helpers/trestle/tab_helper.rb +1 -1
- data/app/helpers/trestle/turbo/frame_helper.rb +29 -0
- data/app/helpers/trestle/turbo/stream_helper.rb +9 -0
- data/app/helpers/trestle/turbo/tag_builder.rb +21 -0
- data/app/helpers/trestle/url_helper.rb +7 -4
- data/app/views/layouts/trestle/admin.html.erb +16 -18
- data/app/views/layouts/trestle/admin.turbo_stream.erb +4 -0
- data/app/views/layouts/trestle/modal.html.erb +5 -0
- data/app/views/trestle/_i18n.html.erb +12 -0
- data/app/views/trestle/_theme.html.erb +15 -0
- data/app/views/trestle/application/_header.html.erb +12 -10
- data/app/views/trestle/application/_layout.html.erb +6 -3
- data/app/views/trestle/application/_modal.html.erb +36 -0
- data/app/views/trestle/application/_tabs.html.erb +4 -4
- data/app/views/trestle/flash/_alert.html.erb +1 -1
- data/app/views/trestle/flash/_debug.html.erb +1 -1
- data/app/views/trestle/resource/_form.html.erb +5 -0
- data/app/views/trestle/resource/create.turbo_stream.erb +1 -0
- data/app/views/trestle/resource/destroy.turbo_stream.erb +1 -0
- data/app/views/trestle/resource/edit.html.erb +6 -2
- data/app/views/trestle/resource/index.html.erb +17 -10
- data/app/views/trestle/resource/new.html.erb +9 -2
- data/app/views/trestle/resource/show.html.erb +6 -2
- data/app/views/trestle/resource/update.turbo_stream.erb +1 -0
- data/app/views/trestle/shared/_sidebar.html.erb +10 -10
- data/frontend/css/components/_alerts.scss +41 -37
- data/frontend/css/components/_avatar.scss +12 -12
- data/frontend/css/components/_background.scss +8 -36
- data/frontend/css/components/_badges.scss +31 -0
- data/frontend/css/components/_breadcrumbs.scss +9 -30
- data/frontend/css/components/_buttons.scss +8 -7
- data/frontend/css/components/_datepicker.scss +15 -11
- data/frontend/css/components/_dropdown.scss +21 -9
- data/frontend/css/components/{_fields.scss → _forms.scss} +18 -5
- data/frontend/css/components/_grid.scss +29 -0
- data/frontend/css/components/_media-grid.scss +52 -44
- data/frontend/css/components/_modal.scss +37 -8
- data/frontend/css/components/_pagination.scss +5 -9
- data/frontend/css/components/_photoswipe.scss +8 -0
- data/frontend/css/components/_popover.scss +2 -1
- data/frontend/css/components/_scopes.scss +5 -11
- data/frontend/css/components/_select.scss +160 -31
- data/frontend/css/components/_sort.scss +1 -1
- data/frontend/css/components/_table.scss +61 -66
- data/frontend/css/components/_tabs.scss +20 -20
- data/frontend/css/components/_tags.scss +80 -15
- data/frontend/css/components/_toolbars.scss +18 -13
- data/frontend/css/components/_turbo.scss +3 -0
- data/frontend/css/core/_bootstrap.scss +46 -0
- data/frontend/css/core/_dependencies.scss +4 -3
- data/frontend/css/core/_functions.scss +31 -0
- data/frontend/css/core/_mixins.scss +2 -36
- data/frontend/css/core/_theme.scss +261 -0
- data/frontend/css/core/_typography.scss +16 -14
- data/frontend/css/icons/_fontawesome.scss +3 -15
- data/frontend/css/index.scss +15 -7
- data/frontend/css/layout/_base.scss +6 -4
- data/frontend/css/layout/_content-header.scss +71 -0
- data/frontend/css/layout/_footer.scss +5 -7
- data/frontend/css/layout/_header.scss +5 -3
- data/frontend/css/layout/_main-content.scss +107 -0
- data/frontend/css/layout/_navigation.scss +112 -50
- data/frontend/css/layout/_sidebar.scss +70 -36
- data/frontend/css/support/_sprockets.scss +2 -0
- data/frontend/css/support/_webpack.scss +2 -0
- data/frontend/css/variables/_bootstrap.scss +158 -55
- data/frontend/css/variables/_maps.scss +15 -0
- data/frontend/css/variables/_trestle.scss +68 -39
- data/frontend/js/controllers/application_controller.js +17 -0
- data/frontend/js/controllers/batch_action_controller.js +59 -0
- data/frontend/js/controllers/checkbox_select_controller.js +46 -0
- data/frontend/js/controllers/confirm_controller.js +115 -0
- data/frontend/js/controllers/confirm_delete_controller.js +11 -0
- data/frontend/js/controllers/datepicker_controller.js +12 -0
- data/frontend/js/controllers/datetimepicker_controller.js +13 -0
- data/frontend/js/controllers/deprecated/init_controller.js +9 -0
- data/frontend/js/controllers/flatpickr_controller.js +50 -0
- data/frontend/js/controllers/follow_url_controller.js +36 -0
- data/frontend/js/controllers/form_error_controller.js +24 -0
- data/frontend/js/controllers/form_loading_controller.js +50 -0
- data/frontend/js/controllers/gallery_controller.js +10 -0
- data/frontend/js/controllers/index.js +19 -0
- data/frontend/js/controllers/keyboard_submit_controller.js +25 -0
- data/frontend/js/controllers/lightbox_controller.js +160 -0
- data/frontend/js/controllers/mobile_sidebar_controller.js +30 -0
- data/frontend/js/controllers/modal_controller.js +36 -0
- data/frontend/js/controllers/modal_frame_controller.js +11 -0
- data/frontend/js/controllers/modal_trigger_controller.js +74 -0
- data/frontend/js/{components/navigation.js → controllers/navigation_controller.js} +14 -10
- data/frontend/js/controllers/navigation_tooltip_controller.js +32 -0
- data/frontend/js/controllers/popover_controller.js +87 -0
- data/frontend/js/controllers/reloadable_controller.js +34 -0
- data/frontend/js/controllers/select_controller.js +49 -0
- data/frontend/js/controllers/sidebar_controller.js +33 -0
- data/frontend/js/controllers/tab_errors_controller.js +45 -0
- data/frontend/js/controllers/tabs_controller.js +45 -0
- data/frontend/js/controllers/timepicker_controller.js +14 -0
- data/frontend/js/controllers/toggle_attr_controller.js +27 -0
- data/frontend/js/controllers/toggle_class_controller.js +27 -0
- data/frontend/js/controllers/tooltip_controller.js +13 -0
- data/frontend/js/controllers/wrapper_controller.js +43 -0
- data/frontend/js/core/backdrop.js +100 -0
- data/frontend/js/core/error_modal.js +65 -0
- data/frontend/js/core/fetch.js +32 -0
- data/frontend/js/core/i18n.js +24 -10
- data/frontend/js/core/modal.js +52 -0
- data/frontend/js/core/stream_actions.js +56 -0
- data/frontend/js/core/turbo_errors.js +9 -0
- data/frontend/js/{core → deprecated}/events.js +1 -8
- data/frontend/js/deprecated/tooltip.js +8 -0
- data/frontend/js/index.js +28 -40
- data/frontend/js/mixins/index.js +5 -0
- data/frontend/js/mixins/photoswipe.js +10 -0
- data/frontend/js/util/bootstrap.js +93 -0
- data/i18n/config.yml +14 -0
- data/i18n/environment.rb +8 -0
- data/i18n/export +3 -0
- data/i18n/template.erb +1 -0
- data/lib/generators/trestle/install/install_generator.rb +3 -8
- data/lib/generators/trestle/install/templates/trestle.rb.erb +5 -5
- data/lib/trestle/color.rb +113 -0
- data/lib/trestle/configuration.rb +16 -8
- data/lib/trestle/engine.rb +28 -20
- data/lib/trestle/form/fields/check_box_helpers.rb +7 -18
- data/lib/trestle/form/fields/collection_select.rb +1 -1
- data/lib/trestle/form/fields/color_field.rb +4 -0
- data/lib/trestle/form/fields/date_field.rb +4 -0
- data/lib/trestle/form/fields/date_picker.rb +10 -4
- data/lib/trestle/form/fields/date_select.rb +1 -1
- data/lib/trestle/form/fields/datetime_field.rb +4 -0
- data/lib/trestle/form/fields/datetime_select.rb +1 -1
- data/lib/trestle/form/fields/file_field.rb +3 -28
- data/lib/trestle/form/fields/form_control.rb +2 -2
- data/lib/trestle/form/fields/form_group.rb +1 -1
- data/lib/trestle/form/fields/grouped_collection_select.rb +1 -1
- data/lib/trestle/form/fields/radio_button_helpers.rb +5 -17
- data/lib/trestle/form/fields/range_field.rb +1 -5
- data/lib/trestle/form/fields/select.rb +17 -1
- data/lib/trestle/form/fields/time_field.rb +4 -0
- data/lib/trestle/form/fields/time_select.rb +1 -1
- data/lib/trestle/form/fields/time_zone_select.rb +1 -1
- data/lib/trestle/form/renderer.rb +3 -0
- data/lib/trestle/form.rb +16 -1
- data/lib/trestle/resource/toolbar.rb +18 -8
- data/lib/trestle/sprockets_compressor.rb +16 -0
- data/lib/trestle/table/actions_column.rb +2 -2
- data/lib/trestle/table/row.rb +2 -1
- data/lib/trestle/table/select_column.rb +3 -6
- data/lib/trestle/table.rb +6 -1
- data/lib/trestle/toolbar/context.rb +7 -4
- data/lib/trestle/toolbar/item.rb +1 -1
- data/lib/trestle/toolbar/menu.rb +11 -11
- data/lib/trestle/version.rb +1 -1
- data/lib/trestle.rb +2 -23
- data/package.json +31 -27
- data/trestle.gemspec +6 -11
- data/webpack.config.js +10 -10
- data/yarn.lock +1480 -1233
- metadata +175 -208
- data/app/assets/bundle/trestle/bundle.css +0 -12
- data/app/assets/bundle/trestle/bundle.js +0 -89
- data/app/assets/bundle/trestle/fa-brands-400.eot +0 -0
- data/app/assets/bundle/trestle/fa-brands-400.svg +0 -3717
- data/app/assets/bundle/trestle/fa-brands-400.woff +0 -0
- data/app/assets/bundle/trestle/fa-regular-400.eot +0 -0
- data/app/assets/bundle/trestle/fa-regular-400.svg +0 -801
- data/app/assets/bundle/trestle/fa-regular-400.woff +0 -0
- data/app/assets/bundle/trestle/fa-solid-900.eot +0 -0
- data/app/assets/bundle/trestle/fa-solid-900.svg +0 -5034
- data/app/assets/bundle/trestle/fa-solid-900.woff +0 -0
- data/app/assets/javascripts/trestle/admin.js +0 -3
- data/app/assets/javascripts/trestle/i18n.js.erb +0 -8
- data/app/assets/stylesheets/trestle/admin.css +0 -2
- data/app/assets/stylesheets/trestle/icons/_font-awesome.css.erb +0 -40
- data/app/controllers/concerns/trestle/controller/dialog.rb +0 -16
- data/app/views/trestle/application/_dialog.html.erb +0 -34
- data/frontend/css/components/_color-vars.scss +0 -10
- data/frontend/css/components/_custom-forms.scss +0 -35
- data/frontend/css/components/_magnific-popup.scss +0 -36
- data/frontend/css/components/_turbolinks.scss +0 -3
- data/frontend/css/layout/_content.scss +0 -169
- data/frontend/js/components/confirmation.js +0 -32
- data/frontend/js/components/datepicker.js +0 -69
- data/frontend/js/components/dialog.js +0 -149
- data/frontend/js/components/file.js +0 -7
- data/frontend/js/components/form.js +0 -100
- data/frontend/js/components/gallery.js +0 -33
- data/frontend/js/components/pagination.js +0 -51
- data/frontend/js/components/select.js +0 -18
- data/frontend/js/components/sidebar.js +0 -75
- data/frontend/js/components/table.js +0 -61
- data/frontend/js/components/tabs.js +0 -59
- data/frontend/js/components/tooltips.js +0 -25
- data/frontend/js/core/contexts.js +0 -17
- data/frontend/js/core/turbolinks.js +0 -3
- data/frontend/js/core/visit.js +0 -16
- data/frontend/theme/trestle/_theme.scss +0 -4
- data/frontend/theme/trestle/_variables.scss +0 -4
- data/frontend/theme/trestle/theme/_defaults.scss +0 -152
- data/frontend/theme/trestle/theme/_functions.scss +0 -44
- data/frontend/theme/trestle/theme/_variables.scss +0 -15
- data/frontend/theme/trestle/theme/bootstrap/_alert.scss +0 -19
- data/frontend/theme/trestle/theme/bootstrap/_badge.scss +0 -25
- data/frontend/theme/trestle/theme/bootstrap/_buttons.scss +0 -93
- data/frontend/theme/trestle/theme/bootstrap/_color-vars.scss +0 -11
- data/frontend/theme/trestle/theme/bootstrap/_custom-forms.scss +0 -93
- data/frontend/theme/trestle/theme/bootstrap/_dropdown.scss +0 -6
- data/frontend/theme/trestle/theme/bootstrap/_forms.scss +0 -6
- data/frontend/theme/trestle/theme/bootstrap/_links.scss +0 -7
- data/frontend/theme/trestle/theme/bootstrap/_list-group.scss +0 -31
- data/frontend/theme/trestle/theme/bootstrap/_nav.scss +0 -6
- data/frontend/theme/trestle/theme/bootstrap/_pagination.scss +0 -18
- data/frontend/theme/trestle/theme/bootstrap/_progress.scss +0 -3
- data/frontend/theme/trestle/theme/bootstrap/_tables.scss +0 -41
- data/frontend/theme/trestle/theme/bootstrap/_utilities.scss +0 -3
- data/frontend/theme/trestle/theme/bootstrap/utilities/_background.scss +0 -17
- data/frontend/theme/trestle/theme/bootstrap/utilities/_borders.scss +0 -5
- data/frontend/theme/trestle/theme/bootstrap/utilities/_text.scss +0 -18
- data/frontend/theme/trestle/theme/trestle/_background.scss +0 -61
- data/frontend/theme/trestle/theme/trestle/_datepicker.scss +0 -58
- data/frontend/theme/trestle/theme/trestle/_headers.scss +0 -4
- data/frontend/theme/trestle/theme/trestle/_navbar.scss +0 -15
- data/frontend/theme/trestle/theme/trestle/_navigation.scss +0 -5
- data/frontend/theme/trestle/theme/trestle/_select2.scss +0 -22
- data/frontend/theme/trestle/theme/trestle/_tags.scss +0 -12
- data/frontend/theme/trestle/theme/trestle/_turbolinks.scss +0 -3
- data/frontend/theme/trestle/theme.scss +0 -29
- data/lib/generators/trestle/install/templates/_theme.scss +0 -13
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ar-dz.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ar.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/at.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/az.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/be.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/bg.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/bn.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/bs.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/cat.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ckb.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/cs.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/cy.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/da.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/de.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/default.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/eo.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/es.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/et.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/fa.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/fi.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/fo.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/fr.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ga.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/gr.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/he.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/hi.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/hr.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/hu.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/hy.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/id.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/is.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/it.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ja.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ka.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/km.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ko.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/kz.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/lt.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/lv.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/mk.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/mn.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ms.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/my.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/nl.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/nn.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/no.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/pa.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/pl.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/pt.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ro.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/ru.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/si.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/sk.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/sl.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/sq.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/sr-cyr.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/sr.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/sv.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/th.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/tr.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/uk.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/uz.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/uz_latn.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/vn.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/zh-tw.js +0 -0
- /data/app/assets/bundle/trestle/{flatpickr → locale/flatpickr}/zh.js +0 -0
- /data/app/assets/{stylesheets → sprockets}/trestle/_custom.css +0 -0
@@ -7,31 +7,37 @@
|
|
7
7
|
|
8
8
|
&:before {
|
9
9
|
top: -$dropdown-arrow-outer-width;
|
10
|
-
left:
|
10
|
+
left: 0.75rem;
|
11
11
|
|
12
12
|
border-left: $dropdown-arrow-width solid transparent;
|
13
13
|
border-right: $dropdown-arrow-width solid transparent;
|
14
|
-
border-bottom: $dropdown-arrow-width solid $dropdown-border-color;
|
14
|
+
border-bottom: $dropdown-arrow-width solid var(--#{$prefix}dropdown-border-color);
|
15
15
|
}
|
16
16
|
|
17
17
|
&:after {
|
18
18
|
top: -$dropdown-arrow-width;
|
19
|
-
left:
|
19
|
+
left: 0.75rem;
|
20
|
+
|
21
|
+
margin-left: -1px;
|
22
|
+
margin-right: 0;
|
20
23
|
|
21
24
|
border-left: $dropdown-arrow-outer-width solid transparent;
|
22
25
|
border-right: $dropdown-arrow-outer-width solid transparent;
|
23
|
-
border-bottom: $dropdown-arrow-outer-width solid
|
26
|
+
border-bottom: $dropdown-arrow-outer-width solid var(--#{$prefix}dropdown-bg);
|
24
27
|
}
|
25
28
|
|
26
|
-
&.dropdown-menu-
|
29
|
+
&.dropdown-menu-end {
|
27
30
|
&:before {
|
28
31
|
left: auto;
|
29
|
-
right:
|
32
|
+
right: 0.75rem;
|
30
33
|
}
|
31
34
|
|
32
35
|
&:after {
|
33
36
|
left: auto;
|
34
|
-
right:
|
37
|
+
right: 0.75rem;
|
38
|
+
|
39
|
+
margin-left: 0;
|
40
|
+
margin-right: -1px;
|
35
41
|
}
|
36
42
|
}
|
37
43
|
|
@@ -41,7 +47,7 @@
|
|
41
47
|
bottom: -$dropdown-arrow-outer-width;
|
42
48
|
|
43
49
|
border-bottom: 0;
|
44
|
-
border-top: $dropdown-arrow-width solid $dropdown-border-color;
|
50
|
+
border-top: $dropdown-arrow-width solid var(--#{$prefix}dropdown-border-color);
|
45
51
|
}
|
46
52
|
|
47
53
|
&:after {
|
@@ -49,7 +55,13 @@
|
|
49
55
|
bottom: -$dropdown-arrow-width;
|
50
56
|
|
51
57
|
border-bottom: 0;
|
52
|
-
border-top: $dropdown-arrow-outer-width solid
|
58
|
+
border-top: $dropdown-arrow-outer-width solid var(--bs-dropdown-bg);
|
53
59
|
}
|
54
60
|
}
|
61
|
+
|
62
|
+
@include media-breakpoint-down(md) {
|
63
|
+
--#{$prefix}dropdown-font-size: 0.75rem;
|
64
|
+
--#{$prefix}dropdown-padding-y: 0.375rem;
|
65
|
+
--#{$prefix}dropdown-item-padding-x: 0.75rem;
|
66
|
+
}
|
55
67
|
}
|
@@ -1,8 +1,9 @@
|
|
1
1
|
.form-group {
|
2
2
|
position: relative;
|
3
|
+
margin-bottom: 0.875rem;
|
3
4
|
|
4
5
|
&.has-error {
|
5
|
-
> .
|
6
|
+
> .form-label {
|
6
7
|
color: $form-feedback-invalid-color;
|
7
8
|
}
|
8
9
|
|
@@ -20,19 +21,31 @@ ul.invalid-feedback {
|
|
20
21
|
|
21
22
|
.form-text {
|
22
23
|
color: $form-text-color;
|
23
|
-
font-size: 0.
|
24
|
+
font-size: 0.8125rem;
|
24
25
|
|
25
26
|
@include media-breakpoint-up(sm) {
|
26
27
|
&.floating {
|
27
28
|
position: absolute;
|
28
29
|
top: 0;
|
29
30
|
right: 0;
|
30
|
-
margin:
|
31
|
+
margin: 0.125rem 0;
|
31
32
|
}
|
32
33
|
}
|
33
34
|
}
|
34
35
|
|
35
|
-
.
|
36
|
-
font-weight: bold;
|
36
|
+
.form-label {
|
37
37
|
display: block;
|
38
38
|
}
|
39
|
+
|
40
|
+
.control-label {
|
41
|
+
@extend .form-label;
|
42
|
+
}
|
43
|
+
|
44
|
+
// Prevent input zooming on mobile devices
|
45
|
+
@include media-breakpoint-down(sm) {
|
46
|
+
.form-control,
|
47
|
+
.form-select,
|
48
|
+
.input-group-text {
|
49
|
+
font-size: 1rem;
|
50
|
+
}
|
51
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
.grid {
|
2
|
+
--grid-gap: var(--content-area-margin, 0);
|
3
|
+
--grid-column-count: 1;
|
4
|
+
--grid-column-min-width: 0;
|
5
|
+
|
6
|
+
display: grid;
|
7
|
+
grid-template-columns: repeat(var(--grid-column-count), minmax(var(--grid-column-min-width), 1fr));
|
8
|
+
gap: var(--grid-gap);
|
9
|
+
|
10
|
+
> .grid-col-full {
|
11
|
+
grid-column: 1 / -1;
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
@for $cols from 2 through 12 {
|
16
|
+
.grid-cols-#{$cols} {
|
17
|
+
--grid-column-count: #{$cols};
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
22
|
+
@include media-breakpoint-up($breakpoint) {
|
23
|
+
@for $cols from 2 through 12 {
|
24
|
+
.grid-cols-#{$breakpoint}-#{$cols} {
|
25
|
+
--grid-column-count: #{$cols};
|
26
|
+
}
|
27
|
+
}
|
28
|
+
}
|
29
|
+
}
|
@@ -1,31 +1,33 @@
|
|
1
|
+
@use "sass:math";
|
2
|
+
|
1
3
|
.media-grid {
|
2
4
|
@include list-unstyled;
|
3
|
-
@include make-row;
|
4
|
-
|
5
|
-
li {
|
6
|
-
position: relative;
|
7
|
-
width: 100%;
|
8
5
|
|
9
|
-
|
10
|
-
|
6
|
+
--media-grid-aspect-ratio: 4 / 3;
|
7
|
+
--media-grid-gap: #{$grid-gutter-width};
|
8
|
+
--media-grid-columns: 2;
|
11
9
|
|
12
|
-
|
10
|
+
display: grid;
|
11
|
+
grid-template-columns: repeat(var(--media-grid-columns), 1fr);
|
12
|
+
gap: var(--media-grid-gap);
|
13
13
|
|
14
|
-
|
15
|
-
|
16
|
-
|
14
|
+
@include media-breakpoint-up(md) {
|
15
|
+
--media-grid-columns: 3;
|
16
|
+
}
|
17
17
|
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
@include media-breakpoint-up(xl) {
|
19
|
+
--media-grid-columns: 4;
|
20
|
+
}
|
21
21
|
|
22
|
-
|
22
|
+
@include media-breakpoint-down(md) {
|
23
|
+
--media-grid-gap: #{math.div($grid-gutter-width, 2)};
|
23
24
|
}
|
24
25
|
|
25
26
|
figure {
|
26
27
|
margin: 0;
|
28
|
+
position: relative;
|
27
29
|
|
28
|
-
|
30
|
+
aspect-ratio: var(--media-grid-aspect-ratio);
|
29
31
|
|
30
32
|
background: #eee;
|
31
33
|
overflow: hidden;
|
@@ -34,7 +36,8 @@
|
|
34
36
|
align-items: center;
|
35
37
|
|
36
38
|
img {
|
37
|
-
|
39
|
+
width: 100%;
|
40
|
+
height: 100%;
|
38
41
|
object-fit: contain;
|
39
42
|
}
|
40
43
|
}
|
@@ -55,49 +58,54 @@
|
|
55
58
|
}
|
56
59
|
}
|
57
60
|
|
61
|
+
figcaption {
|
62
|
+
position: absolute;
|
63
|
+
bottom: 0;
|
64
|
+
left: 0;
|
65
|
+
right: 0;
|
66
|
+
|
67
|
+
background: rgba(black, 0.25);
|
68
|
+
color: white;
|
69
|
+
|
70
|
+
padding: 0.25rem 0.5rem;
|
71
|
+
|
72
|
+
display: flex;
|
73
|
+
|
74
|
+
font-size: 85%;
|
75
|
+
font-weight: normal;
|
76
|
+
}
|
77
|
+
|
58
78
|
a {
|
59
79
|
cursor: zoom-in;
|
60
80
|
}
|
61
81
|
}
|
62
82
|
|
63
83
|
.media-grid-sm {
|
64
|
-
|
65
|
-
@include make-col(4);
|
84
|
+
--media-grid-columns: 3;
|
66
85
|
|
67
|
-
|
68
|
-
|
69
|
-
|
86
|
+
@include media-breakpoint-up(md) {
|
87
|
+
--media-grid-columns: 4;
|
88
|
+
}
|
70
89
|
|
71
|
-
|
72
|
-
|
73
|
-
}
|
90
|
+
@include media-breakpoint-up(lg) {
|
91
|
+
--media-grid-columns: 6;
|
74
92
|
}
|
75
93
|
}
|
76
94
|
|
77
95
|
.media-grid-lg {
|
78
|
-
|
79
|
-
@include make-col(12);
|
96
|
+
--media-grid-columns: 1;
|
80
97
|
|
81
|
-
|
82
|
-
|
83
|
-
|
98
|
+
@include media-breakpoint-up(sm) {
|
99
|
+
--media-grid-columns: 2;
|
100
|
+
}
|
84
101
|
|
85
|
-
|
86
|
-
|
87
|
-
}
|
102
|
+
@include media-breakpoint-up(lg) {
|
103
|
+
--media-grid-columns: 3;
|
88
104
|
}
|
89
105
|
}
|
90
106
|
|
91
|
-
|
92
|
-
|
93
|
-
margin-left: -5px;
|
94
|
-
margin-right: -5px;
|
107
|
+
.media-grid-auto {
|
108
|
+
--media-grid-item-size: 15rem;
|
95
109
|
|
96
|
-
|
97
|
-
padding-left: 5px;
|
98
|
-
padding-right: 5px;
|
99
|
-
|
100
|
-
margin-bottom: 10px;
|
101
|
-
}
|
102
|
-
}
|
110
|
+
grid-template-columns: repeat(auto-fill, minmax(var(--media-grid-item-size), 1fr));
|
103
111
|
}
|
@@ -1,3 +1,5 @@
|
|
1
|
+
@use "sass:math";
|
2
|
+
|
1
3
|
.modal {
|
2
4
|
&.loading {
|
3
5
|
.modal-content {
|
@@ -17,18 +19,23 @@
|
|
17
19
|
}
|
18
20
|
}
|
19
21
|
|
20
|
-
&.error {
|
22
|
+
&.error-modal {
|
21
23
|
.modal-header {
|
22
24
|
background-color: $error-bg;
|
23
25
|
}
|
26
|
+
|
27
|
+
.modal-body {
|
28
|
+
padding: 0;
|
29
|
+
}
|
24
30
|
}
|
25
31
|
|
32
|
+
&.show:not(:last-child),
|
26
33
|
&.background {
|
34
|
+
z-index: $zindex-modal-backdrop - 1;
|
27
35
|
overflow-y: hidden;
|
28
36
|
|
29
37
|
.modal-dialog {
|
30
38
|
transform: scale(0.9);
|
31
|
-
opacity: 0.75;
|
32
39
|
}
|
33
40
|
}
|
34
41
|
}
|
@@ -54,7 +61,7 @@
|
|
54
61
|
}
|
55
62
|
|
56
63
|
.modal-title {
|
57
|
-
font-size: 1.
|
64
|
+
font-size: 1.125rem;
|
58
65
|
font-weight: 500;
|
59
66
|
text-shadow: rgba(black, 0.5) 0 1px 1px;
|
60
67
|
color: white;
|
@@ -63,7 +70,7 @@
|
|
63
70
|
.modal-tabs {
|
64
71
|
.nav-tabs {
|
65
72
|
background: $body-bg;
|
66
|
-
padding:
|
73
|
+
padding: 0.625rem 1rem 0 1rem;
|
67
74
|
}
|
68
75
|
}
|
69
76
|
|
@@ -96,8 +103,8 @@
|
|
96
103
|
border-radius: 0;
|
97
104
|
border-width: 0 0 1px 0;
|
98
105
|
|
99
|
-
padding-top: $alert-padding-y
|
100
|
-
padding-bottom: $alert-padding-y
|
106
|
+
padding-top: math.div($alert-padding-y, 2);
|
107
|
+
padding-bottom: math.div($alert-padding-y, 2);
|
101
108
|
|
102
109
|
.alert-icon {
|
103
110
|
font-size: 36px;
|
@@ -105,11 +112,33 @@
|
|
105
112
|
}
|
106
113
|
|
107
114
|
h3 {
|
108
|
-
font-size: 1.
|
115
|
+
font-size: 1.125rem;
|
109
116
|
}
|
110
117
|
|
111
118
|
p {
|
112
|
-
font-size: 0.
|
119
|
+
font-size: 0.825rem;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
}
|
123
|
+
|
124
|
+
.modal-backdrop {
|
125
|
+
&.loading {
|
126
|
+
display: flex;
|
127
|
+
align-items: center;
|
128
|
+
justify-content: center;
|
129
|
+
|
130
|
+
&:after {
|
131
|
+
@include icon-fa($fa-var-spinner);
|
132
|
+
@extend .fa-spin;
|
133
|
+
|
134
|
+
font-size: 5rem;
|
135
|
+
|
136
|
+
color: white;
|
137
|
+
opacity: 0.25;
|
113
138
|
}
|
114
139
|
}
|
140
|
+
|
141
|
+
&.show + &.show {
|
142
|
+
opacity: 0;
|
143
|
+
}
|
115
144
|
}
|
@@ -3,10 +3,11 @@
|
|
3
3
|
|
4
4
|
display: inline-flex;
|
5
5
|
align-items: center;
|
6
|
+
gap: 0.75rem;
|
6
7
|
|
7
8
|
p {
|
8
|
-
font-size: 0.
|
9
|
-
margin: 0
|
9
|
+
font-size: 0.75rem;
|
10
|
+
margin: 0;
|
10
11
|
}
|
11
12
|
|
12
13
|
strong {
|
@@ -23,7 +24,7 @@
|
|
23
24
|
}
|
24
25
|
}
|
25
26
|
|
26
|
-
@include media-breakpoint-down(
|
27
|
+
@include media-breakpoint-down(md) {
|
27
28
|
.pagination-container {
|
28
29
|
margin-right: auto;
|
29
30
|
|
@@ -32,16 +33,11 @@
|
|
32
33
|
display: flex;
|
33
34
|
flex-direction: column;
|
34
35
|
align-items: center;
|
36
|
+
gap: 0.375rem;
|
35
37
|
|
36
38
|
.pagination {
|
37
39
|
margin: 0 auto;
|
38
40
|
order: -1;
|
39
41
|
}
|
40
|
-
|
41
|
-
p {
|
42
|
-
display: block;
|
43
|
-
margin-right: 0;
|
44
|
-
margin-top: 5px;
|
45
|
-
}
|
46
42
|
}
|
47
43
|
}
|
@@ -12,7 +12,7 @@
|
|
12
12
|
}
|
13
13
|
|
14
14
|
|
15
|
-
@include media-breakpoint-down(
|
15
|
+
@include media-breakpoint-down(md) {
|
16
16
|
.scope-group-empty:first-child {
|
17
17
|
display: none;
|
18
18
|
}
|
@@ -35,7 +35,7 @@
|
|
35
35
|
|
36
36
|
.scope-group {
|
37
37
|
line-height: 2;
|
38
|
-
font-size: 0.
|
38
|
+
font-size: 0.75rem;
|
39
39
|
padding: 0.5rem 1rem 0.25rem 0.75rem;
|
40
40
|
|
41
41
|
background: #f7f7f7;
|
@@ -47,19 +47,13 @@
|
|
47
47
|
display: flex;
|
48
48
|
flex-wrap: wrap;
|
49
49
|
|
50
|
+
gap: 0.25rem 0.35rem;
|
51
|
+
|
50
52
|
position: relative;
|
51
53
|
align-items: center;
|
52
54
|
|
53
55
|
margin-bottom: 0;
|
54
56
|
padding: 0;
|
55
|
-
|
56
|
-
li {
|
57
|
-
margin: 0.125rem 0.35rem 0.125rem 0;
|
58
|
-
|
59
|
-
&:last-child {
|
60
|
-
margin-right: 0;
|
61
|
-
}
|
62
|
-
}
|
63
57
|
}
|
64
58
|
|
65
59
|
.scope {
|
@@ -67,7 +61,7 @@
|
|
67
61
|
|
68
62
|
background-color: $scope-bg;
|
69
63
|
|
70
|
-
font-size: 0.
|
64
|
+
font-size: 0.6875rem;
|
71
65
|
font-weight: normal;
|
72
66
|
white-space: nowrap;
|
73
67
|
|