elabs 4.0.0 → 5.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitlab-ci.yml +9 -0
- data/.node-version +1 -1
- data/.rubocop.yml +4 -0
- data/.stylelintrc.yml +12 -2
- data/CHANGELOG.md +81 -12
- data/Gemfile +1 -1
- data/Gemfile.lock +96 -94
- data/README.md +2 -0
- data/ROADMAP.md +4 -2
- data/app/assets/config/elabs_manifest.js +2 -1
- data/app/assets/fonts/elabs/FontAwesome/fa-brands-400.eot +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-brands-400.svg +1148 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-brands-400.ttf +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-brands-400.woff +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-brands-400.woff2 +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-regular-400.eot +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-regular-400.svg +467 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-regular-400.ttf +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-regular-400.woff +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-regular-400.woff2 +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-solid-900.eot +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-solid-900.svg +2231 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-solid-900.ttf +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-solid-900.woff +0 -0
- data/app/assets/fonts/elabs/FontAwesome/fa-solid-900.woff2 +0 -0
- data/app/assets/fonts/elabs/OpenSans/Apache License.txt +201 -0
- data/app/assets/fonts/elabs/OpenSans/OpenSans-Bold.ttf +0 -0
- data/app/assets/fonts/elabs/OpenSans/OpenSans-Light.ttf +0 -0
- data/app/assets/fonts/elabs/OpenSans/OpenSans-Regular.ttf +0 -0
- data/app/assets/fonts/elabs/OpenSans/OpenSans-Semibold.ttf +0 -0
- data/app/assets/fonts/elabs/license-icons/license-icons.eot +0 -0
- data/app/assets/fonts/elabs/license-icons/license-icons.svg +51 -0
- data/app/assets/fonts/elabs/license-icons/license-icons.ttf +0 -0
- data/app/assets/fonts/elabs/license-icons/license-icons.woff +0 -0
- data/app/assets/fonts/elabs/license-icons/license-icons.woff2 +0 -0
- data/app/assets/images/elabs/preview_placeholder.png +0 -0
- data/app/assets/images/elabs/preview_placeholder_nsfw.png +0 -0
- data/app/assets/javascripts/elabs/announcements.js +33 -0
- data/app/assets/javascripts/elabs/application.js.erb +17 -14
- data/app/assets/javascripts/elabs/forms.js +0 -1
- data/app/assets/javascripts/elabs/helpers-markdown.js +2 -2
- data/app/assets/javascripts/elabs/helpers.js +17 -0
- data/app/assets/javascripts/elabs/menu.js +5 -0
- data/app/assets/stylesheets/elabs/_fonts.scss +32 -0
- data/app/assets/stylesheets/elabs/_variables.scss +286 -5
- data/app/assets/stylesheets/elabs/app/components/_act.scss +83 -0
- data/app/assets/stylesheets/elabs/app/components/_announcement.scss +41 -0
- data/app/assets/stylesheets/elabs/app/components/_classifier_types.scss +43 -0
- data/app/assets/stylesheets/elabs/app/components/_comment.scss +29 -0
- data/app/assets/stylesheets/elabs/app/components/_content_relations.scss +53 -0
- data/app/assets/stylesheets/elabs/app/components/_content_statuses.scss +39 -0
- data/app/assets/stylesheets/elabs/app/components/_content_types.scss +41 -0
- data/app/assets/stylesheets/elabs/app/components/_git_cards.scss +122 -0
- data/app/assets/stylesheets/elabs/app/elements/_alerts.scss +3 -0
- data/app/assets/stylesheets/elabs/app/elements/_badges.scss +17 -0
- data/app/assets/stylesheets/elabs/app/elements/_buttons.scss +34 -0
- data/app/assets/stylesheets/elabs/app/elements/_dropdowns.scss +78 -0
- data/app/assets/stylesheets/elabs/app/elements/_empty.scss +31 -0
- data/app/assets/stylesheets/elabs/app/elements/_errors.scss +15 -0
- data/app/assets/stylesheets/elabs/app/elements/_filter_link.scss +23 -0
- data/app/assets/stylesheets/elabs/app/elements/_fixed_links.scss +19 -0
- data/app/assets/stylesheets/elabs/app/elements/_forms.scss +123 -0
- data/app/assets/stylesheets/elabs/app/elements/_icons.scss +74 -0
- data/app/assets/stylesheets/elabs/app/{_medias.scss → elements/_medias.scss} +2 -0
- data/app/assets/stylesheets/elabs/app/{_modals.scss → elements/_modals.scss} +8 -4
- data/app/assets/stylesheets/elabs/app/elements/_nsfw.scss +41 -0
- data/app/assets/stylesheets/elabs/app/{_pagination.scss → elements/_pagination.scss} +0 -0
- data/app/assets/stylesheets/elabs/app/{_tables.scss → elements/_tables.scss} +2 -2
- data/app/assets/stylesheets/elabs/app/elements/_tabs.scss +73 -0
- data/app/assets/stylesheets/elabs/app/helpers/_cards.scss +80 -0
- data/app/assets/stylesheets/elabs/app/helpers/_containers.scss +7 -0
- data/app/assets/stylesheets/elabs/app/helpers/_states.scss +3 -0
- data/app/assets/stylesheets/elabs/app/{_helpers.scss → helpers/_typo.scss} +6 -4
- data/app/assets/stylesheets/elabs/app/layouts/_acts.scss +25 -0
- data/app/assets/stylesheets/elabs/app/layouts/_classifiers.scss +32 -0
- data/app/assets/stylesheets/elabs/app/{_comments.scss → layouts/_comments.scss} +0 -2
- data/app/assets/stylesheets/elabs/app/layouts/_devise.scss +65 -0
- data/app/assets/stylesheets/elabs/app/layouts/_layout.scss +40 -0
- data/app/assets/stylesheets/elabs/app/layouts/_page.scss +14 -0
- data/app/assets/stylesheets/elabs/app/layouts/_page_content.scss +13 -0
- data/app/assets/stylesheets/elabs/app/layouts/_page_footer.scss +20 -0
- data/app/assets/stylesheets/elabs/app/layouts/_page_header.scss +146 -0
- data/app/assets/stylesheets/elabs/app/layouts/_page_menu.scss +232 -0
- data/app/assets/stylesheets/elabs/app/layouts/_page_messages.scss +4 -0
- data/app/assets/stylesheets/elabs/app/layouts/_private_layout.scss +78 -0
- data/app/assets/stylesheets/elabs/app/{_typo.scss → layouts/_typo.scss} +3 -0
- data/app/assets/stylesheets/elabs/app/mixins/_classifier_card.scss +43 -0
- data/app/assets/stylesheets/elabs/app/mixins/_content_card.scss +103 -0
- data/app/assets/stylesheets/elabs/app/mixins/_content_full.scss +158 -0
- data/app/assets/stylesheets/elabs/app/mixins/{_content-inline.scss → _content_inline.scss} +0 -0
- data/app/assets/stylesheets/elabs/lib/_codemirror.scss +2 -2
- data/app/assets/stylesheets/elabs/{_colors.scss → lib/_colors_reference.scss} +0 -52
- data/app/assets/stylesheets/elabs/lib/_license_icons.scss +121 -0
- data/app/assets/stylesheets/elabs/lib/fontawesome/_fontawesome.scss +1 -1
- data/app/assets/stylesheets/elabs/lib/fontawesome/_fonts.scss +18 -18
- data/app/assets/stylesheets/elabs/lib/knacss/_knacss.scss +1 -1
- data/app/assets/stylesheets/elabs/lib/knacss/_knacss_variables.scss +227 -0
- data/app/assets/stylesheets/elabs/style.scss +62 -57
- data/app/controllers/elabs/admin/admin_application_controller.rb +1 -1
- data/app/controllers/elabs/admin/announcements_controller.rb +71 -0
- data/app/controllers/elabs/concerns/elabs_controller.rb +3 -0
- data/app/controllers/elabs/content_application_controller.rb +4 -0
- data/app/controllers/elabs/elabs_public_controller.rb +15 -0
- data/app/controllers/elabs/languages_controller.rb +1 -5
- data/app/controllers/elabs/member/comments_controller.rb +42 -0
- data/app/controllers/elabs/member/member_application_controller.rb +1 -1
- data/app/controllers/elabs/reports_controller.rb +2 -0
- data/app/helpers/elabs/acts_helper.rb +7 -2
- data/app/helpers/elabs/application_helper.rb +8 -50
- data/app/helpers/elabs/content_filters_helper.rb +17 -24
- data/app/helpers/elabs/content_helper.rb +8 -35
- data/app/helpers/elabs/content_renderer_helper.rb +4 -112
- data/app/helpers/elabs/form_helper.rb +11 -11
- data/app/helpers/elabs/icons_helper.rb +63 -0
- data/app/helpers/elabs/{admin_content_helper.rb → links_admin_helper.rb} +1 -1
- data/app/helpers/elabs/links_helper.rb +58 -0
- data/app/helpers/elabs/{member_content_helper.rb → links_member_helper.rb} +2 -2
- data/app/helpers/elabs/notification_helper.rb +17 -3
- data/app/helpers/elabs/shortcodes_helper.rb +108 -0
- data/app/helpers/elabs/thumbnails_helper.rb +1 -1
- data/app/models/elabs/album.rb +14 -0
- data/app/models/elabs/announcement.rb +33 -0
- data/app/models/elabs/article.rb +14 -0
- data/app/models/elabs/comment.rb +10 -4
- data/app/models/elabs/note.rb +14 -0
- data/app/models/elabs/project.rb +12 -0
- data/app/models/elabs/report.rb +1 -0
- data/app/models/elabs/upload.rb +16 -0
- data/app/models/elabs/user.rb +2 -1
- data/app/views/elabs/acts/_filters.html.haml +3 -2
- data/app/views/elabs/acts/index.html.haml +2 -13
- data/app/views/elabs/admin/announcements/_announcement.json.jbuilder +10 -0
- data/app/views/elabs/admin/announcements/_form.html.haml +52 -0
- data/app/views/elabs/admin/announcements/edit.html.haml +3 -0
- data/app/views/elabs/admin/announcements/index.html.haml +28 -0
- data/app/views/elabs/admin/announcements/index.json.jbuilder +1 -0
- data/app/views/elabs/admin/announcements/new.html.haml +3 -0
- data/app/views/elabs/admin/licenses/index.html.haml +2 -2
- data/app/views/elabs/admin/uploads/_upload.json.jbuilder +3 -3
- data/app/views/elabs/albums/_card_content.html.haml +8 -0
- data/app/views/elabs/albums/_filters.html.haml +5 -3
- data/app/views/elabs/albums/index.html.haml +1 -1
- data/app/views/elabs/albums/show.html.haml +38 -29
- data/app/views/elabs/articles/_filters.html.haml +5 -3
- data/app/views/elabs/articles/index.html.haml +1 -1
- data/app/views/elabs/articles/show.html.haml +33 -25
- data/app/views/elabs/auth/confirmations/new.html.haml +1 -1
- data/app/views/elabs/auth/passwords/edit.html.haml +1 -1
- data/app/views/elabs/auth/passwords/new.html.haml +1 -1
- data/app/views/elabs/auth/registrations/new.html.haml +7 -2
- data/app/views/elabs/auth/sessions/_new.html.haml +1 -1
- data/app/views/elabs/auth/unlocks/new.html.haml +1 -1
- data/app/views/elabs/comments/_comments.html.haml +29 -20
- data/app/views/elabs/comments/_form.html.haml +40 -36
- data/app/views/elabs/languages/_filters.html.haml +3 -5
- data/app/views/elabs/languages/index.html.haml +12 -13
- data/app/views/elabs/languages/show.html.haml +36 -31
- data/app/views/elabs/layouts/_announcements.html.haml +9 -0
- data/app/views/elabs/layouts/_content_associations.html.haml +89 -0
- data/app/views/elabs/layouts/_content_card.html.haml +41 -0
- data/app/views/elabs/layouts/_flash_messages.html.haml +4 -0
- data/app/views/elabs/layouts/_footer.html.haml +18 -10
- data/app/views/elabs/layouts/_form_honeypot.html.haml +12 -0
- data/app/views/elabs/layouts/_hidden_entry.html.haml +1 -1
- data/app/views/elabs/layouts/_hidden_entry_full.html.haml +4 -2
- data/app/views/elabs/layouts/_hidden_entry_inline.html.haml +1 -1
- data/app/views/elabs/layouts/_language_menu.html.haml +2 -2
- data/app/views/elabs/layouts/_menu.html.haml +58 -75
- data/app/views/elabs/layouts/_menu_admin.html.haml +40 -0
- data/app/views/elabs/layouts/_menu_member.html.haml +57 -0
- data/app/views/elabs/layouts/application.html.haml +24 -13
- data/app/views/elabs/layouts/application_admin.html.haml +33 -0
- data/app/views/elabs/layouts/application_member.html.haml +36 -0
- data/app/views/elabs/layouts/{lists → content_classifiers_lists}/_albums.html.haml +0 -0
- data/app/views/elabs/layouts/{lists → content_classifiers_lists}/_projects.html.haml +0 -0
- data/app/views/elabs/layouts/{lists → content_classifiers_lists}/_tags.html.haml +0 -0
- data/app/views/elabs/layouts/{_shortcode_infinite_loop.html.haml → shortcodes/_infinite_loop.html.haml} +1 -1
- data/app/views/elabs/layouts/{_shortcode_infinite_loop_inline.html.haml → shortcodes/_infinite_loop_inline.html.haml} +0 -0
- data/app/views/elabs/layouts/{_shortcode_missing_content.html.haml → shortcodes/_missing_content.html.haml} +1 -1
- data/app/views/elabs/layouts/{_shortcode_missing_content_inline.html.haml → shortcodes/_missing_content_inline.html.haml} +0 -0
- data/app/views/elabs/layouts/shortcodes/_open_to_see.html.haml +2 -0
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_github_repo_card.html.haml +1 -1
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_github_repo_inline.html.haml +0 -0
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_github_user_card.html.haml +0 -0
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_gitlab_group_card.html.haml +1 -1
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_gitlab_repo_card.html.haml +1 -1
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_gitlab_repo_inline.html.haml +0 -0
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/_gitlab_user_card.html.haml +1 -1
- data/app/views/elabs/layouts/shortcodes/widgets/vue/_all_widgets.html.haml +5 -0
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/vue/_github_repo_card_vue.html.haml +8 -8
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/vue/_github_user_card_vue.html.haml +5 -5
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/vue/_gitlab_group_card_vue.html.haml +5 -5
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/vue/_gitlab_repo_card_vue.html.haml +8 -8
- data/app/views/elabs/layouts/{widgets → shortcodes/widgets}/vue/_gitlab_user_card_vue.html.haml +4 -4
- data/app/views/elabs/licenses/_filters.html.haml +3 -2
- data/app/views/elabs/licenses/index.html.haml +14 -12
- data/app/views/elabs/licenses/show.html.haml +40 -34
- data/app/views/elabs/member/albums/_form.html.haml +1 -43
- data/app/views/elabs/member/articles/_form.html.haml +1 -39
- data/app/views/elabs/member/layouts/_form_commons.html.haml +55 -0
- data/app/views/elabs/member/notes/_form.html.haml +1 -39
- data/app/views/elabs/member/preferences/edit.html.haml +1 -2
- data/app/views/elabs/member/projects/_form.html.haml +3 -38
- data/app/views/elabs/member/uploads/_form.html.haml +1 -42
- data/app/views/elabs/member/uploads/_upload.json.jbuilder +3 -3
- data/app/views/elabs/member/users/edit.html.haml +3 -4
- data/app/views/elabs/notes/_filters.html.haml +5 -3
- data/app/views/elabs/notes/index.html.haml +1 -1
- data/app/views/elabs/notes/show.html.haml +33 -25
- data/app/views/elabs/projects/_filters.html.haml +5 -3
- data/app/views/elabs/projects/index.html.haml +1 -1
- data/app/views/elabs/projects/show.html.haml +68 -62
- data/app/views/elabs/reports/_form.html.haml +2 -0
- data/app/views/elabs/tags/_filters.html.haml +3 -2
- data/app/views/elabs/tags/index.html.haml +11 -11
- data/app/views/elabs/tags/show.html.haml +31 -28
- data/app/views/elabs/uploads/_filters.html.haml +5 -3
- data/app/views/elabs/uploads/_preview.html.haml +5 -4
- data/app/views/elabs/uploads/_thumbnail.html.haml +9 -0
- data/app/views/elabs/uploads/_upload.json.jbuilder +3 -3
- data/app/views/elabs/uploads/index.html.haml +1 -1
- data/app/views/elabs/uploads/show.html.haml +45 -39
- data/app/views/elabs/users/_filters.html.haml +3 -2
- data/app/views/elabs/users/_user.html.haml +3 -3
- data/app/views/elabs/users/show.html.haml +48 -43
- data/config/routes.rb +13 -8
- data/db/migrate/20181025084232_add_archived_field_to_comments.rb +5 -0
- data/db/migrate/20181026071743_delete_comment_notifications.rb +5 -0
- data/db/migrate/20181030063505_create_announcements.rb +14 -0
- data/docs/CODEOWNERS +10 -0
- data/docs/migrating.md +16 -1
- data/docs/shortcodes_guide.md +51 -0
- data/lib/assets/javascripts/README-highlight.js.md +5 -5
- data/lib/assets/javascripts/highlight.js-9.13.1/highlight.pack.js +2 -0
- data/lib/assets/stylesheets/{highlight.js-9.12.0 → highlight.js-9.13.1}/styles/atelier-sulphurpool-light.css +0 -0
- data/lib/elabs.rb +8 -0
- data/lib/elabs/version.rb +1 -1
- data/lib/generators/elabs/{devise_views_generator.rb → devise_mailer_views_generator.rb} +2 -2
- data/lib/generators/elabs/images_generator.rb +24 -0
- data/lib/generators/elabs/required_assets_generator.rb +0 -2
- data/lib/generators/templates/elabs.rb +3 -0
- data/locale/app.pot +132 -19
- data/locale/en/app.edit.po +130 -17
- data/locale/en/app.po +130 -17
- data/locale/fr/app.edit.po +145 -28
- data/locale/fr/app.po +141 -27
- data/package.json +10 -12
- data/yarn.lock +885 -668
- metadata +136 -97
- data/app/assets/stylesheets/elabs/_icons.scss +0 -17
- data/app/assets/stylesheets/elabs/app/_acts.scss +0 -69
- data/app/assets/stylesheets/elabs/app/_alerts.scss +0 -3
- data/app/assets/stylesheets/elabs/app/_badges.scss +0 -11
- data/app/assets/stylesheets/elabs/app/_buttons.scss +0 -29
- data/app/assets/stylesheets/elabs/app/_content.scss +0 -25
- data/app/assets/stylesheets/elabs/app/_content_statuses.scss +0 -32
- data/app/assets/stylesheets/elabs/app/_content_uploads.scss +0 -39
- data/app/assets/stylesheets/elabs/app/_empty.scss +0 -19
- data/app/assets/stylesheets/elabs/app/_errors.scss +0 -9
- data/app/assets/stylesheets/elabs/app/_filter_links.scss +0 -27
- data/app/assets/stylesheets/elabs/app/_forms.scss +0 -74
- data/app/assets/stylesheets/elabs/app/_languages.scss +0 -6
- data/app/assets/stylesheets/elabs/app/_layout.scss +0 -206
- data/app/assets/stylesheets/elabs/app/_licenses.scss +0 -6
- data/app/assets/stylesheets/elabs/app/_link-to-top.scss +0 -8
- data/app/assets/stylesheets/elabs/app/_tabs.scss +0 -54
- data/app/assets/stylesheets/elabs/app/_tags.scss +0 -6
- data/app/assets/stylesheets/elabs/app/_toolbars.scss +0 -3
- data/app/assets/stylesheets/elabs/app/_users.scss +0 -21
- data/app/assets/stylesheets/elabs/app/admin-members/_forms.scss +0 -13
- data/app/assets/stylesheets/elabs/app/admin-members/_indexes.scss +0 -46
- data/app/assets/stylesheets/elabs/app/admin-members/_layout.scss +0 -17
- data/app/assets/stylesheets/elabs/app/areas/_devise.scss +0 -31
- data/app/assets/stylesheets/elabs/app/components/_cards.scss +0 -16
- data/app/assets/stylesheets/elabs/app/components/_container.scss +0 -4
- data/app/assets/stylesheets/elabs/app/mixins/_classifier-card.scss +0 -16
- data/app/assets/stylesheets/elabs/app/mixins/_content-card.scss +0 -72
- data/app/assets/stylesheets/elabs/app/mixins/_content-full.scss +0 -77
- data/app/assets/stylesheets/elabs/app/widgets/_git-cards.scss +0 -88
- data/app/assets/stylesheets/elabs/lib/fontawesome/_icons.scss +0 -1118
- data/app/assets/stylesheets/elabs/lib/knacss/_knacss-variables.scss +0 -239
- data/app/views/elabs/albums/_album.html.haml +0 -38
- data/app/views/elabs/articles/_article.html.haml +0 -30
- data/app/views/elabs/languages/_associations.html.haml +0 -61
- data/app/views/elabs/layouts/_shortcode_open_to_see.html.haml +0 -2
- data/app/views/elabs/layouts/admin_application.html.haml +0 -21
- data/app/views/elabs/layouts/member_application.html.haml +0 -24
- data/app/views/elabs/layouts/widgets/vue/_all_widgets.html.haml +0 -5
- data/app/views/elabs/licenses/_associations.html.haml +0 -61
- data/app/views/elabs/notes/_note.html.haml +0 -31
- data/app/views/elabs/projects/_associations.html.haml +0 -54
- data/app/views/elabs/projects/_project.html.haml +0 -29
- data/app/views/elabs/tags/_associations.html.haml +0 -61
- data/app/views/elabs/uploads/_upload.html.haml +0 -41
- data/app/views/elabs/users/_associations.html.haml +0 -61
- data/db/seeds.rb +0 -10
- data/db/seeds_development.rb +0 -21
- data/db/seeds_production.rb +0 -0
- data/lib/assets/javascripts/codemirror-5.39.2/addon/mode/overlay.js +0 -90
- data/lib/assets/javascripts/codemirror-5.39.2/lib/codemirror.js +0 -9684
- data/lib/assets/javascripts/codemirror-5.39.2/mode/clike/clike.js +0 -834
- data/lib/assets/javascripts/codemirror-5.39.2/mode/css/css.js +0 -832
- data/lib/assets/javascripts/codemirror-5.39.2/mode/gfm/gfm.js +0 -129
- data/lib/assets/javascripts/codemirror-5.39.2/mode/htmlmixed/htmlmixed.js +0 -152
- data/lib/assets/javascripts/codemirror-5.39.2/mode/javascript/javascript.js +0 -896
- data/lib/assets/javascripts/codemirror-5.39.2/mode/markdown/markdown.js +0 -882
- data/lib/assets/javascripts/codemirror-5.39.2/mode/meta.js +0 -217
- data/lib/assets/javascripts/codemirror-5.39.2/mode/xml/xml.js +0 -402
- data/lib/assets/javascripts/highlight.js-9.12.0/highlight.pack.js +0 -2
- data/lib/assets/stylesheets/codemirror-5.39.2/lib/codemirror.css +0 -346
- data/lib/assets/stylesheets/codemirror-5.39.2/theme/base16-dark.css +0 -38
- data/lib/assets/stylesheets/codemirror-5.39.2/theme/base16-light.css +0 -38
@@ -1,7 +1,3 @@
|
|
1
|
-
%clickable {
|
2
|
-
cursor: pointer;
|
3
|
-
}
|
4
|
-
|
5
1
|
%content-code {
|
6
2
|
@include font-size('small');
|
7
3
|
border-left: 2px dotted $color-borders;
|
@@ -11,3 +7,9 @@
|
|
11
7
|
%article-header {
|
12
8
|
color: $color-grey-800;
|
13
9
|
}
|
10
|
+
|
11
|
+
%ellipsis {
|
12
|
+
white-space: nowrap;
|
13
|
+
overflow: hidden;
|
14
|
+
text-overflow: ellipsis;
|
15
|
+
}
|
@@ -0,0 +1,25 @@
|
|
1
|
+
.acts-list {
|
2
|
+
|
3
|
+
.date {
|
4
|
+
@include font-size('h3');
|
5
|
+
font-weight: $weight-medium;
|
6
|
+
margin: $spacer-medium 0;
|
7
|
+
background-color: $acts-date-background-color;
|
8
|
+
padding: $spacer-tiny;
|
9
|
+
line-height: 1em;
|
10
|
+
}
|
11
|
+
}
|
12
|
+
|
13
|
+
// Responsive variation ---------------
|
14
|
+
@include respond-to('medium-up') {
|
15
|
+
|
16
|
+
.acts-list {
|
17
|
+
|
18
|
+
.date {
|
19
|
+
@include font-size('h3');
|
20
|
+
display: inline-block;
|
21
|
+
margin: $spacer-medium 0 $spacer-small 25%;
|
22
|
+
transform: translateX(-60%);
|
23
|
+
}
|
24
|
+
}
|
25
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
// Language ---------------------------
|
2
|
+
@include content-full('language', $language-bg);
|
3
|
+
@include content-full('license', $license-bg);
|
4
|
+
@include content-full('tag', $tag-bg);
|
5
|
+
|
6
|
+
.languages-list,
|
7
|
+
.licenses-list,
|
8
|
+
.tags-list {
|
9
|
+
@include grid(1, $spacer-small);
|
10
|
+
@include respond-to('small-up') {
|
11
|
+
@include grid(2, $spacer-small);
|
12
|
+
}
|
13
|
+
@include respond-to('medium-up') {
|
14
|
+
@include grid(3, $spacer-small);
|
15
|
+
}
|
16
|
+
@include respond-to('large-up') {
|
17
|
+
@include grid(4, $spacer-small);
|
18
|
+
}
|
19
|
+
}
|
20
|
+
|
21
|
+
// Users ------------------------------
|
22
|
+
@include content-full('user', $user-bg);
|
23
|
+
|
24
|
+
.users-list {
|
25
|
+
@include grid(1, $spacer-small);
|
26
|
+
@include respond-to('small-up') {
|
27
|
+
@include grid(2, $spacer-small);
|
28
|
+
}
|
29
|
+
@include respond-to('large-up') {
|
30
|
+
@include grid(3, $spacer-small);
|
31
|
+
}
|
32
|
+
}
|
@@ -0,0 +1,65 @@
|
|
1
|
+
.devise {
|
2
|
+
|
3
|
+
&__form {
|
4
|
+
|
5
|
+
&__wrapper {
|
6
|
+
@extend %card;
|
7
|
+
padding: $spacer-small;
|
8
|
+
|
9
|
+
.actions {
|
10
|
+
background-color: transparent;
|
11
|
+
}
|
12
|
+
}
|
13
|
+
}
|
14
|
+
|
15
|
+
&__actions {
|
16
|
+
|
17
|
+
a {
|
18
|
+
display: block;
|
19
|
+
text-decoration: none;
|
20
|
+
border-left: 3px solid transparent;
|
21
|
+
padding: $spacer-tiny 0;
|
22
|
+
}
|
23
|
+
}
|
24
|
+
}
|
25
|
+
|
26
|
+
// Responsive variations --------------
|
27
|
+
@include respond-to('medium-up') {
|
28
|
+
|
29
|
+
.devise {
|
30
|
+
@include grid(4, $spacer-small);
|
31
|
+
|
32
|
+
&__form {
|
33
|
+
grid-column: 1 / span 2;
|
34
|
+
}
|
35
|
+
|
36
|
+
&__actions {
|
37
|
+
grid-column: 3 / span 2;
|
38
|
+
|
39
|
+
a {
|
40
|
+
font-size: .8em;
|
41
|
+
color: lighten($link-color, 20%);
|
42
|
+
border-left: 3px solid transparent;
|
43
|
+
padding: 0 0 0 $spacer-tiny;
|
44
|
+
|
45
|
+
&:hover {
|
46
|
+
border-left-color: $color-borders;
|
47
|
+
}
|
48
|
+
}
|
49
|
+
}
|
50
|
+
}
|
51
|
+
}
|
52
|
+
@include respond-to('large-up') {
|
53
|
+
|
54
|
+
.devise {
|
55
|
+
@include grid(5, $spacer-small);
|
56
|
+
|
57
|
+
&__form {
|
58
|
+
grid-column: 2 / span 2;
|
59
|
+
}
|
60
|
+
|
61
|
+
&__actions {
|
62
|
+
grid-column: 4 / span 2;
|
63
|
+
}
|
64
|
+
}
|
65
|
+
}
|
@@ -0,0 +1,40 @@
|
|
1
|
+
body {
|
2
|
+
font-weight: $weight-light;
|
3
|
+
}
|
4
|
+
|
5
|
+
p {
|
6
|
+
|
7
|
+
&:last-child {
|
8
|
+
margin-bottom: 0;
|
9
|
+
}
|
10
|
+
}
|
11
|
+
|
12
|
+
/* stylelint-disable selector-no-qualifying-type */
|
13
|
+
|
14
|
+
h1.separator,
|
15
|
+
h2.separator,
|
16
|
+
h3.separator,
|
17
|
+
h4.separator,
|
18
|
+
h5.separator,
|
19
|
+
h6.separator {
|
20
|
+
border: {
|
21
|
+
top: 3px double $color-borders;
|
22
|
+
bottom: 0;
|
23
|
+
left: 0;
|
24
|
+
right: 0;
|
25
|
+
}
|
26
|
+
margin-top: $spacer-medium;
|
27
|
+
background: transparent;
|
28
|
+
}
|
29
|
+
|
30
|
+
hr.separator {
|
31
|
+
border: {
|
32
|
+
top: 1px dashed $color-borders;
|
33
|
+
bottom: 0;
|
34
|
+
left: 0;
|
35
|
+
right: 0;
|
36
|
+
}
|
37
|
+
background: transparent;
|
38
|
+
}
|
39
|
+
|
40
|
+
/* stylelint-enable selector-no-qualifying-type */
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// Page content ---------------------
|
2
|
+
.page__content {
|
3
|
+
|
4
|
+
&__container {
|
5
|
+
@extend %content-container;
|
6
|
+
padding: $spacer-small 0;
|
7
|
+
}
|
8
|
+
|
9
|
+
// Responsive variations ------------
|
10
|
+
@include respond-to('small-up') {
|
11
|
+
padding-top: $spacer-medium-plus;
|
12
|
+
}
|
13
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
// Page footer ----------------------
|
2
|
+
.page__footer {
|
3
|
+
background-color: $color-brand;
|
4
|
+
padding: $spacer-small 0;
|
5
|
+
|
6
|
+
&__content {
|
7
|
+
@extend %content-container;
|
8
|
+
font-size: .8em;
|
9
|
+
text-align: center;
|
10
|
+
|
11
|
+
a {
|
12
|
+
color: $color-base;
|
13
|
+
text-decoration: none;
|
14
|
+
|
15
|
+
&:hover {
|
16
|
+
text-decoration: underline;
|
17
|
+
}
|
18
|
+
}
|
19
|
+
}
|
20
|
+
}
|
@@ -0,0 +1,146 @@
|
|
1
|
+
// Page headers (title/filters) -------
|
2
|
+
.page__header {
|
3
|
+
@extend %content-container;
|
4
|
+
display: flex;
|
5
|
+
padding-top: $spacer-medium-plus;
|
6
|
+
|
7
|
+
// Responsive variations ------------
|
8
|
+
@include respond-to('medium-up') {
|
9
|
+
display: block;
|
10
|
+
padding-top: $spacer-large-plus;
|
11
|
+
}
|
12
|
+
|
13
|
+
// Page title -----------------------
|
14
|
+
|
15
|
+
&__title {
|
16
|
+
flex-grow: 1;
|
17
|
+
font-weight: 300;
|
18
|
+
color: $page-title-color;
|
19
|
+
padding: 0;
|
20
|
+
line-height: 1em;
|
21
|
+
margin: 0;
|
22
|
+
|
23
|
+
// Responsive variations ----------
|
24
|
+
@include respond-to('medium-up') {
|
25
|
+
font-size: 3.5em;
|
26
|
+
flex-grow: 1;
|
27
|
+
}
|
28
|
+
}
|
29
|
+
|
30
|
+
&__actions {
|
31
|
+
text-align: right;
|
32
|
+
padding: $spacer-tiny 0;
|
33
|
+
flex: none;
|
34
|
+
|
35
|
+
&_button {
|
36
|
+
@include font-size('h5');
|
37
|
+
color: $page-header-links-color;
|
38
|
+
display: inline-flex;
|
39
|
+
text-decoration: none;
|
40
|
+
}
|
41
|
+
|
42
|
+
// Filter links and sort orders ---
|
43
|
+
|
44
|
+
&__filters {
|
45
|
+
display: none;
|
46
|
+
position: fixed;
|
47
|
+
right: 0;
|
48
|
+
top: 0;
|
49
|
+
width: 18rem;
|
50
|
+
height: 100vh;
|
51
|
+
z-index: $zindex-navigation;
|
52
|
+
background-color: $filter-links-panel-bg;
|
53
|
+
padding: 0;
|
54
|
+
|
55
|
+
&__group {
|
56
|
+
display: block;
|
57
|
+
margin: 0;
|
58
|
+
|
59
|
+
&:not(:first-child) {
|
60
|
+
margin-top: $spacer-small;
|
61
|
+
border-top: 1px solid $color-borders;
|
62
|
+
}
|
63
|
+
|
64
|
+
&__title {
|
65
|
+
font-size: 1.2em;
|
66
|
+
background-color: $filter-links-titles-bg;
|
67
|
+
color: $filter-links-color;
|
68
|
+
padding: $spacer-small $spacer-tiny;
|
69
|
+
text-align: left;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
|
73
|
+
// Responsive variations: medium and up
|
74
|
+
/* stylelint-disable max-nesting-depth */
|
75
|
+
@include respond-to('medium-up') {
|
76
|
+
margin: 0;
|
77
|
+
display: flex;
|
78
|
+
align-items: flex-end;
|
79
|
+
position: relative;
|
80
|
+
height: auto;
|
81
|
+
width: auto;
|
82
|
+
background-color: transparent;
|
83
|
+
|
84
|
+
&__group {
|
85
|
+
display: flex;
|
86
|
+
margin: 0;
|
87
|
+
background-color: $color-background-base;
|
88
|
+
|
89
|
+
&:not(:first-child) {
|
90
|
+
margin-top: 0;
|
91
|
+
border-top: 0;
|
92
|
+
}
|
93
|
+
|
94
|
+
&__title {
|
95
|
+
display: none;
|
96
|
+
}
|
97
|
+
|
98
|
+
.filter-link {
|
99
|
+
padding: $spacer-tiny;
|
100
|
+
display: block;
|
101
|
+
color: $link-color;
|
102
|
+
|
103
|
+
.icon {
|
104
|
+
padding: 0 $spacer-tiny;
|
105
|
+
}
|
106
|
+
|
107
|
+
.link {
|
108
|
+
@include font-size('smaller');
|
109
|
+
}
|
110
|
+
|
111
|
+
&:hover {
|
112
|
+
background-color: transparent;
|
113
|
+
color: $link-color-hover;
|
114
|
+
}
|
115
|
+
}
|
116
|
+
}
|
117
|
+
}
|
118
|
+
/* stylelint-enable max-nesting-depth */
|
119
|
+
}
|
120
|
+
|
121
|
+
&:hover {
|
122
|
+
|
123
|
+
.page__header__actions__filters {
|
124
|
+
display: block;
|
125
|
+
}
|
126
|
+
}
|
127
|
+
|
128
|
+
// Responsive variations ----------
|
129
|
+
@include respond-to('medium-up') {
|
130
|
+
display: flex;
|
131
|
+
justify-content: flex-end;
|
132
|
+
padding: 0;
|
133
|
+
|
134
|
+
&_button {
|
135
|
+
display: none;
|
136
|
+
}
|
137
|
+
|
138
|
+
&:hover {
|
139
|
+
|
140
|
+
.page__header__actions__filters {
|
141
|
+
display: flex;
|
142
|
+
}
|
143
|
+
}
|
144
|
+
}
|
145
|
+
}
|
146
|
+
}
|
@@ -0,0 +1,232 @@
|
|
1
|
+
// Page menu --------------------------
|
2
|
+
.page__menu {
|
3
|
+
background-color: $menu-background-color;
|
4
|
+
|
5
|
+
// All links style ------------------
|
6
|
+
a {
|
7
|
+
text-decoration: none;
|
8
|
+
}
|
9
|
+
|
10
|
+
// Menu links -----------------------
|
11
|
+
.menu_entry {
|
12
|
+
display: inline-block;
|
13
|
+
padding: $spacer-small $spacer-tiny-plus calc(#{$spacer-small} - #{$spacer-tiny}) $spacer-tiny-plus;
|
14
|
+
color: $menu-color;
|
15
|
+
border-bottom: $spacer-tiny solid transparent;
|
16
|
+
|
17
|
+
.icon {
|
18
|
+
display: none;
|
19
|
+
color: $menu-item-icon-color;
|
20
|
+
}
|
21
|
+
|
22
|
+
&--avatar {
|
23
|
+
padding: 0;
|
24
|
+
border: none;
|
25
|
+
|
26
|
+
.avatar {
|
27
|
+
height: 4.45rem;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
&:hover {
|
32
|
+
background-color: $menu-link-background-color-hover;
|
33
|
+
|
34
|
+
.icon {
|
35
|
+
color: $menu-item-hover-icon-color;
|
36
|
+
}
|
37
|
+
}
|
38
|
+
|
39
|
+
&.active {
|
40
|
+
border-bottom-color: $menu-item-active-border-color;
|
41
|
+
}
|
42
|
+
}
|
43
|
+
|
44
|
+
// Dropdown customisation -----------
|
45
|
+
.dropdown {
|
46
|
+
|
47
|
+
> a {
|
48
|
+
color: inherit;
|
49
|
+
}
|
50
|
+
|
51
|
+
&__menu {
|
52
|
+
background-color: $menu-link-background-color-hover;
|
53
|
+
box-shadow: 0 5px 8px -1px $color-borders;
|
54
|
+
border-top: 3px solid $menu-link-color;
|
55
|
+
margin-top: 1rem;
|
56
|
+
|
57
|
+
.menu_entry,
|
58
|
+
.action {
|
59
|
+
display: block;
|
60
|
+
border-left: 3px solid transparent;
|
61
|
+
|
62
|
+
&:hover { // stylelint-disable-line
|
63
|
+
background-color: $menu-dropdown-background-color-hover;
|
64
|
+
}
|
65
|
+
|
66
|
+
&.active { // stylelint-disable-line
|
67
|
+
border: {
|
68
|
+
bottom: 0;
|
69
|
+
left: 3px solid $menu-item-active-border-color;
|
70
|
+
}
|
71
|
+
}
|
72
|
+
}
|
73
|
+
}
|
74
|
+
}
|
75
|
+
|
76
|
+
// General menu title ---------------
|
77
|
+
&__title {
|
78
|
+
font-weight: 600;
|
79
|
+
text-align: center;
|
80
|
+
display: flex;
|
81
|
+
|
82
|
+
.brand_link {
|
83
|
+
flex-grow: 1;
|
84
|
+
color: darken($color-brand, 20%);
|
85
|
+
|
86
|
+
> a {
|
87
|
+
padding: $spacer-tiny $spacer-small;
|
88
|
+
display: block;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
.menu_button {
|
93
|
+
flex: none;
|
94
|
+
|
95
|
+
> a {
|
96
|
+
padding: $spacer-tiny $spacer-small;
|
97
|
+
display: block;
|
98
|
+
}
|
99
|
+
}
|
100
|
+
}
|
101
|
+
|
102
|
+
// Group of links -------------------
|
103
|
+
&__group {
|
104
|
+
|
105
|
+
// Secondary group (right one) ----
|
106
|
+
&--secondary {
|
107
|
+
display: none;
|
108
|
+
flex: none;
|
109
|
+
|
110
|
+
.close_menu_button {
|
111
|
+
display: none;
|
112
|
+
}
|
113
|
+
|
114
|
+
&.visible {
|
115
|
+
display: flex;
|
116
|
+
flex-direction: column;
|
117
|
+
position: fixed;
|
118
|
+
right: 0;
|
119
|
+
top: 0;
|
120
|
+
background-color: $menu-link-background-color-hover;
|
121
|
+
min-width: 20rem;
|
122
|
+
height: 100vh;
|
123
|
+
overflow-x: auto;
|
124
|
+
z-index: $zindex-modal;
|
125
|
+
|
126
|
+
.close_menu_button {
|
127
|
+
display: block;
|
128
|
+
background-color: $color-brand;
|
129
|
+
cursor: pointer;
|
130
|
+
position: fixed;
|
131
|
+
right: 0;
|
132
|
+
padding: $spacer-tiny;
|
133
|
+
z-index: $zindex-popover;
|
134
|
+
}
|
135
|
+
|
136
|
+
/* stylelint-disable max-nesting-depth */
|
137
|
+
/* This is not really avoidable, as we target specific elements in a specific parent state */
|
138
|
+
|
139
|
+
.menu_entry { /* stylelint-disable-line no-descending-specificity */
|
140
|
+
display: block;
|
141
|
+
|
142
|
+
&:hover {
|
143
|
+
background-color: $menu-dropdown-background-color-hover;
|
144
|
+
}
|
145
|
+
|
146
|
+
.icon {
|
147
|
+
display: inline-block;
|
148
|
+
}
|
149
|
+
}
|
150
|
+
|
151
|
+
/* stylelint-enable max-nesting-depth */
|
152
|
+
|
153
|
+
.dropdown__menu {
|
154
|
+
right: 0;
|
155
|
+
left: auto;
|
156
|
+
}
|
157
|
+
}
|
158
|
+
}
|
159
|
+
}
|
160
|
+
|
161
|
+
// Menu button for larger screens ---
|
162
|
+
.menu_button--for-small {
|
163
|
+
display: none;
|
164
|
+
}
|
165
|
+
}
|
166
|
+
|
167
|
+
// Responsive variations --------------
|
168
|
+
@include respond-to('small-up') {
|
169
|
+
|
170
|
+
.page__menu {
|
171
|
+
display: flex;
|
172
|
+
padding: $spacer-medium-plus;
|
173
|
+
|
174
|
+
&__title {
|
175
|
+
display: inline-block;
|
176
|
+
text-align: left;
|
177
|
+
}
|
178
|
+
|
179
|
+
&__group {
|
180
|
+
display: flex;
|
181
|
+
flex-grow: 1;
|
182
|
+
|
183
|
+
&--secondary {
|
184
|
+
display: none;
|
185
|
+
}
|
186
|
+
}
|
187
|
+
|
188
|
+
.menu_button {
|
189
|
+
|
190
|
+
&--for-tiny {
|
191
|
+
display: none;
|
192
|
+
}
|
193
|
+
|
194
|
+
&--for-small {
|
195
|
+
display: inline-block;
|
196
|
+
}
|
197
|
+
}
|
198
|
+
}
|
199
|
+
}
|
200
|
+
@include respond-to('large-up') {
|
201
|
+
|
202
|
+
.page__menu {
|
203
|
+
|
204
|
+
&__group--secondary {
|
205
|
+
flex: none;
|
206
|
+
display: inline-block;
|
207
|
+
|
208
|
+
.menu_entry {
|
209
|
+
|
210
|
+
&_description {
|
211
|
+
display: none;
|
212
|
+
}
|
213
|
+
}
|
214
|
+
}
|
215
|
+
|
216
|
+
.menu_button--for-small {
|
217
|
+
display: none;
|
218
|
+
}
|
219
|
+
}
|
220
|
+
}
|
221
|
+
@include respond-to('extra-large-up') {
|
222
|
+
|
223
|
+
.page__menu {
|
224
|
+
|
225
|
+
.menu_entry {
|
226
|
+
|
227
|
+
.icon {
|
228
|
+
display: inline-block;
|
229
|
+
}
|
230
|
+
}
|
231
|
+
}
|
232
|
+
}
|