HornsAndHooves-publify_core 10.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/CHANGELOG.md +102 -0
- data/MIT-LICENSE +21 -0
- data/README.md +9 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.eot +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.svg +288 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.ttf +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff +0 -0
- data/app/assets/fonts/bootstrap/glyphicons-halflings-regular.woff2 +0 -0
- data/app/assets/fonts/open-sans-bold.woff +0 -0
- data/app/assets/fonts/open-sans.woff +0 -0
- data/app/assets/images/admin/loading.gif +0 -0
- data/app/assets/images/admin/typologo.gif +0 -0
- data/app/assets/images/calendar_date_select/calendar.gif +0 -0
- data/app/assets/images/close.gif +0 -0
- data/app/assets/images/closelabel.gif +0 -0
- data/app/assets/images/go.png +0 -0
- data/app/assets/images/loading.gif +0 -0
- data/app/assets/images/nextlabel.gif +0 -0
- data/app/assets/images/overlay.png +0 -0
- data/app/assets/images/powered.gif +0 -0
- data/app/assets/images/prevlabel.gif +0 -0
- data/app/assets/images/spinner-blue.gif +0 -0
- data/app/assets/images/spinner.gif +0 -0
- data/app/assets/images/thumb_blank.jpg +0 -0
- data/app/assets/javascripts/application.js +2 -0
- data/app/assets/javascripts/bootstrap/affix.js +164 -0
- data/app/assets/javascripts/bootstrap/alert.js +95 -0
- data/app/assets/javascripts/bootstrap/button.js +125 -0
- data/app/assets/javascripts/bootstrap/collapse.js +212 -0
- data/app/assets/javascripts/bootstrap/dropdown.js +165 -0
- data/app/assets/javascripts/bootstrap/modal.js +358 -0
- data/app/assets/javascripts/bootstrap/tab.js +155 -0
- data/app/assets/javascripts/bootstrap/transition.js +59 -0
- data/app/assets/javascripts/bootstrap-sprockets.js +8 -0
- data/app/assets/javascripts/cookies.js +60 -0
- data/app/assets/javascripts/datetimepicker.js +1470 -0
- data/app/assets/javascripts/lang/da_DK.js +17 -0
- data/app/assets/javascripts/lang/default.js +21 -0
- data/app/assets/javascripts/lang/en_US.js +21 -0
- data/app/assets/javascripts/lang/fr_FR.js +21 -0
- data/app/assets/javascripts/lang/nl_NL.js +21 -0
- data/app/assets/javascripts/lang/zh_TW.js +17 -0
- data/app/assets/javascripts/lightbox.js +350 -0
- data/app/assets/javascripts/observe.js +28 -0
- data/app/assets/javascripts/publify.js +11 -0
- data/app/assets/javascripts/publify_admin.js +104 -0
- data/app/assets/javascripts/quicktags.js +448 -0
- data/app/assets/javascripts/set-timeago-lang.js +3 -0
- data/app/assets/javascripts/sidebar.js +28 -0
- data/app/assets/javascripts/spinnable.js +5 -0
- data/app/assets/javascripts/tagmanager.js +481 -0
- data/app/assets/javascripts/typeahead.js +1139 -0
- data/app/assets/stylesheets/_bootstrap-compass.scss +9 -0
- data/app/assets/stylesheets/_bootstrap-mincer.scss +19 -0
- data/app/assets/stylesheets/_bootstrap-sprockets.scss +9 -0
- data/app/assets/stylesheets/_bootstrap.scss +43 -0
- data/app/assets/stylesheets/accounts.css.scss +7 -0
- data/app/assets/stylesheets/administration_structure.css.scss +255 -0
- data/app/assets/stylesheets/bootstrap/_alerts.scss +73 -0
- data/app/assets/stylesheets/bootstrap/_button-groups.scss +242 -0
- data/app/assets/stylesheets/bootstrap/_buttons.scss +168 -0
- data/app/assets/stylesheets/bootstrap/_close.scss +37 -0
- data/app/assets/stylesheets/bootstrap/_code.scss +69 -0
- data/app/assets/stylesheets/bootstrap/_component-animations.scss +38 -0
- data/app/assets/stylesheets/bootstrap/_dropdowns.scss +213 -0
- data/app/assets/stylesheets/bootstrap/_forms.scss +586 -0
- data/app/assets/stylesheets/bootstrap/_glyphicons.scss +307 -0
- data/app/assets/stylesheets/bootstrap/_grid.scss +94 -0
- data/app/assets/stylesheets/bootstrap/_labels.scss +66 -0
- data/app/assets/stylesheets/bootstrap/_media.scss +66 -0
- data/app/assets/stylesheets/bootstrap/_mixins.scss +37 -0
- data/app/assets/stylesheets/bootstrap/_modals.scss +150 -0
- data/app/assets/stylesheets/bootstrap/_navbar.scss +479 -0
- data/app/assets/stylesheets/bootstrap/_navs.scss +242 -0
- data/app/assets/stylesheets/bootstrap/_normalize.scss +427 -0
- data/app/assets/stylesheets/bootstrap/_pagination.scss +86 -0
- data/app/assets/stylesheets/bootstrap/_panels.scss +222 -0
- data/app/assets/stylesheets/bootstrap/_print.scss +99 -0
- data/app/assets/stylesheets/bootstrap/_scaffolding.scss +160 -0
- data/app/assets/stylesheets/bootstrap/_tables.scss +234 -0
- data/app/assets/stylesheets/bootstrap/_theme.scss +224 -0
- data/app/assets/stylesheets/bootstrap/_type.scss +296 -0
- data/app/assets/stylesheets/bootstrap/_utilities.scss +55 -0
- data/app/assets/stylesheets/bootstrap/_variables.scss +654 -0
- data/app/assets/stylesheets/bootstrap/_wells.scss +29 -0
- data/app/assets/stylesheets/bootstrap/mixins/_alerts.scss +15 -0
- data/app/assets/stylesheets/bootstrap/mixins/_background-variant.scss +12 -0
- data/app/assets/stylesheets/bootstrap/mixins/_border-radius.scss +18 -0
- data/app/assets/stylesheets/bootstrap/mixins/_buttons.scss +56 -0
- data/app/assets/stylesheets/bootstrap/mixins/_center-block.scss +7 -0
- data/app/assets/stylesheets/bootstrap/mixins/_clearfix.scss +22 -0
- data/app/assets/stylesheets/bootstrap/mixins/_forms.scss +82 -0
- data/app/assets/stylesheets/bootstrap/mixins/_gradients.scss +56 -0
- data/app/assets/stylesheets/bootstrap/mixins/_grid-framework.scss +81 -0
- data/app/assets/stylesheets/bootstrap/mixins/_grid.scss +122 -0
- data/app/assets/stylesheets/bootstrap/mixins/_hide-text.scss +21 -0
- data/app/assets/stylesheets/bootstrap/mixins/_image.scss +28 -0
- data/app/assets/stylesheets/bootstrap/mixins/_labels.scss +12 -0
- data/app/assets/stylesheets/bootstrap/mixins/_nav-divider.scss +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/_nav-vertical-align.scss +9 -0
- data/app/assets/stylesheets/bootstrap/mixins/_opacity.scss +7 -0
- data/app/assets/stylesheets/bootstrap/mixins/_pagination.scss +24 -0
- data/app/assets/stylesheets/bootstrap/mixins/_panels.scss +20 -0
- data/app/assets/stylesheets/bootstrap/mixins/_reset-filter.scss +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/_resize.scss +6 -0
- data/app/assets/stylesheets/bootstrap/mixins/_responsive-visibility.scss +17 -0
- data/app/assets/stylesheets/bootstrap/mixins/_size.scss +10 -0
- data/app/assets/stylesheets/bootstrap/mixins/_tab-focus.scss +9 -0
- data/app/assets/stylesheets/bootstrap/mixins/_table-row.scss +28 -0
- data/app/assets/stylesheets/bootstrap/mixins/_text-emphasis.scss +12 -0
- data/app/assets/stylesheets/bootstrap/mixins/_text-overflow.scss +8 -0
- data/app/assets/stylesheets/bootstrap/mixins/_vendor-prefixes.scss +222 -0
- data/app/assets/stylesheets/coderay.css +135 -0
- data/app/assets/stylesheets/datetimepicker.css +306 -0
- data/app/assets/stylesheets/lightbox.css +63 -0
- data/app/assets/stylesheets/publify.css.scss +9 -0
- data/app/assets/stylesheets/publify_admin.css.scss +10 -0
- data/app/assets/stylesheets/rss.css +53 -0
- data/app/assets/stylesheets/sidebar_admin.css.scss +36 -0
- data/app/assets/stylesheets/tagmanager.css +102 -0
- data/app/assets/stylesheets/user-styles.css +29 -0
- data/app/controllers/accounts_controller.rb +4 -0
- data/app/controllers/admin/base_controller.rb +27 -0
- data/app/controllers/admin/content_controller.rb +194 -0
- data/app/controllers/admin/dashboard_controller.rb +33 -0
- data/app/controllers/admin/feedback_controller.rb +160 -0
- data/app/controllers/admin/notes_controller.rb +73 -0
- data/app/controllers/admin/pages_controller.rb +73 -0
- data/app/controllers/admin/post_types_controller.rb +57 -0
- data/app/controllers/admin/profiles_controller.rb +57 -0
- data/app/controllers/admin/redirects_controller.rb +51 -0
- data/app/controllers/admin/resources_controller.rb +36 -0
- data/app/controllers/admin/seo_controller.rb +46 -0
- data/app/controllers/admin/settings_controller.rb +53 -0
- data/app/controllers/admin/sidebar_controller.rb +67 -0
- data/app/controllers/admin/tags_controller.rb +55 -0
- data/app/controllers/admin/themes_controller.rb +31 -0
- data/app/controllers/admin/users_controller.rb +67 -0
- data/app/controllers/articles_controller.rb +215 -0
- data/app/controllers/authors_controller.rb +30 -0
- data/app/controllers/base_controller.rb +43 -0
- data/app/controllers/comments_controller.rb +67 -0
- data/app/controllers/content_controller.rb +24 -0
- data/app/controllers/feedback_controller.rb +13 -0
- data/app/controllers/notes_controller.rb +35 -0
- data/app/controllers/setup_controller.rb +61 -0
- data/app/controllers/tags_controller.rb +50 -0
- data/app/controllers/text_controller.rb +7 -0
- data/app/controllers/textfilter_controller.rb +5 -0
- data/app/controllers/theme_controller.rb +63 -0
- data/app/controllers/xml_controller.rb +20 -0
- data/app/helpers/admin/base_helper.rb +87 -0
- data/app/helpers/admin/feedback_helper.rb +53 -0
- data/app/helpers/articles_helper.rb +10 -0
- data/app/helpers/authors_helper.rb +30 -0
- data/app/helpers/base_helper.rb +257 -0
- data/app/helpers/blog_helper.rb +14 -0
- data/app/helpers/xml_helper.rb +18 -0
- data/app/jobs/application_job.rb +5 -0
- data/app/mailers/notification_mailer.rb +40 -0
- data/app/models/ability.rb +53 -0
- data/app/models/archives_sidebar.rb +45 -0
- data/app/models/article/factory.rb +64 -0
- data/app/models/article.rb +308 -0
- data/app/models/blog.rb +280 -0
- data/app/models/comment.rb +57 -0
- data/app/models/config_manager.rb +83 -0
- data/app/models/content.rb +118 -0
- data/app/models/content_base.rb +88 -0
- data/app/models/feedback.rb +250 -0
- data/app/models/meta_sidebar.rb +10 -0
- data/app/models/note.rb +152 -0
- data/app/models/page.rb +42 -0
- data/app/models/page_sidebar.rb +14 -0
- data/app/models/ping.rb +5 -0
- data/app/models/post_type.rb +16 -0
- data/app/models/redirect.rb +51 -0
- data/app/models/redirection.rb +6 -0
- data/app/models/resource.rb +12 -0
- data/app/models/search_sidebar.rb +9 -0
- data/app/models/sidebar.rb +142 -0
- data/app/models/static_sidebar.rb +22 -0
- data/app/models/tag.rb +71 -0
- data/app/models/tag_sidebar.rb +30 -0
- data/app/models/text_filter.rb +141 -0
- data/app/models/trackback.rb +46 -0
- data/app/models/trigger.rb +34 -0
- data/app/models/user.rb +142 -0
- data/app/services/title_builder.rb +88 -0
- data/app/uploaders/resource_uploader.rb +63 -0
- data/app/views/accounts/confirm.html.erb +7 -0
- data/app/views/admin/content/_article_list.html.erb +26 -0
- data/app/views/admin/content/_form.html.erb +145 -0
- data/app/views/admin/content/autosave.js.erb +5 -0
- data/app/views/admin/content/edit.html.erb +3 -0
- data/app/views/admin/content/index.html.erb +48 -0
- data/app/views/admin/content/index.js.erb +1 -0
- data/app/views/admin/content/new.html.erb +3 -0
- data/app/views/admin/dashboard/_comment.html.erb +18 -0
- data/app/views/admin/dashboard/_comments.html.erb +10 -0
- data/app/views/admin/dashboard/_drafts.html.erb +25 -0
- data/app/views/admin/dashboard/_overview.html.erb +21 -0
- data/app/views/admin/dashboard/_welcome.html.erb +28 -0
- data/app/views/admin/dashboard/index.html.erb +16 -0
- data/app/views/admin/feedback/_button.html.erb +19 -0
- data/app/views/admin/feedback/_feedback.html.erb +7 -0
- data/app/views/admin/feedback/_ham.html.erb +17 -0
- data/app/views/admin/feedback/_spam.html.erb +23 -0
- data/app/views/admin/feedback/article.html.erb +69 -0
- data/app/views/admin/feedback/edit.html.erb +48 -0
- data/app/views/admin/feedback/ham.js +1 -0
- data/app/views/admin/feedback/index.html.erb +53 -0
- data/app/views/admin/feedback/spam.js +1 -0
- data/app/views/admin/migrations/show.html.erb +39 -0
- data/app/views/admin/notes/_form.html.erb +37 -0
- data/app/views/admin/notes/_header.html.erb +6 -0
- data/app/views/admin/notes/_list.html.erb +13 -0
- data/app/views/admin/notes/_note.html.erb +14 -0
- data/app/views/admin/notes/edit.html.erb +11 -0
- data/app/views/admin/notes/index.html.erb +11 -0
- data/app/views/admin/notes/show.html.erb +14 -0
- data/app/views/admin/pages/_form.html.erb +101 -0
- data/app/views/admin/pages/_pages.html.erb +21 -0
- data/app/views/admin/pages/edit.html.erb +1 -0
- data/app/views/admin/pages/index.html.erb +17 -0
- data/app/views/admin/pages/new.html.erb +1 -0
- data/app/views/admin/post_types/_index_and_form.html.erb +65 -0
- data/app/views/admin/post_types/edit.html.erb +1 -0
- data/app/views/admin/post_types/index.html.erb +1 -0
- data/app/views/admin/profiles/index.html.erb +10 -0
- data/app/views/admin/redirects/_index_and_form.html.erb +68 -0
- data/app/views/admin/redirects/edit.html.erb +1 -0
- data/app/views/admin/redirects/index.html.erb +1 -0
- data/app/views/admin/resources/index.html.erb +72 -0
- data/app/views/admin/seo/_general.html.erb +104 -0
- data/app/views/admin/seo/_permalinks.html.erb +53 -0
- data/app/views/admin/seo/_titles.html.erb +209 -0
- data/app/views/admin/seo/show.html.erb +28 -0
- data/app/views/admin/settings/display.html.erb +101 -0
- data/app/views/admin/settings/feedback.html.erb +118 -0
- data/app/views/admin/settings/index.html.erb +73 -0
- data/app/views/admin/settings/write.html.erb +69 -0
- data/app/views/admin/shared/_edit.html.erb +4 -0
- data/app/views/admin/shared/_menu.html.erb +121 -0
- data/app/views/admin/shared/_twitter_alert.html.erb +3 -0
- data/app/views/admin/sidebar/_available.html.erb +6 -0
- data/app/views/admin/sidebar/_available.json.erb +6 -0
- data/app/views/admin/sidebar/_config.html.erb +27 -0
- data/app/views/admin/sidebar/_target.html.erb +9 -0
- data/app/views/admin/sidebar/_target_sidebar.html.erb +20 -0
- data/app/views/admin/sidebar/destroy.js.erb +1 -0
- data/app/views/admin/sidebar/index.html.erb +31 -0
- data/app/views/admin/sidebar/sortable.js.erb +3 -0
- data/app/views/admin/sidebar/update.js.erb +2 -0
- data/app/views/admin/tags/_index_and_form.html.erb +59 -0
- data/app/views/admin/tags/edit.html.erb +1 -0
- data/app/views/admin/tags/index.html.erb +1 -0
- data/app/views/admin/themes/index.html.erb +27 -0
- data/app/views/admin/users/_form.html.erb +215 -0
- data/app/views/admin/users/edit.html.erb +8 -0
- data/app/views/admin/users/index.html.erb +39 -0
- data/app/views/admin/users/new.html.erb +8 -0
- data/app/views/archives_sidebar/_content.html.erb +13 -0
- data/app/views/articles/_archives_article.html.erb +9 -0
- data/app/views/articles/_article.html.erb +9 -0
- data/app/views/articles/_article_author.html.erb +4 -0
- data/app/views/articles/_article_collection.html.erb +8 -0
- data/app/views/articles/_article_content.html.erb +5 -0
- data/app/views/articles/_article_excerpt.html.erb +15 -0
- data/app/views/articles/_article_links.html.erb +12 -0
- data/app/views/articles/_comment.html.erb +1 -0
- data/app/views/articles/_comment_errors.html.erb +2 -0
- data/app/views/articles/_comment_form.html.erb +48 -0
- data/app/views/articles/_comment_list.html.erb +5 -0
- data/app/views/articles/_comment_preview.html.erb +4 -0
- data/app/views/articles/_full_article_content.html.erb +4 -0
- data/app/views/articles/_password_form.html.erb +10 -0
- data/app/views/articles/_trackback.html.erb +6 -0
- data/app/views/articles/archives.html.erb +15 -0
- data/app/views/articles/comment.js.erb +5 -0
- data/app/views/articles/comment_failed.js.erb +3 -0
- data/app/views/articles/error.html.erb +3 -0
- data/app/views/articles/feedback_atom_feed.atom.builder +10 -0
- data/app/views/articles/feedback_rss_feed.rss.builder +21 -0
- data/app/views/articles/index.html.erb +1 -0
- data/app/views/articles/index_atom_feed.atom.builder +9 -0
- data/app/views/articles/index_rss_feed.rss.builder +20 -0
- data/app/views/articles/live_search.html.erb +10 -0
- data/app/views/articles/read.html.erb +43 -0
- data/app/views/articles/search.html.erb +8 -0
- data/app/views/articles/trackback.xml.builder +7 -0
- data/app/views/articles/view_page.html.erb +3 -0
- data/app/views/authors/show.html.erb +30 -0
- data/app/views/authors/show_atom_feed.atom.builder +9 -0
- data/app/views/authors/show_rss_feed.rss.builder +20 -0
- data/app/views/comments/_comment.html.erb +17 -0
- data/app/views/comments/preview.html.erb +1 -0
- data/app/views/comments/preview.js.erb +3 -0
- data/app/views/devise/mailer/reset_password_instructions.html.erb +11 -0
- data/app/views/devise/passwords/edit.html.erb +28 -0
- data/app/views/devise/passwords/new.html.erb +20 -0
- data/app/views/devise/registrations/new.html.erb +36 -0
- data/app/views/devise/sessions/new.html.erb +32 -0
- data/app/views/devise/shared/_links.html.erb +11 -0
- data/app/views/errors/404.html.erb +2 -0
- data/app/views/feedback/index.atom.builder +9 -0
- data/app/views/feedback/index.rss.builder +20 -0
- data/app/views/layouts/accounts.html.erb +33 -0
- data/app/views/layouts/administration.html.erb +37 -0
- data/app/views/layouts/default.html.erb +33 -0
- data/app/views/layouts/editor.html.erb +17 -0
- data/app/views/meta_sidebar/_content.html.erb +8 -0
- data/app/views/notes/_note.html.erb +16 -0
- data/app/views/notes/error.html.erb +3 -0
- data/app/views/notes/index.html.erb +15 -0
- data/app/views/notes/show.html.erb +5 -0
- data/app/views/notes/show_in_reply.html.erb +18 -0
- data/app/views/notification_mailer/_mail_footer.html.erb +5 -0
- data/app/views/notification_mailer/_mail_header.html.erb +3 -0
- data/app/views/notification_mailer/article.html.erb +7 -0
- data/app/views/notification_mailer/comment.html.erb +12 -0
- data/app/views/notification_mailer/notif_user.html.erb +9 -0
- data/app/views/page_sidebar/_content.html.erb +12 -0
- data/app/views/search_sidebar/_content.html.erb +10 -0
- data/app/views/settings/done.html.erb +2 -0
- data/app/views/settings/install.html.erb +12 -0
- data/app/views/setup/index.html.erb +17 -0
- data/app/views/shared/_atom_header.atom.builder +6 -0
- data/app/views/shared/_atom_item_article.atom.builder +36 -0
- data/app/views/shared/_atom_item_comment.atom.builder +10 -0
- data/app/views/shared/_atom_item_trackback.atom.builder +10 -0
- data/app/views/shared/_flash.erb +10 -0
- data/app/views/shared/_google_analytics.html.erb +8 -0
- data/app/views/shared/_page_header.html.erb +23 -0
- data/app/views/shared/_rss_item_article.rss.builder +32 -0
- data/app/views/shared/_rss_item_comment.rss.builder +9 -0
- data/app/views/shared/_rss_item_trackback.rss.builder +9 -0
- data/app/views/sidebar/_row.html.erb +1 -0
- data/app/views/sidebar/_sidebar.html.erb +5 -0
- data/app/views/sidebar/display_plugins.html.erb +5 -0
- data/app/views/sidebar/show.html.erb +1 -0
- data/app/views/static_sidebar/_content.html.erb +2 -0
- data/app/views/tag_sidebar/_content.html.erb +10 -0
- data/app/views/tags/index.html.erb +15 -0
- data/app/views/tags/show.html.erb +1 -0
- data/app/views/theme/static_view_test.html.erb +1 -0
- data/app/views/xml/_googlesitemap_item_article.googlesitemap.builder +7 -0
- data/app/views/xml/_googlesitemap_item_category.googlesitemap.builder +6 -0
- data/app/views/xml/_googlesitemap_item_page.googlesitemap.builder +6 -0
- data/app/views/xml/_googlesitemap_item_tag.googlesitemap.builder +6 -0
- data/app/views/xml/sitemap.googlesitemap.builder +9 -0
- data/config/i18n-tasks.yml +49 -0
- data/config/initializers/devise.rb +271 -0
- data/config/initializers/mime_types.rb +7 -0
- data/config/locales/da.yml +769 -0
- data/config/locales/de.yml +769 -0
- data/config/locales/en.yml +770 -0
- data/config/locales/es-MX.yml +769 -0
- data/config/locales/fr.yml +769 -0
- data/config/locales/he.yml +769 -0
- data/config/locales/it.yml +769 -0
- data/config/locales/ja.yml +769 -0
- data/config/locales/lt.yml +783 -0
- data/config/locales/nb-NO.yml +769 -0
- data/config/locales/nl.yml +769 -0
- data/config/locales/pl.yml +797 -0
- data/config/locales/pt-BR.yml +769 -0
- data/config/locales/ro.yml +782 -0
- data/config/locales/ru.yml +797 -0
- data/config/locales/sidebars.da.yml +20 -0
- data/config/locales/sidebars.de.yml +20 -0
- data/config/locales/sidebars.en.yml +20 -0
- data/config/locales/sidebars.es-MX.yml +20 -0
- data/config/locales/sidebars.fr.yml +20 -0
- data/config/locales/sidebars.he.yml +20 -0
- data/config/locales/sidebars.it.yml +20 -0
- data/config/locales/sidebars.ja.yml +20 -0
- data/config/locales/sidebars.lt.yml +20 -0
- data/config/locales/sidebars.nb-NO.yml +20 -0
- data/config/locales/sidebars.nl.yml +20 -0
- data/config/locales/sidebars.pl.yml +20 -0
- data/config/locales/sidebars.pt-BR.yml +20 -0
- data/config/locales/sidebars.ro.yml +20 -0
- data/config/locales/sidebars.ru.yml +20 -0
- data/config/locales/sidebars.zh-CN.yml +20 -0
- data/config/locales/sidebars.zh-TW.yml +20 -0
- data/config/locales/zh-CN.yml +768 -0
- data/config/locales/zh-TW.yml +769 -0
- data/config/routes.rb +174 -0
- data/db/migrate/113_initial_schema.rb +210 -0
- data/db/migrate/114_fixes_buggy_articles_and_notes.rb +56 -0
- data/db/migrate/115_drops_categories_for_tags.rb +37 -0
- data/db/migrate/20150207131657_add_missing_indexes.rb +23 -0
- data/db/migrate/20150807134129_simplify_redirect_relations.rb +45 -0
- data/db/migrate/20150808052637_add_blog_ids.rb +39 -0
- data/db/migrate/20150808191127_add_blog_id_to_redirects.rb +19 -0
- data/db/migrate/20150810094754_add_blog_id_to_tags.rb +19 -0
- data/db/migrate/20160108111120_add_devise_to_users.rb +57 -0
- data/db/migrate/20160108184201_move_last_connection_to_last_sign_in_at.rb +20 -0
- data/db/migrate/20160110094906_remove_profiles_rights.rb +18 -0
- data/db/migrate/20160605103918_replace_profile_id_with_string.rb +32 -0
- data/db/migrate/20160605154632_remove_profiles.rb +31 -0
- data/db/migrate/20160701061851_demand_blog_id_on_contents.rb +13 -0
- data/db/migrate/20160701062604_add_blog_id_to_resources.rb +32 -0
- data/db/migrate/20170528093024_move_resources_to_content.rb +9 -0
- data/db/migrate/20170528094923_move_tags_to_content.rb +10 -0
- data/db/migrate/20170528201606_remove_separate_published_flag.rb +9 -0
- data/db/migrate/20170605071626_remove_extra_state_columns_from_feedback.rb +10 -0
- data/db/migrate/20170702105201_remove_published_at_from_feedback.rb +9 -0
- data/db/migrate/20190208151235_add_text_filter_name_fields.rb +11 -0
- data/db/migrate/20190208152646_move_text_filter_to_name.rb +99 -0
- data/db/migrate/20190209155717_remove_text_filter_ids.rb +21 -0
- data/db/migrate/20190209160610_remove_text_filters.rb +19 -0
- data/db/seeds.rb +25 -0
- data/lib/email_notify.rb +28 -0
- data/lib/format.rb +9 -0
- data/lib/publify_core/engine.rb +31 -0
- data/lib/publify_core/lang.rb +9 -0
- data/lib/publify_core/testing_support/dns_mock.rb +15 -0
- data/lib/publify_core/testing_support/factories.rb +242 -0
- data/lib/publify_core/testing_support/feed_assertions.rb +48 -0
- data/lib/publify_core/testing_support/fixtures/exploit.svg +4 -0
- data/lib/publify_core/testing_support/fixtures/fakepng.png +1 -0
- data/lib/publify_core/testing_support/fixtures/otherfile.txt +1 -0
- data/lib/publify_core/testing_support/fixtures/testfile.png +0 -0
- data/lib/publify_core/testing_support/fixtures/testfile.txt +1 -0
- data/lib/publify_core/testing_support/upload_fixtures.rb +15 -0
- data/lib/publify_core/version.rb +5 -0
- data/lib/publify_core.rb +46 -0
- data/lib/publify_guid.rb +11 -0
- data/lib/publify_plugins.rb +77 -0
- data/lib/publify_textfilter_markdown.rb +57 -0
- data/lib/publify_textfilter_none.rb +16 -0
- data/lib/publify_textfilter_smartypants.rb +16 -0
- data/lib/publify_textfilter_textile.rb +23 -0
- data/lib/publify_textfilter_twitterfilter.rb +39 -0
- data/lib/publify_time.rb +34 -0
- data/lib/sidebar_field.rb +127 -0
- data/lib/sidebar_registry.rb +35 -0
- data/lib/spam_protection.rb +103 -0
- data/lib/tasks/i18n.rake +9 -0
- data/lib/tasks/manifest.rake +30 -0
- data/lib/tasks/publify_core_tasks.rake +6 -0
- data/lib/text_filter_plugin.rb +183 -0
- data/lib/theme.rb +72 -0
- data/lib/transforms.rb +47 -0
- data/themes/plain/about.markdown +4 -0
- data/themes/plain/javascripts/theme.js +0 -0
- data/themes/plain/preview.png +0 -0
- data/themes/plain/stylesheets/theme.css +57 -0
- metadata +1062 -0
@@ -0,0 +1,19 @@
|
|
1
|
+
// Mincer asset helper functions
|
2
|
+
//
|
3
|
+
// This must be imported into a .css.ejs.scss file.
|
4
|
+
// Then, <% %>-interpolations will be parsed as strings by Sass, and evaluated by EJS after Sass compilation.
|
5
|
+
|
6
|
+
|
7
|
+
@function twbs-font-path($path) {
|
8
|
+
// do something like following
|
9
|
+
// from "path/to/font.ext#suffix" to "<%- asset_path(path/to/font.ext)) + #suffix %>"
|
10
|
+
// from "path/to/font.ext?#suffix" to "<%- asset_path(path/to/font.ext)) + ?#suffix %>"
|
11
|
+
// or from "path/to/font.ext" just "<%- asset_path(path/to/font.ext)) %>"
|
12
|
+
@return "<%- asset_path("#{$path}".replace(/[#?].*$/, '')) + "#{$path}".replace(/(^[^#?]*)([#?]?.*$)/, '$2') %>";
|
13
|
+
}
|
14
|
+
|
15
|
+
@function twbs-image-path($file) {
|
16
|
+
@return "<%- asset_path("#{$file}") %>";
|
17
|
+
}
|
18
|
+
|
19
|
+
$bootstrap-sass-asset-helper: true;
|
@@ -0,0 +1,43 @@
|
|
1
|
+
/*!
|
2
|
+
* Bootstrap v3.4.1 (https://getbootstrap.com/)
|
3
|
+
* Copyright 2011-2019 Twitter, Inc.
|
4
|
+
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
|
5
|
+
*/
|
6
|
+
|
7
|
+
// Core variables and mixins
|
8
|
+
@import "bootstrap/variables";
|
9
|
+
@import "bootstrap/mixins";
|
10
|
+
|
11
|
+
// Reset and dependencies
|
12
|
+
@import "bootstrap/normalize";
|
13
|
+
@import "bootstrap/print";
|
14
|
+
@import "bootstrap/glyphicons";
|
15
|
+
|
16
|
+
// Core CSS
|
17
|
+
@import "bootstrap/scaffolding";
|
18
|
+
@import "bootstrap/type";
|
19
|
+
@import "bootstrap/code";
|
20
|
+
@import "bootstrap/grid";
|
21
|
+
@import "bootstrap/tables";
|
22
|
+
@import "bootstrap/forms";
|
23
|
+
@import "bootstrap/buttons";
|
24
|
+
|
25
|
+
// Components
|
26
|
+
@import "bootstrap/component-animations";
|
27
|
+
@import "bootstrap/dropdowns";
|
28
|
+
@import "bootstrap/button-groups";
|
29
|
+
@import "bootstrap/navs";
|
30
|
+
@import "bootstrap/navbar";
|
31
|
+
@import "bootstrap/pagination";
|
32
|
+
@import "bootstrap/labels";
|
33
|
+
@import "bootstrap/alerts";
|
34
|
+
@import "bootstrap/media";
|
35
|
+
@import "bootstrap/panels";
|
36
|
+
@import "bootstrap/wells";
|
37
|
+
@import "bootstrap/close";
|
38
|
+
|
39
|
+
// Components w/ JavaScript
|
40
|
+
@import "bootstrap/modals";
|
41
|
+
|
42
|
+
// Utility classes
|
43
|
+
@import "bootstrap/utilities";
|
@@ -0,0 +1,255 @@
|
|
1
|
+
/* General */
|
2
|
+
|
3
|
+
body {
|
4
|
+
padding-top: 40px;
|
5
|
+
}
|
6
|
+
|
7
|
+
footer {
|
8
|
+
margin-top: 50px;
|
9
|
+
padding-bottom: 20px;
|
10
|
+
clear: both;
|
11
|
+
}
|
12
|
+
|
13
|
+
tr.noborder td {
|
14
|
+
border-top: none;
|
15
|
+
}
|
16
|
+
|
17
|
+
tr.noborder th {
|
18
|
+
border-top: none;
|
19
|
+
}
|
20
|
+
|
21
|
+
td small {
|
22
|
+
color: #BFBFBF;
|
23
|
+
font-size: 11px;
|
24
|
+
}
|
25
|
+
|
26
|
+
tr .action {
|
27
|
+
margin-top: 5px;
|
28
|
+
}
|
29
|
+
|
30
|
+
/* Editor */
|
31
|
+
#editor {
|
32
|
+
float: left;
|
33
|
+
width: 100%;
|
34
|
+
margin-top: 18px;
|
35
|
+
}
|
36
|
+
|
37
|
+
#autocomplete li {
|
38
|
+
background: #D9EDF7;
|
39
|
+
color: #3A87AD;
|
40
|
+
padding: 5px 8px;
|
41
|
+
line-height: 18px;
|
42
|
+
border-bottom: 1px solid rgba(0, 0, 0, 0.05);
|
43
|
+
cursor: pointer;
|
44
|
+
}
|
45
|
+
|
46
|
+
#autocomplete li:hover {
|
47
|
+
color: #00438a;
|
48
|
+
border-bottom: 1px solid #00438a;
|
49
|
+
}
|
50
|
+
|
51
|
+
#main {
|
52
|
+
padding: 0 15px 0 15px;
|
53
|
+
}
|
54
|
+
|
55
|
+
#preview_link {
|
56
|
+
font-weight: normal;
|
57
|
+
}
|
58
|
+
|
59
|
+
.page-title { display:inline-block }
|
60
|
+
/* Classes for menu icons */
|
61
|
+
|
62
|
+
.icon-articles {
|
63
|
+
background-position: 0 -72px;
|
64
|
+
}
|
65
|
+
|
66
|
+
.icon-pages {
|
67
|
+
background-position: -408px -120px;
|
68
|
+
width: 16px;
|
69
|
+
}
|
70
|
+
|
71
|
+
.icon-notes {
|
72
|
+
background-position: -264px -24px;
|
73
|
+
}
|
74
|
+
|
75
|
+
.icon-media {
|
76
|
+
background-position: -456px -48px;
|
77
|
+
}
|
78
|
+
|
79
|
+
.icon-users {
|
80
|
+
background-position: -168px 0;
|
81
|
+
}
|
82
|
+
|
83
|
+
.icon-themes {
|
84
|
+
background-position: -96px -120px;
|
85
|
+
}
|
86
|
+
|
87
|
+
.icon-seo {
|
88
|
+
background-position: -24px -72px;
|
89
|
+
}
|
90
|
+
|
91
|
+
.icon-settings {
|
92
|
+
background-position: -432px 0;
|
93
|
+
}
|
94
|
+
|
95
|
+
.icon-profile {
|
96
|
+
background-position: -240px 0;
|
97
|
+
}
|
98
|
+
|
99
|
+
.glyphicon-large {
|
100
|
+
margin-top: 5px;
|
101
|
+
margin-bottom: 10px;
|
102
|
+
font-size: 24px;
|
103
|
+
}
|
104
|
+
|
105
|
+
.btn-action {
|
106
|
+
padding: 4px;
|
107
|
+
}
|
108
|
+
|
109
|
+
#article_title,
|
110
|
+
#page_title {
|
111
|
+
font-size: 2.3em;
|
112
|
+
font-weight: 500;
|
113
|
+
line-height: 1.1;
|
114
|
+
height: 1.5em;
|
115
|
+
border: none;
|
116
|
+
-webkit-box-shadow: none;
|
117
|
+
box-shadow: none;
|
118
|
+
-webkit-transition: none;
|
119
|
+
transition: none;
|
120
|
+
padding-left: 4px;
|
121
|
+
}
|
122
|
+
|
123
|
+
#article_resource_id {
|
124
|
+
font-size: 1.1em;
|
125
|
+
font-weight: 500;
|
126
|
+
border: none;
|
127
|
+
-webkit-box-shadow: none;
|
128
|
+
box-shadow: none;
|
129
|
+
-webkit-transition: none;
|
130
|
+
transition: none;
|
131
|
+
padding-left: 0;
|
132
|
+
margin-top: 15px;
|
133
|
+
}
|
134
|
+
|
135
|
+
select#article_resource_id:invalid {
|
136
|
+
color: gray;
|
137
|
+
}
|
138
|
+
|
139
|
+
#article_body_and_extended,
|
140
|
+
#page_body {
|
141
|
+
font-size: 1.3em;
|
142
|
+
line-height: 1.4;
|
143
|
+
border: none;
|
144
|
+
-webkit-box-shadow: none;
|
145
|
+
box-shadow: none;
|
146
|
+
-webkit-transition: none;
|
147
|
+
transition: none;
|
148
|
+
padding-left: 4px;
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
#quicktags {
|
153
|
+
display: none;
|
154
|
+
padding-top: 10px;
|
155
|
+
}
|
156
|
+
|
157
|
+
#quicktags-block:hover #quicktags {
|
158
|
+
display: block;
|
159
|
+
}
|
160
|
+
|
161
|
+
#quicktags-block {
|
162
|
+
min-height: 400px;
|
163
|
+
}
|
164
|
+
|
165
|
+
#error-message-article {
|
166
|
+
padding-top: 20px;
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
twitter-typeahead {
|
171
|
+
background: #F5F5F5;
|
172
|
+
}
|
173
|
+
|
174
|
+
.typeahead,
|
175
|
+
.tt-query,
|
176
|
+
.tt-hint {
|
177
|
+
border: 1px solid #ccc;
|
178
|
+
-webkit-border-radius: 4px;
|
179
|
+
-moz-border-radius: 4px;
|
180
|
+
outline: none;
|
181
|
+
background-color: #FFFFFF;
|
182
|
+
background-image: none;
|
183
|
+
border: 1px solid #CCCCCC;
|
184
|
+
border-radius: 4px;
|
185
|
+
box-shadow: 0 1px 1px rgba(0, 0, 0, 0.075) inset;
|
186
|
+
color: #555555;
|
187
|
+
display: block;
|
188
|
+
font-size: 14px;
|
189
|
+
height: 34px;
|
190
|
+
line-height: 1.42857;
|
191
|
+
padding: 6px 12px;
|
192
|
+
transition: border-color 0.15s ease-in-out 0s, box-shadow 0.15s ease-in-out 0s;
|
193
|
+
vertical-align: middle;
|
194
|
+
width: 100%;
|
195
|
+
}
|
196
|
+
|
197
|
+
.typeahead {
|
198
|
+
background-color: #fff;
|
199
|
+
}
|
200
|
+
|
201
|
+
.typeahead:focus {
|
202
|
+
border: 2px solid #0097cf;
|
203
|
+
}
|
204
|
+
|
205
|
+
.tt-query {
|
206
|
+
-webkit-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
207
|
+
-moz-box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
208
|
+
box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075);
|
209
|
+
}
|
210
|
+
|
211
|
+
.tt-dropdown-menu {
|
212
|
+
width: 422px;
|
213
|
+
margin-top: 12px;
|
214
|
+
padding: 8px 0;
|
215
|
+
background-color: #fff;
|
216
|
+
border: 1px solid #ccc;
|
217
|
+
border: 1px solid rgba(0, 0, 0, 0.2);
|
218
|
+
-webkit-border-radius: 8px;
|
219
|
+
-moz-border-radius: 8px;
|
220
|
+
border-radius: 8px;
|
221
|
+
-webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
|
222
|
+
-moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
|
223
|
+
box-shadow: 0 5px 10px rgba(0,0,0,.2);
|
224
|
+
}
|
225
|
+
|
226
|
+
.tt-suggestion {
|
227
|
+
padding: 3px 20px;
|
228
|
+
}
|
229
|
+
|
230
|
+
.tt-suggestion.tt-is-under-cursor {
|
231
|
+
color: #fff;
|
232
|
+
background-color: #0097cf;
|
233
|
+
|
234
|
+
}
|
235
|
+
|
236
|
+
.tt-suggestion p {
|
237
|
+
margin: 0;
|
238
|
+
}
|
239
|
+
|
240
|
+
.draggable:hover {
|
241
|
+
cursor: move;
|
242
|
+
}
|
243
|
+
|
244
|
+
.save-bar {
|
245
|
+
height: 40px;
|
246
|
+
}
|
247
|
+
|
248
|
+
.gravatar {
|
249
|
+
margin-right: 10px;
|
250
|
+
}
|
251
|
+
|
252
|
+
.tt-hint {
|
253
|
+
z-index: -1;
|
254
|
+
|
255
|
+
}
|
@@ -0,0 +1,73 @@
|
|
1
|
+
//
|
2
|
+
// Alerts
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base styles
|
7
|
+
// -------------------------
|
8
|
+
|
9
|
+
.alert {
|
10
|
+
padding: $alert-padding;
|
11
|
+
margin-bottom: $line-height-computed;
|
12
|
+
border: 1px solid transparent;
|
13
|
+
border-radius: $alert-border-radius;
|
14
|
+
|
15
|
+
// Headings for larger alerts
|
16
|
+
h4 {
|
17
|
+
margin-top: 0;
|
18
|
+
color: inherit; // Specified for the h4 to prevent conflicts of changing $headings-color
|
19
|
+
}
|
20
|
+
|
21
|
+
// Provide class for links that match alerts
|
22
|
+
.alert-link {
|
23
|
+
font-weight: $alert-link-font-weight;
|
24
|
+
}
|
25
|
+
|
26
|
+
// Improve alignment and spacing of inner content
|
27
|
+
> p,
|
28
|
+
> ul {
|
29
|
+
margin-bottom: 0;
|
30
|
+
}
|
31
|
+
|
32
|
+
> p + p {
|
33
|
+
margin-top: 5px;
|
34
|
+
}
|
35
|
+
}
|
36
|
+
|
37
|
+
// Dismissible alerts
|
38
|
+
//
|
39
|
+
// Expand the right padding and account for the close button's positioning.
|
40
|
+
|
41
|
+
// The misspelled .alert-dismissable was deprecated in 3.2.0.
|
42
|
+
.alert-dismissable,
|
43
|
+
.alert-dismissible {
|
44
|
+
padding-right: ($alert-padding + 20);
|
45
|
+
|
46
|
+
// Adjust close link position
|
47
|
+
.close {
|
48
|
+
position: relative;
|
49
|
+
top: -2px;
|
50
|
+
right: -21px;
|
51
|
+
color: inherit;
|
52
|
+
}
|
53
|
+
}
|
54
|
+
|
55
|
+
// Alternate styles
|
56
|
+
//
|
57
|
+
// Generate contextual modifier classes for colorizing the alert.
|
58
|
+
|
59
|
+
.alert-success {
|
60
|
+
@include alert-variant($alert-success-bg, $alert-success-border, $alert-success-text);
|
61
|
+
}
|
62
|
+
|
63
|
+
.alert-info {
|
64
|
+
@include alert-variant($alert-info-bg, $alert-info-border, $alert-info-text);
|
65
|
+
}
|
66
|
+
|
67
|
+
.alert-warning {
|
68
|
+
@include alert-variant($alert-warning-bg, $alert-warning-border, $alert-warning-text);
|
69
|
+
}
|
70
|
+
|
71
|
+
.alert-danger {
|
72
|
+
@include alert-variant($alert-danger-bg, $alert-danger-border, $alert-danger-text);
|
73
|
+
}
|
@@ -0,0 +1,242 @@
|
|
1
|
+
//
|
2
|
+
// Button groups
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
// Make the div behave like a button
|
6
|
+
.btn-group,
|
7
|
+
.btn-group-vertical {
|
8
|
+
position: relative;
|
9
|
+
display: inline-block;
|
10
|
+
vertical-align: middle; // match .btn alignment given font-size hack above
|
11
|
+
> .btn {
|
12
|
+
position: relative;
|
13
|
+
float: left;
|
14
|
+
// Bring the "active" button to the front
|
15
|
+
&:hover,
|
16
|
+
&:focus,
|
17
|
+
&:active,
|
18
|
+
&.active {
|
19
|
+
z-index: 2;
|
20
|
+
}
|
21
|
+
}
|
22
|
+
}
|
23
|
+
|
24
|
+
// Prevent double borders when buttons are next to each other
|
25
|
+
.btn-group {
|
26
|
+
.btn + .btn,
|
27
|
+
.btn + .btn-group,
|
28
|
+
.btn-group + .btn,
|
29
|
+
.btn-group + .btn-group {
|
30
|
+
margin-left: -1px;
|
31
|
+
}
|
32
|
+
}
|
33
|
+
|
34
|
+
// Optional: Group multiple button groups together for a toolbar
|
35
|
+
.btn-toolbar {
|
36
|
+
margin-left: -5px; // Offset the first child's margin
|
37
|
+
@include clearfix;
|
38
|
+
|
39
|
+
.btn,
|
40
|
+
.btn-group {
|
41
|
+
float: left;
|
42
|
+
}
|
43
|
+
> .btn,
|
44
|
+
> .btn-group {
|
45
|
+
margin-left: 5px;
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
.btn-group > .btn:not(:first-child):not(:last-child):not(.dropdown-toggle) {
|
50
|
+
border-radius: 0;
|
51
|
+
}
|
52
|
+
|
53
|
+
// Set corners individual because sometimes a single button can be in a .btn-group and we need :first-child and :last-child to both match
|
54
|
+
.btn-group > .btn:first-child {
|
55
|
+
margin-left: 0;
|
56
|
+
&:not(:last-child):not(.dropdown-toggle) {
|
57
|
+
@include border-right-radius(0);
|
58
|
+
}
|
59
|
+
}
|
60
|
+
// Need .dropdown-toggle since :last-child doesn't apply, given that a .dropdown-menu is used immediately after it
|
61
|
+
.btn-group > .btn:last-child:not(:first-child),
|
62
|
+
.btn-group > .dropdown-toggle:not(:first-child) {
|
63
|
+
@include border-left-radius(0);
|
64
|
+
}
|
65
|
+
|
66
|
+
// Custom edits for including btn-groups within btn-groups (useful for including dropdown buttons within a btn-group)
|
67
|
+
.btn-group > .btn-group {
|
68
|
+
float: left;
|
69
|
+
}
|
70
|
+
.btn-group > .btn-group:not(:first-child):not(:last-child) > .btn {
|
71
|
+
border-radius: 0;
|
72
|
+
}
|
73
|
+
.btn-group > .btn-group:first-child:not(:last-child) {
|
74
|
+
> .btn:last-child,
|
75
|
+
> .dropdown-toggle {
|
76
|
+
@include border-right-radius(0);
|
77
|
+
}
|
78
|
+
}
|
79
|
+
.btn-group > .btn-group:last-child:not(:first-child) > .btn:first-child {
|
80
|
+
@include border-left-radius(0);
|
81
|
+
}
|
82
|
+
|
83
|
+
// On active and open, don't show outline
|
84
|
+
.btn-group .dropdown-toggle:active,
|
85
|
+
.btn-group.open .dropdown-toggle {
|
86
|
+
outline: 0;
|
87
|
+
}
|
88
|
+
|
89
|
+
|
90
|
+
// Sizing
|
91
|
+
//
|
92
|
+
// Remix the default button sizing classes into new ones for easier manipulation.
|
93
|
+
|
94
|
+
.btn-group-xs > .btn { @extend .btn-xs; }
|
95
|
+
.btn-group-sm > .btn { @extend .btn-sm; }
|
96
|
+
.btn-group-lg > .btn { @extend .btn-lg; }
|
97
|
+
|
98
|
+
|
99
|
+
// Split button dropdowns
|
100
|
+
// ----------------------
|
101
|
+
|
102
|
+
// Give the line between buttons some depth
|
103
|
+
.btn-group > .btn + .dropdown-toggle {
|
104
|
+
padding-right: 8px;
|
105
|
+
padding-left: 8px;
|
106
|
+
}
|
107
|
+
.btn-group > .btn-lg + .dropdown-toggle {
|
108
|
+
padding-right: 12px;
|
109
|
+
padding-left: 12px;
|
110
|
+
}
|
111
|
+
|
112
|
+
// The clickable button for toggling the menu
|
113
|
+
// Remove the gradient and set the same inset shadow as the :active state
|
114
|
+
.btn-group.open .dropdown-toggle {
|
115
|
+
@include box-shadow(inset 0 3px 5px rgba(0, 0, 0, .125));
|
116
|
+
|
117
|
+
// Show no shadow for `.btn-link` since it has no other button styles.
|
118
|
+
&.btn-link {
|
119
|
+
@include box-shadow(none);
|
120
|
+
}
|
121
|
+
}
|
122
|
+
|
123
|
+
|
124
|
+
// Reposition the caret
|
125
|
+
.btn .caret {
|
126
|
+
margin-left: 0;
|
127
|
+
}
|
128
|
+
// Carets in other button sizes
|
129
|
+
.btn-lg .caret {
|
130
|
+
border-width: $caret-width-large $caret-width-large 0;
|
131
|
+
border-bottom-width: 0;
|
132
|
+
}
|
133
|
+
// Upside down carets for .dropup
|
134
|
+
.dropup .btn-lg .caret {
|
135
|
+
border-width: 0 $caret-width-large $caret-width-large;
|
136
|
+
}
|
137
|
+
|
138
|
+
|
139
|
+
// Vertical button groups
|
140
|
+
// ----------------------
|
141
|
+
|
142
|
+
.btn-group-vertical {
|
143
|
+
> .btn,
|
144
|
+
> .btn-group,
|
145
|
+
> .btn-group > .btn {
|
146
|
+
display: block;
|
147
|
+
float: none;
|
148
|
+
width: 100%;
|
149
|
+
max-width: 100%;
|
150
|
+
}
|
151
|
+
|
152
|
+
// Clear floats so dropdown menus can be properly placed
|
153
|
+
> .btn-group {
|
154
|
+
@include clearfix;
|
155
|
+
> .btn {
|
156
|
+
float: none;
|
157
|
+
}
|
158
|
+
}
|
159
|
+
|
160
|
+
> .btn + .btn,
|
161
|
+
> .btn + .btn-group,
|
162
|
+
> .btn-group + .btn,
|
163
|
+
> .btn-group + .btn-group {
|
164
|
+
margin-top: -1px;
|
165
|
+
margin-left: 0;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
.btn-group-vertical > .btn {
|
170
|
+
&:not(:first-child):not(:last-child) {
|
171
|
+
border-radius: 0;
|
172
|
+
}
|
173
|
+
&:first-child:not(:last-child) {
|
174
|
+
@include border-top-radius($btn-border-radius-base);
|
175
|
+
@include border-bottom-radius(0);
|
176
|
+
}
|
177
|
+
&:last-child:not(:first-child) {
|
178
|
+
@include border-top-radius(0);
|
179
|
+
@include border-bottom-radius($btn-border-radius-base);
|
180
|
+
}
|
181
|
+
}
|
182
|
+
.btn-group-vertical > .btn-group:not(:first-child):not(:last-child) > .btn {
|
183
|
+
border-radius: 0;
|
184
|
+
}
|
185
|
+
.btn-group-vertical > .btn-group:first-child:not(:last-child) {
|
186
|
+
> .btn:last-child,
|
187
|
+
> .dropdown-toggle {
|
188
|
+
@include border-bottom-radius(0);
|
189
|
+
}
|
190
|
+
}
|
191
|
+
.btn-group-vertical > .btn-group:last-child:not(:first-child) > .btn:first-child {
|
192
|
+
@include border-top-radius(0);
|
193
|
+
}
|
194
|
+
|
195
|
+
|
196
|
+
// Justified button groups
|
197
|
+
// ----------------------
|
198
|
+
|
199
|
+
.btn-group-justified {
|
200
|
+
display: table;
|
201
|
+
width: 100%;
|
202
|
+
table-layout: fixed;
|
203
|
+
border-collapse: separate;
|
204
|
+
> .btn,
|
205
|
+
> .btn-group {
|
206
|
+
display: table-cell;
|
207
|
+
float: none;
|
208
|
+
width: 1%;
|
209
|
+
}
|
210
|
+
> .btn-group .btn {
|
211
|
+
width: 100%;
|
212
|
+
}
|
213
|
+
|
214
|
+
> .btn-group .dropdown-menu {
|
215
|
+
left: auto;
|
216
|
+
}
|
217
|
+
}
|
218
|
+
|
219
|
+
|
220
|
+
// Checkbox and radio options
|
221
|
+
//
|
222
|
+
// In order to support the browser's form validation feedback, powered by the
|
223
|
+
// `required` attribute, we have to "hide" the inputs via `clip`. We cannot use
|
224
|
+
// `display: none;` or `visibility: hidden;` as that also hides the popover.
|
225
|
+
// Simply visually hiding the inputs via `opacity` would leave them clickable in
|
226
|
+
// certain cases which is prevented by using `clip` and `pointer-events`.
|
227
|
+
// This way, we ensure a DOM element is visible to position the popover from.
|
228
|
+
//
|
229
|
+
// See https://github.com/twbs/bootstrap/pull/12794 and
|
230
|
+
// https://github.com/twbs/bootstrap/pull/14559 for more information.
|
231
|
+
|
232
|
+
[data-toggle="buttons"] {
|
233
|
+
> .btn,
|
234
|
+
> .btn-group > .btn {
|
235
|
+
input[type="radio"],
|
236
|
+
input[type="checkbox"] {
|
237
|
+
position: absolute;
|
238
|
+
clip: rect(0, 0, 0, 0);
|
239
|
+
pointer-events: none;
|
240
|
+
}
|
241
|
+
}
|
242
|
+
}
|