decidim-initiatives 0.9.1 → 0.11.0.pre1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (176) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -16
  3. data/Rakefile +1 -1
  4. data/app/assets/javascripts/decidim/initiatives/admin/invite_users.js +7 -8
  5. data/app/assets/javascripts/decidim/initiatives/application.js +1 -1
  6. data/app/assets/javascripts/decidim/initiatives/identity_selector_dialog.js +6 -9
  7. data/app/assets/javascripts/decidim/initiatives/scoped_type.js +8 -12
  8. data/app/assets/stylesheet/decidim/initiatives/admin.css.scss +10 -11
  9. data/app/assets/stylesheet/decidim/initiatives/application.css.scss +19 -19
  10. data/app/assets/stylesheet/decidim/initiatives/popularity_item.css.scss +40 -24
  11. data/app/assets/stylesheet/decidim/initiatives/print-initiative.css.scss +26 -26
  12. data/app/assets/stylesheet/decidim/initiatives/social_share.css.scss +5 -4
  13. data/app/assets/stylesheet/decidim/initiatives/statistics.css.scss +4 -4
  14. data/app/commands/decidim/initiatives/admin/create_initiative_type.rb +1 -4
  15. data/app/commands/decidim/initiatives/admin/publish_initiative.rb +44 -0
  16. data/app/commands/decidim/initiatives/admin/send_initiative_to_technical_validation.rb +42 -0
  17. data/app/commands/decidim/initiatives/admin/unpublish_initiative.rb +44 -0
  18. data/app/commands/decidim/initiatives/admin/update_initiative.rb +9 -7
  19. data/app/commands/decidim/initiatives/admin/update_initiative_type.rb +1 -4
  20. data/app/commands/decidim/initiatives/create_initiative.rb +23 -13
  21. data/app/commands/decidim/initiatives/spawn_committee_request.rb +1 -1
  22. data/app/constraints/decidim/initiatives/current_component.rb +28 -0
  23. data/app/constraints/decidim/initiatives/current_initiative.rb +2 -2
  24. data/app/controllers/concerns/decidim/initiatives/action_authorization.rb +1 -1
  25. data/app/controllers/concerns/decidim/initiatives/admin/initiative_admin.rb +1 -3
  26. data/app/controllers/concerns/decidim/initiatives/orderable.rb +6 -6
  27. data/app/controllers/concerns/decidim/initiatives/type_selector_options.rb +1 -1
  28. data/app/controllers/decidim/initiatives/admin/application_controller.rb +1 -1
  29. data/app/controllers/decidim/initiatives/admin/{feature_permissions_controller.rb → component_permissions_controller.rb} +2 -2
  30. data/app/controllers/decidim/initiatives/admin/components_controller.rb +15 -0
  31. data/app/controllers/decidim/initiatives/admin/initiatives_controller.rb +29 -18
  32. data/app/controllers/decidim/initiatives/admin/initiatives_type_scopes_controller.rb +6 -6
  33. data/app/controllers/decidim/initiatives/admin/initiatives_types_controller.rb +7 -7
  34. data/app/controllers/decidim/initiatives/committee_requests_controller.rb +2 -3
  35. data/app/controllers/decidim/initiatives/create_initiative_controller.rb +5 -9
  36. data/app/controllers/decidim/initiatives/initiative_votes_controller.rb +3 -3
  37. data/app/controllers/decidim/initiatives/initiatives_controller.rb +0 -1
  38. data/app/forms/decidim/initiatives/admin/initiative_form.rb +1 -1
  39. data/app/forms/decidim/initiatives/admin/initiative_type_scope_form.rb +3 -2
  40. data/app/helpers/decidim/initiatives/create_initiative_helper.rb +7 -7
  41. data/app/helpers/decidim/initiatives/initiative_helper.rb +36 -29
  42. data/app/helpers/decidim/initiatives/initiatives_helper.rb +1 -1
  43. data/app/mailers/decidim/initiatives/initiatives_mailer.rb +18 -16
  44. data/app/models/decidim/initiative.rb +15 -7
  45. data/app/models/decidim/initiatives/abilities/admin/attachments_ability.rb +1 -0
  46. data/app/models/decidim/initiatives/abilities/admin/{features_ability.rb → components_ability.rb} +2 -3
  47. data/app/models/decidim/initiatives_vote.rb +3 -3
  48. data/app/presenters/decidim/initiatives/admin_log/initiative_presenter.rb +49 -0
  49. data/app/presenters/decidim/initiatives/initiative_stats_presenter.rb +4 -4
  50. data/app/queries/decidim/initiatives/admin/manageable_initiatives.rb +8 -8
  51. data/app/queries/decidim/initiatives/freetext_initiative_types.rb +1 -1
  52. data/app/queries/decidim/initiatives/initiatives_created.rb +1 -1
  53. data/app/queries/decidim/initiatives/initiatives_promoted.rb +3 -3
  54. data/app/queries/decidim/initiatives/outdated_validating_initiatives.rb +3 -3
  55. data/app/queries/decidim/initiatives/support_period_finished_initiatives.rb +3 -3
  56. data/app/services/decidim/initiatives/initiative_search.rb +5 -5
  57. data/app/services/decidim/initiatives/progress_notifier.rb +1 -1
  58. data/app/services/decidim/initiatives/status_change_notifier.rb +3 -9
  59. data/app/views/decidim/initiatives/_initiative.html.erb +11 -11
  60. data/app/views/decidim/initiatives/admin/committee_requests/index.html.erb +14 -14
  61. data/app/views/decidim/initiatives/admin/initiatives/_form.html.erb +5 -5
  62. data/app/views/decidim/initiatives/admin/initiatives/edit.html.erb +25 -25
  63. data/app/views/decidim/initiatives/admin/initiatives/index.html.erb +31 -31
  64. data/app/views/decidim/initiatives/admin/initiatives/show.html.erb +7 -8
  65. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/_form.html.erb +1 -3
  66. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/edit.html.erb +8 -8
  67. data/app/views/decidim/initiatives/admin/initiatives_type_scopes/new.html.erb +5 -5
  68. data/app/views/decidim/initiatives/admin/initiatives_types/_form.html.erb +2 -2
  69. data/app/views/decidim/initiatives/admin/initiatives_types/_initiative_type_scopes.html.erb +9 -9
  70. data/app/views/decidim/initiatives/admin/initiatives_types/edit.html.erb +8 -8
  71. data/app/views/decidim/initiatives/admin/initiatives_types/index.html.erb +3 -3
  72. data/app/views/decidim/initiatives/admin/initiatives_types/new.html.erb +3 -3
  73. data/app/views/decidim/initiatives/committee_requests/new.html.erb +13 -13
  74. data/app/views/decidim/initiatives/create_initiative/_finish_help.html.erb +7 -0
  75. data/app/views/decidim/initiatives/create_initiative/_share_committee_link.html.erb +4 -4
  76. data/app/views/decidim/initiatives/create_initiative/fill_data.html.erb +8 -8
  77. data/app/views/decidim/initiatives/create_initiative/finish.html.erb +10 -10
  78. data/app/views/decidim/initiatives/create_initiative/previous_form.html.erb +9 -9
  79. data/app/views/decidim/initiatives/create_initiative/promotal_committee.html.erb +8 -8
  80. data/app/views/decidim/initiatives/create_initiative/select_initiative_type.html.erb +9 -10
  81. data/app/views/decidim/initiatives/create_initiative/show_similar_initiatives.html.erb +7 -7
  82. data/app/views/decidim/initiatives/initiative_votes/update_buttons_and_counters.js.erb +2 -2
  83. data/app/views/decidim/initiatives/initiative_widgets/show.html.erb +1 -1
  84. data/app/views/decidim/initiatives/initiatives/_author.html.erb +3 -3
  85. data/app/views/decidim/initiatives/initiatives/_count.html.erb +1 -1
  86. data/app/views/decidim/initiatives/initiatives/_filters.html.erb +11 -11
  87. data/app/views/decidim/initiatives/initiatives/_filters_small_view.html.erb +5 -5
  88. data/app/views/decidim/initiatives/initiatives/_index_header.html.erb +1 -1
  89. data/app/views/decidim/initiatives/initiatives/_initiative_badge.html.erb +1 -1
  90. data/app/views/decidim/initiatives/initiatives/_initiatives.html.erb +2 -2
  91. data/app/views/decidim/initiatives/initiatives/_result.html.erb +4 -4
  92. data/app/views/decidim/initiatives/initiatives/_statistics.html.erb +5 -5
  93. data/app/views/decidim/initiatives/initiatives/_supports.html.erb +1 -1
  94. data/app/views/decidim/initiatives/initiatives/_supports_count.html.erb +1 -2
  95. data/app/views/decidim/initiatives/initiatives/_tags.html.erb +2 -2
  96. data/app/views/decidim/initiatives/initiatives/_vote_button.html.erb +3 -3
  97. data/app/views/decidim/initiatives/initiatives/_vote_cabin.html.erb +3 -3
  98. data/app/views/decidim/initiatives/initiatives/_votes_count.html.erb +2 -2
  99. data/app/views/decidim/initiatives/initiatives/index.html.erb +8 -8
  100. data/app/views/decidim/initiatives/initiatives/index.js.erb +2 -2
  101. data/app/views/decidim/initiatives/initiatives/show.html.erb +21 -21
  102. data/app/views/decidim/initiatives/initiatives/signature_identities.html.erb +6 -6
  103. data/app/views/decidim/initiatives/initiatives_mailer/_initiative_link.html.erb +2 -2
  104. data/app/views/decidim/initiatives/initiatives_mailer/notify_creation.html.erb +6 -6
  105. data/app/views/decidim/initiatives/initiatives_mailer/notify_progress.html.erb +2 -2
  106. data/app/views/decidim/initiatives/initiatives_mailer/notify_state_change.html.erb +2 -2
  107. data/app/views/decidim/initiatives/initiatives_mailer/notify_validating_request.html.erb +2 -2
  108. data/app/views/decidim/initiatives/initiatives_type_scopes/search.html.erb +1 -1
  109. data/app/views/layouts/decidim/_initiative_creation_header.html.erb +3 -4
  110. data/app/views/layouts/decidim/_initiative_header.html.erb +21 -21
  111. data/app/views/layouts/decidim/_initiative_header_steps.html.erb +1 -1
  112. data/app/views/layouts/decidim/admin/initiative.html.erb +15 -15
  113. data/app/views/layouts/decidim/admin/initiatives.html.erb +4 -4
  114. data/app/views/layouts/decidim/initiative.html.erb +2 -2
  115. data/app/views/layouts/decidim/initiative_creation.html.erb +4 -6
  116. data/config/locales/ca.yml +243 -246
  117. data/config/locales/en.yml +218 -222
  118. data/config/locales/es.yml +243 -246
  119. data/config/locales/eu.yml +322 -0
  120. data/config/locales/fi.yml +322 -0
  121. data/config/locales/fr.yml +322 -0
  122. data/config/locales/gl.yml +322 -0
  123. data/config/locales/it.yml +322 -0
  124. data/config/locales/nl.yml +322 -0
  125. data/config/locales/pl.yml +328 -0
  126. data/config/locales/pt-BR.yml +322 -0
  127. data/config/locales/pt.yml +322 -0
  128. data/config/locales/ru.yml +5 -0
  129. data/config/locales/sv.yml +322 -0
  130. data/config/locales/uk.yml +5 -0
  131. data/db/migrate/20170906091626_create_decidim_initiatives_types.rb +1 -1
  132. data/db/migrate/20170906094044_create_decidim_initiatives.rb +3 -3
  133. data/db/migrate/20170922152432_create_decidim_initiatives_committee_members.rb +2 -2
  134. data/db/migrate/20170927153744_change_signature_interval_to_optional.rb +2 -0
  135. data/db/migrate/20170928160302_add_decidim_user_group_id_to_decidim_initiatives_votes.rb +2 -0
  136. data/db/migrate/20170928160912_remove_scope_from_decidim_initiatives_votes.rb +2 -0
  137. data/db/migrate/20171011110714_add_banner_image_to_initiative_type.rb +2 -0
  138. data/db/migrate/20171011152425_add_hashtag_to_initiatives.rb +2 -0
  139. data/db/migrate/20171013090432_add_initiative_supports_count_to_initiative.rb +7 -1
  140. data/db/migrate/20171017090551_create_decidim_initiatives_decidim_initiatives_type_scopes.rb +4 -2
  141. data/db/migrate/20171017091458_remove_supports_required_from_decidim_initiatives_types.rb +2 -0
  142. data/db/migrate/20171017091734_add_scopes_for_all_initiative_types.rb +29 -5
  143. data/db/migrate/20171017094911_add_scoped_type_to_initiative.rb +2 -0
  144. data/db/migrate/20171017095143_update_initiative_scoped_type.rb +47 -4
  145. data/db/migrate/20171017103029_remove_unused_attributes_from_initiative.rb +2 -0
  146. data/db/migrate/20171019103358_add_initiative_notification_dates.rb +2 -0
  147. data/db/migrate/20171023075942_create_initiative_extra_data.rb +2 -0
  148. data/db/migrate/20171023122747_create_static_pages.rb +15 -6
  149. data/db/migrate/20171023141639_optional_validation_support.rb +2 -0
  150. data/db/migrate/20171031183855_add_offline_votes_to_initiative.rb +2 -0
  151. data/db/migrate/20171102094250_drop_initiative_description_index.rb +2 -0
  152. data/db/migrate/20171102094556_create_initiative_description_index.rb +4 -2
  153. data/db/migrate/20171109132011_enable_pg_extensions.rb +5 -5
  154. data/db/migrate/20171204094639_drop_decidim_initiatives_extra_data.rb +2 -0
  155. data/db/migrate/20171204103119_remove_requires_validation_from_decidim_initiatives_type.rb +2 -0
  156. data/db/migrate/20171214161410_add_unique_on_votes.rb +10 -9
  157. data/lib/decidim/initiatives.rb +2 -2
  158. data/lib/decidim/initiatives/admin_engine.rb +26 -26
  159. data/lib/decidim/initiatives/current_locale.rb +1 -1
  160. data/lib/decidim/initiatives/engine.rb +5 -5
  161. data/lib/decidim/initiatives/initiative_slug.rb +2 -3
  162. data/lib/decidim/initiatives/participatory_space.rb +19 -17
  163. data/lib/decidim/initiatives/test/factories.rb +2 -7
  164. data/lib/decidim/initiatives/version.rb +3 -1
  165. data/lib/tasks/decidim_initiatives.rake +2 -0
  166. metadata +57 -90
  167. data/LICENSE-AGPLv3.txt +0 -661
  168. data/app/constraints/decidim/initiatives/current_feature.rb +0 -28
  169. data/app/controllers/decidim/initiatives/admin/features_controller.rb +0 -16
  170. data/app/helpers/decidim/initiatives/partial_translations_helper.rb +0 -28
  171. data/app/views/decidim/initiatives/create_initiative/_compare_help.ca.html.erb +0 -2
  172. data/app/views/decidim/initiatives/create_initiative/_compare_help.en.html.erb +0 -2
  173. data/app/views/decidim/initiatives/create_initiative/_compare_help.es.html.erb +0 -2
  174. data/app/views/decidim/initiatives/create_initiative/_finish_help.ca.html.erb +0 -19
  175. data/app/views/decidim/initiatives/create_initiative/_finish_help.en.html.erb +0 -20
  176. data/app/views/decidim/initiatives/create_initiative/_finish_help.es.html.erb +0 -19
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8831918fee1de29a488d7472c24649d608c51a12f4209aa45302a3148d9bb4d6
4
- data.tar.gz: be8e5445a8a6c6774f404d749a43ed6139ea83776f501830b09e3a146812c5e5
3
+ metadata.gz: 2acee0b90208862f0d3813eefd2e9a7d667b110eae27f1be42e29caa5e96c5d9
4
+ data.tar.gz: cfc3e7c7531b53a29f5a0935b44fb25bd35e148e51b323cc29db835e082dd41e
5
5
  SHA512:
6
- metadata.gz: 3f6afce6ff239fa7ccf635987f74392f13360aeec14012cdd43ec2203934ad06968b08d83379dd25681fca079dec96354a8b57829719b65413bd22c40b3111ce
7
- data.tar.gz: b75982edde994c34581ab274643b938b23e4a4cbe11571abba37c896f3699e8ff03acc6f25e4ffe309f106f3dc8187bb073ebb65717063ba9a407dc498be96a9
6
+ metadata.gz: d04e327566c719d39ff715adb056977a45f67101c6950428aeef3630da2e14ba6b4adca44c43dded7b9c562bc1f89bcb031b699ddaf380c9b0345ac3087f52d5
7
+ data.tar.gz: aa148bdee647870878d3446077676e215c625dd00c9422197ba0c7cdba35dc70b6c8513b0c16777c31609e166c026dbc5d6f70d21640ede6f72d02d5c46fbcda
data/README.md CHANGED
@@ -19,6 +19,7 @@ This plugin provides:
19
19
  * Public views for initiatives via a high level section in the main menu.
20
20
 
21
21
  ## Installation
22
+
22
23
  Add this line to your application's Gemfile:
23
24
 
24
25
  ```ruby
@@ -26,10 +27,11 @@ gem 'decidim-initiatives'
26
27
  ```
27
28
 
28
29
  And then execute:
30
+
29
31
  ```bash
30
- $ bundle
31
- $ bundle exec rails decidim_initiatives:install:migrations
32
- $ bundle exec rails db:migrate
32
+ bundle
33
+ bundle exec rails decidim_initiatives:install:migrations
34
+ bundle exec rails db:migrate
33
35
  ```
34
36
 
35
37
  ## Database
@@ -42,14 +44,14 @@ CREATE EXTENSION pg_trgm;
42
44
 
43
45
  ## Rake tasks
44
46
 
45
- This engine comes with three rake tasks that should be executed on daily basis. The best
47
+ This engine comes with three rake tasks that should be executed on daily basis. The best
46
48
  way to execute these tasks is using cron jobs. You can manage this cron jobs in your
47
49
  Rails application using the [Whenever GEM](https://github.com/javan/whenever) or even
48
50
  creating them by hand.
49
51
 
50
52
  ### decidim_initiatives:check_validating
51
53
 
52
- This task move all initiatives in validation phase without changes for the amount of
54
+ This task move all initiatives in validation phase without changes for the amount of
53
55
  time defined in __Decidim::Initiatives::max_time_in_validating_state__. These initiatives
54
56
  will be moved to __discarded__ state.
55
57
 
@@ -69,14 +71,14 @@ __Decidim::Initiatives.first_notification_percentage__ and __Decidim::Initiative
69
71
 
70
72
  Author, members of the promoter committee and followers will receive it.
71
73
 
72
- ## Exporting online votes.
74
+ ## Exporting online votes
73
75
 
74
76
  When the supporting method is set to any or face to face it may be necessary to implement
75
77
  a mechanism to validate that do not exist duplicated supports. To do so the engine provides
76
78
  a functionality that allows exporting the online votes to validate them against physical
77
79
  votes.
78
80
 
79
- The votes are exported as a hash string in order to preserve the identity of the voter.
81
+ The votes are exported as a hash string in order to preserve the identity of the voter.
80
82
  Each hash is composed with the following criteria:
81
83
 
82
84
  * Algorithm used: SHA1
@@ -92,27 +94,25 @@ There are some considerations that you must keep in mind:
92
94
  ## Seeding example data
93
95
 
94
96
  In order to populate the database with example data proceed as usual in rails:
97
+
95
98
  ```bash
96
- $ bundle exec rails db:seed
99
+ bundle exec rails db:seed
97
100
  ```
98
101
 
99
102
  ## Aditional considerations
100
103
 
101
104
  ### Cookies
102
- This engine makes use of cookies to store large form data. You should change the
105
+
106
+ This engine makes use of cookies to store large form data. You should change the
103
107
  default session store or you might experience problems.
104
108
 
105
- Check the [Rails configuration guide](http://guides.rubyonrails.org/configuring.html#rails-general-configuration)
109
+ Check the [Rails configuration guide](http://guides.rubyonrails.org/configuring.html#rails-general-configuration)
106
110
  in order to get instructions about changing the default session store.
107
111
 
108
- ### Translations
109
- There are some legal texts that are adapted for Barcelona's city council. You should
110
- adapt them for your decidim instance. The files that you need to check are:
111
-
112
- * app/views/decidim/initiatives/_legal_text.*.html.erb
113
-
114
112
  ## Contributing
113
+
115
114
  See [Decidim](https://github.com/decidim/decidim).
116
115
 
117
116
  ## License
117
+
118
118
  See [Decidim](https://github.com/decidim/decidim).
data/Rakefile CHANGED
@@ -1,3 +1,3 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'decidim/dev/common_rake'
3
+ require "decidim/dev/common_rake"
@@ -1,11 +1,11 @@
1
- (function () {
2
- 'use strict';
1
+ /* eslint-disable no-empty */
3
2
 
4
- var inviteUsersButton = document.querySelector('.invite-users-link');
3
+ (function () {
4
+ let inviteUsersButton = document.querySelector(".invite-users-link");
5
5
 
6
6
  if (inviteUsersButton !== null) {
7
- inviteUsersButton.addEventListener('click', function (event) {
8
- var link = document.querySelector('#committee_link'),
7
+ inviteUsersButton.addEventListener("click", function (event) {
8
+ let link = document.querySelector("#committee_link"),
9
9
  range = document.createRange();
10
10
 
11
11
  event.preventDefault();
@@ -14,9 +14,8 @@
14
14
  window.getSelection().addRange(range);
15
15
 
16
16
  try {
17
- document.execCommand('copy');
18
- } catch (err) {
19
- }
17
+ document.execCommand("copy");
18
+ } catch (err) { }
20
19
 
21
20
  window.getSelection().removeAllRanges();
22
21
  });
@@ -1 +1 @@
1
- // = require decidim/editor
1
+ // = require decidim/editor
@@ -1,17 +1,14 @@
1
1
  $(document).ready(function () {
2
- 'use strict';
3
-
4
- var userIdentitiesDialog = $('#user-identities'),
5
- button = $('#select-identity-button'),
6
- refreshUrl;
2
+ let button = $("#select-identity-button"),
3
+ userIdentitiesDialog = $("#user-identities");
7
4
 
8
5
  if (userIdentitiesDialog.length) {
9
- refreshUrl = userIdentitiesDialog.data('refresh-url');
6
+ let refreshUrl = userIdentitiesDialog.data("refresh-url");
10
7
 
11
8
  button.click(function () {
12
- $.ajax(refreshUrl).done(function(response){
13
- userIdentitiesDialog.html(response).foundation('open');
9
+ $.ajax(refreshUrl).done(function(response) {
10
+ userIdentitiesDialog.html(response).foundation("open");
14
11
  });
15
12
  });
16
13
  }
17
- });
14
+ });
@@ -1,23 +1,19 @@
1
- $(document).ready(function () {
2
- 'use strict';
1
+ /* eslint-disable camelcase */
3
2
 
4
- var typeSelector = $('[data-scope-selector]'),
5
- refresh,
6
- targetElement,
7
- currentValue,
8
- searchUrl;
3
+ $(document).ready(function () {
4
+ let typeSelector = $("[data-scope-selector]");
9
5
 
10
6
  if (typeSelector.length) {
11
- targetElement = $('#' + typeSelector.data('scope-selector'));
12
- currentValue = typeSelector.data('scope-id');
13
- searchUrl = typeSelector.data('scope-search-url');
7
+ let currentValue = typeSelector.data("scope-id"),
8
+ searchUrl = typeSelector.data("scope-search-url"),
9
+ targetElement = $(`#${typeSelector.data("scope-selector")}`);
14
10
 
15
11
  if (targetElement.length) {
16
- refresh = function () {
12
+ let refresh = function () {
17
13
  $.ajax({
18
14
  url: searchUrl,
19
15
  cache: false,
20
- dataType: 'html',
16
+ dataType: "html",
21
17
  data: {
22
18
  type_id: typeSelector.val(),
23
19
  selected: currentValue
@@ -1,34 +1,33 @@
1
- .committee_link {
1
+ .committee_link{
2
2
  border: 1px solid lightgray;
3
-
4
3
  float: left;
5
- padding: 0.85em 1em;
4
+ padding: .85em 1em;
6
5
  width: auto;
7
6
  }
8
7
 
9
- .invite-users-link {
10
- padding: 0.85em 1em;
8
+ .invite-users-link{
9
+ padding: .85em 1em;
11
10
  }
12
11
 
13
- #initiatives_type_remove_banner_image {
12
+ #initiatives_type_remove_banner_image{
14
13
  display: none;
15
14
  }
16
15
 
17
- #initiatives_type_remove_banner_image + label {
16
+ #initiatives_type_remove_banner_image + label{
18
17
  display: none;
19
18
  }
20
19
 
21
- .text-right {
20
+ .text-right{
22
21
  text-align: right !important;
23
22
  }
24
23
 
25
- .white-button {
24
+ .white-button{
26
25
  color: #599aa6;
27
26
  background: white;
28
27
  }
29
28
 
30
- .white-button:hover {
29
+ .white-button:hover{
31
30
  color: #599aa6;
32
31
  background: white;
33
32
  font-weight: bold;
34
- }
33
+ }
@@ -3,80 +3,80 @@
3
3
  @import "statistics";
4
4
  @import "admin";
5
5
 
6
- .ql-formats {
7
- .ql-video {
6
+ .ql-formats{
7
+ .ql-video{
8
8
  margin: 0;
9
9
  }
10
10
  }
11
11
 
12
- .initiative-status {
12
+ .initiative-status{
13
13
  float: left;
14
14
  margin-right: .5rem;
15
15
  }
16
16
 
17
- .supports-list {
18
- .author {
17
+ .supports-list{
18
+ .author{
19
19
  margin-right: 15px;
20
20
 
21
- .author__name {
21
+ .author__name{
22
22
  color: #599aa6;
23
23
  }
24
24
  }
25
25
  }
26
26
 
27
- .initiative-authors {
27
+ .initiative-authors{
28
28
  padding-left: 0 !important;
29
29
 
30
- .publish-date {
30
+ .publish-date{
31
31
  display: inline-block;
32
32
  margin-left: -10px;
33
33
  }
34
34
 
35
- .author {
35
+ .author{
36
36
  margin-right: 15px;
37
37
  }
38
38
 
39
- .author__avatar--small {
39
+ .author__avatar--small{
40
40
  margin-left: 0 !important;
41
41
  }
42
42
 
43
- .author__name {
43
+ .author__name{
44
44
  margin-left: 25px;
45
45
  }
46
46
  }
47
47
 
48
- .pull-left {
48
+ .pull-left{
49
49
  float: left;
50
50
  }
51
51
 
52
- .pull-right {
52
+ .pull-right{
53
53
  float: right;
54
54
  }
55
55
 
56
- .lowercase {
56
+ .lowercase{
57
57
  text-transform: lowercase !important;
58
58
  }
59
59
 
60
- .initiative-creation-header__container {
60
+ .initiative-creation-header__container{
61
61
  position: relative;
62
62
  z-index: 1;
63
63
  padding: 0 0 0 1rem;
64
64
  background: #fafafa;
65
65
 
66
- .initiative-creation-header__phase {
66
+ .initiative-creation-header__phase{
67
67
  background: #fafafa;
68
68
  color: #fff;
69
69
  text-align: center;
70
70
  padding: 0 1rem;
71
71
  margin-left: -1rem;
72
72
 
73
- .caption {
73
+ .caption{
74
74
  color: #8c838a;
75
75
  font-size: .9em;
76
76
  }
77
77
  }
78
78
  }
79
79
 
80
- .legal_text {
80
+ .legal_text{
81
81
  font-size: 8pt;
82
- }
82
+ }
@@ -1,61 +1,77 @@
1
- .popularity {
1
+ .popularity{
2
2
  min-width: 100px;
3
- margin-top: 5px
3
+ margin-top: 5px;
4
4
  }
5
5
 
6
- .popularity::before, .popularity::after {
6
+ .popularity::before,
7
+ .popularity::after{
7
8
  display: table;
8
- content: ' '
9
+ content: ' ';
9
10
  }
10
11
 
11
- .popularity::after {
12
- clear: both
12
+ .popularity::after{
13
+ clear: both;
13
14
  }
14
15
 
15
- .popularity.extra__popularity {
16
+ .popularity.extra__popularity{
16
17
  margin-top: 1.5rem;
17
- margin-bottom: 1.5rem
18
+ margin-bottom: 1.5rem;
18
19
  }
19
20
 
20
- .popularity__desc {
21
+ .popularity__desc{
21
22
  color: #8c838a;
22
23
  text-transform: uppercase;
23
24
  font-size: 90%;
24
25
  padding-top: .3rem;
25
26
  display: block;
26
- clear: both
27
+ clear: both;
27
28
  }
28
29
 
29
- .popularity__item {
30
+ .popularity__item{
30
31
  float: left;
31
32
  width: 18.4%;
32
33
  height: 4px;
33
34
  background-color: lightgrey;
34
- margin-left: 2%
35
+ margin-left: 2%;
35
36
  }
36
37
 
37
- .popularity__item:first-of-type {
38
- margin-left: 0
38
+ .popularity__item:first-of-type{
39
+ margin-left: 0;
39
40
  }
40
41
 
41
- .popularity--level1 .popularity__item:first-of-type, .popularity--level2 .popularity__item:first-of-type, .popularity--level3 .popularity__item:first-of-type, .popularity--level4 .popularity__item:first-of-type, .popularity--level5 .popularity__item:first-of-type, .popularity--level6 .popularity__item:first-of-type {
42
- background: #53c9c8
42
+ .popularity--level1 .popularity__item:first-of-type,
43
+ .popularity--level2 .popularity__item:first-of-type,
44
+ .popularity--level3 .popularity__item:first-of-type,
45
+ .popularity--level4 .popularity__item:first-of-type,
46
+ .popularity--level5 .popularity__item:first-of-type,
47
+ .popularity--level6 .popularity__item:first-of-type{
48
+ background: #53c9c8;
43
49
  }
44
50
 
45
- .popularity--level2 .popularity__item:nth-of-type(2), .popularity--level3 .popularity__item:nth-of-type(2), .popularity--level4 .popularity__item:nth-of-type(2), .popularity--level5 .popularity__item:nth-of-type(2), .popularity--level6 .popularity__item:nth-of-type(2) {
51
+ .popularity--level2 .popularity__item:nth-of-type(2),
52
+ .popularity--level3 .popularity__item:nth-of-type(2),
53
+ .popularity--level4 .popularity__item:nth-of-type(2),
54
+ .popularity--level5 .popularity__item:nth-of-type(2),
55
+ .popularity--level6 .popularity__item:nth-of-type(2){
46
56
  background: -webkit-linear-gradient(left, #53c9c8, #f9bc48);
47
- background: linear-gradient(to right, #53c9c8, #f9bc48)
57
+ background: linear-gradient(to right, #53c9c8, #f9bc48);
48
58
  }
49
59
 
50
- .popularity--level3 .popularity__item:nth-of-type(3), .popularity--level4 .popularity__item:nth-of-type(3), .popularity--level5 .popularity__item:nth-of-type(3), .popularity--level6 .popularity__item:nth-of-type(3) {
51
- background: #f9bc48
60
+ .popularity--level3 .popularity__item:nth-of-type(3),
61
+ .popularity--level4 .popularity__item:nth-of-type(3),
62
+ .popularity--level5 .popularity__item:nth-of-type(3),
63
+ .popularity--level6 .popularity__item:nth-of-type(3){
64
+ background: #f9bc48;
52
65
  }
53
66
 
54
- .popularity--level4 .popularity__item:nth-of-type(4), .popularity--level5 .popularity__item:nth-of-type(4), .popularity--level6 .popularity__item:nth-of-type(4) {
67
+ .popularity--level4 .popularity__item:nth-of-type(4),
68
+ .popularity--level5 .popularity__item:nth-of-type(4),
69
+ .popularity--level6 .popularity__item:nth-of-type(4){
55
70
  background: -webkit-linear-gradient(left, #f9bc48 50%, #f85a39);
56
- background: linear-gradient(to right, #f9bc48 50%, #f85a39)
71
+ background: linear-gradient(to right, #f9bc48 50%, #f85a39);
57
72
  }
58
73
 
59
- .popularity--level5 .popularity__item:nth-of-type(5), .popularity--level6 .popularity__item:nth-of-type(5) {
60
- background: #f85a39
74
+ .popularity--level5 .popularity__item:nth-of-type(5),
75
+ .popularity--level6 .popularity__item:nth-of-type(5){
76
+ background: #f85a39;
61
77
  }
@@ -1,14 +1,14 @@
1
- @media all {
2
- .initiative-letterhead {
1
+ @media all{
2
+ .initiative-letterhead{
3
3
  font-size: 14pt;
4
4
  font-weight: bold;
5
5
 
6
- img {
6
+ img{
7
7
  margin-right: 5pt;
8
8
  }
9
9
  }
10
10
 
11
- .initiative-print-title {
11
+ .initiative-print-title{
12
12
  border: 1pt solid black;
13
13
  margin: 15pt 0;
14
14
  font-size: 12pt;
@@ -17,12 +17,12 @@
17
17
  text-align: center;
18
18
  }
19
19
 
20
- .print-table {
20
+ .print-table{
21
21
  width: 100%;
22
22
  display: block;
23
23
  border: 1pt solid black;
24
24
 
25
- .print-table-header {
25
+ .print-table-header{
26
26
  background-color: lightgray;
27
27
  display: inline-block;
28
28
  width: 100%;
@@ -33,93 +33,93 @@
33
33
  border-bottom: 1pt solid black;
34
34
  }
35
35
 
36
- .print-table-row {
36
+ .print-table-row{
37
37
  width: 100%;
38
38
  display: inline-block;
39
39
  min-height: 33pt;
40
40
  border-bottom: 1pt solid black;
41
41
  }
42
42
 
43
- .print-table-row:after {
43
+ .print-table-row::after{
44
44
  content: '';
45
45
  display: inline-block;
46
46
  clear: both;
47
47
  }
48
48
 
49
- .print-table-row:last-child {
49
+ .print-table-row:last-child{
50
50
  border-bottom: 0;
51
51
  }
52
52
 
53
- .print-table-cell {
53
+ .print-table-cell{
54
54
  padding-left: 5pt;
55
55
  display: inline-block;
56
56
  float: left;
57
57
  border-right: 1pt solid black;
58
58
  min-height: 36pt;
59
59
 
60
- .cell-content {
60
+ .cell-content{
61
61
  font-size: 10pt;
62
62
  word-wrap: break-word;
63
63
  }
64
64
  }
65
65
 
66
- .checkbox-cell {
66
+ .checkbox-cell{
67
67
  width: 36pt;
68
68
  }
69
69
 
70
- .print-table-cell:last-child {
70
+ .print-table-cell:last-child{
71
71
  border-right: 0;
72
72
  }
73
73
 
74
- .w33 {
74
+ .w33{
75
75
  width: 33%;
76
76
  }
77
77
 
78
- .w66 {
78
+ .w66{
79
79
  width: 66%;
80
80
  }
81
81
 
82
- .w50 {
82
+ .w50{
83
83
  width: 50%;
84
84
  }
85
85
  }
86
86
 
87
- .no-border {
87
+ .no-border{
88
88
  border: none !important;
89
89
  }
90
90
 
91
- .print-section-title {
91
+ .print-section-title{
92
92
  font-size: 12pt;
93
93
  font-weight: bold;
94
94
  margin-top: 15pt;
95
95
  text-transform: uppercase;
96
96
  }
97
97
 
98
- .print-initiative-legal-text {
98
+ .print-initiative-legal-text{
99
99
  font-size: 10pt;
100
100
  margin-top: 80pt;
101
101
  }
102
102
  }
103
103
 
104
- @page {
104
+ @page{
105
105
  size: A4;
106
106
  margin: 17mm 17mm 11mm 11mm;
107
107
  }
108
108
 
109
- @media print {
110
- .title-bar {
109
+ @media print{
110
+ .title-bar{
111
111
  display: none;
112
112
  }
113
113
 
114
- .layout-nav {
114
+ .layout-nav{
115
115
  display: none;
116
116
  }
117
117
 
118
- .button.expanded {
118
+ .button.expanded{
119
119
  display: none;
120
120
  }
121
121
 
122
- .page-break {
122
+ .page-break{
123
123
  page-break-before: auto;
124
124
  }
125
- }
125
+ }