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,86 @@
|
|
1
|
+
//
|
2
|
+
// Pagination (multiple pages)
|
3
|
+
// --------------------------------------------------
|
4
|
+
.pagination {
|
5
|
+
display: inline-block;
|
6
|
+
padding-left: 0;
|
7
|
+
margin: $line-height-computed 0;
|
8
|
+
border-radius: $border-radius-base;
|
9
|
+
|
10
|
+
> li {
|
11
|
+
display: inline; // Remove list-style and block-level defaults
|
12
|
+
> a,
|
13
|
+
> span {
|
14
|
+
position: relative;
|
15
|
+
float: left; // Collapse white-space
|
16
|
+
padding: $padding-base-vertical $padding-base-horizontal;
|
17
|
+
margin-left: -1px;
|
18
|
+
line-height: $line-height-base;
|
19
|
+
color: $pagination-color;
|
20
|
+
text-decoration: none;
|
21
|
+
background-color: $pagination-bg;
|
22
|
+
border: 1px solid $pagination-border;
|
23
|
+
|
24
|
+
&:hover,
|
25
|
+
&:focus {
|
26
|
+
z-index: 2;
|
27
|
+
color: $pagination-hover-color;
|
28
|
+
background-color: $pagination-hover-bg;
|
29
|
+
border-color: $pagination-hover-border;
|
30
|
+
}
|
31
|
+
}
|
32
|
+
&:first-child {
|
33
|
+
> a,
|
34
|
+
> span {
|
35
|
+
margin-left: 0;
|
36
|
+
@include border-left-radius($border-radius-base);
|
37
|
+
}
|
38
|
+
}
|
39
|
+
&:last-child {
|
40
|
+
> a,
|
41
|
+
> span {
|
42
|
+
@include border-right-radius($border-radius-base);
|
43
|
+
}
|
44
|
+
}
|
45
|
+
}
|
46
|
+
|
47
|
+
> .active > a,
|
48
|
+
> .active > span {
|
49
|
+
&,
|
50
|
+
&:hover,
|
51
|
+
&:focus {
|
52
|
+
z-index: 3;
|
53
|
+
color: $pagination-active-color;
|
54
|
+
cursor: default;
|
55
|
+
background-color: $pagination-active-bg;
|
56
|
+
border-color: $pagination-active-border;
|
57
|
+
}
|
58
|
+
}
|
59
|
+
|
60
|
+
> .disabled {
|
61
|
+
> span,
|
62
|
+
> span:hover,
|
63
|
+
> span:focus,
|
64
|
+
> a,
|
65
|
+
> a:hover,
|
66
|
+
> a:focus {
|
67
|
+
color: $pagination-disabled-color;
|
68
|
+
cursor: $cursor-disabled;
|
69
|
+
background-color: $pagination-disabled-bg;
|
70
|
+
border-color: $pagination-disabled-border;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
|
75
|
+
// Sizing
|
76
|
+
// --------------------------------------------------
|
77
|
+
|
78
|
+
// Large
|
79
|
+
.pagination-lg {
|
80
|
+
@include pagination-size($padding-large-vertical, $padding-large-horizontal, $font-size-large, $line-height-large, $border-radius-large);
|
81
|
+
}
|
82
|
+
|
83
|
+
// Small
|
84
|
+
.pagination-sm {
|
85
|
+
@include pagination-size($padding-small-vertical, $padding-small-horizontal, $font-size-small, $line-height-small, $border-radius-small);
|
86
|
+
}
|
@@ -0,0 +1,222 @@
|
|
1
|
+
//
|
2
|
+
// Panels
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Base class
|
7
|
+
.panel {
|
8
|
+
margin-bottom: $line-height-computed;
|
9
|
+
background-color: $panel-bg;
|
10
|
+
border: 1px solid transparent;
|
11
|
+
border-radius: $panel-border-radius;
|
12
|
+
@include box-shadow(0 1px 1px rgba(0, 0, 0, .05));
|
13
|
+
}
|
14
|
+
|
15
|
+
// Panel contents
|
16
|
+
.panel-body {
|
17
|
+
padding: $panel-body-padding;
|
18
|
+
@include clearfix;
|
19
|
+
}
|
20
|
+
|
21
|
+
// Optional heading
|
22
|
+
.panel-heading {
|
23
|
+
padding: $panel-heading-padding;
|
24
|
+
border-bottom: 1px solid transparent;
|
25
|
+
@include border-top-radius(($panel-border-radius - 1));
|
26
|
+
|
27
|
+
> .dropdown .dropdown-toggle {
|
28
|
+
color: inherit;
|
29
|
+
}
|
30
|
+
}
|
31
|
+
|
32
|
+
// Within heading, strip any `h*` tag of its default margins for spacing.
|
33
|
+
.panel-title {
|
34
|
+
margin-top: 0;
|
35
|
+
margin-bottom: 0;
|
36
|
+
font-size: ceil(($font-size-base * 1.125));
|
37
|
+
color: inherit;
|
38
|
+
|
39
|
+
> a,
|
40
|
+
> small,
|
41
|
+
> .small,
|
42
|
+
> small > a,
|
43
|
+
> .small > a {
|
44
|
+
color: inherit;
|
45
|
+
}
|
46
|
+
}
|
47
|
+
|
48
|
+
// Optional footer (stays gray in every modifier class)
|
49
|
+
.panel-footer {
|
50
|
+
padding: $panel-footer-padding;
|
51
|
+
background-color: $panel-footer-bg;
|
52
|
+
border-top: 1px solid $panel-inner-border;
|
53
|
+
@include border-bottom-radius(($panel-border-radius - 1));
|
54
|
+
}
|
55
|
+
|
56
|
+
|
57
|
+
// Tables in panels
|
58
|
+
//
|
59
|
+
// Place a non-bordered `.table` within a panel (not within a `.panel-body`) and
|
60
|
+
// watch it go full width.
|
61
|
+
|
62
|
+
.panel {
|
63
|
+
> .table,
|
64
|
+
> .table-responsive > .table,
|
65
|
+
> .panel-collapse > .table {
|
66
|
+
margin-bottom: 0;
|
67
|
+
|
68
|
+
caption {
|
69
|
+
padding-right: $panel-body-padding;
|
70
|
+
padding-left: $panel-body-padding;
|
71
|
+
}
|
72
|
+
}
|
73
|
+
// Add border top radius for first one
|
74
|
+
> .table:first-child,
|
75
|
+
> .table-responsive:first-child > .table:first-child {
|
76
|
+
@include border-top-radius(($panel-border-radius - 1));
|
77
|
+
|
78
|
+
> thead:first-child,
|
79
|
+
> tbody:first-child {
|
80
|
+
> tr:first-child {
|
81
|
+
border-top-left-radius: ($panel-border-radius - 1);
|
82
|
+
border-top-right-radius: ($panel-border-radius - 1);
|
83
|
+
|
84
|
+
td:first-child,
|
85
|
+
th:first-child {
|
86
|
+
border-top-left-radius: ($panel-border-radius - 1);
|
87
|
+
}
|
88
|
+
td:last-child,
|
89
|
+
th:last-child {
|
90
|
+
border-top-right-radius: ($panel-border-radius - 1);
|
91
|
+
}
|
92
|
+
}
|
93
|
+
}
|
94
|
+
}
|
95
|
+
// Add border bottom radius for last one
|
96
|
+
> .table:last-child,
|
97
|
+
> .table-responsive:last-child > .table:last-child {
|
98
|
+
@include border-bottom-radius(($panel-border-radius - 1));
|
99
|
+
|
100
|
+
> tbody:last-child,
|
101
|
+
> tfoot:last-child {
|
102
|
+
> tr:last-child {
|
103
|
+
border-bottom-right-radius: ($panel-border-radius - 1);
|
104
|
+
border-bottom-left-radius: ($panel-border-radius - 1);
|
105
|
+
|
106
|
+
td:first-child,
|
107
|
+
th:first-child {
|
108
|
+
border-bottom-left-radius: ($panel-border-radius - 1);
|
109
|
+
}
|
110
|
+
td:last-child,
|
111
|
+
th:last-child {
|
112
|
+
border-bottom-right-radius: ($panel-border-radius - 1);
|
113
|
+
}
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
> .panel-body + .table,
|
118
|
+
> .panel-body + .table-responsive,
|
119
|
+
> .table + .panel-body,
|
120
|
+
> .table-responsive + .panel-body {
|
121
|
+
border-top: 1px solid $table-border-color;
|
122
|
+
}
|
123
|
+
> .table > tbody:first-child > tr:first-child th,
|
124
|
+
> .table > tbody:first-child > tr:first-child td {
|
125
|
+
border-top: 0;
|
126
|
+
}
|
127
|
+
> .table-bordered,
|
128
|
+
> .table-responsive > .table-bordered {
|
129
|
+
border: 0;
|
130
|
+
> thead,
|
131
|
+
> tbody,
|
132
|
+
> tfoot {
|
133
|
+
> tr {
|
134
|
+
> th:first-child,
|
135
|
+
> td:first-child {
|
136
|
+
border-left: 0;
|
137
|
+
}
|
138
|
+
> th:last-child,
|
139
|
+
> td:last-child {
|
140
|
+
border-right: 0;
|
141
|
+
}
|
142
|
+
}
|
143
|
+
}
|
144
|
+
> thead,
|
145
|
+
> tbody {
|
146
|
+
> tr:first-child {
|
147
|
+
> td,
|
148
|
+
> th {
|
149
|
+
border-bottom: 0;
|
150
|
+
}
|
151
|
+
}
|
152
|
+
}
|
153
|
+
> tbody,
|
154
|
+
> tfoot {
|
155
|
+
> tr:last-child {
|
156
|
+
> td,
|
157
|
+
> th {
|
158
|
+
border-bottom: 0;
|
159
|
+
}
|
160
|
+
}
|
161
|
+
}
|
162
|
+
}
|
163
|
+
> .table-responsive {
|
164
|
+
margin-bottom: 0;
|
165
|
+
border: 0;
|
166
|
+
}
|
167
|
+
}
|
168
|
+
|
169
|
+
|
170
|
+
// Collapsible panels (aka, accordion)
|
171
|
+
//
|
172
|
+
// Wrap a series of panels in `.panel-group` to turn them into an accordion with
|
173
|
+
// the help of our collapse JavaScript plugin.
|
174
|
+
|
175
|
+
.panel-group {
|
176
|
+
margin-bottom: $line-height-computed;
|
177
|
+
|
178
|
+
// Tighten up margin so it's only between panels
|
179
|
+
.panel {
|
180
|
+
margin-bottom: 0;
|
181
|
+
border-radius: $panel-border-radius;
|
182
|
+
|
183
|
+
+ .panel {
|
184
|
+
margin-top: 5px;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
.panel-heading {
|
189
|
+
border-bottom: 0;
|
190
|
+
+ .panel-collapse > .panel-body {
|
191
|
+
border-top: 1px solid $panel-inner-border;
|
192
|
+
}
|
193
|
+
}
|
194
|
+
|
195
|
+
.panel-footer {
|
196
|
+
border-top: 0;
|
197
|
+
+ .panel-collapse .panel-body {
|
198
|
+
border-bottom: 1px solid $panel-inner-border;
|
199
|
+
}
|
200
|
+
}
|
201
|
+
}
|
202
|
+
|
203
|
+
|
204
|
+
// Contextual variations
|
205
|
+
.panel-default {
|
206
|
+
@include panel-variant($panel-default-border, $panel-default-text, $panel-default-heading-bg, $panel-default-border);
|
207
|
+
}
|
208
|
+
.panel-primary {
|
209
|
+
@include panel-variant($panel-primary-border, $panel-primary-text, $panel-primary-heading-bg, $panel-primary-border);
|
210
|
+
}
|
211
|
+
.panel-success {
|
212
|
+
@include panel-variant($panel-success-border, $panel-success-text, $panel-success-heading-bg, $panel-success-border);
|
213
|
+
}
|
214
|
+
.panel-info {
|
215
|
+
@include panel-variant($panel-info-border, $panel-info-text, $panel-info-heading-bg, $panel-info-border);
|
216
|
+
}
|
217
|
+
.panel-warning {
|
218
|
+
@include panel-variant($panel-warning-border, $panel-warning-text, $panel-warning-heading-bg, $panel-warning-border);
|
219
|
+
}
|
220
|
+
.panel-danger {
|
221
|
+
@include panel-variant($panel-danger-border, $panel-danger-text, $panel-danger-heading-bg, $panel-danger-border);
|
222
|
+
}
|
@@ -0,0 +1,99 @@
|
|
1
|
+
/*! Source: https://github.com/h5bp/html5-boilerplate/blob/master/src/css/main.css */
|
2
|
+
|
3
|
+
// ==========================================================================
|
4
|
+
// Print styles.
|
5
|
+
// Inlined to avoid the additional HTTP request: h5bp.com/r
|
6
|
+
// ==========================================================================
|
7
|
+
|
8
|
+
@media print {
|
9
|
+
*,
|
10
|
+
*:before,
|
11
|
+
*:after {
|
12
|
+
color: #000 !important; // Black prints faster: h5bp.com/s
|
13
|
+
text-shadow: none !important;
|
14
|
+
background: transparent !important;
|
15
|
+
box-shadow: none !important;
|
16
|
+
}
|
17
|
+
|
18
|
+
a,
|
19
|
+
a:visited {
|
20
|
+
text-decoration: underline;
|
21
|
+
}
|
22
|
+
|
23
|
+
a[href]:after {
|
24
|
+
content: " (" attr(href) ")";
|
25
|
+
}
|
26
|
+
|
27
|
+
abbr[title]:after {
|
28
|
+
content: " (" attr(title) ")";
|
29
|
+
}
|
30
|
+
|
31
|
+
// Don't show links that are fragment identifiers,
|
32
|
+
// or use the `javascript:` pseudo protocol
|
33
|
+
a[href^="#"]:after,
|
34
|
+
a[href^="javascript:"]:after {
|
35
|
+
content: "";
|
36
|
+
}
|
37
|
+
|
38
|
+
pre,
|
39
|
+
blockquote {
|
40
|
+
border: 1px solid #999;
|
41
|
+
page-break-inside: avoid;
|
42
|
+
}
|
43
|
+
|
44
|
+
thead {
|
45
|
+
display: table-header-group; // h5bp.com/t
|
46
|
+
}
|
47
|
+
|
48
|
+
tr,
|
49
|
+
img {
|
50
|
+
page-break-inside: avoid;
|
51
|
+
}
|
52
|
+
|
53
|
+
img {
|
54
|
+
max-width: 100% !important;
|
55
|
+
}
|
56
|
+
|
57
|
+
p,
|
58
|
+
h2,
|
59
|
+
h3 {
|
60
|
+
orphans: 3;
|
61
|
+
widows: 3;
|
62
|
+
}
|
63
|
+
|
64
|
+
h2,
|
65
|
+
h3 {
|
66
|
+
page-break-after: avoid;
|
67
|
+
}
|
68
|
+
|
69
|
+
// Bootstrap specific changes start
|
70
|
+
|
71
|
+
// Bootstrap components
|
72
|
+
.navbar {
|
73
|
+
display: none;
|
74
|
+
}
|
75
|
+
.btn,
|
76
|
+
.dropup > .btn {
|
77
|
+
> .caret {
|
78
|
+
border-top-color: #000 !important;
|
79
|
+
}
|
80
|
+
}
|
81
|
+
.label {
|
82
|
+
border: 1px solid #000;
|
83
|
+
}
|
84
|
+
|
85
|
+
.table {
|
86
|
+
border-collapse: collapse !important;
|
87
|
+
|
88
|
+
td,
|
89
|
+
th {
|
90
|
+
background-color: #fff !important;
|
91
|
+
}
|
92
|
+
}
|
93
|
+
.table-bordered {
|
94
|
+
th,
|
95
|
+
td {
|
96
|
+
border: 1px solid #ddd !important;
|
97
|
+
}
|
98
|
+
}
|
99
|
+
}
|
@@ -0,0 +1,160 @@
|
|
1
|
+
//
|
2
|
+
// Scaffolding
|
3
|
+
// --------------------------------------------------
|
4
|
+
|
5
|
+
|
6
|
+
// Reset the box-sizing
|
7
|
+
//
|
8
|
+
// Heads up! This reset may cause conflicts with some third-party widgets.
|
9
|
+
// For recommendations on resolving such conflicts, see
|
10
|
+
// https://getbootstrap.com/docs/3.4/getting-started/#third-box-sizing
|
11
|
+
* {
|
12
|
+
@include box-sizing(border-box);
|
13
|
+
}
|
14
|
+
*:before,
|
15
|
+
*:after {
|
16
|
+
@include box-sizing(border-box);
|
17
|
+
}
|
18
|
+
|
19
|
+
|
20
|
+
// Body reset
|
21
|
+
|
22
|
+
html {
|
23
|
+
font-size: 10px;
|
24
|
+
-webkit-tap-highlight-color: rgba(0, 0, 0, 0);
|
25
|
+
}
|
26
|
+
|
27
|
+
body {
|
28
|
+
font-family: $font-family-base;
|
29
|
+
font-size: $font-size-base;
|
30
|
+
line-height: $line-height-base;
|
31
|
+
color: $text-color;
|
32
|
+
background-color: $body-bg;
|
33
|
+
}
|
34
|
+
|
35
|
+
// Reset fonts for relevant elements
|
36
|
+
input,
|
37
|
+
button,
|
38
|
+
select,
|
39
|
+
textarea {
|
40
|
+
font-family: inherit;
|
41
|
+
font-size: inherit;
|
42
|
+
line-height: inherit;
|
43
|
+
}
|
44
|
+
|
45
|
+
|
46
|
+
// Links
|
47
|
+
|
48
|
+
a {
|
49
|
+
color: $link-color;
|
50
|
+
text-decoration: none;
|
51
|
+
|
52
|
+
&:hover,
|
53
|
+
&:focus {
|
54
|
+
color: $link-hover-color;
|
55
|
+
text-decoration: $link-hover-decoration;
|
56
|
+
}
|
57
|
+
|
58
|
+
&:focus {
|
59
|
+
@include tab-focus;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
|
64
|
+
// Figures
|
65
|
+
//
|
66
|
+
// We reset this here because previously Normalize had no `figure` margins. This
|
67
|
+
// ensures we don't break anyone's use of the element.
|
68
|
+
|
69
|
+
figure {
|
70
|
+
margin: 0;
|
71
|
+
}
|
72
|
+
|
73
|
+
|
74
|
+
// Images
|
75
|
+
|
76
|
+
img {
|
77
|
+
vertical-align: middle;
|
78
|
+
}
|
79
|
+
|
80
|
+
// Responsive images (ensure images don't scale beyond their parents)
|
81
|
+
.img-responsive {
|
82
|
+
@include img-responsive;
|
83
|
+
}
|
84
|
+
|
85
|
+
// Rounded corners
|
86
|
+
.img-rounded {
|
87
|
+
border-radius: $border-radius-large;
|
88
|
+
}
|
89
|
+
|
90
|
+
// Image thumbnails
|
91
|
+
//
|
92
|
+
.img-thumbnail {
|
93
|
+
padding: $thumbnail-padding;
|
94
|
+
line-height: $line-height-base;
|
95
|
+
background-color: $thumbnail-bg;
|
96
|
+
border: 1px solid $thumbnail-border;
|
97
|
+
border-radius: $thumbnail-border-radius;
|
98
|
+
@include transition(all .2s ease-in-out);
|
99
|
+
|
100
|
+
// Keep them at most 100% wide
|
101
|
+
@include img-responsive(inline-block);
|
102
|
+
}
|
103
|
+
|
104
|
+
// Perfect circle
|
105
|
+
.img-circle {
|
106
|
+
border-radius: 50%; // set radius in percents
|
107
|
+
}
|
108
|
+
|
109
|
+
|
110
|
+
// Horizontal rules
|
111
|
+
|
112
|
+
hr {
|
113
|
+
margin-top: $line-height-computed;
|
114
|
+
margin-bottom: $line-height-computed;
|
115
|
+
border: 0;
|
116
|
+
border-top: 1px solid $hr-border;
|
117
|
+
}
|
118
|
+
|
119
|
+
|
120
|
+
// Only display content to screen readers
|
121
|
+
//
|
122
|
+
// See: https://a11yproject.com/posts/how-to-hide-content
|
123
|
+
|
124
|
+
.sr-only {
|
125
|
+
position: absolute;
|
126
|
+
width: 1px;
|
127
|
+
height: 1px;
|
128
|
+
padding: 0;
|
129
|
+
margin: -1px;
|
130
|
+
overflow: hidden;
|
131
|
+
clip: rect(0, 0, 0, 0);
|
132
|
+
border: 0;
|
133
|
+
}
|
134
|
+
|
135
|
+
// Use in conjunction with .sr-only to only display content when it's focused.
|
136
|
+
// Useful for "Skip to main content" links; see https://www.w3.org/TR/2013/NOTE-WCAG20-TECHS-20130905/G1
|
137
|
+
// Credit: HTML5 Boilerplate
|
138
|
+
|
139
|
+
.sr-only-focusable {
|
140
|
+
&:active,
|
141
|
+
&:focus {
|
142
|
+
position: static;
|
143
|
+
width: auto;
|
144
|
+
height: auto;
|
145
|
+
margin: 0;
|
146
|
+
overflow: visible;
|
147
|
+
clip: auto;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
|
152
|
+
// iOS "clickable elements" fix for role="button"
|
153
|
+
//
|
154
|
+
// Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
|
155
|
+
// for traditionally non-focusable elements with role="button"
|
156
|
+
// see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
|
157
|
+
|
158
|
+
[role="button"] {
|
159
|
+
cursor: pointer;
|
160
|
+
}
|