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
@@ -6,6 +6,7 @@ $margin-l: 5rem;
6
6
  //Sections
7
7
  .section{
8
8
  margin-bottom: $margin-sm;
9
+
9
10
  @include breakpoint(large){
10
11
  margin-bottom: $margin-m;
11
12
  }
@@ -18,7 +18,7 @@ $message-padding: 1rem;
18
18
  margin-bottom: 0;
19
19
  }
20
20
 
21
- p {
21
+ p{
22
22
  overflow-wrap: break-word;
23
23
  }
24
24
  }
@@ -29,6 +29,7 @@ $message-padding: 1rem;
29
29
  @extend .message;
30
30
 
31
31
  padding: $message-padding;
32
+
32
33
  .button{
33
34
  margin-bottom: 0;
34
35
  }
@@ -36,6 +36,8 @@
36
36
  @import "list-docs";
37
37
  @import "datepicker";
38
38
  @import "pagination";
39
+ @import "data-picker";
40
+ @import "progress-bar";
39
41
 
40
42
  //Process elements
41
43
  @import "process-header";
@@ -57,3 +59,4 @@
57
59
  @import "help";
58
60
  @import "cookie-bar";
59
61
  @import "map";
62
+ @import "omnipresent_banner";
@@ -1,8 +1,8 @@
1
1
  /* Variables */
2
2
 
3
3
  $navbar-bg: $dark-gray;
4
- $navbar-bg-hover: rgba(white,.02);
5
- $navbar-color: rgba(white,.5);
4
+ $navbar-bg-hover: rgba(white, .02);
5
+ $navbar-color: rgba(white, .5);
6
6
  $navbar-color-hover: $white;
7
7
  $navbar-active-color: $white;
8
8
  $navbar-active-bg: $navbar-bg-hover;
@@ -19,6 +19,7 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
19
19
 
20
20
  .title-bar{
21
21
  position: relative;
22
+
22
23
  @include breakpoint(smallmedium down){
23
24
  border-top: 2.125rem solid $dark-gray;
24
25
  }
@@ -31,6 +32,7 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
31
32
  top: 0;
32
33
  margin-top: -1.95rem;
33
34
  text-align: right;
35
+
34
36
  img{
35
37
  width: auto;
36
38
  height: 22px !important;
@@ -39,13 +41,13 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
39
41
  @include breakpoint(medium){
40
42
  top: 50%;
41
43
  margin-top: -19px;
44
+
42
45
  img{
43
46
  height: 38px !important;
44
47
  }
45
48
  }
46
49
  }
47
50
 
48
-
49
51
  /* Top bar */
50
52
  .topbar{
51
53
  display: flex;
@@ -57,12 +59,15 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
57
59
  display: inline-block;
58
60
  line-height: 0;
59
61
  flex-grow: 1;
62
+
60
63
  a{
61
64
  display: inline-block;
62
65
  }
66
+
63
67
  img{
64
68
  display: block;
65
69
  max-height: 33px;
70
+
66
71
  @include breakpoint(mediumlarge){
67
72
  max-height: 45px;
68
73
  }
@@ -75,13 +80,16 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
75
80
  vertical-align: middle;
76
81
  padding-top: 0;
77
82
  margin-left: 2rem;
83
+
78
84
  .dropdown > li > a{
79
85
  padding-left: 0;
80
86
  }
87
+
81
88
  .dropdown{
82
89
  display: inline-block;
83
90
  vertical-align: middle;
84
91
  }
92
+
85
93
  .is-dropdown-submenu{
86
94
  z-index: 2;
87
95
  text-align: left;
@@ -90,10 +98,12 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
90
98
  border: 1px solid $light-gray;
91
99
  box-shadow: 0 3px 5px rgba(0, 0, 0, .3);
92
100
  min-width: 150px;
101
+
93
102
  a{
94
103
  color: $body-font-color;
95
104
  padding: .5rem;
96
105
  }
106
+
97
107
  a:hover{
98
108
  color: lighten($body-font-color, 20);
99
109
  }
@@ -103,14 +113,13 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
103
113
  //Foundation overwrites
104
114
  .topbar__dropmenu > ul > li > a{
105
115
  color: $medium-gray;
106
- &:after{
116
+
117
+ &::after{
107
118
  margin-top: -1px !important;
108
119
  border-top-color: $medium-gray !important;
109
120
  }
110
121
  }
111
122
 
112
-
113
-
114
123
  .language-choose{
115
124
  @include breakpoint(smallmedium down){
116
125
  font-size: .8rem;
@@ -118,6 +127,7 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
118
127
  top: -2.2rem;
119
128
  left: .5rem;
120
129
  margin-left: 0;
130
+
121
131
  .dropdown.menu > li.is-dropdown-submenu-parent > a::after{
122
132
  border-width: 3px;
123
133
  right: 10px;
@@ -126,11 +136,11 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
126
136
  }
127
137
  }
128
138
 
129
-
130
139
  .topbar__user{
131
140
  display: inline-block;
132
141
  padding-right: 2.5rem;
133
142
  margin-left: 2rem;
143
+
134
144
  @media (min-width: (1300 / 16) + em){
135
145
  padding-right: 0;
136
146
  }
@@ -140,23 +150,26 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
140
150
  text-align: right;
141
151
  padding-right: 2.5rem;
142
152
  display: none;
153
+
143
154
  @include breakpoint(medium){
144
155
  display: block;
145
156
  }
157
+
146
158
  @media (min-width: (1300 / 16) + em){
147
159
  padding-right: 0;
148
160
  }
149
161
  }
150
162
 
151
-
152
163
  .topbar__notifications,
153
164
  .topbar__conversations{
154
165
  margin-right: .5rem;
155
166
  vertical-align: -4px;
167
+
156
168
  .icon{
157
169
  fill: $white;
158
170
  opacity: .3;
159
171
  }
172
+
160
173
  &.is-active .icon{
161
174
  fill: $warning;
162
175
  opacity: 1;
@@ -166,14 +179,17 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
166
179
  .topbar__user__login{
167
180
  text-align: right;
168
181
  line-height: 1.2;
182
+
169
183
  a{
170
184
  color: $medium-gray;
171
185
  font-weight: 600;
186
+
172
187
  &:hover{
173
188
  color: $anchor-color;
174
189
  }
175
190
  }
176
- a:first-of-type:after{
191
+
192
+ a:first-of-type::after{
177
193
  content: "";
178
194
  margin-left: .5rem;
179
195
  margin-right: .5rem;
@@ -185,13 +201,13 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
185
201
  }
186
202
  }
187
203
 
188
-
189
204
  /* Menu icon and off-canvas */
190
205
  .topbar__menu{
191
206
  text-align: right;
192
207
  font-size: 20px;
193
208
  margin-right: .1rem;
194
- button {
209
+
210
+ button{
195
211
  color: inherit;
196
212
  }
197
213
  }
@@ -199,6 +215,7 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
199
215
  .usermenu-off-canvas-holder .usermenu-off-canvas{
200
216
  border-top: 1px solid;
201
217
  border-bottom: 1px solid;
218
+
202
219
  &.is-dropdown-submenu{
203
220
  display: block;
204
221
  position: static;
@@ -206,10 +223,12 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
206
223
  border-left: 0;
207
224
  border-right: 0;
208
225
  }
226
+
209
227
  a{
210
228
  display: block;
211
229
  padding: 1em 2em;
212
230
  color: $navbar-color;
231
+
213
232
  &:hover{
214
233
  background: $navbar-bg-hover;
215
234
  color: $navbar-color-hover;
@@ -217,7 +236,6 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
217
236
  }
218
237
  }
219
238
 
220
-
221
239
  .off-canvas .topbar__user__login{
222
240
  text-align: center;
223
241
  margin-top: 1rem;
@@ -227,7 +245,6 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
227
245
  border-bottom: 1px solid;
228
246
  }
229
247
 
230
-
231
248
  /* Main nav */
232
249
  .main-nav ul{
233
250
  padding: 0;
@@ -235,11 +252,12 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
235
252
  list-style: none;
236
253
  overflow-x: auto;
237
254
 
238
- @include breakpoint(medium) {
255
+ @include breakpoint(medium){
239
256
  -webkit-overflow-scrolling: touch;
240
257
  white-space: nowrap;
241
258
  display: flex;
242
- >li{
259
+
260
+ > li{
243
261
  display: inline-block;
244
262
  flex: 1;
245
263
  text-align: center;
@@ -251,6 +269,7 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
251
269
  display: block;
252
270
  padding: 1em 2em;
253
271
  color: $navbar-color;
272
+
254
273
  &:hover{
255
274
  background: $navbar-bg-hover;
256
275
  color: $navbar-color-hover;
@@ -265,7 +284,8 @@ $navbar-active-shadow-medium: inset 0 4px 0 0 $primary;
265
284
  box-shadow: $navbar-active-shadow-small;
266
285
  color: $navbar-active-color;
267
286
  background: $navbar-active-bg;
268
- @include breakpoint(medium) {
287
+
288
+ @include breakpoint(medium){
269
289
  box-shadow: $navbar-active-shadow-medium;
270
290
  }
271
291
  }
@@ -0,0 +1,26 @@
1
+ .omnipresent-banner{
2
+ background-color: $primary;
3
+ color: $white;
4
+ text-align: center;
5
+ padding: 1rem;
6
+ font-size: 1.2em;
7
+
8
+ .omnipresent-banner-title{
9
+ font-weight: bold;
10
+ margin-right: 1em;
11
+ }
12
+
13
+ .omnipresent-banner-short-description{
14
+ margin-right: .5em;
15
+ margin-left: 1em;
16
+ }
17
+
18
+ a{
19
+ color: $white;
20
+ }
21
+
22
+ a:hover,
23
+ a:focus{
24
+ color: rgba($white, .8);
25
+ }
26
+ }
@@ -15,11 +15,13 @@
15
15
  .opinion-toggle--ok{
16
16
  border-top-right-radius: 0;
17
17
  border-bottom-right-radius: 0;
18
+
18
19
  &:hover,
19
20
  &:focus,
20
21
  &.is-active{
21
22
  background-color: $success;
22
23
  }
24
+
23
25
  .icon{
24
26
  vertical-align: middle;
25
27
  }
@@ -28,11 +30,13 @@
28
30
  .opinion-toggle--ko{
29
31
  border-top-left-radius: 0;
30
32
  border-bottom-left-radius: 0;
33
+
31
34
  &:hover,
32
35
  &:focus,
33
36
  &.is-active{
34
37
  background-color: $alert;
35
38
  }
39
+
36
40
  .icon{
37
41
  vertical-align: middle;
38
42
  }
@@ -42,6 +46,7 @@
42
46
  border-radius: 0;
43
47
  padding-left: .5em;
44
48
  padding-right: .5em;
49
+
45
50
  &:hover,
46
51
  &:focus,
47
52
  &.is-active{
@@ -1,7 +1,7 @@
1
1
  //Variables
2
2
  $order-border: $border;
3
3
 
4
- /*Order by styles*/
4
+ /* Order by styles */
5
5
  .order-by{
6
6
  margin-bottom: 1rem;
7
7
  display: flex;
@@ -12,6 +12,7 @@ $order-border: $border;
12
12
  .order-by__dropdown{
13
13
  display: flex;
14
14
  flex-wrap: wrap;
15
+
15
16
  .menu{
16
17
  .is-dropdown-submenu-parent > a{
17
18
  padding: 0;
@@ -22,30 +23,26 @@ $order-border: $border;
22
23
  }
23
24
 
24
25
  .order-by__dropdown--right{
25
- margin-left: auto;
26
+ margin-left: auto;
26
27
  }
27
28
 
28
29
  .order-by__action{
29
30
  margin-left: auto;
30
31
  justify-content: flex-end;
32
+
31
33
  .button{
32
34
  margin-bottom: 0;
33
35
  }
34
36
  }
35
37
 
36
- /*.order-by__text{
37
- @include breakpoint(medium down){
38
- font-size: 18px;
39
- }
40
- }*/
41
-
42
38
  .order-by__tabs{
43
39
  display: inline-block;
44
40
  }
45
41
 
46
42
  .order-by__tab{
47
43
  color: $muted;
48
- &:after{
44
+
45
+ &::after{
49
46
  content: "";
50
47
  display: inline-block;
51
48
  height: .75em;
@@ -53,13 +50,16 @@ $order-border: $border;
53
50
  margin: 0 .2em 0 .5em;
54
51
  vertical-align: middle;
55
52
  }
53
+
56
54
  &.is-active{
57
55
  color: $anchor-color;
58
56
  }
57
+
59
58
  &:first-of-type{
60
59
  padding-left: 0;
61
60
  }
62
- &:last-of-type:after{
61
+
62
+ &:last-of-type::after{
63
63
  border-left: none;
64
64
  }
65
65
  }
@@ -1,5 +1,6 @@
1
- .pagination {
2
- .pagination-previous, .pagination-next {
1
+ .pagination{
2
+ .pagination-previous,
3
+ .pagination-next{
3
4
  display: inline-block;
4
5
  }
5
6
  }
@@ -1,8 +1,10 @@
1
1
  .process-header{
2
2
  margin-bottom: $margin-sm;
3
+
3
4
  @include breakpoint(medium){
4
5
  margin-bottom: $margin-m;
5
6
  }
7
+
6
8
  .heading2{
7
9
  font-weight: bold;
8
10
  }
@@ -14,7 +16,8 @@
14
16
  z-index: 0;
15
17
  display: flex;
16
18
  flex-direction: column;
17
- &:after{
19
+
20
+ &::after{
18
21
  content: "";
19
22
  display: block;
20
23
  position: absolute;
@@ -30,6 +33,7 @@
30
33
  position: relative;
31
34
  z-index: 1;
32
35
  padding: 0 0 0 1rem;
36
+
33
37
  @include breakpoint(mediumlarge){
34
38
  display: flex;
35
39
  align-items: center;
@@ -38,9 +42,11 @@
38
42
 
39
43
  .process-header__info{
40
44
  padding: 1rem 1.5rem 1rem 1rem;
45
+
41
46
  @include breakpoint(medium){
42
47
  padding: 2rem 1.5rem 2rem 1rem;
43
48
  }
49
+
44
50
  @include breakpoint(mediumlarge){
45
51
  padding-left: 2rem;
46
52
  }
@@ -52,11 +58,13 @@
52
58
  text-align: center;
53
59
  padding: 2rem 1rem;
54
60
  margin-left: -1rem;
61
+
55
62
  .button{
56
63
  margin-top: 1rem;
57
64
  margin-bottom: 0;
58
65
  color: $white;
59
66
  border-color: $white;
67
+
60
68
  &:hover,
61
69
  &.is-active{
62
70
  color: $primary;
@@ -67,6 +75,7 @@
67
75
 
68
76
  .process-header__phase--simple{
69
77
  padding: .5rem 1rem;
78
+
70
79
  @include breakpoint (medium){
71
80
  padding: 2rem 1rem;
72
81
  }
@@ -74,6 +83,7 @@
74
83
 
75
84
  .process-header__hashtag{
76
85
  font-weight: 600;
86
+
77
87
  &::after{
78
88
  content: "·";
79
89
  margin-left: .5rem;
@@ -81,7 +91,6 @@
81
91
  }
82
92
  }
83
93
 
84
-
85
94
  .process-header__nav{
86
95
  margin-top: auto;
87
96
  z-index: 1;