decidim-core 0.8.4 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (249) hide show
  1. checksums.yaml +5 -5
  2. data/README.md +1 -1
  3. data/app/assets/images/decidim/decidim-logo.svg +23 -23
  4. data/app/assets/images/decidim/default-avatar.svg +7 -7
  5. data/app/assets/images/decidim/icons.svg +1 -0
  6. data/app/assets/javascripts/decidim.js.es6 +5 -2
  7. data/app/assets/javascripts/decidim/append_redirect_url_to_modals.js.es6 +84 -0
  8. data/app/assets/javascripts/decidim/data_picker.js.es6 +177 -0
  9. data/app/assets/javascripts/decidim/form_filter.component.js.es6 +25 -20
  10. data/app/assets/javascripts/decidim/form_filter.component.test.js +24 -13
  11. data/app/assets/javascripts/decidim/history.js.es6 +3 -3
  12. data/app/assets/stylesheets/decidim/_decidim.scss +1 -4
  13. data/app/assets/stylesheets/decidim/_variables.scss +4 -4
  14. data/app/assets/stylesheets/decidim/editor.scss +13 -0
  15. data/app/assets/stylesheets/decidim/email.css +9 -1
  16. data/app/assets/stylesheets/decidim/extras/_add_comments.scss +3 -3
  17. data/app/assets/stylesheets/decidim/extras/_announcement.scss +1 -1
  18. data/app/assets/stylesheets/decidim/extras/_collection-sort-controls.scss +2 -2
  19. data/app/assets/stylesheets/decidim/extras/_embed.scss +6 -5
  20. data/app/assets/stylesheets/decidim/extras/_impersonation-bar.scss +4 -0
  21. data/app/assets/stylesheets/decidim/extras/_label-required.scss +1 -1
  22. data/app/assets/stylesheets/decidim/extras/_leaflet.scss +6 -4
  23. data/app/assets/stylesheets/decidim/extras/_meeting-registrations.scss +4 -4
  24. data/app/assets/stylesheets/decidim/extras/_process_stats.scss +11 -4
  25. data/app/assets/stylesheets/decidim/extras/_proposal_form.scss +3 -3
  26. data/app/assets/stylesheets/decidim/extras/_quill.scss +1 -1
  27. data/app/assets/stylesheets/decidim/extras/_reference.scss +3 -3
  28. data/app/assets/stylesheets/decidim/extras/_register_form.scss +3 -3
  29. data/app/assets/stylesheets/decidim/extras/_results-per-page.scss +10 -10
  30. data/app/assets/stylesheets/decidim/extras/_social_icons_mini.scss +4 -3
  31. data/app/assets/stylesheets/decidim/layouts/_highlighted_banner.scss +38 -0
  32. data/app/assets/stylesheets/decidim/layouts/_home.scss +33 -3
  33. data/app/assets/stylesheets/decidim/layouts/_user.scss +33 -5
  34. data/app/assets/stylesheets/decidim/layouts/_view.scss +1 -2
  35. data/app/assets/stylesheets/decidim/map.css +5 -3
  36. data/app/assets/stylesheets/decidim/modules/_address.scss +1 -0
  37. data/app/assets/stylesheets/decidim/modules/_author-avatar.scss +24 -9
  38. data/app/assets/stylesheets/decidim/modules/_buttons.scss +24 -10
  39. data/app/assets/stylesheets/decidim/modules/_callout.scss +5 -1
  40. data/app/assets/stylesheets/decidim/modules/_card-grid.scss +1 -1
  41. data/app/assets/stylesheets/decidim/modules/_cards.scss +102 -31
  42. data/app/assets/stylesheets/decidim/modules/_comments.scss +21 -20
  43. data/app/assets/stylesheets/decidim/modules/_cookie-bar.scss +4 -0
  44. data/app/assets/stylesheets/decidim/modules/_data-picker.scss +159 -0
  45. data/app/assets/stylesheets/decidim/modules/_datepicker.scss +36 -36
  46. data/app/assets/stylesheets/decidim/modules/_definition-data.scss +12 -9
  47. data/app/assets/stylesheets/decidim/modules/_extra.scss +4 -1
  48. data/app/assets/stylesheets/decidim/modules/_filter-tags.scss +3 -0
  49. data/app/assets/stylesheets/decidim/modules/_filters.scss +9 -5
  50. data/app/assets/stylesheets/decidim/modules/_flag.scss +1 -0
  51. data/app/assets/stylesheets/decidim/modules/_footer.scss +10 -0
  52. data/app/assets/stylesheets/decidim/modules/_forms.scss +2 -1
  53. data/app/assets/stylesheets/decidim/modules/_help.scss +2 -0
  54. data/app/assets/stylesheets/decidim/modules/_icons.scss +1 -0
  55. data/app/assets/stylesheets/decidim/modules/_layout.scss +4 -0
  56. data/app/assets/stylesheets/decidim/modules/_list-docs.scss +3 -0
  57. data/app/assets/stylesheets/decidim/modules/_main-container.scss +13 -7
  58. data/app/assets/stylesheets/decidim/modules/_map.scss +13 -1
  59. data/app/assets/stylesheets/decidim/modules/_margins.scss +1 -0
  60. data/app/assets/stylesheets/decidim/modules/_messages.scss +2 -1
  61. data/app/assets/stylesheets/decidim/modules/_modules.scss +3 -0
  62. data/app/assets/stylesheets/decidim/modules/_navbar.scss +36 -16
  63. data/app/assets/stylesheets/decidim/modules/_omnipresent_banner.scss +26 -0
  64. data/app/assets/stylesheets/decidim/modules/_opinion-toggle.scss +5 -0
  65. data/app/assets/stylesheets/decidim/modules/_order-by.scss +10 -10
  66. data/app/assets/stylesheets/decidim/modules/_pagination.scss +3 -2
  67. data/app/assets/stylesheets/decidim/modules/_process-header.scss +11 -2
  68. data/app/assets/stylesheets/decidim/modules/_process-info.scss +9 -1
  69. data/app/assets/stylesheets/decidim/modules/_process-nav.scss +20 -3
  70. data/app/assets/stylesheets/decidim/modules/_process-phase.scss +12 -3
  71. data/app/assets/stylesheets/decidim/modules/_progress-bar.scss +69 -0
  72. data/app/assets/stylesheets/decidim/modules/_reference.scss +1 -2
  73. data/app/assets/stylesheets/decidim/modules/_reveal.scss +1 -1
  74. data/app/assets/stylesheets/decidim/modules/_share.scss +2 -0
  75. data/app/assets/stylesheets/decidim/modules/_signup.scss +5 -1
  76. data/app/assets/stylesheets/decidim/modules/_static-pages.scss +6 -0
  77. data/app/assets/stylesheets/decidim/modules/_status-labels.scss +2 -0
  78. data/app/assets/stylesheets/decidim/modules/_tags.scss +3 -1
  79. data/app/assets/stylesheets/decidim/modules/_timeline.scss +41 -30
  80. data/app/assets/stylesheets/decidim/modules/_title-action.scss +2 -1
  81. data/app/assets/stylesheets/decidim/modules/_typography.scss +13 -4
  82. data/app/assets/stylesheets/decidim/modules/_user-form.scss +1 -0
  83. data/app/assets/stylesheets/decidim/modules/_video.scss +2 -2
  84. data/app/assets/stylesheets/decidim/utils/_fontface.scss +22 -20
  85. data/app/assets/stylesheets/decidim/utils/_helpers.scss +6 -6
  86. data/app/assets/stylesheets/decidim/utils/_keyframes.scss +6 -6
  87. data/app/assets/stylesheets/decidim/utils/_mixins.scss +24 -7
  88. data/app/assets/stylesheets/decidim/utils/_settings.scss +50 -52
  89. data/app/assets/stylesheets/decidim/utils/_toggle-expand.scss +1 -0
  90. data/app/commands/decidim/create_omniauth_registration.rb +3 -0
  91. data/app/commands/decidim/create_registration.rb +3 -1
  92. data/app/commands/decidim/destroy_account.rb +1 -0
  93. data/app/commands/decidim/invite_user_again.rb +1 -1
  94. data/app/commands/decidim/messaging/reply_to_conversation.rb +1 -3
  95. data/app/commands/decidim/unsubscribe_settings.rb +29 -0
  96. data/app/commands/decidim/update_account.rb +16 -3
  97. data/app/controllers/concerns/decidim/action_authorization.rb +1 -1
  98. data/app/controllers/concerns/decidim/devise_controllers.rb +10 -0
  99. data/app/controllers/concerns/decidim/form_factory.rb +2 -1
  100. data/app/controllers/concerns/decidim/impersonate_users.rb +13 -8
  101. data/app/controllers/concerns/decidim/participatory_space_context.rb +1 -1
  102. data/app/controllers/decidim/application_controller.rb +16 -0
  103. data/app/controllers/decidim/cookie_policy_controller.rb +2 -0
  104. data/app/controllers/decidim/devise/invitations_controller.rb +9 -1
  105. data/app/controllers/decidim/devise/omniauth_registrations_controller.rb +10 -1
  106. data/app/controllers/decidim/devise/sessions_controller.rb +9 -1
  107. data/app/controllers/decidim/locales_controller.rb +2 -3
  108. data/app/controllers/decidim/messaging/conversations_controller.rb +2 -2
  109. data/app/controllers/decidim/newsletters_controller.rb +60 -0
  110. data/app/controllers/decidim/pages_controller.rb +1 -0
  111. data/app/controllers/decidim/profiles_controller.rb +23 -0
  112. data/app/controllers/decidim/scopes_controller.rb +19 -20
  113. data/app/events/decidim/profile_updated_event.rb +27 -0
  114. data/app/forms/decidim/account_form.rb +34 -0
  115. data/app/forms/decidim/form.rb +1 -0
  116. data/app/forms/decidim/messaging/conversation_form.rb +5 -2
  117. data/app/forms/decidim/omniauth_registration_form.rb +5 -0
  118. data/app/forms/decidim/registration_form.rb +8 -1
  119. data/app/helpers/decidim/action_authorization_helper.rb +2 -2
  120. data/app/helpers/decidim/application_helper.rb +8 -0
  121. data/app/helpers/decidim/feature_path_helper.rb +12 -2
  122. data/app/helpers/decidim/feature_reference_helper.rb +1 -1
  123. data/app/helpers/decidim/messaging/conversation_helper.rb +27 -9
  124. data/app/helpers/decidim/newsletters_helper.rb +49 -0
  125. data/app/helpers/decidim/scopes_helper.rb +43 -2
  126. data/app/helpers/decidim/translations_helper.rb +6 -2
  127. data/app/mailers/decidim/decidim_devise_mailer.rb +1 -3
  128. data/app/mailers/decidim/messaging/conversation_mailer.rb +1 -1
  129. data/app/mailers/decidim/newsletter_mailer.rb +7 -8
  130. data/app/models/decidim/abilities/everyone_ability.rb +1 -0
  131. data/app/models/decidim/authorization.rb +19 -5
  132. data/app/models/decidim/impersonation_log.rb +2 -1
  133. data/app/models/decidim/messaging/conversation.rb +2 -0
  134. data/app/models/decidim/messaging/message.rb +4 -0
  135. data/app/models/decidim/organization.rb +1 -0
  136. data/app/models/decidim/scope.rb +10 -2
  137. data/app/models/decidim/user.rb +10 -2
  138. data/app/presenters/decidim/home_stats_presenter.rb +10 -4
  139. data/app/presenters/decidim/user_group_presenter.rb +28 -0
  140. data/app/presenters/decidim/user_presenter.rb +42 -0
  141. data/app/services/decidim/action_authorizer.rb +32 -68
  142. data/app/services/decidim/notification_generator_for_recipient.rb +8 -3
  143. data/app/uploaders/decidim/avatar_uploader.rb +2 -2
  144. data/app/views/decidim/account/delete.html.erb +1 -1
  145. data/app/views/decidim/account/show.html.erb +4 -1
  146. data/app/views/decidim/devise/invitations/edit.html.erb +2 -0
  147. data/app/views/decidim/devise/omniauth_registrations/new.html.erb +7 -1
  148. data/app/views/decidim/devise/registrations/new.html.erb +7 -1
  149. data/app/views/decidim/messaging/conversations/_message.html.erb +6 -12
  150. data/app/views/decidim/messaging/conversations/_reply.html.erb +1 -1
  151. data/app/views/decidim/messaging/conversations/index.html.erb +1 -1
  152. data/app/views/decidim/messaging/conversations/update.js.erb +1 -0
  153. data/app/views/decidim/newsletter_mailer/newsletter.html.erb +11 -0
  154. data/app/views/decidim/newsletters/show.html.erb +11 -0
  155. data/app/views/decidim/newsletters/unsubscribe.html.erb +4 -0
  156. data/app/views/decidim/notifications/_notification.html.erb +1 -1
  157. data/app/views/decidim/profiles/show.html.erb +64 -0
  158. data/app/views/decidim/scopes/_scopes_picker_input.html.erb +6 -0
  159. data/app/views/decidim/scopes/picker.html.erb +36 -0
  160. data/app/views/decidim/shared/_action_authorization_modal.html.erb +25 -51
  161. data/app/views/decidim/shared/_author.html.erb +21 -0
  162. data/app/views/decidim/shared/_author_reference.html.erb +12 -0
  163. data/app/views/layouts/decidim/_application.html.erb +1 -0
  164. data/app/views/layouts/decidim/_impersonation_warning.html.erb +1 -1
  165. data/app/views/layouts/decidim/_mailer_logo.html.erb +6 -1
  166. data/app/views/layouts/decidim/_omnipresent_banner.html.erb +14 -0
  167. data/app/views/layouts/decidim/_user_menu.html.erb +3 -0
  168. data/app/views/layouts/decidim/mailer.html.erb +16 -4
  169. data/app/views/layouts/decidim/widget.html.erb +14 -9
  170. data/app/views/pages/home.html.erb +2 -0
  171. data/app/views/pages/home/_highlighted_content_banner.html.erb +26 -0
  172. data/config/initializers/devise.rb +1 -3
  173. data/config/locales/ca.yml +67 -9
  174. data/config/locales/en.yml +65 -4
  175. data/config/locales/es.yml +74 -14
  176. data/config/locales/eu.yml +66 -4
  177. data/config/locales/fi.yml +87 -25
  178. data/config/locales/fr.yml +71 -9
  179. data/config/locales/gl.yml +493 -0
  180. data/config/locales/it.yml +79 -17
  181. data/config/locales/nl.yml +71 -9
  182. data/config/locales/pl.yml +66 -4
  183. data/config/locales/pt-BR.yml +493 -0
  184. data/config/locales/pt.yml +99 -37
  185. data/config/locales/ru.yml +85 -13
  186. data/config/locales/sv.yml +493 -0
  187. data/config/locales/uk.yml +78 -16
  188. data/config/routes.rb +11 -1
  189. data/db/migrate/20171212103803_create_unique_nicknames.rb +29 -0
  190. data/db/migrate/20180115090038_extend_user_profile.rb +8 -0
  191. data/db/migrate/20180123125308_add_enable_omnipresent_banner_to_decidim_organizations.rb +7 -0
  192. data/db/migrate/20180123125409_add_omnipresent_banner_title_to_decidim_organizations.rb +7 -0
  193. data/db/migrate/20180123125432_add_omnipresent_banner_short_description_to_decidim_organizations.rb +7 -0
  194. data/db/migrate/20180123125452_add_omnipresent_banner_url_to_decidim_organizations.rb +7 -0
  195. data/db/migrate/20180125063433_add_highlighted_content_banner_to_decidim_organizations.rb +13 -0
  196. data/db/seeds.rb +8 -2
  197. data/lib/decidim/abilities/participatory_process_role_ability.rb +1 -3
  198. data/lib/decidim/content_parsers.rb +8 -0
  199. data/lib/decidim/content_parsers/base_parser.rb +58 -0
  200. data/lib/decidim/content_parsers/user_parser.rb +46 -0
  201. data/lib/decidim/content_processor.rb +84 -0
  202. data/lib/decidim/content_renderers.rb +8 -0
  203. data/lib/decidim/content_renderers/base_renderer.rb +37 -0
  204. data/lib/decidim/content_renderers/user_renderer.rb +32 -0
  205. data/lib/decidim/core.rb +66 -1
  206. data/lib/decidim/core/api/author_interface.rb +3 -3
  207. data/lib/decidim/core/api/user_group_type.rb +10 -8
  208. data/lib/decidim/core/api/user_type.rb +13 -7
  209. data/lib/decidim/core/engine.rb +7 -5
  210. data/lib/decidim/core/test.rb +1 -1
  211. data/lib/decidim/core/test/factories.rb +21 -45
  212. data/lib/decidim/core/test/shared_examples/announcements_examples.rb +3 -2
  213. data/lib/decidim/core/test/shared_examples/comments_examples.rb +5 -2
  214. data/lib/decidim/core/test/shared_examples/scope_helper_examples.rb +40 -3
  215. data/lib/decidim/core/test/shared_examples/simple_event.rb +73 -0
  216. data/lib/decidim/core/version.rb +1 -1
  217. data/lib/decidim/events.rb +2 -0
  218. data/lib/decidim/events/author_event.rb +41 -0
  219. data/lib/decidim/events/base_event.rb +28 -3
  220. data/lib/decidim/events/email_event.rb +1 -1
  221. data/lib/decidim/events/notification_event.rb +1 -1
  222. data/lib/decidim/events/simple_event.rb +79 -0
  223. data/lib/decidim/filter_form_builder.rb +2 -3
  224. data/lib/decidim/form_builder.rb +39 -27
  225. data/lib/decidim/friendly_dates.rb +26 -0
  226. data/lib/decidim/has_feature.rb +1 -0
  227. data/lib/decidim/has_reference.rb +1 -1
  228. data/lib/decidim/i18n_exceptions.rb +1 -3
  229. data/lib/decidim/menu.rb +1 -1
  230. data/lib/decidim/newsletter_encryptor.rb +22 -0
  231. data/lib/decidim/nicknamizable.rb +56 -0
  232. data/lib/decidim/participable.rb +8 -0
  233. data/lib/decidim/participatory_space_manifest.rb +10 -1
  234. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.gl.js +13 -0
  235. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.pt-br.js +14 -0
  236. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.pt.js +5 -1
  237. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.ru.js +4 -1
  238. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.sv.js +14 -0
  239. data/vendor/assets/javascripts/datepicker-locales/foundation-datepicker.uk.js +4 -1
  240. data/vendor/assets/javascripts/form_datepicker.js.es6 +4 -2
  241. data/vendor/assets/javascripts/foundation-datepicker.js +42 -26
  242. metadata +124 -84
  243. data/app/assets/javascripts/decidim/select2.field.js.es6 +0 -47
  244. data/app/assets/javascripts/decidim/select2.js.es6 +0 -11
  245. data/app/assets/stylesheets/decidim/editor.sass +0 -4
  246. data/app/assets/stylesheets/decidim/plugins/_select2.scss +0 -63
  247. data/app/helpers/decidim/datetime_helper.rb +0 -23
  248. data/app/queries/decidim/freetext_scopes.rb +0 -39
  249. data/lib/decidim/core/test/shared_examples/manage_moderations_examples.rb +0 -64
@@ -1,5 +1,4 @@
1
1
  .title-action{
2
- margin-bottom: 1rem;
3
2
  display: flex;
4
3
  flex-wrap: wrap;
5
4
  align-items: center;
@@ -11,6 +10,7 @@
11
10
  margin-right: 1rem;
12
11
  vertical-align: middle;
13
12
  margin-bottom: 0;
13
+
14
14
  &.section-heading{
15
15
  margin-bottom: 0;
16
16
  }
@@ -20,6 +20,7 @@
20
20
  display: inline-block;
21
21
  vertical-align: middle;
22
22
  margin-bottom: 0;
23
+
23
24
  .icon{
24
25
  width: 11px;
25
26
  height: 11px;
@@ -1,15 +1,15 @@
1
1
  /* Variables */
2
2
 
3
-
4
3
  /* Typography - Foundation overrides */
5
4
  button,
6
5
  input{
7
6
  font-family: inherit;
8
7
  }
9
8
 
10
- @mixin heading($heading) {
9
+ @mixin heading($heading){
11
10
  line-height: 1.2;
12
11
  font-size: map-get(map-get(map-get($header-styles, small), $heading), 'font-size') / 16 + em;
12
+
13
13
  @include breakpoint(medium){
14
14
  font-size: map-get(map-get(map-get($header-styles, medium), $heading), 'font-size') / 16 + em;
15
15
  }
@@ -17,7 +17,9 @@ input{
17
17
 
18
18
  .heading1{
19
19
  font-weight: 600;
20
+
20
21
  @include heading(h1);
22
+
21
23
  line-height: 1.1;
22
24
  }
23
25
 
@@ -41,6 +43,7 @@ input{
41
43
  text-transform: uppercase;
42
44
  letter-spacing: .03em;
43
45
  font-weight: 600;
46
+
44
47
  @include heading(h6);
45
48
  }
46
49
 
@@ -61,7 +64,8 @@ hr{
61
64
  text-transform: uppercase;
62
65
  font-size: 1.125em;
63
66
  letter-spacing: .05em;
64
- &:before{
67
+
68
+ &::before{
65
69
  content: "";
66
70
  display: inline-block;
67
71
  width: 4px;
@@ -79,11 +83,13 @@ hr{
79
83
  letter-spacing: .01em;
80
84
  font-weight: 600;
81
85
  margin-bottom: 0;
86
+
82
87
  &__strong{
83
88
  color: $body-font-color;
84
89
  font-size: 1.2rem;
85
90
  font-weight: 800;
86
91
  }
92
+
87
93
  &__strong--highlight{
88
94
  font-size: 1.4rem;
89
95
  }
@@ -96,12 +102,15 @@ hr{
96
102
  .text-highlight{
97
103
  margin-bottom: 0;
98
104
  color: $white;
99
- text-shadow: 0 0 10px rgba(black, .8);
105
+ text-shadow: 0 0 10px rgba(black, .8);
106
+
100
107
  &.heading1{
101
108
  font-weight: 800;
102
109
  }
110
+
103
111
  > a{
104
112
  color: inherit;
113
+
105
114
  &:hover{
106
115
  color: $primary;
107
116
  }
@@ -4,6 +4,7 @@
4
4
  input[type="password"]{
5
5
  height: 3rem;
6
6
  }
7
+
7
8
  .button{
8
9
  margin: 2rem 0;
9
10
  }
@@ -1,4 +1,4 @@
1
- .embed-container {
1
+ .embed-container{
2
2
  position: relative;
3
3
  padding-bottom: 56.25%;
4
4
  height: 0;
@@ -8,7 +8,7 @@
8
8
 
9
9
  .embed-container iframe,
10
10
  .embed-container object,
11
- .embed-container embed {
11
+ .embed-container embed{
12
12
  position: absolute;
13
13
  top: 0;
14
14
  left: 0;
@@ -1,27 +1,29 @@
1
- @font-face {
2
- font-family: 'Source Sans Pro';
3
- font-style: normal;
4
- font-weight: 400;
5
- src:
1
+ @font-face{
2
+ font-family: 'Source Sans Pro';
3
+ font-style: normal;
4
+ font-weight: 400;
5
+ src:
6
6
  asset-data-url('decidim/Source_Sans_Pro_400.woff2') format('woff2'),
7
7
  font-url('decidim/Source_Sans_Pro_400.woff') format('woff'),
8
- font-url('decidim/Source_Sans_Pro_400.ttf') format('truetype');
8
+ font-url('decidim/Source_Sans_Pro_400.ttf') format('truetype');
9
9
  }
10
- @font-face {
11
- font-family: 'Source Sans Pro';
12
- font-style: normal;
13
- font-weight: 600;
14
- src:
10
+
11
+ @font-face{
12
+ font-family: 'Source Sans Pro';
13
+ font-style: normal;
14
+ font-weight: 600;
15
+ src:
15
16
  asset-data-url('decidim/Source_Sans_Pro_600.woff2') format('woff2'),
16
- font-url('decidim/Source_Sans_Pro_600.woff') format('woff'),
17
- font-url('decidim/Source_Sans_Pro_600.ttf') format('truetype');
17
+ font-url('decidim/Source_Sans_Pro_600.woff') format('woff'),
18
+ font-url('decidim/Source_Sans_Pro_600.ttf') format('truetype');
18
19
  }
19
- @font-face {
20
- font-family: 'Source Sans Pro';
21
- font-style: normal;
22
- font-weight: 900;
23
- src:
20
+
21
+ @font-face{
22
+ font-family: 'Source Sans Pro';
23
+ font-style: normal;
24
+ font-weight: 900;
25
+ src:
24
26
  asset-data-url('decidim/Source_Sans_Pro_900.woff2') format('woff2'),
25
- font-url('decidim/Source_Sans_Pro_900.woff') format('woff'),
26
- font-url('decidim/Source_Sans_Pro_900.ttf') format('truetype');
27
+ font-url('decidim/Source_Sans_Pro_900.woff') format('woff'),
28
+ font-url('decidim/Source_Sans_Pro_900.ttf') format('truetype');
27
29
  }
@@ -1,24 +1,24 @@
1
1
  // Helpers
2
2
 
3
- .list-reset {
3
+ .list-reset{
4
4
  margin: 0;
5
5
  padding: 0;
6
6
  list-style: none;
7
7
  }
8
8
 
9
- .list-inline {
10
- > li {
9
+ .list-inline{
10
+ > li{
11
11
  display: inline-block;
12
12
  vertical-align: top;
13
13
  }
14
14
 
15
- > dt {
15
+ > dt{
16
16
  clear: both;
17
- margin-right: 0.3em;
17
+ margin-right: .3em;
18
18
  }
19
19
 
20
20
  > dt,
21
- > dd {
21
+ > dd{
22
22
  float: left;
23
23
  margin-bottom: 0;
24
24
  }
@@ -1,21 +1,21 @@
1
1
  // Keyframes
2
2
 
3
- @keyframes fadeIn {
4
- 0% {
3
+ @keyframes fadeIn{
4
+ 0%{
5
5
  opacity: 0;
6
6
  }
7
7
 
8
- 100% {
8
+ 100%{
9
9
  opacity: 1;
10
10
  }
11
11
  }
12
12
 
13
- @keyframes fadeOut {
14
- 0% {
13
+ @keyframes fadeOut{
14
+ 0%{
15
15
  opacity: 1;
16
16
  }
17
17
 
18
- 100% {
18
+ 100%{
19
19
  opacity: 0;
20
20
  }
21
21
  }
@@ -2,15 +2,15 @@
2
2
 
3
3
  // Media queries, based on: http://alwaystwisted.com/post.php?s=2013-04-01-my-media-query-mixin
4
4
 
5
- @mixin mq($point, $query1: min, $query2: width) {
6
- @media (#{$query1}-#{$query2}: $point) {
5
+ @mixin mq($point, $query1: min, $query2: width){
6
+ @media (#{$query1}-#{$query2}: $point){
7
7
  @content;
8
8
  }
9
9
  }
10
10
 
11
11
  // Centered elements
12
12
 
13
- @mixin centered {
13
+ @mixin centered{
14
14
  position: absolute;
15
15
  top: 50%;
16
16
  left: 50%;
@@ -19,7 +19,7 @@
19
19
 
20
20
  // Drop Overlays
21
21
 
22
- @mixin drop-overlay {
22
+ @mixin drop-overlay{
23
23
  content: "";
24
24
  position: absolute;
25
25
  z-index: $z2;
@@ -27,15 +27,32 @@
27
27
  left: 0;
28
28
  bottom: 0;
29
29
  right: 0;
30
- background: rgba(#27353B, 0.6);
30
+ background: rgba(#27353b, .6);
31
31
  }
32
32
 
33
33
  /// Slightly lighten a color
34
- @function tint($color, $percentage) {
34
+ @function tint($color, $percentage){
35
35
  @return mix(white, $color, $percentage);
36
36
  }
37
37
 
38
38
  /// Slightly darken a color
39
- @function shade($color, $percentage) {
39
+ @function shade($color, $percentage){
40
40
  @return mix(black, $color, $percentage);
41
41
  }
42
+
43
+ // Status modifier mixin
44
+ $palette: $foundation-palette;
45
+
46
+ @mixin modifiers($vars, $colors: $palette){
47
+ $map: map-merge($palette, $colors);
48
+
49
+ @each $key, $value in $map{
50
+ &.#{$key}{
51
+ @content;
52
+
53
+ @each $property in $vars{
54
+ #{$property}: map-get($map, $key);
55
+ }
56
+ }
57
+ }
58
+ }
@@ -82,7 +82,7 @@ $black: #1a181d;
82
82
  $white: #fff;
83
83
  $light-gray-dark: darken($light-gray, 2.5) !default;
84
84
  $body-background: $light-gray;
85
- $body-font-color: #3D393C;
85
+ $body-font-color: #3d393c;
86
86
  $muted: lighten($body-font-color, 30) !default;
87
87
  $body-font-family: 'Source Sans Pro', Helvetica, Roboto, Arial, sans-serif;
88
88
  $body-antialiased: true;
@@ -92,7 +92,7 @@ $global-position: 1rem;
92
92
  $global-weight-normal: normal;
93
93
  $global-weight-bold: 600;
94
94
  $global-radius: 4px;
95
- $global-menu-padding: 0.7rem 1rem;
95
+ $global-menu-padding: .7rem 1rem;
96
96
  $global-menu-nested-margin: 1rem;
97
97
  $global-text-direction: ltr;
98
98
  $global-flexbox: false;
@@ -142,7 +142,7 @@ $header-font-style: normal;
142
142
  $font-family-monospace: Consolas, 'Liberation Mono', Courier, monospace;
143
143
  $header-color: inherit;
144
144
  $header-lineheight: 1.4;
145
- $header-margin-bottom: 0.5rem;
145
+ $header-margin-bottom: .5rem;
146
146
  $header-styles: (
147
147
  small: (
148
148
  'h1': ('font-size': 40),
@@ -188,7 +188,7 @@ $list-side-margin: 1.25rem;
188
188
  $list-nested-side-margin: 1.25rem;
189
189
  $defnlist-margin-bottom: 1rem;
190
190
  $defnlist-term-weight: $global-weight-bold;
191
- $defnlist-term-margin-bottom: 0.3rem;
191
+ $defnlist-term-margin-bottom: .3rem;
192
192
  $blockquote-color: $dark-gray;
193
193
  $blockquote-padding: rem-calc(9 20 0 19);
194
194
  $blockquote-border: 1px solid $medium-gray;
@@ -210,8 +210,8 @@ $lead-lineheight: 1.45;
210
210
  $subheader-lineheight: 1.4;
211
211
  $subheader-color: $dark-gray;
212
212
  $subheader-font-weight: $global-weight-normal;
213
- $subheader-margin-top: 0.2rem;
214
- $subheader-margin-bottom: 0.5rem;
213
+ $subheader-margin-top: .2rem;
214
+ $subheader-margin-bottom: .5rem;
215
215
  $stat-font-size: 2.5rem;
216
216
 
217
217
  // 6. Abide
@@ -262,9 +262,9 @@ $badge-background: $primary-color;
262
262
  $badge-color: $white;
263
263
  $badge-color-alt: $black;
264
264
  $badge-palette: $foundation-palette;
265
- $badge-padding: 0.3em;
265
+ $badge-padding: .3em;
266
266
  $badge-minwidth: 1.5em;
267
- $badge-font-size: 0.6rem;
267
+ $badge-font-size: .6rem;
268
268
 
269
269
  // 10. Breadcrumbs
270
270
  // ---------------
@@ -274,18 +274,16 @@ $breadcrumbs-item-font-size: rem-calc(11);
274
274
  $breadcrumbs-item-color: $primary-color;
275
275
  $breadcrumbs-item-color-current: $black;
276
276
  $breadcrumbs-item-color-disabled: $medium-gray;
277
- $breadcrumbs-item-margin: 0.75rem;
277
+ $breadcrumbs-item-margin: .75rem;
278
278
  $breadcrumbs-item-uppercase: true;
279
279
  $breadcrumbs-item-separator: true;
280
- $breadcrumbs-item-separator-item: '/';
281
- $breadcrumbs-item-separator-item-rtl: '\\';
282
280
  $breadcrumbs-item-separator-color: $medium-gray;
283
281
 
284
282
  // 11. Button
285
283
  // ----------
286
284
 
287
285
  $button-font-family: inherit;
288
- $button-padding: 0.85em 1em;
286
+ $button-padding: .85em 1em;
289
287
  $button-margin: 0 0 $global-margin 0;
290
288
  $button-fill: solid;
291
289
  $button-background: $primary-color;
@@ -295,16 +293,16 @@ $button-color-alt: $black;
295
293
  $button-radius: $global-radius;
296
294
  $button-hollow-border-width: 1px;
297
295
  $button-sizes: (
298
- tiny: 0.9rem,
299
- small: 0.9rem,
296
+ tiny: .9rem,
297
+ small: .9rem,
300
298
  default: 1rem,
301
299
  large: 1.25rem,
302
300
  );
303
301
  $button-palette: $foundation-palette;
304
- $button-opacity-disabled: 0.25;
302
+ $button-opacity-disabled: .25;
305
303
  $button-background-hover-lightness: -20%;
306
304
  $button-hollow-hover-lightness: -50%;
307
- $button-transition: background-color 0.25s ease-out, color 0.25s ease-out;
305
+ $button-transition: background-color .25s ease-out, color .25s ease-out;
308
306
 
309
307
  // 12. Button Group
310
308
  // ----------------
@@ -345,12 +343,12 @@ $card-margin-bottom: $global-margin;
345
343
 
346
344
  $closebutton-position: right top;
347
345
  $closebutton-offset-horizontal: (
348
- small: 0.66rem,
346
+ small: .66rem,
349
347
  medium: 1rem,
350
348
  );
351
349
  $closebutton-offset-vertical: (
352
- small: 0.33em,
353
- medium: 0.5rem,
350
+ small: .33em,
351
+ medium: .5rem,
354
352
  );
355
353
  $closebutton-size: (
356
354
  small: 1.5em,
@@ -363,7 +361,7 @@ $closebutton-color-hover: map-get($foundation-palette, primary);
363
361
  // 16. Drilldown
364
362
  // -------------
365
363
 
366
- $drilldown-transition: transform 0.15s linear;
364
+ $drilldown-transition: transform .15s linear;
367
365
  $drilldown-arrows: true;
368
366
  $drilldown-padding: $global-menu-padding;
369
367
  $drilldown-nested-margin: 0;
@@ -445,10 +443,10 @@ $input-background-disabled: $light-gray;
445
443
  $input-border: 1px solid $medium-gray;
446
444
  $input-border-focus: 1px solid $dark-gray;
447
445
  $input-padding: $form-spacing / 2;
448
- $input-shadow: inset 0 1px 2px rgba($black, 0.1);
446
+ $input-shadow: inset 0 1px 2px rgba($black, .1);
449
447
  $input-shadow-focus: 0 0 5px $medium-gray;
450
448
  $input-cursor-disabled: not-allowed;
451
- $input-transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
449
+ $input-transition: box-shadow .5s, border-color .25s ease-in-out;
452
450
  $input-number-spinners: true;
453
451
  $input-radius: $global-radius;
454
452
  $form-button-radius: $global-radius;
@@ -460,8 +458,8 @@ $label-background: $primary-color;
460
458
  $label-color: $white;
461
459
  $label-color-alt: $black;
462
460
  $label-palette: $foundation-palette;
463
- $label-font-size: 0.8rem;
464
- $label-padding: 0.33333rem 0.5rem;
461
+ $label-font-size: .8rem;
462
+ $label-padding: .33333rem .5rem;
465
463
  $label-radius: $global-radius;
466
464
 
467
465
  // 22. Media Object
@@ -476,11 +474,11 @@ $mediaobject-image-width-stacked: 100%;
476
474
 
477
475
  $menu-margin: 0;
478
476
  $menu-nested-margin: 1rem;
479
- $menu-items-padding: 0.7rem 1rem;
477
+ $menu-items-padding: .7rem 1rem;
480
478
  $menu-simple-margin: 1rem;
481
479
  $menu-item-color-active: $white;
482
480
  $menu-item-background-active: map-get($foundation-palette, primary);
483
- $menu-icon-spacing: 0.25rem;
481
+ $menu-icon-spacing: .25rem;
484
482
  $menu-item-background-hover: $light-gray;
485
483
  $menu-state-back-compat: true;
486
484
  $menu-centered-back-compat: true;
@@ -501,17 +499,17 @@ $meter-fill-bad: $alert-color;
501
499
 
502
500
  $offcanvas-size: 250px;
503
501
  $offcanvas-background: $light-gray;
504
- $offcanvas-shadow: 0 0 10px rgba($black, 0.7);
502
+ $offcanvas-shadow: 0 0 10px rgba($black, .7);
505
503
  $offcanvas-inner-shadow-size: 20px;
506
- $offcanvas-inner-shadow-color: rgba($black, 0.25);
504
+ $offcanvas-inner-shadow-color: rgba($black, .25);
507
505
  $offcanvas-overlay-zindex: 11;
508
506
  $offcanvas-push-zindex: 12;
509
507
  $offcanvas-overlap-zindex: 13;
510
508
  $offcanvas-reveal-zindex: 12;
511
- $offcanvas-transition-length: 0.5s;
509
+ $offcanvas-transition-length: .5s;
512
510
  $offcanvas-transition-timing: ease;
513
511
  $offcanvas-fixed-reveal: true;
514
- $offcanvas-exit-background: rgba($white, 0.25);
512
+ $offcanvas-exit-background: rgba($white, .25);
515
513
  $maincontent-class: 'off-canvas-content';
516
514
 
517
515
  // 26. Orbit
@@ -520,12 +518,12 @@ $maincontent-class: 'off-canvas-content';
520
518
  $orbit-bullet-background: $medium-gray;
521
519
  $orbit-bullet-background-active: $dark-gray;
522
520
  $orbit-bullet-diameter: 1.2rem;
523
- $orbit-bullet-margin: 0.1rem;
524
- $orbit-bullet-margin-top: 0.8rem;
525
- $orbit-bullet-margin-bottom: 0.8rem;
526
- $orbit-caption-background: rgba($black, 0.5);
521
+ $orbit-bullet-margin: .1rem;
522
+ $orbit-bullet-margin-top: .8rem;
523
+ $orbit-bullet-margin-bottom: .8rem;
524
+ $orbit-caption-background: rgba($black, .5);
527
525
  $orbit-caption-padding: 1rem;
528
- $orbit-control-background-hover: rgba($black, 0.5);
526
+ $orbit-control-background-hover: rgba($black, .5);
529
527
  $orbit-control-padding: 1rem;
530
528
  $orbit-control-zindex: 10;
531
529
 
@@ -565,7 +563,7 @@ $prototype-arrow-directions: (
565
563
  right,
566
564
  left
567
565
  );
568
- $prototype-arrow-size: 0.4375rem;
566
+ $prototype-arrow-size: .4375rem;
569
567
  $prototype-arrow-color: $black;
570
568
 
571
569
  // 30. Prototype Border-Box
@@ -667,8 +665,8 @@ $prototype-separator-margin-top: $global-margin;
667
665
  // --------------------
668
666
 
669
667
  $prototype-shadow-breakpoints: $global-prototype-breakpoints;
670
- $prototype-box-shadow: 0 2px 5px 0 rgba(0,0,0,.16),
671
- 0 2px 10px 0 rgba(0,0,0,.12);
668
+ $prototype-box-shadow: 0 2px 5px 0 rgba(0, 0, 0, .16),
669
+ 0 2px 10px 0 rgba(0, 0, 0, .12);
672
670
 
673
671
  // 41. Prototype Sizing
674
672
  // --------------------
@@ -736,20 +734,20 @@ $reveal-padding: $global-padding;
736
734
  $reveal-border: 1px solid $medium-gray;
737
735
  $reveal-radius: $global-radius;
738
736
  $reveal-zindex: 1005;
739
- $reveal-overlay-background: rgba($black, 0.45);
737
+ $reveal-overlay-background: rgba($black, .45);
740
738
 
741
739
  // 48. Slider
742
740
  // ----------
743
741
 
744
- $slider-width-vertical: 0.5rem;
745
- $slider-transition: all 0.2s ease-in-out;
746
- $slider-height: 0.5rem;
742
+ $slider-width-vertical: .5rem;
743
+ $slider-transition: all .2s ease-in-out;
744
+ $slider-height: .5rem;
747
745
  $slider-background: $light-gray;
748
746
  $slider-fill-background: $medium-gray;
749
747
  $slider-handle-height: 1.4rem;
750
748
  $slider-handle-width: 1.4rem;
751
749
  $slider-handle-background: $primary-color;
752
- $slider-opacity-disabled: 0.25;
750
+ $slider-opacity-disabled: .25;
753
751
  $slider-radius: $global-radius;
754
752
 
755
753
  // 30. Switch
@@ -764,9 +762,9 @@ $switch-height-large: 2.5rem;
764
762
  $switch-radius: $global-radius;
765
763
  $switch-margin: $global-margin;
766
764
  $switch-paddle-background: $white;
767
- $switch-paddle-offset: 0.25rem;
765
+ $switch-paddle-offset: .25rem;
768
766
  $switch-paddle-radius: $global-radius;
769
- $switch-paddle-transition: all 0.25s ease-out;
767
+ $switch-paddle-transition: all .25s ease-out;
770
768
 
771
769
  // 50. Table
772
770
  // ---------
@@ -813,7 +811,7 @@ $tab-content-padding: 0;
813
811
  $thumbnail-border: solid 4px $white;
814
812
  $thumbnail-margin-bottom: $global-margin;
815
813
  $thumbnail-shadow: 0 0 0 1px $medium-gray;
816
- $thumbnail-shadow-hover: 0 0 0px 1px $primary-color;
814
+ $thumbnail-shadow-hover: 0 0 0 1px $primary-color;
817
815
  $thumbnail-transition: box-shadow 200ms ease-out;
818
816
  $thumbnail-radius: $global-radius;
819
817
 
@@ -822,11 +820,11 @@ $thumbnail-radius: $global-radius;
822
820
 
823
821
  $titlebar-background: $black;
824
822
  $titlebar-color: $white;
825
- $titlebar-padding: 1rem 0.5rem;
823
+ $titlebar-padding: 1rem .5rem;
826
824
  $titlebar-text-font-weight: bold;
827
825
  $titlebar-icon-color: $white;
828
826
  $titlebar-icon-color-hover: $medium-gray;
829
- $titlebar-icon-spacing: 0.25rem;
827
+ $titlebar-icon-spacing: .25rem;
830
828
 
831
829
  // 54. Tooltip
832
830
  // -----------
@@ -836,17 +834,17 @@ $has-tip-font-weight: $global-weight-bold;
836
834
  $has-tip-border-bottom: dotted 1px $dark-gray;
837
835
  $tooltip-background-color: $black;
838
836
  $tooltip-color: $white;
839
- $tooltip-padding: 0.75rem;
837
+ $tooltip-padding: .75rem;
840
838
  $tooltip-max-width: 10rem;
841
839
  $tooltip-font-size: $small-font-size;
842
- $tooltip-pip-width: 0.75rem;
843
- $tooltip-pip-height: $tooltip-pip-width * 0.866;
840
+ $tooltip-pip-width: .75rem;
841
+ $tooltip-pip-height: $tooltip-pip-width * .866;
844
842
  $tooltip-radius: $global-radius;
845
843
 
846
844
  // 55. Top Bar
847
845
  // -----------
848
846
 
849
- $topbar-padding: 0.5rem;
847
+ $topbar-padding: .5rem;
850
848
  $topbar-background: $black;
851
849
  $topbar-submenu-background: $topbar-background;
852
850
  $topbar-title-spacing: 1rem;