comfortable_media_surfer 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.codeclimate.yml +4 -0
- data/.gitattributes +2 -0
- data/.github/issue_template.md +19 -0
- data/.github/pull_request_template.md +6 -0
- data/.github/workflows/coveralls.yml +40 -0
- data/.github/workflows/rubyonrails.yml +51 -0
- data/.gitignore +21 -0
- data/.rubocop.yml +75 -0
- data/.travis.yml +44 -0
- data/CONTRIBUTING.md +35 -0
- data/Gemfile +38 -0
- data/LICENSE +20 -0
- data/README.md +109 -0
- data/Rakefile +5 -0
- data/app/assets/config/manifest.js +0 -0
- data/app/assets/fonts/comfy/admin/cms/lib/redactor-font.eot +0 -0
- data/app/assets/javascripts/comfy/admin/cms/application.js +39 -0
- data/app/assets/javascripts/comfy/admin/cms/base.js +46 -0
- data/app/assets/javascripts/comfy/admin/cms/categories.js +17 -0
- data/app/assets/javascripts/comfy/admin/cms/codemirror.js +31 -0
- data/app/assets/javascripts/comfy/admin/cms/custom.js +1 -0
- data/app/assets/javascripts/comfy/admin/cms/diff.js +10 -0
- data/app/assets/javascripts/comfy/admin/cms/file_link.js +67 -0
- data/app/assets/javascripts/comfy/admin/cms/file_upload.js +194 -0
- data/app/assets/javascripts/comfy/admin/cms/files_modal.js +40 -0
- data/app/assets/javascripts/comfy/admin/cms/page_fragments.js +22 -0
- data/app/assets/javascripts/comfy/admin/cms/slugify.js +34 -0
- data/app/assets/javascripts/comfy/admin/cms/sortable_list.js +40 -0
- data/app/assets/javascripts/comfy/admin/cms/timepicker.js +30 -0
- data/app/assets/javascripts/comfy/admin/cms/wysiwyg.js +72 -0
- data/app/assets/javascripts/comfy/vendor/Moxie.swf +0 -0
- data/app/assets/javascripts/comfy/vendor/Moxie.xap +0 -0
- data/app/assets/javascripts/comfy/vendor/bootstrap.bundle.min.js +7 -0
- data/app/assets/javascripts/comfy/vendor/bootstrap.bundle.min.js.map +1 -0
- data/app/assets/javascripts/comfy/vendor/codemirror/addon/edit/closetag.js +169 -0
- data/app/assets/javascripts/comfy/vendor/codemirror/mode/css/css.js +832 -0
- data/app/assets/javascripts/comfy/vendor/codemirror/mode/htmlmixed/htmlmixed.js +152 -0
- data/app/assets/javascripts/comfy/vendor/codemirror/mode/javascript/javascript.js +875 -0
- data/app/assets/javascripts/comfy/vendor/codemirror/mode/markdown/markdown.js +861 -0
- data/app/assets/javascripts/comfy/vendor/codemirror/mode/xml/xml.js +394 -0
- data/app/assets/javascripts/comfy/vendor/codemirror.js +9653 -0
- data/app/assets/javascripts/comfy/vendor/diff/diff_match_patch.min.js +49 -0
- data/app/assets/javascripts/comfy/vendor/diff/pretty_text_diff.js +76 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/ar.js +52 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/bg.js +65 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/bn.js +65 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/ca.js +83 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/cs.js +70 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/cy.js +92 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/da.js +71 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/de.js +70 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/default.js +80 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/eo.js +73 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/es.js +69 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/et.js +73 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/fa.js +68 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/fi.js +69 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/fr.js +75 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/gr.js +74 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/he.js +57 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/hi.js +65 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/hr.js +66 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/hu.js +72 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/id.js +61 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/it.js +70 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/ja.js +57 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/ko.js +60 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/lt.js +72 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/lv.js +67 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/mk.js +69 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/mn.js +67 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/ms.js +68 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/my.js +69 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/nl.js +75 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/no.js +73 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/pa.js +65 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/pl.js +68 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/pt-BR.js +66 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/pt.js +66 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/ro.js +69 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/ru.js +66 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/si.js +65 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/sk.js +70 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/sl.js +70 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/sq.js +65 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/sr.js +69 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/sv.js +70 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/th.js +72 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/tr.js +66 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/uk.js +66 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/vn.js +66 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/zh-CN.js +61 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr/i18n/zh-TW.js +61 -0
- data/app/assets/javascripts/comfy/vendor/flatpickr.min.js +2 -0
- data/app/assets/javascripts/comfy/vendor/fontawesome.js +5 -0
- data/app/assets/javascripts/comfy/vendor/moxie.min.js +16 -0
- data/app/assets/javascripts/comfy/vendor/plupload.dev.js +2497 -0
- data/app/assets/javascripts/comfy/vendor/redactor/definedlinks.js +53 -0
- data/app/assets/javascripts/comfy/vendor/redactor/filemanager.js +64 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/ar.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/az.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/ba.js +79 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/bg.js +77 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/by.js +77 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/ca.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/cs.js +87 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/da.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/de.js +80 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/el.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/en.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/eo.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/es.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/es_AR.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/fa.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/fi.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/fr.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/ge.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/gr.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/he.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/hr.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/hu.js +77 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/id.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/it.js +78 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/ja.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/kn.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/ko.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/lt.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/lv.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/mk.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/nb.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/nl.js +80 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/pl.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/pt-BR.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/pt.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/ro.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/ru.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/sk.js +76 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/sl.js +79 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/sq.js +79 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/sr-CIR.js +79 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/sr-LAT.js +79 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/sv.js +74 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/th.js +74 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/tr.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/ua.js +77 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/uk.js +77 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/vi.js +74 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/zh-CN.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/i18n/zh-TW.js +75 -0
- data/app/assets/javascripts/comfy/vendor/redactor/imagemanager.js +57 -0
- data/app/assets/javascripts/comfy/vendor/redactor/table.js +337 -0
- data/app/assets/javascripts/comfy/vendor/redactor/video.js +77 -0
- data/app/assets/javascripts/comfy/vendor/redactor.js +9561 -0
- data/app/assets/javascripts/comfy/vendor/sortable.min.js +5 -0
- data/app/assets/stylesheets/comfy/admin/cms/application.sass +11 -0
- data/app/assets/stylesheets/comfy/admin/cms/base.sass +256 -0
- data/app/assets/stylesheets/comfy/admin/cms/codemirror_overrides.sass +19 -0
- data/app/assets/stylesheets/comfy/admin/cms/custom.sass +1 -0
- data/app/assets/stylesheets/comfy/admin/cms/redactor_overrides.sass +22 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_alert.scss +51 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_badge.scss +54 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_breadcrumb.scss +41 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_button-group.scss +163 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_buttons.scss +137 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_card.scss +289 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_carousel.scss +197 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_close.scss +41 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_code.scss +48 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_custom-forms.scss +507 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_dropdown.scss +191 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_forms.scss +330 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_functions.scss +86 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_grid.scss +52 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_images.scss +42 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_input-group.scss +193 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_jumbotron.scss +17 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_list-group.scss +149 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_media.scss +8 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_mixins.scss +47 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_modal.scss +229 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_nav.scss +120 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_navbar.scss +294 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_pagination.scss +73 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_popover.scss +171 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_print.scss +141 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_progress.scss +43 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_reboot.scss +483 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_root.scss +19 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_spinners.scss +55 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_tables.scss +185 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_toasts.scss +44 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_tooltip.scss +115 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_transitions.scss +20 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_type.scss +125 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_utilities.scss +17 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/_variables.scss +1123 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/bootstrap-grid.scss +29 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/bootstrap-reboot.scss +12 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/bootstrap.scss +44 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_alert.scss +13 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_background-variant.scss +21 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_badge.scss +17 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_border-radius.scss +63 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_box-shadow.scss +20 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_breakpoints.scss +123 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_buttons.scss +107 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_caret.scss +62 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_clearfix.scss +7 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_deprecate.scss +10 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_float.scss +14 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_forms.scss +192 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_gradients.scss +45 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_grid-framework.scss +66 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_grid.scss +51 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_hover.scss +37 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_image.scss +36 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_list-group.scss +21 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_lists.scss +7 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_nav-divider.scss +10 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_pagination.scss +22 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_reset-text.scss +17 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_resize.scss +6 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_screen-reader.scss +33 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_size.scss +7 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_table-row.scss +39 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_text-emphasis.scss +16 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_text-hide.scss +11 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_text-truncate.scss +8 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_transition.scss +16 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/mixins/_visibility.scss +8 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_align.scss +8 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_background.scss +19 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_borders.scss +75 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_clearfix.scss +3 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_display.scss +26 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_embed.scss +39 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_flex.scss +51 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_float.scss +11 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_overflow.scss +5 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_position.scss +32 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_screenreaders.scss +11 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_shadows.scss +6 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_sizing.scss +20 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_spacing.scss +73 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_stretched-link.scss +19 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_text.scss +72 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/utilities/_visibility.scss +13 -0
- data/app/assets/stylesheets/comfy/vendor/bootstrap/vendor/_rfs.scss +204 -0
- data/app/assets/stylesheets/comfy/vendor/codemirror.css +346 -0
- data/app/assets/stylesheets/comfy/vendor/flatpickr.min.css +13 -0
- data/app/assets/stylesheets/comfy/vendor/fontawesome.css +343 -0
- data/app/assets/stylesheets/comfy/vendor/redactor.css +948 -0
- data/app/controllers/application_controller.rb +5 -0
- data/app/controllers/comfy/admin/base_controller.rb +20 -0
- data/app/controllers/comfy/admin/cms/base_controller.rb +54 -0
- data/app/controllers/comfy/admin/cms/categories_controller.rb +38 -0
- data/app/controllers/comfy/admin/cms/files_controller.rb +139 -0
- data/app/controllers/comfy/admin/cms/layouts_controller.rb +68 -0
- data/app/controllers/comfy/admin/cms/pages_controller.rb +163 -0
- data/app/controllers/comfy/admin/cms/revisions/base_controller.rb +48 -0
- data/app/controllers/comfy/admin/cms/revisions/layout_controller.rb +16 -0
- data/app/controllers/comfy/admin/cms/revisions/page_controller.rb +28 -0
- data/app/controllers/comfy/admin/cms/revisions/snippet_controller.rb +16 -0
- data/app/controllers/comfy/admin/cms/revisions/translation_controller.rb +29 -0
- data/app/controllers/comfy/admin/cms/sites_controller.rb +68 -0
- data/app/controllers/comfy/admin/cms/snippets_controller.rb +65 -0
- data/app/controllers/comfy/admin/cms/translations_controller.rb +105 -0
- data/app/controllers/comfy/cms/assets_controller.rb +38 -0
- data/app/controllers/comfy/cms/base_controller.rb +26 -0
- data/app/controllers/comfy/cms/content_controller.rb +90 -0
- data/app/controllers/concerns/comfy/paginate.rb +11 -0
- data/app/controllers/concerns/comfy/reorder_action.rb +20 -0
- data/app/helpers/comfy/admin/cms_helper.rb +50 -0
- data/app/helpers/comfy/cms_helper.rb +71 -0
- data/app/models/comfy/cms/categorization.rb +14 -0
- data/app/models/comfy/cms/category.rb +22 -0
- data/app/models/comfy/cms/file.rb +65 -0
- data/app/models/comfy/cms/fragment.rb +58 -0
- data/app/models/comfy/cms/layout.rb +114 -0
- data/app/models/comfy/cms/page.rb +173 -0
- data/app/models/comfy/cms/revision.rb +10 -0
- data/app/models/comfy/cms/site.rb +93 -0
- data/app/models/comfy/cms/snippet.rb +43 -0
- data/app/models/comfy/cms/translation.rb +42 -0
- data/app/models/concerns/comfy/cms/with_categories.rb +51 -0
- data/app/models/concerns/comfy/cms/with_fragments.rb +123 -0
- data/app/views/comfy/admin/cms/categories/_categories.html.haml +4 -0
- data/app/views/comfy/admin/cms/categories/_edit.html.haml +7 -0
- data/app/views/comfy/admin/cms/categories/_form.html.haml +5 -0
- data/app/views/comfy/admin/cms/categories/_index.html.haml +28 -0
- data/app/views/comfy/admin/cms/categories/_show.html.haml +15 -0
- data/app/views/comfy/admin/cms/categories/create.js.erb +7 -0
- data/app/views/comfy/admin/cms/categories/destroy.js.erb +8 -0
- data/app/views/comfy/admin/cms/categories/edit.js.erb +3 -0
- data/app/views/comfy/admin/cms/categories/update.js.erb +6 -0
- data/app/views/comfy/admin/cms/files/_file.html.haml +31 -0
- data/app/views/comfy/admin/cms/files/_form.html.haml +26 -0
- data/app/views/comfy/admin/cms/files/_modal.html.haml +3 -0
- data/app/views/comfy/admin/cms/files/destroy.js.erb +4 -0
- data/app/views/comfy/admin/cms/files/edit.html.haml +5 -0
- data/app/views/comfy/admin/cms/files/index.html.haml +31 -0
- data/app/views/comfy/admin/cms/files/new.html.haml +5 -0
- data/app/views/comfy/admin/cms/fragments/_form_fragment_attachments.html.haml +23 -0
- data/app/views/comfy/admin/cms/fragments/_form_fragments.html.haml +38 -0
- data/app/views/comfy/admin/cms/layouts/_form.html.haml +20 -0
- data/app/views/comfy/admin/cms/layouts/_index_branch.html.haml +26 -0
- data/app/views/comfy/admin/cms/layouts/edit.html.haml +9 -0
- data/app/views/comfy/admin/cms/layouts/index.html.haml +10 -0
- data/app/views/comfy/admin/cms/layouts/new.html.haml +5 -0
- data/app/views/comfy/admin/cms/pages/_form.html.haml +31 -0
- data/app/views/comfy/admin/cms/pages/_index_branch.html.haml +44 -0
- data/app/views/comfy/admin/cms/pages/edit.html.haml +10 -0
- data/app/views/comfy/admin/cms/pages/index.html.haml +13 -0
- data/app/views/comfy/admin/cms/pages/new.html.haml +5 -0
- data/app/views/comfy/admin/cms/pages/toggle_branch.js.erb +13 -0
- data/app/views/comfy/admin/cms/revisions/_sidebar.html.haml +2 -0
- data/app/views/comfy/admin/cms/revisions/show.html.haml +36 -0
- data/app/views/comfy/admin/cms/sites/_form.html.haml +15 -0
- data/app/views/comfy/admin/cms/sites/edit.html.haml +5 -0
- data/app/views/comfy/admin/cms/sites/index.html.haml +28 -0
- data/app/views/comfy/admin/cms/sites/new.html.haml +5 -0
- data/app/views/comfy/admin/cms/snippets/_form.html.haml +19 -0
- data/app/views/comfy/admin/cms/snippets/edit.html.haml +9 -0
- data/app/views/comfy/admin/cms/snippets/index.html.haml +33 -0
- data/app/views/comfy/admin/cms/snippets/new.html.haml +5 -0
- data/app/views/comfy/admin/cms/translations/_form.html.haml +20 -0
- data/app/views/comfy/admin/cms/translations/_sidebar.html.haml +19 -0
- data/app/views/comfy/admin/cms/translations/edit.html.haml +10 -0
- data/app/views/comfy/admin/cms/translations/new.html.haml +5 -0
- data/app/views/kaminari/comfy/_first_page.html.haml +3 -0
- data/app/views/kaminari/comfy/_gap.html.haml +2 -0
- data/app/views/kaminari/comfy/_last_page.html.haml +3 -0
- data/app/views/kaminari/comfy/_next_page.html.haml +2 -0
- data/app/views/kaminari/comfy/_page.html.haml +2 -0
- data/app/views/kaminari/comfy/_paginator.html.haml +11 -0
- data/app/views/kaminari/comfy/_prev_page.html.haml +2 -0
- data/app/views/layouts/comfy/admin/cms/_body.html.haml +14 -0
- data/app/views/layouts/comfy/admin/cms/_flash.html.haml +4 -0
- data/app/views/layouts/comfy/admin/cms/_footer_js.html.haml +6 -0
- data/app/views/layouts/comfy/admin/cms/_head.html.haml +19 -0
- data/app/views/layouts/comfy/admin/cms/_left.html.haml +46 -0
- data/app/views/layouts/comfy/admin/cms/_right.html.haml +5 -0
- data/app/views/layouts/comfy/admin/cms.html.haml +4 -0
- data/bin/bundle +3 -0
- data/bin/rails +4 -0
- data/bin/rake +4 -0
- data/bin/setup +36 -0
- data/bin/update +31 -0
- data/bin/yarn +11 -0
- data/comfortable_media_surfer.gemspec +37 -0
- data/config/application.rb +59 -0
- data/config/boot.rb +5 -0
- data/config/cable.yml +10 -0
- data/config/cms_routes.rb +8 -0
- data/config/database.yml +40 -0
- data/config/environment.rb +7 -0
- data/config/environments/development.rb +80 -0
- data/config/environments/production.rb +99 -0
- data/config/environments/test.rb +74 -0
- data/config/initializers/assets.rb +14 -0
- data/config/initializers/comfortable_media_surfer.rb +122 -0
- data/config/initializers/content_security_policy.rb +27 -0
- data/config/initializers/filter_parameter_logging.rb +10 -0
- data/config/initializers/inflections.rb +18 -0
- data/config/initializers/json.rb +9 -0
- data/config/initializers/new_framework_defaults_7_0.rb +144 -0
- data/config/initializers/new_framework_defaults_7_1.rb +225 -0
- data/config/initializers/permissions_policy.rb +15 -0
- data/config/locales/ar.yml +262 -0
- data/config/locales/ca.yml +262 -0
- data/config/locales/cs.yml +262 -0
- data/config/locales/da.yml +262 -0
- data/config/locales/de.yml +262 -0
- data/config/locales/en.yml +262 -0
- data/config/locales/es.yml +262 -0
- data/config/locales/fi.yml +262 -0
- data/config/locales/fr.yml +262 -0
- data/config/locales/gr.yml +262 -0
- data/config/locales/hr.yml +262 -0
- data/config/locales/it.yml +262 -0
- data/config/locales/ja.yml +262 -0
- data/config/locales/nb.yml +262 -0
- data/config/locales/nl.yml +262 -0
- data/config/locales/pl.yml +262 -0
- data/config/locales/pt-BR.yml +262 -0
- data/config/locales/ru.yml +262 -0
- data/config/locales/sk.yml +262 -0
- data/config/locales/sv.yml +262 -0
- data/config/locales/tr.yml +262 -0
- data/config/locales/uk.yml +262 -0
- data/config/locales/zh-CN.yml +262 -0
- data/config/locales/zh-TW.yml +262 -0
- data/config/storage.yml +35 -0
- data/config.ru +6 -0
- data/db/cms_seeds/sample-site/files/_default.jpg.yml +5 -0
- data/db/cms_seeds/sample-site/files/default.jpg +0 -0
- data/db/cms_seeds/sample-site/layouts/default/content.html +16 -0
- data/db/cms_seeds/sample-site/layouts/default/nested/content.html +14 -0
- data/db/cms_seeds/sample-site/pages/index/child_a/content.html +7 -0
- data/db/cms_seeds/sample-site/pages/index/child_b/content.html +6 -0
- data/db/cms_seeds/sample-site/pages/index/cms logo.png +0 -0
- data/db/cms_seeds/sample-site/pages/index/content.es.html +6 -0
- data/db/cms_seeds/sample-site/pages/index/content.fr.html +6 -0
- data/db/cms_seeds/sample-site/pages/index/content.html +25 -0
- data/db/cms_seeds/sample-site/pages/index/footer.png +0 -0
- data/db/cms_seeds/sample-site/pages/index/header.png +0 -0
- data/db/cms_seeds/sample-site/snippets/default.html +8 -0
- data/db/migrate/00_create_active_storage_tables.active_storage.rb +50 -0
- data/db/migrate/01_create_cms.rb +143 -0
- data/gemfiles/6.1.gemfile +31 -0
- data/gemfiles/7.0.gemfile +31 -0
- data/gemfiles/7.1.gemfile +31 -0
- data/gemfiles/7.2.gemfile +31 -0
- data/lib/comfortable_media_surfer/access_control/admin_authentication.rb +22 -0
- data/lib/comfortable_media_surfer/access_control/admin_authorization.rb +10 -0
- data/lib/comfortable_media_surfer/access_control/public_authentication.rb +10 -0
- data/lib/comfortable_media_surfer/access_control/public_authorization.rb +10 -0
- data/lib/comfortable_media_surfer/configuration.rb +138 -0
- data/lib/comfortable_media_surfer/content/block.rb +12 -0
- data/lib/comfortable_media_surfer/content/params_parser.rb +149 -0
- data/lib/comfortable_media_surfer/content/renderer.rb +146 -0
- data/lib/comfortable_media_surfer/content/tag.rb +48 -0
- data/lib/comfortable_media_surfer/content/tags/asset.rb +57 -0
- data/lib/comfortable_media_surfer/content/tags/audio.rb +39 -0
- data/lib/comfortable_media_surfer/content/tags/breadcrumbs.rb +43 -0
- data/lib/comfortable_media_surfer/content/tags/checkbox.rb +27 -0
- data/lib/comfortable_media_surfer/content/tags/children.rb +52 -0
- data/lib/comfortable_media_surfer/content/tags/date.rb +19 -0
- data/lib/comfortable_media_surfer/content/tags/datetime.rb +42 -0
- data/lib/comfortable_media_surfer/content/tags/file.rb +70 -0
- data/lib/comfortable_media_surfer/content/tags/file_link.rb +58 -0
- data/lib/comfortable_media_surfer/content/tags/files.rb +41 -0
- data/lib/comfortable_media_surfer/content/tags/fragment.rb +64 -0
- data/lib/comfortable_media_surfer/content/tags/helper.rb +53 -0
- data/lib/comfortable_media_surfer/content/tags/image.rb +56 -0
- data/lib/comfortable_media_surfer/content/tags/markdown.rb +22 -0
- data/lib/comfortable_media_surfer/content/tags/mixins/file_content.rb +42 -0
- data/lib/comfortable_media_surfer/content/tags/number.rb +18 -0
- data/lib/comfortable_media_surfer/content/tags/page_file_link.rb +86 -0
- data/lib/comfortable_media_surfer/content/tags/partial.rb +47 -0
- data/lib/comfortable_media_surfer/content/tags/siblings.rb +66 -0
- data/lib/comfortable_media_surfer/content/tags/snippet.rb +36 -0
- data/lib/comfortable_media_surfer/content/tags/template.rb +42 -0
- data/lib/comfortable_media_surfer/content/tags/text.rb +18 -0
- data/lib/comfortable_media_surfer/content/tags/textarea.rb +19 -0
- data/lib/comfortable_media_surfer/content/tags/wysiwyg.rb +19 -0
- data/lib/comfortable_media_surfer/content/tags.rb +29 -0
- data/lib/comfortable_media_surfer/content.rb +11 -0
- data/lib/comfortable_media_surfer/engine.rb +29 -0
- data/lib/comfortable_media_surfer/error.rb +24 -0
- data/lib/comfortable_media_surfer/extensions/acts_as_tree.rb +114 -0
- data/lib/comfortable_media_surfer/extensions/has_revisions.rb +68 -0
- data/lib/comfortable_media_surfer/extensions.rb +8 -0
- data/lib/comfortable_media_surfer/form_builder.rb +43 -0
- data/lib/comfortable_media_surfer/render_methods.rb +106 -0
- data/lib/comfortable_media_surfer/routing.rb +79 -0
- data/lib/comfortable_media_surfer/seeds/file/exporter.rb +37 -0
- data/lib/comfortable_media_surfer/seeds/file/importer.rb +59 -0
- data/lib/comfortable_media_surfer/seeds/layout/exporter.rb +38 -0
- data/lib/comfortable_media_surfer/seeds/layout/importer.rb +60 -0
- data/lib/comfortable_media_surfer/seeds/page/exporter.rb +88 -0
- data/lib/comfortable_media_surfer/seeds/page/importer.rb +217 -0
- data/lib/comfortable_media_surfer/seeds/snippet/exporter.rb +32 -0
- data/lib/comfortable_media_surfer/seeds/snippet/importer.rb +47 -0
- data/lib/comfortable_media_surfer/seeds.rb +112 -0
- data/lib/comfortable_media_surfer/version.rb +5 -0
- data/lib/comfortable_media_surfer/view_hooks.rb +33 -0
- data/lib/comfortable_media_surfer.rb +56 -0
- data/lib/generators/comfy/cms/README +28 -0
- data/lib/generators/comfy/cms/assets_generator.rb +16 -0
- data/lib/generators/comfy/cms/cms_generator.rb +67 -0
- data/lib/generators/comfy/cms/controllers_generator.rb +15 -0
- data/lib/generators/comfy/cms/models_generator.rb +15 -0
- data/lib/generators/comfy/cms/views_generator.rb +15 -0
- data/lib/generators/comfy/scaffold/scaffold_generator.rb +79 -0
- data/lib/generators/comfy/scaffold/templates/controller.rb.tt +62 -0
- data/lib/generators/comfy/scaffold/templates/migration.rb.tt +11 -0
- data/lib/generators/comfy/scaffold/templates/model.rb.tt +21 -0
- data/lib/generators/comfy/scaffold/templates/tests/controller.rb.tt +115 -0
- data/lib/generators/comfy/scaffold/templates/tests/fixture.yml.tt +4 -0
- data/lib/generators/comfy/scaffold/templates/tests/model.rb.tt +26 -0
- data/lib/generators/comfy/scaffold/templates/views/_form.haml.tt +7 -0
- data/lib/generators/comfy/scaffold/templates/views/edit.haml.tt +5 -0
- data/lib/generators/comfy/scaffold/templates/views/index.haml.tt +21 -0
- data/lib/generators/comfy/scaffold/templates/views/new.haml.tt +5 -0
- data/lib/generators/comfy/scaffold/templates/views/show.haml.tt +4 -0
- data/lib/tasks/cms_seeds.rake +40 -0
- data/public/favicon.ico +0 -0
- data/rakelib/create_release.rake +81 -0
- metadata +797 -0
@@ -0,0 +1,294 @@
|
|
1
|
+
// Contents
|
2
|
+
//
|
3
|
+
// Navbar
|
4
|
+
// Navbar brand
|
5
|
+
// Navbar nav
|
6
|
+
// Navbar text
|
7
|
+
// Navbar divider
|
8
|
+
// Responsive navbar
|
9
|
+
// Navbar position
|
10
|
+
// Navbar themes
|
11
|
+
|
12
|
+
|
13
|
+
// Navbar
|
14
|
+
//
|
15
|
+
// Provide a static navbar from which we expand to create full-width, fixed, and
|
16
|
+
// other navbar variations.
|
17
|
+
|
18
|
+
.navbar {
|
19
|
+
position: relative;
|
20
|
+
display: flex;
|
21
|
+
flex-wrap: wrap; // allow us to do the line break for collapsing content
|
22
|
+
align-items: center;
|
23
|
+
justify-content: space-between; // space out brand from logo
|
24
|
+
padding: $navbar-padding-y $navbar-padding-x;
|
25
|
+
|
26
|
+
// Because flex properties aren't inherited, we need to redeclare these first
|
27
|
+
// few properties so that content nested within behave properly.
|
28
|
+
> .container,
|
29
|
+
> .container-fluid {
|
30
|
+
display: flex;
|
31
|
+
flex-wrap: wrap;
|
32
|
+
align-items: center;
|
33
|
+
justify-content: space-between;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
|
38
|
+
// Navbar brand
|
39
|
+
//
|
40
|
+
// Used for brand, project, or site names.
|
41
|
+
|
42
|
+
.navbar-brand {
|
43
|
+
display: inline-block;
|
44
|
+
padding-top: $navbar-brand-padding-y;
|
45
|
+
padding-bottom: $navbar-brand-padding-y;
|
46
|
+
margin-right: $navbar-padding-x;
|
47
|
+
@include font-size($navbar-brand-font-size);
|
48
|
+
line-height: inherit;
|
49
|
+
white-space: nowrap;
|
50
|
+
|
51
|
+
@include hover-focus {
|
52
|
+
text-decoration: none;
|
53
|
+
}
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
// Navbar nav
|
58
|
+
//
|
59
|
+
// Custom navbar navigation (doesn't require `.nav`, but does make use of `.nav-link`).
|
60
|
+
|
61
|
+
.navbar-nav {
|
62
|
+
display: flex;
|
63
|
+
flex-direction: column; // cannot use `inherit` to get the `.navbar`s value
|
64
|
+
padding-left: 0;
|
65
|
+
margin-bottom: 0;
|
66
|
+
list-style: none;
|
67
|
+
|
68
|
+
.nav-link {
|
69
|
+
padding-right: 0;
|
70
|
+
padding-left: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
.dropdown-menu {
|
74
|
+
position: static;
|
75
|
+
float: none;
|
76
|
+
}
|
77
|
+
}
|
78
|
+
|
79
|
+
|
80
|
+
// Navbar text
|
81
|
+
//
|
82
|
+
//
|
83
|
+
|
84
|
+
.navbar-text {
|
85
|
+
display: inline-block;
|
86
|
+
padding-top: $nav-link-padding-y;
|
87
|
+
padding-bottom: $nav-link-padding-y;
|
88
|
+
}
|
89
|
+
|
90
|
+
|
91
|
+
// Responsive navbar
|
92
|
+
//
|
93
|
+
// Custom styles for responsive collapsing and toggling of navbar contents.
|
94
|
+
// Powered by the collapse Bootstrap JavaScript plugin.
|
95
|
+
|
96
|
+
// When collapsed, prevent the toggleable navbar contents from appearing in
|
97
|
+
// the default flexbox row orientation. Requires the use of `flex-wrap: wrap`
|
98
|
+
// on the `.navbar` parent.
|
99
|
+
.navbar-collapse {
|
100
|
+
flex-basis: 100%;
|
101
|
+
flex-grow: 1;
|
102
|
+
// For always expanded or extra full navbars, ensure content aligns itself
|
103
|
+
// properly vertically. Can be easily overridden with flex utilities.
|
104
|
+
align-items: center;
|
105
|
+
}
|
106
|
+
|
107
|
+
// Button for toggling the navbar when in its collapsed state
|
108
|
+
.navbar-toggler {
|
109
|
+
padding: $navbar-toggler-padding-y $navbar-toggler-padding-x;
|
110
|
+
@include font-size($navbar-toggler-font-size);
|
111
|
+
line-height: 1;
|
112
|
+
background-color: transparent; // remove default button style
|
113
|
+
border: $border-width solid transparent; // remove default button style
|
114
|
+
@include border-radius($navbar-toggler-border-radius);
|
115
|
+
|
116
|
+
@include hover-focus {
|
117
|
+
text-decoration: none;
|
118
|
+
}
|
119
|
+
}
|
120
|
+
|
121
|
+
// Keep as a separate element so folks can easily override it with another icon
|
122
|
+
// or image file as needed.
|
123
|
+
.navbar-toggler-icon {
|
124
|
+
display: inline-block;
|
125
|
+
width: 1.5em;
|
126
|
+
height: 1.5em;
|
127
|
+
vertical-align: middle;
|
128
|
+
content: "";
|
129
|
+
background: no-repeat center center;
|
130
|
+
background-size: 100% 100%;
|
131
|
+
}
|
132
|
+
|
133
|
+
// Generate series of `.navbar-expand-*` responsive classes for configuring
|
134
|
+
// where your navbar collapses.
|
135
|
+
.navbar-expand {
|
136
|
+
@each $breakpoint in map-keys($grid-breakpoints) {
|
137
|
+
$next: breakpoint-next($breakpoint, $grid-breakpoints);
|
138
|
+
$infix: breakpoint-infix($next, $grid-breakpoints);
|
139
|
+
|
140
|
+
&#{$infix} {
|
141
|
+
@include media-breakpoint-down($breakpoint) {
|
142
|
+
> .container,
|
143
|
+
> .container-fluid {
|
144
|
+
padding-right: 0;
|
145
|
+
padding-left: 0;
|
146
|
+
}
|
147
|
+
}
|
148
|
+
|
149
|
+
@include media-breakpoint-up($next) {
|
150
|
+
flex-flow: row nowrap;
|
151
|
+
justify-content: flex-start;
|
152
|
+
|
153
|
+
.navbar-nav {
|
154
|
+
flex-direction: row;
|
155
|
+
|
156
|
+
.dropdown-menu {
|
157
|
+
position: absolute;
|
158
|
+
}
|
159
|
+
|
160
|
+
.nav-link {
|
161
|
+
padding-right: $navbar-nav-link-padding-x;
|
162
|
+
padding-left: $navbar-nav-link-padding-x;
|
163
|
+
}
|
164
|
+
}
|
165
|
+
|
166
|
+
// For nesting containers, have to redeclare for alignment purposes
|
167
|
+
> .container,
|
168
|
+
> .container-fluid {
|
169
|
+
flex-wrap: nowrap;
|
170
|
+
}
|
171
|
+
|
172
|
+
.navbar-collapse {
|
173
|
+
display: flex !important; // stylelint-disable-line declaration-no-important
|
174
|
+
|
175
|
+
// Changes flex-bases to auto because of an IE10 bug
|
176
|
+
flex-basis: auto;
|
177
|
+
}
|
178
|
+
|
179
|
+
.navbar-toggler {
|
180
|
+
display: none;
|
181
|
+
}
|
182
|
+
}
|
183
|
+
}
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
187
|
+
|
188
|
+
// Navbar themes
|
189
|
+
//
|
190
|
+
// Styles for switching between navbars with light or dark background.
|
191
|
+
|
192
|
+
// Dark links against a light background
|
193
|
+
.navbar-light {
|
194
|
+
.navbar-brand {
|
195
|
+
color: $navbar-light-brand-color;
|
196
|
+
|
197
|
+
@include hover-focus {
|
198
|
+
color: $navbar-light-brand-hover-color;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
|
202
|
+
.navbar-nav {
|
203
|
+
.nav-link {
|
204
|
+
color: $navbar-light-color;
|
205
|
+
|
206
|
+
@include hover-focus {
|
207
|
+
color: $navbar-light-hover-color;
|
208
|
+
}
|
209
|
+
|
210
|
+
&.disabled {
|
211
|
+
color: $navbar-light-disabled-color;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
|
215
|
+
.show > .nav-link,
|
216
|
+
.active > .nav-link,
|
217
|
+
.nav-link.show,
|
218
|
+
.nav-link.active {
|
219
|
+
color: $navbar-light-active-color;
|
220
|
+
}
|
221
|
+
}
|
222
|
+
|
223
|
+
.navbar-toggler {
|
224
|
+
color: $navbar-light-color;
|
225
|
+
border-color: $navbar-light-toggler-border-color;
|
226
|
+
}
|
227
|
+
|
228
|
+
.navbar-toggler-icon {
|
229
|
+
background-image: $navbar-light-toggler-icon-bg;
|
230
|
+
}
|
231
|
+
|
232
|
+
.navbar-text {
|
233
|
+
color: $navbar-light-color;
|
234
|
+
a {
|
235
|
+
color: $navbar-light-active-color;
|
236
|
+
|
237
|
+
@include hover-focus {
|
238
|
+
color: $navbar-light-active-color;
|
239
|
+
}
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|
243
|
+
|
244
|
+
// White links against a dark background
|
245
|
+
.navbar-dark {
|
246
|
+
.navbar-brand {
|
247
|
+
color: $navbar-dark-brand-color;
|
248
|
+
|
249
|
+
@include hover-focus {
|
250
|
+
color: $navbar-dark-brand-hover-color;
|
251
|
+
}
|
252
|
+
}
|
253
|
+
|
254
|
+
.navbar-nav {
|
255
|
+
.nav-link {
|
256
|
+
color: $navbar-dark-color;
|
257
|
+
|
258
|
+
@include hover-focus {
|
259
|
+
color: $navbar-dark-hover-color;
|
260
|
+
}
|
261
|
+
|
262
|
+
&.disabled {
|
263
|
+
color: $navbar-dark-disabled-color;
|
264
|
+
}
|
265
|
+
}
|
266
|
+
|
267
|
+
.show > .nav-link,
|
268
|
+
.active > .nav-link,
|
269
|
+
.nav-link.show,
|
270
|
+
.nav-link.active {
|
271
|
+
color: $navbar-dark-active-color;
|
272
|
+
}
|
273
|
+
}
|
274
|
+
|
275
|
+
.navbar-toggler {
|
276
|
+
color: $navbar-dark-color;
|
277
|
+
border-color: $navbar-dark-toggler-border-color;
|
278
|
+
}
|
279
|
+
|
280
|
+
.navbar-toggler-icon {
|
281
|
+
background-image: $navbar-dark-toggler-icon-bg;
|
282
|
+
}
|
283
|
+
|
284
|
+
.navbar-text {
|
285
|
+
color: $navbar-dark-color;
|
286
|
+
a {
|
287
|
+
color: $navbar-dark-active-color;
|
288
|
+
|
289
|
+
@include hover-focus {
|
290
|
+
color: $navbar-dark-active-color;
|
291
|
+
}
|
292
|
+
}
|
293
|
+
}
|
294
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
.pagination {
|
2
|
+
display: flex;
|
3
|
+
@include list-unstyled();
|
4
|
+
@include border-radius();
|
5
|
+
}
|
6
|
+
|
7
|
+
.page-link {
|
8
|
+
position: relative;
|
9
|
+
display: block;
|
10
|
+
padding: $pagination-padding-y $pagination-padding-x;
|
11
|
+
margin-left: -$pagination-border-width;
|
12
|
+
line-height: $pagination-line-height;
|
13
|
+
color: $pagination-color;
|
14
|
+
background-color: $pagination-bg;
|
15
|
+
border: $pagination-border-width solid $pagination-border-color;
|
16
|
+
|
17
|
+
&:hover {
|
18
|
+
z-index: 2;
|
19
|
+
color: $pagination-hover-color;
|
20
|
+
text-decoration: none;
|
21
|
+
background-color: $pagination-hover-bg;
|
22
|
+
border-color: $pagination-hover-border-color;
|
23
|
+
}
|
24
|
+
|
25
|
+
&:focus {
|
26
|
+
z-index: 2;
|
27
|
+
outline: $pagination-focus-outline;
|
28
|
+
box-shadow: $pagination-focus-box-shadow;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
.page-item {
|
33
|
+
&:first-child {
|
34
|
+
.page-link {
|
35
|
+
margin-left: 0;
|
36
|
+
@include border-left-radius($border-radius);
|
37
|
+
}
|
38
|
+
}
|
39
|
+
&:last-child {
|
40
|
+
.page-link {
|
41
|
+
@include border-right-radius($border-radius);
|
42
|
+
}
|
43
|
+
}
|
44
|
+
|
45
|
+
&.active .page-link {
|
46
|
+
z-index: 1;
|
47
|
+
color: $pagination-active-color;
|
48
|
+
background-color: $pagination-active-bg;
|
49
|
+
border-color: $pagination-active-border-color;
|
50
|
+
}
|
51
|
+
|
52
|
+
&.disabled .page-link {
|
53
|
+
color: $pagination-disabled-color;
|
54
|
+
pointer-events: none;
|
55
|
+
// Opinionated: remove the "hand" cursor set previously for .page-link
|
56
|
+
cursor: auto;
|
57
|
+
background-color: $pagination-disabled-bg;
|
58
|
+
border-color: $pagination-disabled-border-color;
|
59
|
+
}
|
60
|
+
}
|
61
|
+
|
62
|
+
|
63
|
+
//
|
64
|
+
// Sizing
|
65
|
+
//
|
66
|
+
|
67
|
+
.pagination-lg {
|
68
|
+
@include pagination-size($pagination-padding-y-lg, $pagination-padding-x-lg, $font-size-lg, $line-height-lg, $border-radius-lg);
|
69
|
+
}
|
70
|
+
|
71
|
+
.pagination-sm {
|
72
|
+
@include pagination-size($pagination-padding-y-sm, $pagination-padding-x-sm, $font-size-sm, $line-height-sm, $border-radius-sm);
|
73
|
+
}
|
@@ -0,0 +1,171 @@
|
|
1
|
+
.popover {
|
2
|
+
position: absolute;
|
3
|
+
top: 0;
|
4
|
+
left: 0;
|
5
|
+
z-index: $zindex-popover;
|
6
|
+
display: block;
|
7
|
+
max-width: $popover-max-width;
|
8
|
+
// Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
|
9
|
+
// So reset our font and text properties to avoid inheriting weird values.
|
10
|
+
@include reset-text();
|
11
|
+
@include font-size($popover-font-size);
|
12
|
+
// Allow breaking very long words so they don't overflow the popover's bounds
|
13
|
+
word-wrap: break-word;
|
14
|
+
background-color: $popover-bg;
|
15
|
+
background-clip: padding-box;
|
16
|
+
border: $popover-border-width solid $popover-border-color;
|
17
|
+
@include border-radius($popover-border-radius);
|
18
|
+
@include box-shadow($popover-box-shadow);
|
19
|
+
|
20
|
+
.arrow {
|
21
|
+
position: absolute;
|
22
|
+
display: block;
|
23
|
+
width: $popover-arrow-width;
|
24
|
+
height: $popover-arrow-height;
|
25
|
+
margin: 0 $border-radius-lg;
|
26
|
+
|
27
|
+
&::before,
|
28
|
+
&::after {
|
29
|
+
position: absolute;
|
30
|
+
display: block;
|
31
|
+
content: "";
|
32
|
+
border-color: transparent;
|
33
|
+
border-style: solid;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
}
|
37
|
+
|
38
|
+
.bs-popover-top {
|
39
|
+
margin-bottom: $popover-arrow-height;
|
40
|
+
|
41
|
+
> .arrow {
|
42
|
+
bottom: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
43
|
+
|
44
|
+
&::before {
|
45
|
+
bottom: 0;
|
46
|
+
border-width: $popover-arrow-height ($popover-arrow-width / 2) 0;
|
47
|
+
border-top-color: $popover-arrow-outer-color;
|
48
|
+
}
|
49
|
+
|
50
|
+
&::after {
|
51
|
+
bottom: $popover-border-width;
|
52
|
+
border-width: $popover-arrow-height ($popover-arrow-width / 2) 0;
|
53
|
+
border-top-color: $popover-arrow-color;
|
54
|
+
}
|
55
|
+
}
|
56
|
+
}
|
57
|
+
|
58
|
+
.bs-popover-right {
|
59
|
+
margin-left: $popover-arrow-height;
|
60
|
+
|
61
|
+
> .arrow {
|
62
|
+
left: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
63
|
+
width: $popover-arrow-height;
|
64
|
+
height: $popover-arrow-width;
|
65
|
+
margin: $border-radius-lg 0; // make sure the arrow does not touch the popover's rounded corners
|
66
|
+
|
67
|
+
&::before {
|
68
|
+
left: 0;
|
69
|
+
border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0;
|
70
|
+
border-right-color: $popover-arrow-outer-color;
|
71
|
+
}
|
72
|
+
|
73
|
+
&::after {
|
74
|
+
left: $popover-border-width;
|
75
|
+
border-width: ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2) 0;
|
76
|
+
border-right-color: $popover-arrow-color;
|
77
|
+
}
|
78
|
+
}
|
79
|
+
}
|
80
|
+
|
81
|
+
.bs-popover-bottom {
|
82
|
+
margin-top: $popover-arrow-height;
|
83
|
+
|
84
|
+
> .arrow {
|
85
|
+
top: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
86
|
+
|
87
|
+
&::before {
|
88
|
+
top: 0;
|
89
|
+
border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2);
|
90
|
+
border-bottom-color: $popover-arrow-outer-color;
|
91
|
+
}
|
92
|
+
|
93
|
+
&::after {
|
94
|
+
top: $popover-border-width;
|
95
|
+
border-width: 0 ($popover-arrow-width / 2) $popover-arrow-height ($popover-arrow-width / 2);
|
96
|
+
border-bottom-color: $popover-arrow-color;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
|
100
|
+
// This will remove the popover-header's border just below the arrow
|
101
|
+
.popover-header::before {
|
102
|
+
position: absolute;
|
103
|
+
top: 0;
|
104
|
+
left: 50%;
|
105
|
+
display: block;
|
106
|
+
width: $popover-arrow-width;
|
107
|
+
margin-left: -$popover-arrow-width / 2;
|
108
|
+
content: "";
|
109
|
+
border-bottom: $popover-border-width solid $popover-header-bg;
|
110
|
+
}
|
111
|
+
}
|
112
|
+
|
113
|
+
.bs-popover-left {
|
114
|
+
margin-right: $popover-arrow-height;
|
115
|
+
|
116
|
+
> .arrow {
|
117
|
+
right: calc((#{$popover-arrow-height} + #{$popover-border-width}) * -1);
|
118
|
+
width: $popover-arrow-height;
|
119
|
+
height: $popover-arrow-width;
|
120
|
+
margin: $border-radius-lg 0; // make sure the arrow does not touch the popover's rounded corners
|
121
|
+
|
122
|
+
&::before {
|
123
|
+
right: 0;
|
124
|
+
border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height;
|
125
|
+
border-left-color: $popover-arrow-outer-color;
|
126
|
+
}
|
127
|
+
|
128
|
+
&::after {
|
129
|
+
right: $popover-border-width;
|
130
|
+
border-width: ($popover-arrow-width / 2) 0 ($popover-arrow-width / 2) $popover-arrow-height;
|
131
|
+
border-left-color: $popover-arrow-color;
|
132
|
+
}
|
133
|
+
}
|
134
|
+
}
|
135
|
+
|
136
|
+
.bs-popover-auto {
|
137
|
+
&[x-placement^="top"] {
|
138
|
+
@extend .bs-popover-top;
|
139
|
+
}
|
140
|
+
&[x-placement^="right"] {
|
141
|
+
@extend .bs-popover-right;
|
142
|
+
}
|
143
|
+
&[x-placement^="bottom"] {
|
144
|
+
@extend .bs-popover-bottom;
|
145
|
+
}
|
146
|
+
&[x-placement^="left"] {
|
147
|
+
@extend .bs-popover-left;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
// Offset the popover to account for the popover arrow
|
153
|
+
.popover-header {
|
154
|
+
padding: $popover-header-padding-y $popover-header-padding-x;
|
155
|
+
margin-bottom: 0; // Reset the default from Reboot
|
156
|
+
@include font-size($font-size-base);
|
157
|
+
color: $popover-header-color;
|
158
|
+
background-color: $popover-header-bg;
|
159
|
+
border-bottom: $popover-border-width solid darken($popover-header-bg, 5%);
|
160
|
+
$offset-border-width: calc(#{$border-radius-lg} - #{$popover-border-width});
|
161
|
+
@include border-top-radius($offset-border-width);
|
162
|
+
|
163
|
+
&:empty {
|
164
|
+
display: none;
|
165
|
+
}
|
166
|
+
}
|
167
|
+
|
168
|
+
.popover-body {
|
169
|
+
padding: $popover-body-padding-y $popover-body-padding-x;
|
170
|
+
color: $popover-body-color;
|
171
|
+
}
|
@@ -0,0 +1,141 @@
|
|
1
|
+
// stylelint-disable declaration-no-important, selector-no-qualifying-type
|
2
|
+
|
3
|
+
// Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css
|
4
|
+
|
5
|
+
// ==========================================================================
|
6
|
+
// Print styles.
|
7
|
+
// Inlined to avoid the additional HTTP request:
|
8
|
+
// https://www.phpied.com/delay-loading-your-print-css/
|
9
|
+
// ==========================================================================
|
10
|
+
|
11
|
+
@if $enable-print-styles {
|
12
|
+
@media print {
|
13
|
+
*,
|
14
|
+
*::before,
|
15
|
+
*::after {
|
16
|
+
// Bootstrap specific; comment out `color` and `background`
|
17
|
+
//color: $black !important; // Black prints faster
|
18
|
+
text-shadow: none !important;
|
19
|
+
//background: transparent !important;
|
20
|
+
box-shadow: none !important;
|
21
|
+
}
|
22
|
+
|
23
|
+
a {
|
24
|
+
&:not(.btn) {
|
25
|
+
text-decoration: underline;
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
// Bootstrap specific; comment the following selector out
|
30
|
+
//a[href]::after {
|
31
|
+
// content: " (" attr(href) ")";
|
32
|
+
//}
|
33
|
+
|
34
|
+
abbr[title]::after {
|
35
|
+
content: " (" attr(title) ")";
|
36
|
+
}
|
37
|
+
|
38
|
+
// Bootstrap specific; comment the following selector out
|
39
|
+
//
|
40
|
+
// Don't show links that are fragment identifiers,
|
41
|
+
// or use the `javascript:` pseudo protocol
|
42
|
+
//
|
43
|
+
|
44
|
+
//a[href^="#"]::after,
|
45
|
+
//a[href^="javascript:"]::after {
|
46
|
+
// content: "";
|
47
|
+
//}
|
48
|
+
|
49
|
+
pre {
|
50
|
+
white-space: pre-wrap !important;
|
51
|
+
}
|
52
|
+
pre,
|
53
|
+
blockquote {
|
54
|
+
border: $border-width solid $gray-500; // Bootstrap custom code; using `$border-width` instead of 1px
|
55
|
+
page-break-inside: avoid;
|
56
|
+
}
|
57
|
+
|
58
|
+
//
|
59
|
+
// Printing Tables:
|
60
|
+
// http://css-discuss.incutio.com/wiki/Printing_Tables
|
61
|
+
//
|
62
|
+
|
63
|
+
thead {
|
64
|
+
display: table-header-group;
|
65
|
+
}
|
66
|
+
|
67
|
+
tr,
|
68
|
+
img {
|
69
|
+
page-break-inside: avoid;
|
70
|
+
}
|
71
|
+
|
72
|
+
p,
|
73
|
+
h2,
|
74
|
+
h3 {
|
75
|
+
orphans: 3;
|
76
|
+
widows: 3;
|
77
|
+
}
|
78
|
+
|
79
|
+
h2,
|
80
|
+
h3 {
|
81
|
+
page-break-after: avoid;
|
82
|
+
}
|
83
|
+
|
84
|
+
// Bootstrap specific changes start
|
85
|
+
|
86
|
+
// Specify a size and min-width to make printing closer across browsers.
|
87
|
+
// We don't set margin here because it breaks `size` in Chrome. We also
|
88
|
+
// don't use `!important` on `size` as it breaks in Chrome.
|
89
|
+
@page {
|
90
|
+
size: $print-page-size;
|
91
|
+
}
|
92
|
+
body {
|
93
|
+
min-width: $print-body-min-width !important;
|
94
|
+
}
|
95
|
+
.container {
|
96
|
+
min-width: $print-body-min-width !important;
|
97
|
+
}
|
98
|
+
|
99
|
+
// Bootstrap components
|
100
|
+
.navbar {
|
101
|
+
display: none;
|
102
|
+
}
|
103
|
+
.badge {
|
104
|
+
border: $border-width solid $black;
|
105
|
+
}
|
106
|
+
|
107
|
+
.table {
|
108
|
+
border-collapse: collapse !important;
|
109
|
+
|
110
|
+
td,
|
111
|
+
th {
|
112
|
+
background-color: $white !important;
|
113
|
+
}
|
114
|
+
}
|
115
|
+
|
116
|
+
.table-bordered {
|
117
|
+
th,
|
118
|
+
td {
|
119
|
+
border: 1px solid $gray-300 !important;
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
.table-dark {
|
124
|
+
color: inherit;
|
125
|
+
|
126
|
+
th,
|
127
|
+
td,
|
128
|
+
thead th,
|
129
|
+
tbody + tbody {
|
130
|
+
border-color: $table-border-color;
|
131
|
+
}
|
132
|
+
}
|
133
|
+
|
134
|
+
.table .thead-dark th {
|
135
|
+
color: inherit;
|
136
|
+
border-color: $table-border-color;
|
137
|
+
}
|
138
|
+
|
139
|
+
// Bootstrap specific changes end
|
140
|
+
}
|
141
|
+
}
|
@@ -0,0 +1,43 @@
|
|
1
|
+
// Disable animation if transitions are disabled
|
2
|
+
@if $enable-transitions {
|
3
|
+
@keyframes progress-bar-stripes {
|
4
|
+
from { background-position: $progress-height 0; }
|
5
|
+
to { background-position: 0 0; }
|
6
|
+
}
|
7
|
+
}
|
8
|
+
|
9
|
+
.progress {
|
10
|
+
display: flex;
|
11
|
+
height: $progress-height;
|
12
|
+
overflow: hidden; // force rounded corners by cropping it
|
13
|
+
@include font-size($progress-font-size);
|
14
|
+
background-color: $progress-bg;
|
15
|
+
@include border-radius($progress-border-radius);
|
16
|
+
@include box-shadow($progress-box-shadow);
|
17
|
+
}
|
18
|
+
|
19
|
+
.progress-bar {
|
20
|
+
display: flex;
|
21
|
+
flex-direction: column;
|
22
|
+
justify-content: center;
|
23
|
+
color: $progress-bar-color;
|
24
|
+
text-align: center;
|
25
|
+
white-space: nowrap;
|
26
|
+
background-color: $progress-bar-bg;
|
27
|
+
@include transition($progress-bar-transition);
|
28
|
+
}
|
29
|
+
|
30
|
+
.progress-bar-striped {
|
31
|
+
@include gradient-striped();
|
32
|
+
background-size: $progress-height $progress-height;
|
33
|
+
}
|
34
|
+
|
35
|
+
@if $enable-transitions {
|
36
|
+
.progress-bar-animated {
|
37
|
+
animation: progress-bar-stripes $progress-bar-animation-timing;
|
38
|
+
|
39
|
+
@media (prefers-reduced-motion: reduce) {
|
40
|
+
animation: none;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
}
|