trestle 0.9.9 → 0.10.0.pre
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/rspec.yml +31 -3
- data/.gitignore +3 -0
- data/Gemfile +5 -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.rb +21 -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 +34 -0
- data/app/helpers/trestle/tab_helper.rb +1 -1
- data/app/helpers/trestle/turbo_frame_helper.rb +34 -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 +11 -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 +1 -1
- 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 +5 -0
- data/app/views/trestle/resource/destroy.turbo_stream.erb +1 -0
- data/app/views/trestle/resource/edit.html.erb +4 -2
- data/app/views/trestle/resource/index.html.erb +12 -10
- data/app/views/trestle/resource/new.html.erb +4 -2
- data/app/views/trestle/resource/show.html.erb +4 -2
- data/app/views/trestle/resource/update.turbo_stream.erb +5 -0
- data/app/views/trestle/shared/_sidebar.html.erb +9 -9
- data/frontend/css/components/_alerts.scss +19 -17
- data/frontend/css/components/_background.scss +7 -35
- data/frontend/css/components/_badges.scss +31 -0
- data/frontend/css/components/_breadcrumbs.scss +4 -4
- data/frontend/css/components/_buttons.scss +5 -4
- data/frontend/css/components/_datepicker.scss +12 -8
- data/frontend/css/components/_dropdown.scss +23 -3
- data/frontend/css/components/{_fields.scss → _forms.scss} +16 -3
- data/frontend/css/components/_media-grid.scss +52 -44
- data/frontend/css/components/_modal.scss +33 -4
- data/frontend/css/components/_pagination.scss +1 -1
- data/frontend/css/components/_photoswipe.scss +8 -0
- data/frontend/css/components/_popover.scss +1 -0
- data/frontend/css/components/_scopes.scss +1 -1
- data/frontend/css/components/_select.scss +161 -31
- data/frontend/css/components/_table.scss +60 -65
- data/frontend/css/components/_tabs.scss +10 -3
- data/frontend/css/components/_tags.scss +71 -16
- data/frontend/css/components/_toolbars.scss +16 -11
- 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 +39 -0
- data/frontend/css/core/_mixins.scss +2 -36
- data/frontend/css/core/_theme.scss +258 -0
- data/frontend/css/core/_typography.scss +10 -1
- data/frontend/css/icons/_fontawesome.scss +3 -15
- data/frontend/css/index.scss +12 -6
- data/frontend/css/layout/_base.scss +3 -3
- data/frontend/css/layout/_content.scss +10 -6
- data/frontend/css/layout/_footer.scss +1 -1
- data/frontend/css/layout/_header.scss +5 -3
- data/frontend/css/layout/_navigation.scss +2 -2
- data/frontend/css/layout/_sidebar.scss +19 -9
- data/frontend/css/support/_sprockets.scss +2 -0
- data/frontend/css/support/_webpack.scss +2 -0
- data/frontend/css/variables/_bootstrap.scss +134 -40
- data/frontend/css/variables/_maps.scss +15 -0
- data/frontend/css/variables/_trestle.scss +55 -26
- data/frontend/js/controllers/application_controller.js +17 -0
- data/frontend/js/controllers/checkbox_select_controller.js +43 -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 +23 -17
- 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 +2 -2
- 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/item.rb +1 -1
- data/lib/trestle/toolbar/menu.rb +3 -6
- data/lib/trestle/version.rb +1 -1
- data/lib/trestle.rb +2 -23
- data/package.json +31 -27
- data/trestle.gemspec +2 -3
- data/webpack.config.js +10 -10
- data/yarn.lock +1456 -1194
- metadata +166 -164
- 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/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,93 +0,0 @@
|
|
1
|
-
.custom-control-input {
|
2
|
-
&:checked ~ .custom-control-label::before {
|
3
|
-
border-color: $custom-control-indicator-checked-border-color;
|
4
|
-
background-color: $custom-control-indicator-checked-bg;
|
5
|
-
}
|
6
|
-
|
7
|
-
&:focus ~ .custom-control-label::before {
|
8
|
-
box-shadow: $custom-control-indicator-focus-box-shadow;
|
9
|
-
}
|
10
|
-
|
11
|
-
&:focus:not(:checked) ~ .custom-control-label::before {
|
12
|
-
border-color: $custom-control-indicator-focus-border-color;
|
13
|
-
}
|
14
|
-
|
15
|
-
&:not(:disabled):active ~ .custom-control-label::before {
|
16
|
-
background-color: $custom-control-indicator-active-bg;
|
17
|
-
border-color: $custom-control-indicator-active-border-color;
|
18
|
-
}
|
19
|
-
}
|
20
|
-
|
21
|
-
.custom-checkbox {
|
22
|
-
.custom-control-input:indeterminate ~ .custom-control-label {
|
23
|
-
&::before {
|
24
|
-
border-color: $custom-checkbox-indicator-indeterminate-border-color;
|
25
|
-
background-color: $custom-checkbox-indicator-indeterminate-bg;
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
.custom-control-input:disabled {
|
30
|
-
&:checked ~ .custom-control-label::before {
|
31
|
-
background-color: $custom-control-indicator-checked-disabled-bg;
|
32
|
-
}
|
33
|
-
&:indeterminate ~ .custom-control-label::before {
|
34
|
-
background-color: $custom-control-indicator-checked-disabled-bg;
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
.custom-radio {
|
40
|
-
.custom-control-input:disabled {
|
41
|
-
&:checked ~ .custom-control-label::before {
|
42
|
-
background-color: $custom-control-indicator-checked-disabled-bg;
|
43
|
-
}
|
44
|
-
}
|
45
|
-
}
|
46
|
-
|
47
|
-
.custom-switch {
|
48
|
-
.custom-control-input:disabled {
|
49
|
-
&:checked ~ .custom-control-label::before {
|
50
|
-
background-color: $custom-control-indicator-checked-disabled-bg;
|
51
|
-
}
|
52
|
-
}
|
53
|
-
}
|
54
|
-
|
55
|
-
.custom-select {
|
56
|
-
&:focus {
|
57
|
-
border-color: $custom-select-focus-border-color;
|
58
|
-
box-shadow: $custom-select-focus-box-shadow;
|
59
|
-
}
|
60
|
-
}
|
61
|
-
|
62
|
-
.custom-file-input {
|
63
|
-
&:focus ~ .custom-file-label {
|
64
|
-
border-color: $custom-file-focus-border-color;
|
65
|
-
box-shadow: $custom-file-focus-box-shadow;
|
66
|
-
}
|
67
|
-
}
|
68
|
-
|
69
|
-
.custom-range {
|
70
|
-
&::-webkit-slider-thumb {
|
71
|
-
background-color: $custom-range-thumb-bg;
|
72
|
-
|
73
|
-
&:active {
|
74
|
-
background-color: $custom-range-thumb-active-bg;
|
75
|
-
}
|
76
|
-
}
|
77
|
-
|
78
|
-
&::-moz-range-thumb {
|
79
|
-
background-color: $custom-range-thumb-bg;
|
80
|
-
|
81
|
-
&:active {
|
82
|
-
background-color: $custom-range-thumb-active-bg;
|
83
|
-
}
|
84
|
-
}
|
85
|
-
|
86
|
-
&::-ms-thumb {
|
87
|
-
background-color: $custom-range-thumb-bg;
|
88
|
-
|
89
|
-
&:active {
|
90
|
-
background-color: $custom-range-thumb-active-bg;
|
91
|
-
}
|
92
|
-
}
|
93
|
-
}
|
@@ -1,31 +0,0 @@
|
|
1
|
-
.list-group-item {
|
2
|
-
&.active {
|
3
|
-
background-color: $list-group-active-bg;
|
4
|
-
border-color: $list-group-active-border-color;
|
5
|
-
}
|
6
|
-
}
|
7
|
-
|
8
|
-
@mixin list-group-item-variant($state, $background, $color) {
|
9
|
-
.list-group-item-#{$state} {
|
10
|
-
color: $color;
|
11
|
-
background-color: $background;
|
12
|
-
|
13
|
-
&.list-group-item-action {
|
14
|
-
&:hover,
|
15
|
-
&:focus {
|
16
|
-
color: $color;
|
17
|
-
background-color: darken($background, 5%);
|
18
|
-
}
|
19
|
-
|
20
|
-
&.active {
|
21
|
-
color: white;
|
22
|
-
background-color: $color;
|
23
|
-
border-color: $color;
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
}
|
28
|
-
|
29
|
-
@each $color, $value in $theme-colors {
|
30
|
-
@include list-group-item-variant($color, theme-color-level($color, -9), theme-color-level($color, 6));
|
31
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
.page-link {
|
2
|
-
color: $pagination-color;
|
3
|
-
|
4
|
-
&:hover {
|
5
|
-
color: $pagination-hover-color;
|
6
|
-
}
|
7
|
-
|
8
|
-
&:focus {
|
9
|
-
box-shadow: $pagination-focus-box-shadow;
|
10
|
-
}
|
11
|
-
}
|
12
|
-
|
13
|
-
.page-item {
|
14
|
-
&.active .page-link {
|
15
|
-
background-color: $pagination-active-bg;
|
16
|
-
border-color: $pagination-active-border-color;
|
17
|
-
}
|
18
|
-
}
|
@@ -1,41 +0,0 @@
|
|
1
|
-
@mixin table-row-variant($state, $background, $border: null) {
|
2
|
-
// Exact selectors below required to override `.table-striped` and prevent
|
3
|
-
// inheritance to nested tables.
|
4
|
-
.table-#{$state} {
|
5
|
-
&,
|
6
|
-
> th,
|
7
|
-
> td {
|
8
|
-
background-color: $background;
|
9
|
-
}
|
10
|
-
|
11
|
-
@if $border != null {
|
12
|
-
th,
|
13
|
-
td,
|
14
|
-
thead th,
|
15
|
-
tbody + tbody {
|
16
|
-
border-color: $border;
|
17
|
-
}
|
18
|
-
}
|
19
|
-
}
|
20
|
-
|
21
|
-
// Hover states for `.table-hover`
|
22
|
-
// Note: this is not available for cells or rows within `thead` or `tfoot`.
|
23
|
-
.table-hover {
|
24
|
-
$hover-background: darken($background, 5%);
|
25
|
-
|
26
|
-
.table-#{$state} {
|
27
|
-
&:hover {
|
28
|
-
background-color: $hover-background;
|
29
|
-
|
30
|
-
> td,
|
31
|
-
> th {
|
32
|
-
background-color: $hover-background;
|
33
|
-
}
|
34
|
-
}
|
35
|
-
}
|
36
|
-
}
|
37
|
-
}
|
38
|
-
|
39
|
-
@each $color, $value in $theme-colors {
|
40
|
-
@include table-row-variant($color, theme-color-level($color, $table-bg-level), theme-color-level($color, $table-border-level));
|
41
|
-
}
|
@@ -1,17 +0,0 @@
|
|
1
|
-
@mixin bg-variant($parent, $color) {
|
2
|
-
#{$parent} {
|
3
|
-
background-color: $color !important;
|
4
|
-
}
|
5
|
-
|
6
|
-
a#{$parent},
|
7
|
-
button#{$parent} {
|
8
|
-
&:hover,
|
9
|
-
&:focus {
|
10
|
-
background-color: darken($color, 10%) !important;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|
14
|
-
|
15
|
-
@each $color, $value in $theme-colors {
|
16
|
-
@include bg-variant(".bg-#{$color}", $value);
|
17
|
-
}
|
@@ -1,18 +0,0 @@
|
|
1
|
-
@mixin text-emphasis-variant($parent, $color) {
|
2
|
-
#{$parent} {
|
3
|
-
color: $color !important;
|
4
|
-
}
|
5
|
-
|
6
|
-
@if $emphasized-link-hover-darken-percentage != 0 {
|
7
|
-
a#{$parent} {
|
8
|
-
&:hover,
|
9
|
-
&:focus {
|
10
|
-
color: darken($color, $emphasized-link-hover-darken-percentage) !important;
|
11
|
-
}
|
12
|
-
}
|
13
|
-
}
|
14
|
-
}
|
15
|
-
|
16
|
-
@each $color, $value in $theme-colors {
|
17
|
-
@include text-emphasis-variant(".text-#{$color}", $value);
|
18
|
-
}
|
@@ -1,61 +0,0 @@
|
|
1
|
-
@if $theme-bg {
|
2
|
-
.theme-bg {
|
3
|
-
background: $theme-bg;
|
4
|
-
}
|
5
|
-
|
6
|
-
|
7
|
-
.theme-bg-dark {
|
8
|
-
background: gradient-mask(black, 0.1), $theme-bg;
|
9
|
-
}
|
10
|
-
|
11
|
-
.theme-bg-darker {
|
12
|
-
background: gradient-mask(black, 0.2), $theme-bg;
|
13
|
-
}
|
14
|
-
|
15
|
-
.theme-bg-darkest {
|
16
|
-
background: gradient-mask(black, 0.3), $theme-bg;
|
17
|
-
}
|
18
|
-
|
19
|
-
|
20
|
-
.theme-bg-light {
|
21
|
-
background: gradient-mask(white, 0.1), $theme-bg;
|
22
|
-
}
|
23
|
-
|
24
|
-
.theme-bg-lighter {
|
25
|
-
background: gradient-mask(white, 0.2), $theme-bg;
|
26
|
-
}
|
27
|
-
|
28
|
-
.theme-bg-lightest {
|
29
|
-
background: gradient-mask(white, 0.3), $theme-bg;
|
30
|
-
}
|
31
|
-
} @else {
|
32
|
-
.theme-bg {
|
33
|
-
background-color: $theme-bg-color;
|
34
|
-
}
|
35
|
-
|
36
|
-
|
37
|
-
.theme-bg-dark {
|
38
|
-
background-color: darken($theme-bg-color, $theme-color-interval);
|
39
|
-
}
|
40
|
-
|
41
|
-
.theme-bg-darker {
|
42
|
-
background-color: darken($theme-bg-color, $theme-color-interval * 2);
|
43
|
-
}
|
44
|
-
|
45
|
-
.theme-bg-darkest {
|
46
|
-
background-color: darken($theme-bg-color, $theme-color-interval * 3);
|
47
|
-
}
|
48
|
-
|
49
|
-
|
50
|
-
.theme-bg-light {
|
51
|
-
background-color: lighten($theme-bg-color, $theme-color-interval);
|
52
|
-
}
|
53
|
-
|
54
|
-
.theme-bg-lighter {
|
55
|
-
background-color: lighten($theme-bg-color, $theme-color-interval * 2);
|
56
|
-
}
|
57
|
-
|
58
|
-
.theme-bg-lightest {
|
59
|
-
background-color: lighten($theme-bg-color, $theme-color-interval * 3);
|
60
|
-
}
|
61
|
-
}
|
@@ -1,58 +0,0 @@
|
|
1
|
-
@if $theme-bg {
|
2
|
-
.flatpickr-calendar {
|
3
|
-
background: $theme-bg;
|
4
|
-
}
|
5
|
-
} @else {
|
6
|
-
.flatpickr-calendar {
|
7
|
-
background-color: $theme-bg-color;
|
8
|
-
}
|
9
|
-
}
|
10
|
-
|
11
|
-
.flatpickr-calendar {
|
12
|
-
&.arrowTop {
|
13
|
-
&::after {
|
14
|
-
border-bottom-color: mix($theme-bg-color, white, 95%);
|
15
|
-
}
|
16
|
-
}
|
17
|
-
}
|
18
|
-
|
19
|
-
.flatpickr-months {
|
20
|
-
.flatpickr-prev-month,
|
21
|
-
.flatpickr-next-month {
|
22
|
-
&:hover svg {
|
23
|
-
fill: lighten(theme-color("primary"), 15%);
|
24
|
-
}
|
25
|
-
}
|
26
|
-
}
|
27
|
-
|
28
|
-
.flatpickr-day.selected,
|
29
|
-
.flatpickr-day.startRange,
|
30
|
-
.flatpickr-day.endRange,
|
31
|
-
.flatpickr-day.selected.inRange,
|
32
|
-
.flatpickr-day.startRange.inRange,
|
33
|
-
.flatpickr-day.endRange.inRange,
|
34
|
-
.flatpickr-day.selected:focus,
|
35
|
-
.flatpickr-day.startRange:focus,
|
36
|
-
.flatpickr-day.endRange:focus,
|
37
|
-
.flatpickr-day.selected:hover,
|
38
|
-
.flatpickr-day.startRange:hover,
|
39
|
-
.flatpickr-day.endRange:hover,
|
40
|
-
.flatpickr-day.selected.prevMonthDay,
|
41
|
-
.flatpickr-day.startRange.prevMonthDay,
|
42
|
-
.flatpickr-day.endRange.prevMonthDay,
|
43
|
-
.flatpickr-day.selected.nextMonthDay,
|
44
|
-
.flatpickr-day.startRange.nextMonthDay,
|
45
|
-
.flatpickr-day.endRange.nextMonthDay {
|
46
|
-
background: theme-color("primary");
|
47
|
-
border-color: theme-color("primary");
|
48
|
-
}
|
49
|
-
|
50
|
-
.flatpickr-day.selected.startRange + .endRange:not(:nth-child(7n+1)),
|
51
|
-
.flatpickr-day.startRange.startRange + .endRange:not(:nth-child(7n+1)),
|
52
|
-
.flatpickr-day.endRange.startRange + .endRange:not(:nth-child(7n+1)) {
|
53
|
-
box-shadow: -10px 0 0 theme-color("primary");
|
54
|
-
}
|
55
|
-
|
56
|
-
.flatpickr-day.week.selected {
|
57
|
-
box-shadow: -5px 0 0 theme-color("primary"), 5px 0 0 theme-color("primary");
|
58
|
-
}
|
@@ -1,15 +0,0 @@
|
|
1
|
-
.app-sidebar-header {
|
2
|
-
.navbar-toggler {
|
3
|
-
background: $sidebar-mobile-toggle-bg;
|
4
|
-
border: $sidebar-mobile-toggle-border;
|
5
|
-
|
6
|
-
&:hover, &:focus {
|
7
|
-
background: $sidebar-mobile-toggle-active-bg;
|
8
|
-
border: $sidebar-mobile-toggle-active-border;
|
9
|
-
}
|
10
|
-
}
|
11
|
-
|
12
|
-
.navbar-toggler-icon {
|
13
|
-
background-image: $sidebar-mobile-toggle-icon-bg;
|
14
|
-
}
|
15
|
-
}
|
@@ -1,22 +0,0 @@
|
|
1
|
-
.select2-container--bootstrap {
|
2
|
-
.select2-results__option {
|
3
|
-
&--highlighted[aria-selected] {
|
4
|
-
background-color: $s2bs-dropdown-link-active-bg;
|
5
|
-
}
|
6
|
-
}
|
7
|
-
|
8
|
-
&.select2-container--focus,
|
9
|
-
&.select2-container--open {
|
10
|
-
.select2-selection {
|
11
|
-
border-color: $s2bs-input-border-focus !important;
|
12
|
-
box-shadow: $s2bs-form-control-focus-box-shadow !important;
|
13
|
-
}
|
14
|
-
}
|
15
|
-
|
16
|
-
.select2-selection--multiple.tag-select {
|
17
|
-
.select2-selection__choice {
|
18
|
-
background-color: $tag-bg;
|
19
|
-
border-color: $tag-border;
|
20
|
-
}
|
21
|
-
}
|
22
|
-
}
|
@@ -1,29 +0,0 @@
|
|
1
|
-
@charset "UTF-8";
|
2
|
-
|
3
|
-
@import "theme/functions";
|
4
|
-
@import "theme/variables";
|
5
|
-
@import "theme/defaults";
|
6
|
-
|
7
|
-
@import "theme/bootstrap/color-vars";
|
8
|
-
@import "theme/bootstrap/links";
|
9
|
-
@import "theme/bootstrap/tables";
|
10
|
-
@import "theme/bootstrap/forms";
|
11
|
-
@import "theme/bootstrap/buttons";
|
12
|
-
@import "theme/bootstrap/dropdown";
|
13
|
-
@import "theme/bootstrap/custom-forms";
|
14
|
-
@import "theme/bootstrap/nav";
|
15
|
-
@import "theme/bootstrap/pagination";
|
16
|
-
@import "theme/bootstrap/badge";
|
17
|
-
@import "theme/bootstrap/alert";
|
18
|
-
@import "theme/bootstrap/progress";
|
19
|
-
@import "theme/bootstrap/list-group";
|
20
|
-
@import "theme/bootstrap/utilities";
|
21
|
-
|
22
|
-
@import "theme/trestle/background";
|
23
|
-
@import "theme/trestle/headers";
|
24
|
-
@import "theme/trestle/navigation";
|
25
|
-
@import "theme/trestle/navbar";
|
26
|
-
@import "theme/trestle/datepicker";
|
27
|
-
@import "theme/trestle/select2";
|
28
|
-
@import "theme/trestle/tags";
|
29
|
-
@import "theme/trestle/turbolinks";
|
@@ -1,13 +0,0 @@
|
|
1
|
-
// This file may be used to override the Sass variables used within the Trestle
|
2
|
-
// admin. It will be automatically included within all admin pages.
|
3
|
-
//
|
4
|
-
// A subset of Bootstrap and Trestle defaults can be set here.
|
5
|
-
// For a detailed overview of the customizable variables, see the file
|
6
|
-
// `frontend/theme/trestle/theme/_defaults.scss` within the Trestle source.
|
7
|
-
|
8
|
-
// Customize admin theme colors:
|
9
|
-
//
|
10
|
-
// $theme-colors: (
|
11
|
-
// "primary": #337ab7,
|
12
|
-
// "secondary": #719dc3
|
13
|
-
// );
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|