decidim-core 0.15.2 → 0.16.0
Sign up to get free protection for your applications and to get access to all the features.
Potentially problematic release.
This version of decidim-core might be problematic. Click here for more details.
- checksums.yaml +4 -4
- data/README.md +14 -1
- data/app/assets/config/decidim_core_manifest.js +14 -12
- data/app/assets/images/decidim/pattern.png +0 -0
- data/app/assets/javascripts/decidim.js.es6 +4 -0
- data/app/assets/javascripts/decidim/floating_help.js.es6 +40 -0
- data/app/assets/javascripts/decidim/input_hashtags.js.es6 +6 -4
- data/app/assets/javascripts/decidim/notifications.js.es6 +1 -1
- data/app/assets/javascripts/decidim/tooltip_keep_on_hover.js.es6 +18 -0
- data/app/assets/javascripts/decidim/vizzs/areachart.js.es6 +52 -10
- data/app/assets/javascripts/decidim/vizzs/metrics.js.es6 +68 -22
- data/app/assets/javascripts/decidim/vizzs/orgchart.js.es6 +10 -13
- data/app/assets/stylesheets/decidim/conference-diploma.css.scss +61 -0
- data/app/assets/stylesheets/decidim/layouts/_home.scss +1 -1
- data/app/assets/stylesheets/decidim/modules/_buttons.scss +4 -0
- data/app/assets/stylesheets/decidim/modules/_cards.scss +17 -1
- data/app/assets/stylesheets/decidim/modules/_conference-programme.scss +0 -4
- data/app/assets/stylesheets/decidim/modules/_filters.scss +37 -2
- data/app/assets/stylesheets/decidim/modules/_floating-helper.scss +106 -0
- data/app/assets/stylesheets/decidim/modules/_forms.scss +22 -0
- data/app/assets/stylesheets/decidim/modules/_help.scss +4 -0
- data/app/assets/stylesheets/decidim/modules/_layout.scss +1 -0
- data/app/assets/stylesheets/decidim/modules/_margins.scss +1 -0
- data/app/assets/stylesheets/decidim/modules/_modules.scss +1 -1
- data/app/assets/stylesheets/decidim/modules/_navbar.scss +5 -1
- data/app/assets/stylesheets/decidim/modules/_order-by.scss +11 -1
- data/app/assets/stylesheets/decidim/modules/_process-header.scss +36 -38
- data/app/assets/stylesheets/decidim/modules/_process-nav.scss +61 -10
- data/app/assets/stylesheets/decidim/modules/_process-phase.scss +63 -30
- data/app/assets/stylesheets/decidim/modules/_share.scss +4 -0
- data/app/assets/stylesheets/decidim/modules/_typography.scss +17 -0
- data/app/assets/stylesheets/decidim/{modules → vizzs}/_orgchart.scss +2 -10
- data/app/cells/decidim/activities_cell.rb +6 -2
- data/app/cells/decidim/activity/show.erb +22 -19
- data/app/cells/decidim/activity_cell.rb +35 -5
- data/app/cells/decidim/amendable/amend_button_card/show.erb +9 -0
- data/app/cells/decidim/amendable/amend_button_card_cell.rb +43 -0
- data/app/cells/decidim/amendable/amenders_list/show.erb +18 -0
- data/app/cells/decidim/amendable/amenders_list_cell.rb +7 -0
- data/app/cells/decidim/amendable/announcement_cell.rb +58 -0
- data/app/cells/decidim/amendable/emendation_actions/show.erb +13 -0
- data/app/cells/decidim/amendable/emendation_actions_cell.rb +52 -0
- data/app/cells/decidim/amendable/promote_button_card/show.erb +9 -0
- data/app/cells/decidim/amendable/promote_button_card_cell.rb +47 -0
- data/app/cells/decidim/author/profile_inline.erb +23 -4
- data/app/cells/decidim/author/profile_minicard.erb +25 -0
- data/app/cells/decidim/author/show.erb +0 -1
- data/app/cells/decidim/author_cell.rb +6 -0
- data/app/cells/decidim/card_cell.rb +2 -4
- data/app/cells/decidim/card_m/top.erb +1 -1
- data/app/cells/decidim/card_m_cell.rb +3 -0
- data/app/cells/decidim/content_blocks/last_activity_cell.rb +1 -1
- data/app/cells/decidim/follow_button/show.erb +0 -1
- data/app/cells/decidim/follow_button_cell.rb +10 -0
- data/app/cells/decidim/following/show.erb +1 -1
- data/app/cells/decidim/following_cell.rb +1 -1
- data/app/cells/decidim/notifications/show.erb +1 -0
- data/app/cells/decidim/pad_iframe/show.erb +14 -0
- data/app/cells/decidim/pad_iframe_cell.rb +57 -0
- data/app/cells/decidim/profile/user_tabs.erb +8 -6
- data/app/cells/decidim/profile_cell.rb +1 -1
- data/app/cells/decidim/profile_sidebar/show.erb +58 -42
- data/app/cells/decidim/profile_sidebar_cell.rb +6 -0
- data/app/cells/decidim/search_results/show.erb +8 -0
- data/app/cells/decidim/search_results_cell.rb +38 -0
- data/app/cells/decidim/search_results_section/show.erb +24 -0
- data/app/cells/decidim/search_results_section_cell.rb +35 -0
- data/app/cells/decidim/user_activity/show.erb +15 -0
- data/app/cells/decidim/user_activity_cell.rb +17 -0
- data/app/cells/decidim/user_profile/header.erb +1 -16
- data/app/cells/decidim/user_profile/user_data.erb +16 -0
- data/app/cells/decidim/user_profile_cell.rb +4 -0
- data/app/cells/decidim/user_timeline/show.erb +15 -0
- data/app/cells/decidim/user_timeline_cell.rb +17 -0
- data/app/commands/decidim/accept_user_group_join_request.rb +1 -1
- data/app/commands/decidim/amendable/accept.rb +84 -0
- data/app/commands/decidim/amendable/create.rb +103 -0
- data/app/commands/decidim/amendable/promote.rb +79 -0
- data/app/commands/decidim/amendable/reject.rb +60 -0
- data/app/commands/decidim/amendable/withdraw.rb +46 -0
- data/app/commands/decidim/create_omniauth_registration.rb +17 -1
- data/app/commands/decidim/create_registration.rb +2 -0
- data/app/commands/decidim/demote_membership.rb +1 -1
- data/app/commands/decidim/invite_user.rb +1 -1
- data/app/commands/decidim/invite_user_to_group.rb +1 -1
- data/app/commands/decidim/join_user_group.rb +1 -7
- data/app/commands/decidim/messaging/reply_to_conversation.rb +1 -1
- data/app/commands/decidim/promote_membership.rb +1 -1
- data/app/commands/decidim/reject_user_group_join_request.rb +1 -1
- data/app/commands/decidim/remove_user_from_group.rb +1 -1
- data/app/commands/decidim/search.rb +65 -16
- data/app/commands/decidim/update_account.rb +1 -1
- data/app/commands/decidim/update_notifications_settings.rb +2 -1
- data/app/commands/decidim/update_user_interests.rb +35 -0
- data/app/controllers/concerns/decidim/amendments_controller.rb +104 -0
- data/app/controllers/concerns/decidim/participatory_space_context.rb +28 -6
- data/app/controllers/concerns/decidim/user_groups.rb +23 -0
- data/app/controllers/concerns/decidim/user_profile.rb +2 -4
- data/app/controllers/decidim/components/base_controller.rb +1 -0
- data/app/controllers/decidim/devise/confirmations_controller.rb +9 -0
- data/app/controllers/decidim/devise/omniauth_registrations_controller.rb +2 -1
- data/app/controllers/decidim/devise/passwords_controller.rb +6 -0
- data/app/controllers/decidim/devise/registrations_controller.rb +5 -0
- data/app/controllers/decidim/devise/sessions_controller.rb +12 -0
- data/app/controllers/decidim/group_admins_controller.rb +3 -0
- data/app/controllers/decidim/group_email_confirmations_controller.rb +32 -0
- data/app/controllers/decidim/group_invites_controller.rb +3 -0
- data/app/controllers/decidim/group_members_controller.rb +3 -0
- data/app/controllers/decidim/groups_controller.rb +3 -0
- data/app/controllers/decidim/homepage_controller.rb +10 -0
- data/app/controllers/decidim/last_activities_controller.rb +1 -1
- data/app/controllers/decidim/messaging/conversations_controller.rb +11 -2
- data/app/controllers/decidim/open_data_controller.rb +31 -0
- data/app/controllers/decidim/own_user_groups_controller.rb +3 -1
- data/app/controllers/decidim/pages_controller.rb +7 -15
- data/app/controllers/decidim/profiles_controller.rb +13 -2
- data/app/controllers/decidim/searches_controller.rb +11 -2
- data/app/controllers/decidim/user_activities_controller.rb +28 -0
- data/app/controllers/decidim/user_group_join_requests_controller.rb +3 -0
- data/app/controllers/decidim/user_interests_controller.rb +32 -0
- data/app/controllers/decidim/user_timeline_controller.rb +40 -0
- data/app/events/decidim/amendable/amendment_accepted_event.rb +23 -0
- data/app/events/decidim/amendable/amendment_base_event.rb +39 -0
- data/app/events/decidim/amendable/amendment_created_event.rb +23 -0
- data/app/events/decidim/amendable/amendment_rejected_event.rb +23 -0
- data/app/events/decidim/amendable/emendation_promoted_event.rb +23 -0
- data/app/events/decidim/welcome_notification_event.rb +58 -0
- data/app/forms/decidim/amendable/create_form.rb +54 -0
- data/app/forms/decidim/amendable/form.rb +22 -0
- data/app/forms/decidim/amendable/promote_form.rb +26 -0
- data/app/forms/decidim/amendable/reject_form.rb +14 -0
- data/app/forms/decidim/amendable/review_form.rb +35 -0
- data/app/forms/decidim/notifications_settings_form.rb +19 -6
- data/app/forms/decidim/omniauth_registration_form.rb +2 -1
- data/app/forms/decidim/user_group_form.rb +1 -2
- data/app/forms/decidim/user_interest_scope_form.rb +25 -0
- data/app/forms/decidim/user_interests_form.rb +22 -0
- data/app/helpers/decidim/amendments_helper.rb +130 -0
- data/app/helpers/decidim/application_helper.rb +19 -2
- data/app/helpers/decidim/card_helper.rb +0 -2
- data/app/helpers/decidim/cells_paginate_helper.rb +4 -0
- data/app/helpers/decidim/contextual_help_helper.rb +10 -0
- data/app/helpers/decidim/cta_button_helper.rb +3 -1
- data/app/helpers/decidim/decidim_form_helper.rb +1 -1
- data/app/helpers/decidim/layout_helper.rb +13 -0
- data/app/helpers/decidim/multi_translation_helper.rb +0 -0
- data/app/helpers/decidim/omniauth_helper.rb +9 -1
- data/app/helpers/decidim/pad_helper.rb +16 -0
- data/app/helpers/decidim/participatory_space_helpers.rb +15 -0
- data/app/helpers/decidim/searches_helper.rb +50 -6
- data/app/helpers/decidim/translations_helper.rb +3 -2
- data/app/jobs/decidim/email_notification_generator_job.rb +4 -2
- data/app/jobs/decidim/metric_job.rb +1 -1
- data/app/jobs/decidim/notification_generator_for_recipient_job.rb +2 -2
- data/app/jobs/decidim/notification_generator_job.rb +4 -2
- data/app/jobs/decidim/open_data_job.rb +16 -0
- data/app/mailers/decidim/messaging/conversation_mailer.rb +5 -2
- data/app/mailers/decidim/newsletter_mailer.rb +6 -2
- data/app/mailers/decidim/notification_mailer.rb +2 -2
- data/app/models/decidim/action_log.rb +7 -0
- data/app/models/decidim/amendment.rb +17 -0
- data/app/models/decidim/component.rb +8 -0
- data/app/models/decidim/contextual_help_section.rb +41 -0
- data/app/models/decidim/follow.rb +30 -0
- data/app/models/decidim/notification.rb +11 -1
- data/app/models/decidim/organization.rb +41 -0
- data/app/models/decidim/searchable_resource.rb +3 -0
- data/app/models/decidim/static_page.rb +11 -0
- data/app/models/decidim/static_page_topic.rb +12 -0
- data/app/models/decidim/user.rb +25 -2
- data/app/models/decidim/user_base_entity.rb +0 -6
- data/app/models/decidim/user_group.rb +29 -3
- data/app/permissions/decidim/permissions.rb +12 -0
- data/app/presenters/decidim/admin_log/organization_presenter.rb +13 -0
- data/app/presenters/decidim/admin_log/user_group_presenter.rb +1 -1
- data/app/presenters/decidim/admin_log/user_presenter.rb +1 -1
- data/app/presenters/decidim/hashtag_presenter.rb +7 -2
- data/app/presenters/decidim/metric_charts_presenter.rb +54 -21
- data/app/presenters/decidim/user_presenter.rb +4 -8
- data/app/queries/decidim/messaging/user_conversations.rb +1 -1
- data/app/queries/decidim/metric_manage.rb +16 -2
- data/app/queries/decidim/metric_measure.rb +35 -0
- data/app/queries/decidim/metrics/followers_metric_manage.rb +64 -0
- data/app/queries/decidim/metrics/participants_metric_manage.rb +72 -0
- data/app/queries/decidim/metrics/users_metric_manage.rb +1 -1
- data/app/queries/decidim/public_components.rb +32 -0
- data/app/resolvers/decidim/core/metric_resolver.rb +43 -11
- data/app/services/decidim/action_logger.rb +10 -0
- data/app/services/decidim/activity_search.rb +88 -13
- data/app/services/decidim/email_notification_generator.rb +23 -8
- data/app/services/decidim/events_manager.rb +9 -3
- data/app/services/decidim/home_activity_search.rb +80 -0
- data/app/services/decidim/log/diff_changeset_calculator.rb +3 -1
- data/app/services/decidim/notification_generator.rb +19 -7
- data/app/services/decidim/notification_generator_for_recipient.rb +6 -9
- data/app/services/decidim/open_data_exporter.rb +55 -0
- data/app/uploaders/decidim/open_data_uploader.rb +17 -0
- data/app/views/decidim/amendments/_form.html.erb +30 -0
- data/app/views/decidim/amendments/_review_form.html.erb +19 -0
- data/app/views/decidim/amendments/new.html.erb +29 -0
- data/app/views/decidim/amendments/review.html.erb +33 -0
- data/app/views/decidim/devise/registrations/new.html.erb +2 -2
- data/app/views/decidim/devise/sessions/new.html.erb +42 -29
- data/app/views/decidim/devise/shared/_links.html.erb +3 -3
- data/app/views/decidim/devise/shared/_omniauth_buttons.html.erb +7 -5
- data/app/views/decidim/follows/update_button.js.erb +1 -1
- data/app/views/decidim/group_members/index.html.erb +1 -1
- data/app/views/decidim/groups/_form.html.erb +9 -8
- data/app/views/decidim/groups/new.html.erb +3 -0
- data/app/views/decidim/{pages/home.html.erb → homepage/show.html.erb} +0 -0
- data/app/views/decidim/messaging/conversation_mailer/new_conversation.html.erb +6 -0
- data/app/views/decidim/messaging/conversation_mailer/new_message.html.erb +6 -0
- data/app/views/decidim/messaging/conversations/_message.html.erb +14 -0
- data/app/views/decidim/messaging/conversations/_reply.html.erb +11 -0
- data/app/views/decidim/messaging/conversations/_show.html.erb +21 -0
- data/app/views/decidim/messaging/conversations/_start.html.erb +12 -0
- data/app/views/decidim/messaging/conversations/create.js.erb +1 -1
- data/app/views/decidim/messaging/conversations/index.html.erb +51 -1
- data/app/views/decidim/messaging/conversations/new.html.erb +5 -1
- data/app/views/decidim/messaging/conversations/show.html.erb +9 -1
- data/app/views/decidim/messaging/conversations/update.js.erb +1 -1
- data/app/views/decidim/notification_mailer/event_received.html.erb +13 -3
- data/app/views/decidim/notifications/index.html.erb +5 -1
- data/app/views/decidim/notifications_settings/show.html.erb +19 -0
- data/app/views/decidim/pages/_standalone.html.erb +21 -0
- data/app/views/decidim/pages/_tabbed.html.erb +45 -0
- data/app/views/decidim/pages/index.html.erb +68 -29
- data/app/views/decidim/pages/show.html.erb +28 -0
- data/app/views/decidim/profiles/show.html.erb +1 -1
- data/app/views/decidim/searches/_count.html.erb +26 -1
- data/app/views/decidim/searches/_filters.html.erb +40 -17
- data/app/views/decidim/searches/index.html.erb +5 -16
- data/app/views/decidim/searches/index.js.erb +5 -3
- data/app/views/decidim/shared/_extended_navigation_bar.html.erb +50 -0
- data/app/views/decidim/shared/_floating_help.html.erb +30 -0
- data/app/views/decidim/shared/_follow_button.html.erb +1 -1
- data/app/views/decidim/shared/_login_modal.html.erb +35 -22
- data/app/views/decidim/shared/_results_per_page.html.erb +1 -1
- data/app/views/decidim/shared/_share_modal.html.erb +1 -1
- data/app/views/decidim/user_activities/index.html.erb +5 -0
- data/app/views/decidim/user_interests/_areas.html.erb +14 -0
- data/app/views/decidim/user_interests/_scopes.html.erb +15 -0
- data/app/views/decidim/user_interests/show.html.erb +12 -0
- data/app/views/decidim/user_timeline/index.html.erb +4 -0
- data/app/views/layouts/decidim/_user_menu.html.erb +1 -1
- data/app/views/layouts/decidim/_wrapper.html.erb +12 -5
- data/config/locales/ca.yml +199 -13
- data/config/locales/de.yml +200 -13
- data/config/locales/en.yml +200 -13
- data/config/locales/es-PY.yml +200 -13
- data/config/locales/es.yml +200 -13
- data/config/locales/eu.yml +200 -13
- data/config/locales/fi-pl.yml +200 -13
- data/config/locales/fi.yml +200 -13
- data/config/locales/fr.yml +200 -13
- data/config/locales/gl.yml +200 -13
- data/config/locales/hu.yml +200 -13
- data/config/locales/id-ID.yml +198 -13
- data/config/locales/it.yml +200 -13
- data/config/locales/nl.yml +200 -13
- data/config/locales/pl.yml +204 -13
- data/config/locales/pt-BR.yml +200 -13
- data/config/locales/pt.yml +200 -13
- data/config/locales/ru.yml +2 -16
- data/config/locales/sv.yml +200 -13
- data/config/locales/tr-TR.yml +200 -13
- data/config/locales/uk.yml +2 -16
- data/config/routes.rb +27 -1
- data/db/migrate/20171212103803_create_unique_nicknames.rb +1 -1
- data/db/migrate/20180221101934_fix_nickname_index.rb +1 -1
- data/db/migrate/20180706104107_add_nickname_to_managed_users.rb +1 -1
- data/db/migrate/20180720114847_create_decidim_amendments.rb +21 -0
- data/db/migrate/20181001124950_move_users_groups_to_users_table.rb +1 -1
- data/db/migrate/20181022090732_add_columns_to_pages.rb +20 -0
- data/db/migrate/20181023104416_add_static_page_topics.rb +15 -0
- data/db/migrate/20181025082245_add_timestamps_to_components.rb +12 -0
- data/db/migrate/20181029121244_add_welcome_notification.rb +13 -0
- data/db/migrate/20181108131058_add_users_registration_mode_to_organizations.rb +7 -0
- data/db/migrate/20181113101935_create_decidim_contextual_help_sections.rb +11 -0
- data/db/migrate/20181115102958_add_following_and_followers_counters_to_users.rb +26 -0
- data/db/migrate/20181119140636_add_columns_to_static_page_topic.rb +10 -0
- data/db/migrate/20181126145142_add_id_documents_fields_to_org.rb +13 -0
- data/db/migrate/20181204110723_remove_following_users_count_from_users.rb +17 -0
- data/db/migrate/20181211080834_add_scope_to_action_logs.rb +7 -0
- data/db/migrate/20181211090933_add_area_to_action_logs.rb +7 -0
- data/db/migrate/20181214101250_add_notification_types_to_users.rb +12 -0
- data/db/migrate/20181218171503_add_user_groups_switch_to_organizations.rb +8 -0
- data/db/seeds.rb +6 -1
- data/lib/decidim/amendable.rb +86 -0
- data/lib/decidim/api/component_interface.rb +4 -0
- data/lib/decidim/api/participatory_space_interface.rb +7 -0
- data/lib/decidim/api/scopable_interface.rb +1 -1
- data/lib/decidim/coauthorable.rb +16 -7
- data/lib/decidim/component_manifest.rb +3 -2
- data/lib/decidim/components/export_manifest.rb +13 -2
- data/lib/decidim/content_parsers/hashtag_parser.rb +48 -15
- data/lib/decidim/content_parsers/user_parser.rb +26 -10
- data/lib/decidim/content_renderers/hashtag_renderer.rb +46 -23
- data/lib/decidim/core.rb +40 -2
- data/lib/decidim/core/engine.rb +46 -12
- data/lib/decidim/core/test.rb +11 -0
- data/lib/decidim/core/test/factories.rb +44 -15
- data/lib/decidim/core/test/shared_examples/amendable/accept_amendment_examples.rb +57 -0
- data/lib/decidim/core/test/shared_examples/amendable/amendment_accepted_event_examples.rb +43 -0
- data/lib/decidim/core/test/shared_examples/amendable/amendment_created_event_examples.rb +48 -0
- data/lib/decidim/core/test/shared_examples/amendable/amendment_form_examples.rb +45 -0
- data/lib/decidim/core/test/shared_examples/amendable/amendment_promoted_event_examples.rb +43 -0
- data/lib/decidim/core/test/shared_examples/amendable/amendment_rejected_event_examples.rb +43 -0
- data/lib/decidim/core/test/shared_examples/amendable/create_amendment_examples.rb +78 -0
- data/lib/decidim/core/test/shared_examples/amendable/promote_amendment_examples.rb +43 -0
- data/lib/decidim/core/test/shared_examples/amendable/reject_amendment_examples.rb +41 -0
- data/lib/decidim/core/test/shared_examples/amendable/withdraw_amendment_examples.rb +29 -0
- data/lib/decidim/core/test/shared_examples/has_contextual_help.rb +30 -0
- data/lib/decidim/core/test/shared_examples/resourceable.rb +17 -0
- data/lib/decidim/core/test/shared_examples/searchable_results_examples.rb +1 -1
- data/lib/decidim/core/test/shared_examples/simple_event.rb +24 -2
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/events/base_event.rb +17 -12
- data/lib/decidim/events/simple_event.rb +21 -2
- data/lib/decidim/form_builder.rb +8 -0
- data/lib/decidim/gamification/badge_scorer.rb +3 -3
- data/lib/decidim/has_component.rb +1 -1
- data/lib/decidim/hashtag.rb +0 -2
- data/lib/decidim/hashtaggable.rb +2 -2
- data/lib/decidim/metric_manifest.rb +17 -2
- data/lib/decidim/metric_operation.rb +59 -0
- data/lib/decidim/metric_operation_manifest.rb +20 -0
- data/lib/decidim/metric_registry.rb +57 -19
- data/lib/decidim/paddable.rb +82 -0
- data/lib/decidim/participable.rb +24 -0
- data/lib/decidim/participatory_space_resourceable.rb +12 -0
- data/lib/decidim/query_extensions.rb +8 -1
- data/lib/decidim/resource_manifest.rb +5 -1
- data/lib/decidim/resourceable.rb +12 -0
- data/lib/decidim/searchable.rb +13 -4
- data/lib/decidim/settings_manifest.rb +2 -1
- data/lib/tasks/decidim_data_portability_tasks.rake +86 -0
- data/lib/tasks/decidim_open_data_tasks.rake +12 -0
- data/lib/tasks/decidim_tasks.rake +1 -83
- data/vendor/assets/javascripts/tribute.js +307 -145
- metadata +156 -22
- data/app/cells/decidim/conversation/show.erb +0 -18
- data/app/cells/decidim/conversation_cell.rb +0 -23
- data/app/cells/decidim/conversation_header/show.erb +0 -17
- data/app/cells/decidim/conversation_header_cell.rb +0 -16
- data/app/cells/decidim/conversations/show.erb +0 -45
- data/app/cells/decidim/conversations_cell.rb +0 -24
- data/app/cells/decidim/message/show.erb +0 -15
- data/app/cells/decidim/message_cell.rb +0 -23
- data/app/cells/decidim/new_conversation/show.erb +0 -19
- data/app/cells/decidim/new_conversation_cell.rb +0 -19
- data/app/views/decidim/pages/decidim_page.html.erb +0 -31
- data/app/views/decidim/searches/_results.html.erb +0 -5
- data/app/views/decidim/shared/_author_reference.html.erb +0 -1
@@ -446,6 +446,16 @@ $datetime-bg: $primary;
|
|
446
446
|
@include breakpoint(medium){
|
447
447
|
padding-left: $card-padding;
|
448
448
|
}
|
449
|
+
|
450
|
+
svg{
|
451
|
+
flex-basis: 15%;
|
452
|
+
flex-shrink: 0;
|
453
|
+
}
|
454
|
+
|
455
|
+
svg + div{
|
456
|
+
max-width: calc(85% - #{$global-margin});
|
457
|
+
overflow-wrap: break-word;
|
458
|
+
}
|
449
459
|
}
|
450
460
|
|
451
461
|
.card--list__icon{
|
@@ -752,7 +762,7 @@ $datetime-bg: $primary;
|
|
752
762
|
content: " ";
|
753
763
|
height: $border-width;
|
754
764
|
display: inline-block;
|
755
|
-
background: $
|
765
|
+
background-color: $body-background;
|
756
766
|
position: absolute;
|
757
767
|
left: 0;
|
758
768
|
right: 0;
|
@@ -922,10 +932,16 @@ $datetime-bg: $primary;
|
|
922
932
|
.card__top{
|
923
933
|
@extend .card__footer;
|
924
934
|
|
935
|
+
border-top: 0;
|
936
|
+
|
925
937
|
.card__content{
|
926
938
|
line-height: $global-lineheight;
|
927
939
|
padding: $card-padding-small / 4 $card-padding-small;
|
928
940
|
|
941
|
+
> :first-child{
|
942
|
+
flex-shrink: 0;
|
943
|
+
}
|
944
|
+
|
929
945
|
@include breakpoint(medium){
|
930
946
|
padding: $card-padding / 4 $card-padding;
|
931
947
|
}
|
@@ -1,6 +1,4 @@
|
|
1
1
|
//Variables
|
2
|
-
|
3
|
-
$filters-bg: darken($light-gray, 2.5);
|
4
2
|
$filters-border: $border;
|
5
3
|
$filters-padding: 1rem;
|
6
4
|
$filters-padding-x: 1rem;
|
@@ -83,6 +81,43 @@ $filters-padding-y: 1rem;
|
|
83
81
|
.button{
|
84
82
|
margin-bottom: 0;
|
85
83
|
}
|
84
|
+
|
85
|
+
.section-title{
|
86
|
+
text-transform: uppercase;
|
87
|
+
color: $primary;
|
88
|
+
text-decoration: underline;
|
89
|
+
margin-right: $global-margin;
|
90
|
+
}
|
91
|
+
}
|
92
|
+
|
93
|
+
.filters__section--general{
|
94
|
+
@extend .filters__section;
|
95
|
+
|
96
|
+
padding: 0;
|
97
|
+
|
98
|
+
&:first-of-type,
|
99
|
+
&:last-of-type{
|
100
|
+
padding: 0;
|
101
|
+
}
|
102
|
+
|
103
|
+
> :first-child{
|
104
|
+
padding: $filters-padding-x $filters-padding-y;
|
105
|
+
|
106
|
+
&:hover{
|
107
|
+
background: $light-gray;
|
108
|
+
}
|
109
|
+
}
|
110
|
+
|
111
|
+
&.no-results{
|
112
|
+
.section-title{
|
113
|
+
color: $muted;
|
114
|
+
text-decoration: none;
|
115
|
+
}
|
116
|
+
|
117
|
+
> *{
|
118
|
+
opacity: .25;
|
119
|
+
}
|
120
|
+
}
|
86
121
|
}
|
87
122
|
|
88
123
|
.filters__info__title{
|
@@ -0,0 +1,106 @@
|
|
1
|
+
.floating-helper{
|
2
|
+
position: absolute;
|
3
|
+
width: 100%;
|
4
|
+
top: 0;
|
5
|
+
left: 0;
|
6
|
+
}
|
7
|
+
|
8
|
+
.floating-helper__layout{
|
9
|
+
position: relative;
|
10
|
+
}
|
11
|
+
|
12
|
+
.floating-helper__trigger{
|
13
|
+
position: fixed;
|
14
|
+
right: 0;
|
15
|
+
display: inline-flex;
|
16
|
+
cursor: pointer;
|
17
|
+
background-color: $white;
|
18
|
+
border-bottom-left-radius: 100px;
|
19
|
+
border-top-left-radius: 100px;
|
20
|
+
|
21
|
+
@include breakpoint(small only){
|
22
|
+
bottom: $global-margin * 2;
|
23
|
+
}
|
24
|
+
|
25
|
+
@include breakpoint(medium){
|
26
|
+
top: $global-margin * 2;
|
27
|
+
position: absolute;
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
.floating-helper__text{
|
32
|
+
color: $secondary;
|
33
|
+
background-color: rgba($secondary, .1);
|
34
|
+
font-size: rem-calc(14);
|
35
|
+
font-weight: $global-weight-bold;
|
36
|
+
border-bottom-left-radius: 100px;
|
37
|
+
border-top-left-radius: 100px;
|
38
|
+
padding: $global-padding / 8 $global-padding / 2 $global-padding / 8 $global-padding;
|
39
|
+
}
|
40
|
+
|
41
|
+
.floating-helper__icon{
|
42
|
+
color: $white;
|
43
|
+
background-color: $secondary;
|
44
|
+
padding: $global-padding / 8 $global-padding / 2;
|
45
|
+
}
|
46
|
+
|
47
|
+
.floating-helper__wrapper{
|
48
|
+
@include flex;
|
49
|
+
}
|
50
|
+
|
51
|
+
.floating-helper__content{
|
52
|
+
background-color: rgba($secondary, .1);
|
53
|
+
border-top: 5px solid $secondary;
|
54
|
+
margin-bottom: $global-margin * 3;
|
55
|
+
padding: $global-padding * 2;
|
56
|
+
width: 100%;
|
57
|
+
|
58
|
+
@include breakpoint(medium){
|
59
|
+
padding: $global-padding * 3 $global-padding * 2 $global-padding * 2;
|
60
|
+
}
|
61
|
+
}
|
62
|
+
|
63
|
+
.floating-helper__content-inner{
|
64
|
+
position: relative;
|
65
|
+
|
66
|
+
@include breakpoint(medium){
|
67
|
+
@include flexgap($global-margin * 3);
|
68
|
+
}
|
69
|
+
}
|
70
|
+
|
71
|
+
.floating-helper__icon-big{
|
72
|
+
border-radius: 50%;
|
73
|
+
background-color: rgba($secondary, .1);
|
74
|
+
flex-shrink: 0;
|
75
|
+
color: $secondary;
|
76
|
+
|
77
|
+
@include flex;
|
78
|
+
@include flex-align($x: center, $y: middle);
|
79
|
+
@include square(70px);
|
80
|
+
}
|
81
|
+
|
82
|
+
.floating-helper__bottom{
|
83
|
+
text-align: right;
|
84
|
+
|
85
|
+
@include breakpoint(medium){
|
86
|
+
position: absolute;
|
87
|
+
bottom: 0;
|
88
|
+
right: 0;
|
89
|
+
}
|
90
|
+
}
|
91
|
+
|
92
|
+
.floating-helper__link{
|
93
|
+
font-weight: $global-weight-bold;
|
94
|
+
text-decoration: underline;
|
95
|
+
}
|
96
|
+
|
97
|
+
.floating-helper__content-close{
|
98
|
+
background-color: $secondary;
|
99
|
+
color: $white;
|
100
|
+
flex-shrink: 0;
|
101
|
+
cursor: pointer;
|
102
|
+
|
103
|
+
@include flex;
|
104
|
+
@include flex-align($x: center, $y: middle);
|
105
|
+
@include square(1.5rem);
|
106
|
+
}
|
@@ -1,5 +1,7 @@
|
|
1
1
|
/* Froms foundation overwrites */
|
2
2
|
|
3
|
+
$checkboxes-minimum-width: 200px;
|
4
|
+
|
3
5
|
.input-group-button button{
|
4
6
|
height: 2.5rem;
|
5
7
|
padding: .5rem 1rem;
|
@@ -29,3 +31,23 @@ label > [type='radio']{
|
|
29
31
|
flex-shrink: 0;
|
30
32
|
}
|
31
33
|
}
|
34
|
+
|
35
|
+
.checkboxes{
|
36
|
+
margin-bottom: 1rem;
|
37
|
+
display: flex;
|
38
|
+
flex-wrap: wrap;
|
39
|
+
justify-content: space-between;
|
40
|
+
|
41
|
+
&::after{ /* Align last row to left */
|
42
|
+
min-width: $checkboxes-minimum-width;
|
43
|
+
content: "";
|
44
|
+
}
|
45
|
+
|
46
|
+
label{
|
47
|
+
min-width: $checkboxes-minimum-width;
|
48
|
+
|
49
|
+
input[type=checkbox]{
|
50
|
+
vertical-align: middle;
|
51
|
+
}
|
52
|
+
}
|
53
|
+
}
|
@@ -44,10 +44,10 @@
|
|
44
44
|
@import "docs-manager";
|
45
45
|
@import "horizontal-tabs";
|
46
46
|
@import "conversation";
|
47
|
-
@import "orgchart";
|
48
47
|
@import "badges";
|
49
48
|
@import "hover-section";
|
50
49
|
@import "list-request";
|
50
|
+
@import "floating-helper";
|
51
51
|
|
52
52
|
//Process elements
|
53
53
|
@import "process-header";
|
@@ -321,7 +321,7 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
|
|
321
321
|
}
|
322
322
|
}
|
323
323
|
|
324
|
-
a
|
324
|
+
a::before{
|
325
325
|
content: "";
|
326
326
|
margin-left: .5rem;
|
327
327
|
margin-right: .5rem;
|
@@ -331,6 +331,10 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
|
|
331
331
|
border-left: $border;
|
332
332
|
vertical-align: middle;
|
333
333
|
}
|
334
|
+
|
335
|
+
a:first-of-type::before{
|
336
|
+
display: none;
|
337
|
+
}
|
334
338
|
}
|
335
339
|
|
336
340
|
/* Menu icon and off-canvas */
|
@@ -4,9 +4,19 @@ $order-border: $border;
|
|
4
4
|
/* Order by styles */
|
5
5
|
.order-by{
|
6
6
|
margin-bottom: 1rem;
|
7
|
-
display: flex;
|
7
|
+
display: inline-flex;
|
8
8
|
align-items: baseline;
|
9
9
|
flex-wrap: wrap;
|
10
|
+
|
11
|
+
& + &{
|
12
|
+
@include breakpoint(medium){
|
13
|
+
margin-left: $global-margin;
|
14
|
+
}
|
15
|
+
|
16
|
+
@include breakpoint(large){
|
17
|
+
margin-left: $global-margin * 3;
|
18
|
+
}
|
19
|
+
}
|
10
20
|
}
|
11
21
|
|
12
22
|
.order-by__dropdown{
|
@@ -1,21 +1,48 @@
|
|
1
1
|
.process-header{
|
2
|
-
|
3
|
-
|
4
|
-
@include breakpoint(medium){
|
5
|
-
margin-bottom: $margin-m;
|
6
|
-
}
|
2
|
+
background-image: linear-gradient(to right, rgba($black, .8) 50%, $primary 50%);
|
7
3
|
|
8
4
|
.heading2{
|
9
5
|
font-weight: bold;
|
10
6
|
}
|
11
7
|
}
|
12
8
|
|
9
|
+
.process-header__inner{
|
10
|
+
position: relative;
|
11
|
+
|
12
|
+
@include flex;
|
13
|
+
@include flex-align($x: center);
|
14
|
+
}
|
15
|
+
|
13
16
|
.process-header__main{
|
14
17
|
background-size: cover;
|
15
|
-
position:
|
18
|
+
position: absolute;
|
16
19
|
z-index: 0;
|
17
|
-
|
18
|
-
|
20
|
+
width: 100%;
|
21
|
+
height: 100%;
|
22
|
+
max-width: rem-calc(1920);
|
23
|
+
margin: 0 auto;
|
24
|
+
background-color: lighten($dark-gray, 30);
|
25
|
+
|
26
|
+
// decorators
|
27
|
+
@include breakpoint(small){
|
28
|
+
-webkit-clip-path: polygon(0 0, 95% 0, 80% 100%, 0% 100%);
|
29
|
+
clip-path: polygon(0 0, 95% 0, 80% 100%, 0% 100%);
|
30
|
+
}
|
31
|
+
|
32
|
+
@include breakpoint(large){
|
33
|
+
-webkit-clip-path: polygon(0 0, 90% 0, 70% 100%, 0% 100%);
|
34
|
+
clip-path: polygon(0 0, 90% 0, 70% 100%, 0% 100%);
|
35
|
+
}
|
36
|
+
|
37
|
+
@include breakpoint(xlarge){
|
38
|
+
-webkit-clip-path: polygon(0 0, 80% 0, 70% 100%, 0% 100%);
|
39
|
+
clip-path: polygon(0 0, 80% 0, 70% 100%, 0% 100%);
|
40
|
+
}
|
41
|
+
|
42
|
+
@include breakpoint(100rem){
|
43
|
+
-webkit-clip-path: polygon(0 0, 75% 0, 65% 100%, 0% 100%);
|
44
|
+
clip-path: polygon(0 0, 75% 0, 65% 100%, 0% 100%);
|
45
|
+
}
|
19
46
|
|
20
47
|
&::after{
|
21
48
|
content: "";
|
@@ -23,6 +50,7 @@
|
|
23
50
|
position: absolute;
|
24
51
|
z-index: -1;
|
25
52
|
top: 0;
|
53
|
+
left: 0;
|
26
54
|
width: 100%;
|
27
55
|
height: 100%;
|
28
56
|
background-color: rgba($black, .6);
|
@@ -32,7 +60,6 @@
|
|
32
60
|
.process-header__container{
|
33
61
|
position: relative;
|
34
62
|
z-index: 1;
|
35
|
-
padding: 0 0 0 1rem;
|
36
63
|
|
37
64
|
@include breakpoint(mediumlarge){
|
38
65
|
display: flex;
|
@@ -52,35 +79,6 @@
|
|
52
79
|
}
|
53
80
|
}
|
54
81
|
|
55
|
-
.process-header__phase{
|
56
|
-
background: rgba($dark-gray, .8);
|
57
|
-
color: $white;
|
58
|
-
text-align: center;
|
59
|
-
padding: 2rem 1rem;
|
60
|
-
margin-left: -1rem;
|
61
|
-
|
62
|
-
.button{
|
63
|
-
margin-top: 1rem;
|
64
|
-
margin-bottom: 0;
|
65
|
-
color: $white;
|
66
|
-
border-color: $white;
|
67
|
-
|
68
|
-
&:hover,
|
69
|
-
&.is-active{
|
70
|
-
color: $primary;
|
71
|
-
border-color: $primary;
|
72
|
-
}
|
73
|
-
}
|
74
|
-
}
|
75
|
-
|
76
|
-
.process-header__phase--simple{
|
77
|
-
padding: .5rem 1rem;
|
78
|
-
|
79
|
-
@include breakpoint (medium){
|
80
|
-
padding: 2rem 1rem;
|
81
|
-
}
|
82
|
-
}
|
83
|
-
|
84
82
|
.process-header__hashtag{
|
85
83
|
font-weight: 600;
|
86
84
|
|