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
@@ -1,4 +1,9 @@
|
|
1
1
|
<% if admin.form -%>
|
2
|
+
<% if admin.form.modal? && modal_options = admin.form.options[:modal] %>
|
3
|
+
<% modal_options!(class: modal_options[:class]) %>
|
4
|
+
<% modal_options!(controller: modal_options[:controller]) %>
|
5
|
+
<% end %>
|
6
|
+
|
2
7
|
<%= admin.form.render(self, instance) %>
|
3
8
|
<% else %>
|
4
9
|
<p><%= t("trestle.onboarding.no_form", default: "Please define a form block or create a <code>_form.html</code> partial.").html_safe %></p>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= turbo_stream.replace admin.build_instance({}, params), template: "trestle/resource/#{instance.persisted? ? "show" : "new"}" %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= turbo_stream.close_modal instance %>
|
@@ -5,12 +5,16 @@
|
|
5
5
|
|
6
6
|
<% toolbar(:primary) do |t| %>
|
7
7
|
<%= t.save_or_dismiss(:update) %>
|
8
|
+
<%= hook("edit.toolbar.primary", t) %>
|
8
9
|
<% end %>
|
9
10
|
|
10
11
|
<% toolbar(:secondary) do |t| %>
|
11
12
|
<%= t.delete %>
|
13
|
+
<%= hook("edit.toolbar.secondary", t) %>
|
12
14
|
<% end %>
|
13
15
|
|
14
|
-
<%=
|
15
|
-
<%=
|
16
|
+
<%= resource_turbo_frame(instance) do %>
|
17
|
+
<%= trestle_form_for instance, url: admin.actions.include?(:update) ? admin.instance_path(instance, action: :update) : "#", method: :patch do |f| %>
|
18
|
+
<%= render partial: "form", layout: modal_request? ? "modal" : "layout" %>
|
19
|
+
<% end %>
|
16
20
|
<% end %>
|
@@ -2,6 +2,11 @@
|
|
2
2
|
|
3
3
|
<% toolbar(:primary) do |t| %>
|
4
4
|
<%= t.new %>
|
5
|
+
<%= hook("index.toolbar.primary", t) %>
|
6
|
+
<% end %>
|
7
|
+
|
8
|
+
<% toolbar(:secondary) do |t| %>
|
9
|
+
<%= hook("index.toolbar.secondary", t) %>
|
5
10
|
<% end %>
|
6
11
|
|
7
12
|
<% content_for(:utilities) do %>
|
@@ -9,17 +14,19 @@
|
|
9
14
|
<% end if admin.scopes.any? %>
|
10
15
|
|
11
16
|
<%= render layout: "layout" do %>
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
+
<%= index_turbo_frame do %>
|
18
|
+
<% if hook?("resource.index.header") %>
|
19
|
+
<header class="main-content-header">
|
20
|
+
<%= hook("resource.index.header") %>
|
21
|
+
</header>
|
22
|
+
<% end %>
|
17
23
|
|
18
|
-
|
24
|
+
<%= render "trestle/table/table", table: admin.table, collection: collection %>
|
19
25
|
|
20
|
-
|
21
|
-
|
26
|
+
<footer class="main-content-footer">
|
27
|
+
<%= hook("resource.index.footer") %>
|
22
28
|
|
23
|
-
|
24
|
-
|
29
|
+
<%= pagination collection: collection, entry_name: admin.model_name, remote: admin.pagination_options[:ajax] %>
|
30
|
+
</footer>
|
31
|
+
<% end %>
|
25
32
|
<% end %>
|
@@ -5,8 +5,15 @@
|
|
5
5
|
|
6
6
|
<% toolbar(:primary) do |t| %>
|
7
7
|
<%= t.save_or_dismiss(:create) %>
|
8
|
+
<%= hook("new.toolbar.primary", t) %>
|
8
9
|
<% end %>
|
9
10
|
|
10
|
-
|
11
|
-
<%=
|
11
|
+
<% toolbar(:secondary) do |t| %>
|
12
|
+
<%= hook("new.toolbar.secondary", t) %>
|
13
|
+
<% end %>
|
14
|
+
|
15
|
+
<%= resource_turbo_frame(instance) do %>
|
16
|
+
<%= trestle_form_for instance, url: admin.path(:create), method: :post do |f| %>
|
17
|
+
<%= render partial: "form", layout: modal_request? ? "modal" : "layout" %>
|
18
|
+
<% end %>
|
12
19
|
<% end %>
|
@@ -5,12 +5,16 @@
|
|
5
5
|
|
6
6
|
<% toolbar(:primary) do |t| %>
|
7
7
|
<%= t.save_or_dismiss(:update) %>
|
8
|
+
<%= hook("show.toolbar.primary", t) %>
|
8
9
|
<% end %>
|
9
10
|
|
10
11
|
<% toolbar(:secondary) do |t| %>
|
11
12
|
<%= t.delete %>
|
13
|
+
<%= hook("show.toolbar.secondary", t) %>
|
12
14
|
<% end %>
|
13
15
|
|
14
|
-
<%=
|
15
|
-
<%=
|
16
|
+
<%= resource_turbo_frame(instance) do %>
|
17
|
+
<%= trestle_form_for instance, url: admin.actions.include?(:update) ? admin.instance_path(instance, action: :update) : "#", method: :patch do |f| %>
|
18
|
+
<%= render partial: "form", layout: modal_request? ? "modal" : "layout" %>
|
19
|
+
<% end %>
|
16
20
|
<% end %>
|
@@ -0,0 +1 @@
|
|
1
|
+
<%= turbo_stream.replace instance, template: "trestle/resource/show" %>
|
@@ -1,6 +1,6 @@
|
|
1
|
-
<aside class="app-sidebar navbar-expand-md" id="app-sidebar">
|
1
|
+
<aside class="app-sidebar navbar navbar-expand-md" id="app-sidebar" data-controller="sidebar mobile-sidebar">
|
2
2
|
<header class="app-sidebar-header">
|
3
|
-
<button class="navbar-toggler" type="button" aria-controls="app-sidebar" aria-expanded="false" aria-label="<%= t("trestle.ui.toggle_navigation", default: "Toggle navigation") %>">
|
3
|
+
<button class="navbar-toggler" type="button" aria-controls="app-sidebar" aria-expanded="false" aria-label="<%= t("trestle.ui.toggle_navigation", default: "Toggle navigation") %>" data-action="mobile-sidebar#toggle">
|
4
4
|
<span class="navbar-toggler-icon"></span>
|
5
5
|
</button>
|
6
6
|
|
@@ -9,19 +9,19 @@
|
|
9
9
|
<% end %>
|
10
10
|
</header>
|
11
11
|
|
12
|
-
<div class="app-sidebar-inner">
|
13
|
-
<nav class="app-nav">
|
12
|
+
<div class="app-sidebar-inner" data-sidebar-target="inner">
|
13
|
+
<nav class="app-nav" data-controller="navigation">
|
14
14
|
<% Trestle.navigation(self).each do |group, items| %>
|
15
15
|
<%= content_tag(:ul, class: ("collapsed" if group.present? && navigation_group_collapsed?(group)), data: { group: group.id }) do %>
|
16
16
|
<% if group.present? %>
|
17
|
-
<li class="nav-header"><%= link_to group.label, "##{group.id}" %></li>
|
17
|
+
<li class="nav-header"><%= link_to content_tag(:span, group.label), "##{group.id}", data: { action: "navigation#toggle" } %></li>
|
18
18
|
<% end %>
|
19
19
|
|
20
20
|
<% items.each do |item| %>
|
21
|
-
<%= content_tag(:li, class: ("active" if current_navigation_item?(item))) do %>
|
22
|
-
<%= link_to item.path, item.html_options do %>
|
21
|
+
<%= content_tag(:li, class: ["nav-item", ("active" if current_navigation_item?(item))]) do %>
|
22
|
+
<%= link_to item.path, item.html_options.merge(data: { controller: "navigation-tooltip" }) do %>
|
23
23
|
<%= icon("nav-icon", item.icon) %>
|
24
|
-
<span class="nav-label"><%= item.label %></span>
|
24
|
+
<span class="nav-label" data-navigation-tooltip-target="label"><%= item.label %></span>
|
25
25
|
|
26
26
|
<%= content_tag(:span, item.badge.text, class: ["badge", item.badge.html_class]) if item.badge? %>
|
27
27
|
<% end %>
|
@@ -31,8 +31,8 @@
|
|
31
31
|
<% end %>
|
32
32
|
</nav>
|
33
33
|
|
34
|
-
<button class="toggle-sidebar">
|
35
|
-
<span class="
|
34
|
+
<button class="toggle-sidebar" data-action="sidebar#toggle">
|
35
|
+
<span class="visually-hidden"><%= t("trestle.ui.toggle_sidebar", default: "Toggle sidebar") %></span>
|
36
36
|
</button>
|
37
37
|
</div>
|
38
38
|
</aside>
|
@@ -3,9 +3,7 @@
|
|
3
3
|
align-items: center;
|
4
4
|
|
5
5
|
h3 {
|
6
|
-
margin-
|
7
|
-
margin-bottom: 2px;
|
8
|
-
font-size: 1.5rem;
|
6
|
+
margin-bottom: 0.125rem;
|
9
7
|
font-weight: 600;
|
10
8
|
}
|
11
9
|
|
@@ -13,47 +11,60 @@
|
|
13
11
|
margin-bottom: 0;
|
14
12
|
}
|
15
13
|
|
14
|
+
code {
|
15
|
+
color: var(--#{$prefix}alert-color);
|
16
|
+
}
|
17
|
+
|
16
18
|
a {
|
17
|
-
color: white;
|
19
|
+
color: var(--#{$prefix}alert-link-color, white);
|
20
|
+
|
21
|
+
&:hover, &:focus {
|
22
|
+
color: var(--#{$prefix}alert-link-hover-color, inherit);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
@include media-breakpoint-down(md) {
|
27
|
+
--#{$prefix}alert-padding-y: 0.875rem;
|
18
28
|
}
|
19
29
|
|
20
30
|
@include media-breakpoint-down(sm) {
|
21
|
-
|
31
|
+
--#{$prefix}alert-padding-x: 0.625rem;
|
32
|
+
--#{$prefix}alert-padding-y: 0.75rem;
|
22
33
|
|
23
34
|
h3 {
|
24
|
-
font-size: 1.
|
35
|
+
font-size: 1.125rem;
|
25
36
|
}
|
26
37
|
|
27
38
|
p {
|
28
|
-
font-size: 0.
|
39
|
+
font-size: 0.75rem;
|
29
40
|
}
|
30
41
|
}
|
31
42
|
}
|
32
43
|
|
33
44
|
.alert-icon {
|
34
|
-
margin-right: $alert-padding-x;
|
45
|
+
margin-right: var(--#{$prefix}alert-padding-x);
|
35
46
|
|
36
|
-
font-size:
|
37
|
-
width:
|
47
|
+
font-size: 2.375rem;
|
48
|
+
width: 2.375rem;
|
38
49
|
|
39
50
|
text-align: center;
|
40
51
|
|
41
52
|
@include media-breakpoint-down(sm) {
|
42
|
-
margin-left: $alert-padding-x * 0.25;
|
43
|
-
margin-right: $alert-padding-x * 0.75;
|
53
|
+
margin-left: calc(var(--#{$prefix}alert-padding-x) * 0.25);
|
54
|
+
margin-right: calc(var(--#{$prefix}alert-padding-x) * 0.75);
|
44
55
|
|
45
|
-
font-size:
|
46
|
-
width:
|
56
|
+
font-size: 2rem;
|
57
|
+
width: 2rem;
|
47
58
|
}
|
48
59
|
}
|
49
60
|
|
50
61
|
.alert-dismissable {
|
51
62
|
position: relative;
|
52
63
|
|
53
|
-
.close {
|
64
|
+
.btn-close {
|
54
65
|
position: absolute;
|
55
|
-
top: 0.
|
56
|
-
right: $alert-padding-x;
|
66
|
+
top: calc(var(--#{$prefix}alert-padding-y) * 0.5);
|
67
|
+
right: var(--#{$prefix}alert-padding-x);
|
57
68
|
|
58
69
|
color: white;
|
59
70
|
opacity: 0.5;
|
@@ -64,8 +75,7 @@
|
|
64
75
|
}
|
65
76
|
|
66
77
|
@include media-breakpoint-down(sm) {
|
67
|
-
|
68
|
-
right: $alert-padding-x * 0.75;
|
78
|
+
right: calc(var(--#{$prefix}alert-padding-x) * 0.5);
|
69
79
|
}
|
70
80
|
}
|
71
81
|
}
|
@@ -74,21 +84,11 @@
|
|
74
84
|
// Alert colors
|
75
85
|
|
76
86
|
@mixin alert-variant($background, $border, $color) {
|
77
|
-
color: $color;
|
78
|
-
|
79
|
-
border-color: $border;
|
80
|
-
|
81
|
-
|
82
|
-
color: $color;
|
83
|
-
|
84
|
-
&:hover, &:focus {
|
85
|
-
color: mix($color, $background, 80%);
|
86
|
-
}
|
87
|
-
}
|
88
|
-
|
89
|
-
code {
|
90
|
-
color: $color;
|
91
|
-
}
|
87
|
+
--#{$prefix}alert-color: #{$color};
|
88
|
+
--#{$prefix}alert-bg: #{$background};
|
89
|
+
--#{$prefix}alert-border-color: #{$border};
|
90
|
+
--#{$prefix}alert-link-color: #{$color};
|
91
|
+
--#{$prefix}alert-link-hover-color: #{mix($color, $background, 80%)};
|
92
92
|
}
|
93
93
|
|
94
94
|
.alert-success {
|
@@ -119,6 +119,10 @@
|
|
119
119
|
@include alert-variant($alert-primary-bg, $alert-primary-border, $alert-primary-color);
|
120
120
|
}
|
121
121
|
|
122
|
+
.alert-secondary {
|
123
|
+
@include alert-variant($alert-secondary-bg, $alert-secondary-border, $alert-secondary-color);
|
124
|
+
}
|
125
|
+
|
122
126
|
|
123
127
|
// Debug errors
|
124
128
|
|
@@ -130,15 +134,15 @@
|
|
130
134
|
&:after {
|
131
135
|
@include icon-fa($fa-var-caret-down);
|
132
136
|
font-size: 0.75rem;
|
133
|
-
margin-left:
|
137
|
+
margin-left: 0.25rem;
|
134
138
|
}
|
135
139
|
}
|
136
140
|
|
137
141
|
.debug-errors {
|
138
142
|
ul {
|
139
143
|
list-style: none;
|
140
|
-
margin:
|
141
|
-
padding: 0 0 0
|
144
|
+
margin: 0.25rem 0 0 0;
|
145
|
+
padding: 0 0 0 0.25rem;
|
142
146
|
border-left: 4px solid rgba(white, 0.25);
|
143
147
|
}
|
144
148
|
}
|
@@ -1,11 +1,15 @@
|
|
1
1
|
.avatar {
|
2
|
+
--avatar-bg: #ccc;
|
3
|
+
--avatar-size: 2.5rem;
|
4
|
+
--avatar-fallback-font-size: 0.75rem;
|
5
|
+
|
2
6
|
display: inline-block;
|
3
7
|
position: relative;
|
4
8
|
|
5
|
-
width:
|
6
|
-
height:
|
9
|
+
width: var(--avatar-size);
|
10
|
+
height: var(--avatar-size);
|
7
11
|
|
8
|
-
background:
|
12
|
+
background: var(--avatar-bg);
|
9
13
|
border-radius: 50%;
|
10
14
|
box-shadow: rgba(black, 0.25) 0 1px 0;
|
11
15
|
|
@@ -37,21 +41,17 @@
|
|
37
41
|
align-items: center;
|
38
42
|
justify-content: center;
|
39
43
|
|
40
|
-
font-size:
|
44
|
+
font-size: var(--avatar-fallback-font-size);
|
41
45
|
font-weight: 500;
|
42
46
|
}
|
43
47
|
}
|
44
48
|
|
45
49
|
.avatar-sm {
|
46
|
-
|
47
|
-
|
50
|
+
--avatar-size: 1.5rem;
|
51
|
+
--avatar-fallback-font-size: 0.625rem;
|
48
52
|
}
|
49
53
|
|
50
54
|
.avatar-lg {
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
.avatar-fallback {
|
55
|
-
font-size: 1.5rem;
|
56
|
-
}
|
55
|
+
--avatar-size: 4rem;
|
56
|
+
--avatar-fallback-font-size: 1.5rem;
|
57
57
|
}
|
@@ -1,47 +1,19 @@
|
|
1
1
|
%textured-bg {
|
2
|
-
background-image:
|
2
|
+
background-image: var(--theme-texture), var(--theme-gradient);
|
3
3
|
background-repeat: repeat, no-repeat;
|
4
4
|
}
|
5
5
|
|
6
|
-
|
7
|
-
.theme-bg {
|
8
|
-
|
9
|
-
|
10
|
-
}
|
11
|
-
|
12
|
-
|
13
|
-
.theme-bg-dark {
|
14
|
-
@extend %textured-bg;
|
15
|
-
background-color: darken($theme-bg, $theme-color-interval);
|
16
|
-
}
|
17
|
-
|
18
|
-
.theme-bg-darker {
|
19
|
-
@extend %textured-bg;
|
20
|
-
background-color: darken($theme-bg, $theme-color-interval * 2);
|
6
|
+
@each $variation, $lightness in $theme-bg-variations {
|
7
|
+
.theme-bg-#{$variation} {
|
8
|
+
@extend %textured-bg;
|
9
|
+
background-color: adjust-theme-hsl(primary, $lightness: $lightness);
|
10
|
+
}
|
21
11
|
}
|
22
12
|
|
23
|
-
.theme-bg
|
24
|
-
@extend
|
25
|
-
background-color: darken($theme-bg, $theme-color-interval * 3);
|
26
|
-
}
|
27
|
-
|
28
|
-
|
29
|
-
.theme-bg-light {
|
30
|
-
@extend %textured-bg;
|
31
|
-
background-color: lighten($theme-bg, $theme-color-interval);
|
32
|
-
}
|
33
|
-
|
34
|
-
.theme-bg-lighter {
|
35
|
-
@extend %textured-bg;
|
36
|
-
background-color: lighten($theme-bg, $theme-color-interval * 2);
|
37
|
-
}
|
38
|
-
|
39
|
-
.theme-bg-lightest {
|
40
|
-
@extend %textured-bg;
|
41
|
-
background-color: lighten($theme-bg, $theme-color-interval * 3);
|
13
|
+
.theme-bg {
|
14
|
+
@extend .theme-bg-default;
|
42
15
|
}
|
43
16
|
|
44
|
-
|
45
17
|
.error-bg {
|
46
18
|
@extend %textured-bg;
|
47
19
|
background-color: $error-bg;
|
@@ -0,0 +1,31 @@
|
|
1
|
+
@mixin badge-variant(
|
2
|
+
$background,
|
3
|
+
$color: color-contrast($background),
|
4
|
+
$hover-background: shift-color($background, $badge-hover-scale)
|
5
|
+
) {
|
6
|
+
--#{$prefix}badge-bg: #{$background};
|
7
|
+
--#{$prefix}badge-color: #{$color};
|
8
|
+
--#{$prefix}badge-hover-bg: #{$hover-background};
|
9
|
+
}
|
10
|
+
|
11
|
+
.badge {
|
12
|
+
background: var(--#{$prefix}badge-bg);
|
13
|
+
|
14
|
+
@at-root a#{&} {
|
15
|
+
&:hover,
|
16
|
+
&:focus {
|
17
|
+
color: var(--#{$prefix}badge-color);
|
18
|
+
background-color: var(--#{$prefix}badge-hover-bg);
|
19
|
+
}
|
20
|
+
}
|
21
|
+
}
|
22
|
+
|
23
|
+
.badge-pill {
|
24
|
+
border-radius: $border-radius-pill;
|
25
|
+
}
|
26
|
+
|
27
|
+
@each $color, $value in $theme-colors {
|
28
|
+
.badge-#{$color} {
|
29
|
+
@include badge-variant($value);
|
30
|
+
}
|
31
|
+
}
|
@@ -1,40 +1,19 @@
|
|
1
1
|
.breadcrumb {
|
2
|
-
font-size: 0.
|
2
|
+
--#{$prefix}breadcrumb-font-size: 0.75rem;
|
3
|
+
--#{$prefix}breadcrumb-item-padding-x: 0.35rem;
|
3
4
|
|
4
|
-
|
5
|
-
font-
|
6
|
-
|
7
|
-
|
8
|
-
&:hover {
|
9
|
-
text-decoration: none;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
|
13
|
-
@include media-breakpoint-down(sm) {
|
14
|
-
font-size: 0.75rem;
|
5
|
+
@include media-breakpoint-down(md) {
|
6
|
+
--#{$prefix}breadcrumb-font-size: 0.625rem;
|
7
|
+
--#{$prefix}breadcrumb-item-padding-x: 0.25rem;
|
15
8
|
}
|
16
9
|
}
|
17
10
|
|
18
|
-
// Fine-tune spacing between breadcrumb separators
|
19
|
-
|
20
11
|
.breadcrumb-item {
|
21
|
-
|
22
|
-
|
23
|
-
padding-right: 0.35rem;
|
24
|
-
}
|
12
|
+
a {
|
13
|
+
font-weight: normal;
|
25
14
|
}
|
26
|
-
}
|
27
|
-
|
28
|
-
// Reduce breadcrumb separator spacing on mobile
|
29
|
-
|
30
|
-
@include media-breakpoint-down(sm) {
|
31
|
-
.breadcrumb-item {
|
32
|
-
+ .breadcrumb-item {
|
33
|
-
padding-left: $breadcrumb-item-padding / 2;
|
34
15
|
|
35
|
-
|
36
|
-
|
37
|
-
}
|
38
|
-
}
|
16
|
+
&.active a {
|
17
|
+
color: inherit;
|
39
18
|
}
|
40
19
|
}
|
@@ -3,9 +3,10 @@
|
|
3
3
|
|
4
4
|
&.loading {
|
5
5
|
&::before {
|
6
|
+
display: inline-block;
|
6
7
|
@include icon-fa($fa-var-spinner);
|
7
8
|
@extend .fa-spin;
|
8
|
-
margin-right:
|
9
|
+
margin-right: 0.625rem;
|
9
10
|
}
|
10
11
|
}
|
11
12
|
|
@@ -13,7 +14,7 @@
|
|
13
14
|
font-size: 90%;
|
14
15
|
|
15
16
|
+ .btn-label {
|
16
|
-
margin-left:
|
17
|
+
margin-left: 0.25rem;
|
17
18
|
}
|
18
19
|
}
|
19
20
|
}
|
@@ -22,11 +23,11 @@
|
|
22
23
|
// Alternative delete button (no background color until hover)
|
23
24
|
|
24
25
|
.btn-delete {
|
25
|
-
color:
|
26
|
+
color: $danger;
|
26
27
|
|
27
28
|
&:hover, &:focus {
|
28
|
-
color: color-
|
29
|
-
background:
|
29
|
+
color: color-contrast($danger);
|
30
|
+
background: $danger;
|
30
31
|
}
|
31
32
|
}
|
32
33
|
|
@@ -39,7 +40,7 @@
|
|
39
40
|
}
|
40
41
|
|
41
42
|
.btn-label {
|
42
|
-
@include
|
43
|
+
@include visually-hidden;
|
43
44
|
}
|
44
45
|
}
|
45
46
|
|
@@ -125,7 +126,7 @@
|
|
125
126
|
|
126
127
|
@include button-child-visible('icon', '> i') {
|
127
128
|
> i + .btn-label {
|
128
|
-
margin-left:
|
129
|
+
margin-left: 0.25rem;
|
129
130
|
}
|
130
131
|
};
|
131
132
|
|
@@ -4,12 +4,14 @@
|
|
4
4
|
right: 0;
|
5
5
|
z-index: 4;
|
6
6
|
|
7
|
-
width:
|
8
|
-
height:
|
9
|
-
line-height:
|
7
|
+
width: 2rem;
|
8
|
+
height: 2rem;
|
9
|
+
line-height: 2rem;
|
10
10
|
text-align: center;
|
11
11
|
|
12
12
|
color: #ccc;
|
13
|
+
background: none;
|
14
|
+
border: none;
|
13
15
|
|
14
16
|
&:hover, &:focus {
|
15
17
|
color: #aaa;
|
@@ -47,7 +49,7 @@
|
|
47
49
|
margin-top: $dropdown-spacer;
|
48
50
|
|
49
51
|
&::after {
|
50
|
-
border-bottom-color:
|
52
|
+
border-bottom-color: tint-color($theme-bg, 95%);
|
51
53
|
}
|
52
54
|
}
|
53
55
|
|
@@ -55,7 +57,7 @@
|
|
55
57
|
margin-top: -$dropdown-spacer;
|
56
58
|
}
|
57
59
|
|
58
|
-
&.
|
60
|
+
&.hasTime {
|
59
61
|
.flatpickr-time {
|
60
62
|
border-radius: 0 0 5px 5px;
|
61
63
|
}
|
@@ -66,7 +68,7 @@
|
|
66
68
|
border-bottom-color: white;
|
67
69
|
}
|
68
70
|
|
69
|
-
&.
|
71
|
+
&.hasTime {
|
70
72
|
.flatpickr-time {
|
71
73
|
border-top: 0;
|
72
74
|
border-radius: 5px;
|
@@ -85,8 +87,10 @@
|
|
85
87
|
|
86
88
|
.flatpickr-prev-month,
|
87
89
|
.flatpickr-next-month {
|
90
|
+
line-height: 1;
|
91
|
+
|
88
92
|
&:hover svg {
|
89
|
-
fill:
|
93
|
+
fill: tint-color($primary, 50%);
|
90
94
|
}
|
91
95
|
}
|
92
96
|
}
|
@@ -130,16 +134,16 @@ span.flatpickr-weekday {
|
|
130
134
|
.flatpickr-day.selected.nextMonthDay,
|
131
135
|
.flatpickr-day.startRange.nextMonthDay,
|
132
136
|
.flatpickr-day.endRange.nextMonthDay {
|
133
|
-
background:
|
134
|
-
border-color:
|
137
|
+
background: var(--primary);
|
138
|
+
border-color: var(--primary);
|
135
139
|
}
|
136
140
|
|
137
141
|
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
|
138
142
|
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
|
139
143
|
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
|
140
|
-
box-shadow: -10px 0 0
|
144
|
+
box-shadow: -10px 0 0 var(--primary);
|
141
145
|
}
|
142
146
|
|
143
147
|
.flatpickr-day.week.selected {
|
144
|
-
box-shadow: -5px 0 0
|
148
|
+
box-shadow: -5px 0 0 var(--primary), 5px 0 0 var(--primary);
|
145
149
|
}
|