decidim-core 0.20.1 → 0.21.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/app/assets/fonts/decidim/Roboto-Regular.eot +0 -0
- data/app/assets/fonts/decidim/Roboto-Regular.svg +10520 -0
- data/app/assets/fonts/decidim/Roboto-Regular.ttf +0 -0
- data/app/assets/fonts/decidim/Roboto-Regular.woff +0 -0
- data/app/assets/fonts/decidim/Roboto-Regular.woff2 +0 -0
- data/app/assets/images/decidim/brands/google.svg +1 -0
- data/app/assets/javascripts/decidim.js.es6 +5 -0
- data/app/assets/javascripts/decidim/check_boxes_tree.js.es6 +190 -0
- data/app/assets/javascripts/decidim/core/bundle.js +1 -1
- data/app/assets/javascripts/decidim/core/bundle.js.map +1 -1
- data/app/assets/javascripts/decidim/delayed.js.es6 +26 -0
- data/app/assets/javascripts/decidim/diff_mode_dropdown.js.es6 +25 -4
- data/app/assets/javascripts/decidim/form_filter.component.js.es6 +86 -38
- data/app/assets/javascripts/decidim/form_filter.component.test.js +40 -6
- data/app/assets/javascripts/decidim/history.js.es6 +16 -1
- data/app/assets/javascripts/decidim/vizzs/orgchart.js.es6 +1 -1
- data/app/assets/stylesheets/decidim/_variables.scss +1 -1
- data/app/assets/stylesheets/decidim/extras/_results-per-page.scss +0 -1
- data/app/assets/stylesheets/decidim/modules/_buttons.scss +76 -3
- data/app/assets/stylesheets/decidim/modules/_comments.scss +78 -2
- data/app/assets/stylesheets/decidim/modules/_filters.scss +36 -2
- data/app/assets/stylesheets/decidim/modules/_layout.scss +13 -0
- data/app/assets/stylesheets/decidim/modules/_modules.scss +1 -0
- data/app/assets/stylesheets/decidim/modules/_navbar.scss +11 -5
- data/app/assets/stylesheets/decidim/modules/_process-stats.scss +53 -0
- data/app/assets/stylesheets/decidim/modules/_status-labels.scss +5 -0
- data/app/assets/stylesheets/decidim/modules/_tags.scss +7 -1
- data/app/assets/stylesheets/decidim/modules/_typography.scss +49 -4
- data/app/assets/stylesheets/decidim/utils/_fontface.scss +10 -0
- data/app/assets/stylesheets/decidim/utils/_toggle-expand.scss +14 -0
- data/app/cells/decidim/activity/show.erb +1 -1
- data/app/cells/decidim/author/profile_inline.erb +2 -2
- data/app/cells/decidim/diff/attribute.erb +15 -5
- data/app/cells/decidim/diff/diff_mode_html.erb +31 -0
- data/app/cells/decidim/diff/diff_split.erb +1 -1
- data/app/cells/decidim/diff/diff_unified.erb +1 -1
- data/app/cells/decidim/diff/show.erb +1 -0
- data/app/cells/decidim/diff_cell.rb +21 -8
- data/app/cells/decidim/follow_button/show.erb +20 -7
- data/app/cells/decidim/navbar_admin_link/show.erb +6 -0
- data/app/cells/decidim/navbar_admin_link_cell.rb +43 -0
- data/app/cells/decidim/tags_cell.rb +2 -2
- data/app/commands/decidim/amendable/accept.rb +9 -4
- data/app/commands/decidim/amendable/publish_draft.rb +5 -0
- data/app/commands/decidim/amendable/reject.rb +5 -0
- data/app/commands/decidim/amendable/withdraw.rb +3 -12
- data/app/commands/decidim/create_registration.rb +5 -6
- data/app/controllers/concerns/decidim/use_organization_time_zone.rb +32 -0
- data/app/controllers/decidim/application_controller.rb +3 -0
- data/app/controllers/decidim/components/base_controller.rb +1 -0
- data/app/controllers/decidim/data_portability_controller.rb +12 -19
- data/app/controllers/decidim/devise/omniauth_registrations_controller.rb +1 -1
- data/app/controllers/decidim/devise/registrations_controller.rb +1 -0
- data/app/controllers/decidim/scopes_controller.rb +41 -7
- data/app/forms/decidim/registration_form.rb +5 -0
- data/app/functions/decidim/core/component_finder_base.rb +33 -0
- data/app/functions/decidim/core/component_list.rb +38 -0
- data/app/functions/decidim/core/component_list_base.rb +61 -0
- data/app/functions/decidim/core/needs_api_filter_and_order.rb +52 -0
- data/app/functions/decidim/core/participatory_space_finder.rb +11 -0
- data/app/functions/decidim/core/participatory_space_finder_base.rb +29 -0
- data/app/functions/decidim/core/participatory_space_list.rb +11 -0
- data/app/functions/decidim/core/participatory_space_list_base.rb +34 -0
- data/app/helpers/decidim/amendments_helper.rb +27 -1
- data/app/helpers/decidim/application_helper.rb +31 -3
- data/app/helpers/decidim/categories_helper.rb +26 -0
- data/app/helpers/decidim/check_boxes_tree_helper.rb +115 -0
- data/app/helpers/decidim/omniauth_helper.rb +6 -13
- data/app/helpers/decidim/resource_versions_helper.rb +29 -0
- data/app/helpers/decidim/rich_text_editor_helper.rb +22 -0
- data/app/helpers/decidim/sanitize_helper.rb +3 -1
- data/app/helpers/decidim/scopes_helper.rb +3 -2
- data/app/jobs/decidim/data_portability_export_job.rb +18 -10
- data/app/jobs/decidim/export_job.rb +1 -1
- data/app/mailers/decidim/export_mailer.rb +9 -5
- data/app/models/decidim/omniauth_provider.rb +28 -0
- data/app/models/decidim/organization.rb +41 -0
- data/app/models/decidim/participatory_space_role_config/admin.rb +8 -0
- data/app/models/decidim/participatory_space_role_config/base.rb +31 -0
- data/app/models/decidim/participatory_space_role_config/collaborator.rb +8 -0
- data/app/models/decidim/participatory_space_role_config/moderator.rb +11 -0
- data/app/models/decidim/participatory_space_role_config/null_object.rb +11 -0
- data/app/models/decidim/participatory_space_role_config/participatory_space_admin.rb +8 -0
- data/app/models/decidim/participatory_space_role_config/valuator.rb +11 -0
- data/app/models/decidim/scope.rb +4 -2
- data/app/models/decidim/user.rb +19 -3
- data/app/presenters/decidim/home_stats_presenter.rb +5 -2
- data/app/presenters/decidim/resource_locator_presenter.rb +9 -0
- data/app/serializers/decidim/exporters/participatory_space_components_serializer.rb +1 -1
- data/app/serializers/decidim/importers/participatory_space_components_importer.rb +14 -5
- data/app/services/decidim/data_portability_exporter.rb +72 -0
- data/app/services/decidim/resource_search.rb +29 -13
- data/app/services/decidim/zip_stream/zip_stream_writer.rb +56 -0
- data/app/types/decidim/core/amendment_type.rb +26 -0
- data/app/types/decidim/core/area_api_type.rb +16 -0
- data/app/types/decidim/core/area_type_type.rb +14 -0
- data/app/types/decidim/core/base_input_filter.rb +8 -0
- data/app/types/decidim/core/base_input_sort.rb +22 -0
- data/app/types/decidim/core/component_input_filter.rb +50 -0
- data/app/types/decidim/core/component_input_sort.rb +32 -0
- data/app/types/decidim/core/fingerprint_type.rb +15 -0
- data/app/types/decidim/core/has_hastaggable_input_filter.rb +15 -0
- data/app/types/decidim/core/has_localized_input_filter.rb +21 -0
- data/app/types/decidim/core/has_localized_input_sort.rb +21 -0
- data/app/types/decidim/core/has_publishable_input_filter.rb +34 -0
- data/app/types/decidim/core/has_publishable_input_sort.rb +13 -0
- data/app/types/decidim/core/participatory_space_input_filter.rb +26 -0
- data/app/types/decidim/core/participatory_space_input_sort.rb +14 -0
- data/app/types/decidim/core/participatory_space_link_type.rb +24 -0
- data/app/types/decidim/core/trace_version_type.rb +29 -0
- data/app/uploaders/decidim/data_portability_uploader.rb +2 -7
- data/app/validators/time_zone_validator.rb +10 -0
- data/app/views/decidim/amendments/_edit_form_fields.html.erb +5 -13
- data/app/views/decidim/amendments/preview_draft.html.erb +1 -1
- data/app/views/decidim/devise/shared/_omniauth_buttons.html.erb +10 -12
- data/app/views/decidim/devise/shared/_omniauth_buttons_mini.html.erb +6 -8
- data/app/views/decidim/export_mailer/data_portability_export.html.erb +2 -2
- data/app/views/decidim/scopes/picker.html.erb +7 -3
- data/app/views/decidim/shared/_check_boxes_tree.html.erb +54 -0
- data/app/views/decidim/shared/_extended_navigation_bar.html.erb +1 -1
- data/app/views/decidim/widgets/show.html.erb +4 -0
- data/app/views/layouts/decidim/_admin_links.html.erb +2 -0
- data/app/views/layouts/decidim/_wrapper.html.erb +4 -3
- data/app/views/layouts/decidim/widget.html.erb +1 -43
- data/config/initializers/browser.rb +5 -0
- data/config/initializers/devise.rb +0 -22
- data/config/initializers/omniauth.rb +50 -0
- data/config/locales/ar.yml +6 -3
- data/config/locales/ca.yml +15 -6
- data/config/locales/cs.yml +12 -3
- data/config/locales/de.yml +5 -3
- data/config/locales/el-GR.yml +0 -2
- data/config/locales/el.yml +153 -0
- data/config/locales/en.yml +16 -7
- data/config/locales/eo-UY.yml +2 -2
- data/config/locales/es-MX.yml +12 -3
- data/config/locales/es-PY.yml +12 -3
- data/config/locales/es.yml +15 -6
- data/config/locales/eu.yml +4 -3
- data/config/locales/fi-plain.yml +12 -3
- data/config/locales/fi.yml +12 -3
- data/config/locales/fr.yml +5 -3
- data/config/locales/gl.yml +4 -3
- data/config/locales/hu.yml +12 -3
- data/config/locales/id-ID.yml +4 -3
- data/config/locales/it.yml +11 -3
- data/config/locales/nl.yml +8 -3
- data/config/locales/no.yml +12 -3
- data/config/locales/pl.yml +4 -3
- data/config/locales/pt-BR.yml +4 -3
- data/config/locales/pt.yml +4 -3
- data/config/locales/ru.yml +5 -3
- data/config/locales/sv.yml +5 -3
- data/config/locales/tr-TR.yml +4 -3
- data/config/locales/uk.yml +1 -3
- data/db/migrate/20191113092826_add_omniauth_settings_to_decidim_organization.rb +7 -0
- data/db/migrate/20191113144432_add_rich_text_editor_in_public_views_to_organizations.rb +10 -0
- data/db/migrate/20191118123154_add_admin_terms_of_use_body_field_to_organization.rb +9 -0
- data/db/migrate/20200107142226_add_organization_timezone.rb +7 -0
- data/db/seeds.rb +2 -1
- data/lib/decidim/amendable.rb +7 -4
- data/lib/decidim/api/amendable_entity_interface.rb +18 -0
- data/lib/decidim/api/amendable_interface.rb +18 -0
- data/lib/decidim/api/attachable_interface.rb +1 -1
- data/lib/decidim/api/categorizable_interface.rb +1 -1
- data/lib/decidim/api/coauthorable_interface.rb +29 -0
- data/lib/decidim/api/fingerprint_interface.rb +13 -0
- data/lib/decidim/api/participatory_space_interface.rb +9 -9
- data/lib/decidim/api/participatory_space_resourceable_interface.rb +21 -0
- data/lib/decidim/api/scopable_interface.rb +1 -1
- data/lib/decidim/api/timestamps_interface.rb +21 -0
- data/lib/decidim/api/traceable_interface.rb +14 -0
- data/lib/decidim/coauthorable.rb +9 -2
- data/lib/decidim/component_manifest.rb +1 -1
- data/lib/decidim/content_processor.rb +4 -2
- data/lib/decidim/content_renderers/link_renderer.rb +1 -1
- data/lib/decidim/core.rb +3 -3
- data/lib/decidim/core/api.rb +7 -0
- data/lib/decidim/core/test.rb +1 -0
- data/lib/decidim/core/test/factories.rb +16 -0
- data/lib/decidim/core/test/shared_examples/amendable_interface_examples.rb +14 -0
- data/lib/decidim/core/test/shared_examples/amendable_proposals_interface_examples.rb +50 -0
- data/lib/decidim/core/test/shared_examples/authorable_interface_examples.rb +3 -0
- data/lib/decidim/core/test/shared_examples/coauthorable_interface_examples.rb +60 -0
- data/lib/decidim/core/test/shared_examples/comments_examples.rb +8 -8
- data/lib/decidim/core/test/shared_examples/fingerprintable_interface_examples.rb +17 -0
- data/lib/decidim/core/test/shared_examples/follows_examples.rb +16 -0
- data/lib/decidim/core/test/shared_examples/input_filter_examples.rb +118 -0
- data/lib/decidim/core/test/shared_examples/input_sort_examples.rb +105 -0
- data/lib/decidim/core/test/shared_examples/participatory_space_resourcable_interface_examples.rb +43 -0
- data/lib/decidim/core/test/shared_examples/rich_text_editor_examples.rb +59 -0
- data/lib/decidim/core/test/shared_examples/timestamps_interface_examples.rb +21 -0
- data/lib/decidim/core/test/shared_examples/traceable_interface_examples.rb +47 -0
- data/lib/decidim/core/version.rb +1 -1
- data/lib/decidim/deprecations.rb +19 -0
- data/lib/decidim/diffy_extension.rb +26 -0
- data/lib/decidim/exporters/export_manifest.rb +6 -2
- data/lib/decidim/filter_form_builder.rb +25 -7
- data/lib/decidim/form_builder.rb +2 -2
- data/lib/decidim/has_settings.rb +10 -4
- data/lib/decidim/participatory_space_manifest.rb +20 -0
- data/lib/decidim/participatory_space_resourceable.rb +35 -1
- data/lib/decidim/query_extensions.rb +9 -23
- data/lib/decidim/scopable.rb +10 -0
- data/lib/tasks/decidim_data_portability_tasks.rake +66 -5
- data/lib/tasks/decidim_metrics_tasks.rake +18 -7
- data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.el.js +14 -0
- metadata +142 -16
- data/app/models/decidim/participatory_process_user_role.rb +0 -32
- data/app/views/layouts/decidim/_edit_link.html.erb +0 -8
- data/lib/decidim/data_portability_file_reader.rb +0 -56
- data/lib/decidim/data_portability_file_zipper.rb +0 -67
@@ -2,8 +2,10 @@
|
|
2
2
|
/* eslint-disable id-length */
|
3
3
|
window.$ = require("jquery");
|
4
4
|
|
5
|
+
require("./delayed.js.es6");
|
5
6
|
require("./history.js.es6");
|
6
7
|
require("./data_picker.js.es6");
|
8
|
+
require("./check_boxes_tree.js.es6");
|
7
9
|
require("./form_filter.component.js.es6");
|
8
10
|
|
9
11
|
const { Decidim: { FormFilterComponent } } = window;
|
@@ -11,13 +13,13 @@ const { Decidim: { FormFilterComponent } } = window;
|
|
11
13
|
describe("FormFilterComponent", () => {
|
12
14
|
const selector = "form#new_filter";
|
13
15
|
let subject = null;
|
14
|
-
let scopesPickerState = {
|
16
|
+
let scopesPickerState = {filter_somerandomid_scope_id: [{ url: "picker_url_3", value: 3, text: "Scope 3"}, { url: "picker_url_4", value: 4, text: "Scope 4"}]} // eslint-disable-line camelcase
|
15
17
|
|
16
18
|
beforeEach(() => {
|
17
19
|
let form = `
|
18
20
|
<form id="new_filter" action="/filters" method="get">
|
19
21
|
<fieldset>
|
20
|
-
<div id="
|
22
|
+
<div id="filter_somerandomid_scope_id" class="data-picker picker-multiple" data-picker-name="filter[scope_id]">
|
21
23
|
<div class="picker-values">
|
22
24
|
<div>
|
23
25
|
<a href="picker_url_1" data-picker-value="1">Scope 1</a>
|
@@ -33,16 +35,43 @@ describe("FormFilterComponent", () => {
|
|
33
35
|
</fieldset>
|
34
36
|
|
35
37
|
<fieldset>
|
36
|
-
<select id="
|
38
|
+
<select id="filter_somerandomid_category_id" name="filter[category_id]">
|
37
39
|
<option value="1">Category 1</option>
|
38
40
|
<option value="2">Category 2</option>
|
39
41
|
</select>
|
40
42
|
</fieldset>
|
43
|
+
|
44
|
+
<fieldset>
|
45
|
+
<input type="hidden" name="filter[state][]" id="filter_state_" value="">
|
46
|
+
<label data-global-checkbox="" for="filter_state_all">
|
47
|
+
<input data-checkboxes-tree="state-options" is_root_check_box="true" value="" type="checkbox" name="filter[state][]" id="filter_state_all" class="ignore-filter">
|
48
|
+
All
|
49
|
+
</label>
|
50
|
+
<div id="state-options" class="filters__subfilters ">
|
51
|
+
<label data-children-checkbox="" for="filter_state_accepted">
|
52
|
+
<input value="accepted" type="checkbox" name="filter[state][]" id="filter_state_accepted" class="ignore-filter">
|
53
|
+
Accepted
|
54
|
+
</label>
|
55
|
+
<label data-children-checkbox="" for="filter_state_evaluating">
|
56
|
+
<input value="evaluating" type="checkbox" name="filter[state][]" id="filter_state_evaluating" class="ignore-filter">
|
57
|
+
Evaluating
|
58
|
+
</label>
|
59
|
+
<label data-children-checkbox="" for="filter_state_not_answered">
|
60
|
+
<input value="not_answered" type="checkbox" name="filter[state][]" id="filter_state_not_answered" class="ignore-filter">
|
61
|
+
Not answered
|
62
|
+
</label>
|
63
|
+
<label data-children-checkbox="" for="filter_state_rejected">
|
64
|
+
<input value="rejected" type="checkbox" name="filter[state][]" id="filter_state_rejected" class="ignore-filter">
|
65
|
+
Rejected
|
66
|
+
</label>
|
67
|
+
</div>
|
68
|
+
</fieldset>
|
41
69
|
</form>
|
42
70
|
`;
|
43
71
|
$("body").append(form);
|
44
72
|
|
45
73
|
window.theDataPicker = new window.Decidim.DataPicker($(".data-picker"));
|
74
|
+
window.theCheckBoxesTree = new window.Decidim.CheckBoxesTree();
|
46
75
|
subject = new FormFilterComponent($(document).find("form"));
|
47
76
|
});
|
48
77
|
|
@@ -90,13 +119,18 @@ describe("FormFilterComponent", () => {
|
|
90
119
|
});
|
91
120
|
|
92
121
|
it("sets the correct form fields based on the current location", () => {
|
93
|
-
|
122
|
+
const path = "/filters?filter[scope_id][]=3&filter[scope_id][]=4&filter[category_id]=2&filter[state][]=&filter[state][]=accepted&filter[state][]=evaluating";
|
123
|
+
spyOn(subject, "_getLocation").and.returnValue(path);
|
94
124
|
window.onpopstate({ isTrusted: true, state: scopesPickerState});
|
95
125
|
|
96
|
-
expect($(selector).find("select#
|
97
|
-
expect($(`${selector} #
|
126
|
+
expect($(selector).find("select#filter_somerandomid_category_id").val()).toEqual("2");
|
127
|
+
expect($(`${selector} #filter_somerandomid_scope_id .picker-values div input`).map(function(_index, input) {
|
98
128
|
return $(input).val();
|
99
129
|
}).get()).toEqual(["3", "4"]);
|
130
|
+
|
131
|
+
let checked = Array.from($(`${selector} input[name="filter[state][]"]:checked`));
|
132
|
+
expect(checked.map((input) => input.value)).toEqual(["", "accepted", "evaluating"]);
|
133
|
+
expect(checked.filter((input) => input.indeterminate).map((input) => input.value)).toEqual([""]);
|
100
134
|
});
|
101
135
|
});
|
102
136
|
});
|
@@ -29,10 +29,25 @@
|
|
29
29
|
}
|
30
30
|
};
|
31
31
|
|
32
|
+
const replaceState = (url, state = null) => {
|
33
|
+
if (window.history) {
|
34
|
+
window.history.replaceState(state, null, url);
|
35
|
+
}
|
36
|
+
};
|
37
|
+
|
38
|
+
const state = () => {
|
39
|
+
if (window.history) {
|
40
|
+
return window.history.state;
|
41
|
+
}
|
42
|
+
return null;
|
43
|
+
};
|
44
|
+
|
32
45
|
exports.Decidim = exports.Decidim || {};
|
33
46
|
exports.Decidim.History = {
|
34
47
|
registerCallback,
|
35
48
|
unregisterCallback,
|
36
|
-
pushState
|
49
|
+
pushState,
|
50
|
+
replaceState,
|
51
|
+
state
|
37
52
|
};
|
38
53
|
})(window);
|
@@ -534,7 +534,7 @@
|
|
534
534
|
node.proportion = (max + min) / 2
|
535
535
|
if (!node.x) {
|
536
536
|
|
537
|
-
|
537
|
+
// if node has parent, match entered node positions to it's parent
|
538
538
|
if (node.parent) {
|
539
539
|
node.x = node.parent.x
|
540
540
|
} else {
|
@@ -158,12 +158,40 @@
|
|
158
158
|
.button--icon{
|
159
159
|
display: flex;
|
160
160
|
align-items: center;
|
161
|
+
position: relative;
|
162
|
+
|
163
|
+
.icon-wrap{
|
164
|
+
position: absolute;
|
165
|
+
left: 0;
|
166
|
+
top: 0;
|
167
|
+
padding: .85em;
|
168
|
+
border-right: 1px solid var(--secondary);
|
169
|
+
height: 100%;
|
170
|
+
min-width: 3.5em;
|
171
|
+
white-space: no-wrap;
|
172
|
+
padding-right: 5px;
|
173
|
+
|
174
|
+
.icon{
|
175
|
+
margin: 0;
|
176
|
+
vertical-align: bottom;
|
177
|
+
}
|
178
|
+
}
|
179
|
+
|
180
|
+
.text-wrap{
|
181
|
+
display: block;
|
182
|
+
margin-left: 2rem;
|
183
|
+
}
|
161
184
|
|
162
185
|
.icon{
|
163
186
|
margin: 0 2px;
|
164
187
|
}
|
165
188
|
|
166
189
|
&.small{
|
190
|
+
.icon-wrap{
|
191
|
+
padding: .5rem;
|
192
|
+
min-width: 2.5rem;
|
193
|
+
}
|
194
|
+
|
167
195
|
.icon{
|
168
196
|
width: 12px;
|
169
197
|
height: 12px;
|
@@ -253,7 +281,8 @@
|
|
253
281
|
background-color: var(--twitter);
|
254
282
|
|
255
283
|
&:hover{
|
256
|
-
|
284
|
+
background-color: var(--twitter);
|
285
|
+
filter: brightness(90%);
|
257
286
|
}
|
258
287
|
}
|
259
288
|
|
@@ -261,14 +290,58 @@
|
|
261
290
|
background-color: var(--facebook);
|
262
291
|
|
263
292
|
&:hover{
|
264
|
-
|
293
|
+
background-color: var(--facebook);
|
294
|
+
filter: brightness(90%);
|
265
295
|
}
|
266
296
|
}
|
267
297
|
|
268
298
|
.button--google{
|
269
299
|
background-color: var(--google);
|
300
|
+
font-family: Roboto;
|
270
301
|
|
271
302
|
&:hover{
|
272
|
-
|
303
|
+
background-color: var(--google);
|
304
|
+
filter: brightness(90%);
|
305
|
+
}
|
306
|
+
|
307
|
+
.button--social__icon{
|
308
|
+
padding: 0;
|
309
|
+
|
310
|
+
svg.icon{
|
311
|
+
fill: inherit;
|
312
|
+
width: inherit;
|
313
|
+
height: inherit;
|
314
|
+
margin-top: 2px;
|
315
|
+
|
316
|
+
/*
|
317
|
+
* This is a hack to comply with google guidelines
|
318
|
+
* https://developers.google.com/identity/branding-guidelines
|
319
|
+
* Currently the icons.svg file have the wrong google icon, until that's fixed
|
320
|
+
* google icon can be specified in secrets.yml with icon_path: decidim/brands/google.svg
|
321
|
+
* however to facilitate upgrades this provides a fallback
|
322
|
+
*/
|
323
|
+
max-width: 42px;
|
324
|
+
max-height: 42px;
|
325
|
+
|
326
|
+
&.icon--google{
|
327
|
+
> use{
|
328
|
+
display: none;
|
329
|
+
}
|
330
|
+
|
331
|
+
background-image: image-url("decidim/brands/google.svg");
|
332
|
+
}
|
333
|
+
}
|
334
|
+
}
|
335
|
+
|
336
|
+
&.button--social--mini{
|
337
|
+
.button--social__icon{
|
338
|
+
font-size: 0;
|
339
|
+
min-width: auto;
|
340
|
+
padding: 0;
|
341
|
+
|
342
|
+
svg.icon{
|
343
|
+
margin: 1px;
|
344
|
+
}
|
345
|
+
}
|
273
346
|
}
|
274
347
|
}
|
@@ -28,6 +28,7 @@ $comment-form-bg: $light-gray;
|
|
28
28
|
|
29
29
|
.comment__header{
|
30
30
|
padding: $comment-padding;
|
31
|
+
display: flex;
|
31
32
|
}
|
32
33
|
|
33
34
|
.comment__content{
|
@@ -36,9 +37,12 @@ $comment-form-bg: $light-gray;
|
|
36
37
|
> :last-child{
|
37
38
|
margin-bottom: 0;
|
38
39
|
}
|
40
|
+
|
41
|
+
p:empty{
|
42
|
+
display: none;
|
43
|
+
}
|
39
44
|
}
|
40
45
|
|
41
|
-
.comment__footer,
|
42
46
|
.comment__additionalreply{
|
43
47
|
padding: $comment-padding;
|
44
48
|
font-size: 90%;
|
@@ -46,6 +50,15 @@ $comment-form-bg: $light-gray;
|
|
46
50
|
@include clearfix;
|
47
51
|
}
|
48
52
|
|
53
|
+
.comment__footer{
|
54
|
+
padding: $comment-padding;
|
55
|
+
font-size: 90%;
|
56
|
+
display: flex;
|
57
|
+
flex-wrap: wrap;
|
58
|
+
align-items: baseline;
|
59
|
+
justify-content: space-between;
|
60
|
+
}
|
61
|
+
|
49
62
|
.comment--nested{
|
50
63
|
background: $comment-nested-bg;
|
51
64
|
margin: $comment-padding;
|
@@ -60,13 +73,32 @@ $comment-form-bg: $light-gray;
|
|
60
73
|
}
|
61
74
|
}
|
62
75
|
|
63
|
-
.
|
76
|
+
.comment__actions{
|
77
|
+
display: flex;
|
78
|
+
flex-wrap: wrap;
|
79
|
+
|
80
|
+
> button,
|
81
|
+
a{
|
82
|
+
cursor: pointer;
|
83
|
+
margin-top: .5rem;
|
84
|
+
}
|
85
|
+
}
|
86
|
+
|
87
|
+
.comment__reply,
|
88
|
+
.comment__reply[data-toggle]{
|
64
89
|
float: left;
|
65
90
|
color: $muted;
|
91
|
+
margin-right: .75rem;
|
92
|
+
margin-bottom: 0;
|
93
|
+
|
94
|
+
span{
|
95
|
+
margin-right: 0;
|
96
|
+
}
|
66
97
|
}
|
67
98
|
|
68
99
|
.comment__votes{
|
69
100
|
float: right;
|
101
|
+
margin-top: .5rem;
|
70
102
|
}
|
71
103
|
|
72
104
|
.comment__votes--up{
|
@@ -122,8 +154,36 @@ $comment-form-bg: $light-gray;
|
|
122
154
|
}
|
123
155
|
}
|
124
156
|
|
157
|
+
.comment__quote{
|
158
|
+
border-left-width: 6px;
|
159
|
+
font-size: 80%;
|
160
|
+
background-color: rgba(0, 0, 0, .03);
|
161
|
+
padding: 1rem;
|
162
|
+
margin-bottom: 1rem;
|
163
|
+
|
164
|
+
> p:last-of-type{
|
165
|
+
margin-bottom: 0;
|
166
|
+
}
|
167
|
+
|
168
|
+
> br{
|
169
|
+
display: none;
|
170
|
+
}
|
171
|
+
}
|
172
|
+
|
125
173
|
/* Comment form */
|
126
174
|
|
175
|
+
.comment__quote{
|
176
|
+
border-left-width: 6px;
|
177
|
+
font-size: 80%;
|
178
|
+
background-color: rgba(0, 0, 0, .03);
|
179
|
+
padding: 1rem;
|
180
|
+
margin-bottom: 1rem;
|
181
|
+
|
182
|
+
> p:last-child{
|
183
|
+
margin-bottom: 0;
|
184
|
+
}
|
185
|
+
}
|
186
|
+
|
127
187
|
.add-comment{
|
128
188
|
background: $comment-form-bg;
|
129
189
|
padding: $comment-padding;
|
@@ -140,3 +200,19 @@ $comment-form-bg: $light-gray;
|
|
140
200
|
display: block;
|
141
201
|
}
|
142
202
|
}
|
203
|
+
|
204
|
+
/* Comments toggle */
|
205
|
+
|
206
|
+
.comment{
|
207
|
+
&__text-is-open{
|
208
|
+
display: none;
|
209
|
+
}
|
210
|
+
|
211
|
+
&__is-open &__text-is-open{
|
212
|
+
display: inline-block;
|
213
|
+
}
|
214
|
+
|
215
|
+
&__is-open &__text-is-closed{
|
216
|
+
display: none;
|
217
|
+
}
|
218
|
+
}
|
@@ -65,17 +65,21 @@ $filters-padding-y: 1rem;
|
|
65
65
|
padding: $filters-padding-x $filters-padding-y;
|
66
66
|
|
67
67
|
&:first-of-type{
|
68
|
-
padding-top: $filters-padding-x*1.5;
|
68
|
+
padding-top: $filters-padding-x * 1.5;
|
69
69
|
}
|
70
70
|
|
71
71
|
&:last-of-type{
|
72
|
-
padding-bottom: $filters-padding-x*1.5;
|
72
|
+
padding-bottom: $filters-padding-x * 1.5;
|
73
73
|
border-bottom: none;
|
74
74
|
}
|
75
75
|
|
76
76
|
label{
|
77
77
|
line-height: 1.2;
|
78
78
|
margin-bottom: .4rem;
|
79
|
+
|
80
|
+
&[data-global-checkbox]{
|
81
|
+
font-weight: 600;
|
82
|
+
}
|
79
83
|
}
|
80
84
|
|
81
85
|
.button{
|
@@ -90,6 +94,36 @@ $filters-padding-y: 1rem;
|
|
90
94
|
}
|
91
95
|
}
|
92
96
|
|
97
|
+
.filters__subfilters{
|
98
|
+
& > .filters__subfilters{
|
99
|
+
padding-left: $filters-padding-x / 2;
|
100
|
+
}
|
101
|
+
}
|
102
|
+
|
103
|
+
.filters__has-subfilters{
|
104
|
+
display: flex;
|
105
|
+
justify-content: space-between;
|
106
|
+
}
|
107
|
+
|
108
|
+
.filters__icon-is-open,
|
109
|
+
.filters__icon-is-closed{
|
110
|
+
font-size: .5em;
|
111
|
+
}
|
112
|
+
|
113
|
+
.filters__icon-is-open{
|
114
|
+
display: none;
|
115
|
+
}
|
116
|
+
|
117
|
+
.filters__is-open{
|
118
|
+
.filters__icon-is-open{
|
119
|
+
display: inline-block;
|
120
|
+
}
|
121
|
+
|
122
|
+
.filters__icon-is-closed{
|
123
|
+
display: none;
|
124
|
+
}
|
125
|
+
}
|
126
|
+
|
93
127
|
.filters__section--general{
|
94
128
|
@extend .filters__section;
|
95
129
|
|
@@ -12,6 +12,19 @@
|
|
12
12
|
}
|
13
13
|
}
|
14
14
|
|
15
|
+
.wrapper-mini{
|
16
|
+
padding: 1.2rem 1rem;
|
17
|
+
position: relative;
|
18
|
+
|
19
|
+
@include breakpoint(medium){
|
20
|
+
padding: 2rem 1.5rem;
|
21
|
+
}
|
22
|
+
|
23
|
+
@include breakpoint(large){
|
24
|
+
padding: 3rem 4rem;
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
15
28
|
.wrapper--inner{
|
16
29
|
background: $light-gray-dark;
|
17
30
|
padding-top: 1rem;
|