decidim 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of decidim might be problematic. Click here for more details.

Files changed (308) hide show
  1. checksums.yaml +4 -4
  2. data/.babelrc +2 -1
  3. data/.ruby-version +1 -1
  4. data/.travis.yml +4 -6
  5. data/Dockerfile +2 -2
  6. data/Gemfile +1 -1
  7. data/Gemfile.lock +48 -48
  8. data/README.md +6 -1
  9. data/decidim-admin/app/assets/stylesheets/decidim/admin/_decidim.scss +9 -0
  10. data/decidim-admin/app/assets/stylesheets/decidim/admin/_variables.scss +7 -0
  11. data/decidim-admin/app/assets/stylesheets/decidim/admin/application.scss +2 -19
  12. data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_categories.scss +5 -0
  13. data/decidim-admin/app/assets/stylesheets/decidim/admin/{_email_preview.scss → extra/_email_preview.scss} +0 -0
  14. data/decidim-admin/app/assets/stylesheets/decidim/admin/{_login.scss → extra/_login.scss} +0 -0
  15. data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_select_multiple.scss +3 -0
  16. data/decidim-admin/app/assets/stylesheets/decidim/admin/extra/_title_bar.scss +5 -0
  17. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_action-icon.scss +13 -0
  18. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_buttons.scss +44 -0
  19. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_callouts.scss +32 -0
  20. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_cards.scss +36 -0
  21. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_char-counter.scss +20 -0
  22. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_component-counter.scss +17 -0
  23. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_forms.scss +80 -0
  24. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_icons.scss +65 -0
  25. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_layout.scss +67 -0
  26. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_main-nav.scss +41 -0
  27. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_modules.scss +24 -0
  28. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_process-header.scss +11 -0
  29. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_secondary-nav.scss +95 -0
  30. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_table-list.scss +78 -0
  31. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_tabs.scss +49 -0
  32. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_title-bar.scss +32 -0
  33. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_typography.scss +15 -0
  34. data/decidim-admin/app/assets/stylesheets/decidim/admin/modules/_user-login.scss +23 -0
  35. data/decidim-admin/app/assets/stylesheets/decidim/admin/utils/_fontface.scss +27 -0
  36. data/decidim-admin/app/assets/stylesheets/decidim/admin/utils/_helpers.scss +25 -0
  37. data/decidim-admin/app/assets/stylesheets/decidim/admin/utils/_keyframes.scss +21 -0
  38. data/decidim-admin/app/assets/stylesheets/decidim/admin/utils/_mixins.scss +20 -0
  39. data/decidim-admin/app/assets/stylesheets/decidim/admin/utils/_settings.scss +590 -0
  40. data/decidim-admin/app/assets/stylesheets/decidim/admin/utils/_toggle-expand.scss +8 -0
  41. data/decidim-admin/app/commands/decidim/admin/create_attachment.rb +13 -4
  42. data/decidim-admin/app/commands/decidim/admin/update_participatory_process.rb +3 -3
  43. data/decidim-admin/app/commands/decidim/admin/update_participatory_process_admin.rb +40 -0
  44. data/decidim-admin/app/controllers/decidim/admin/application_controller.rb +7 -1
  45. data/decidim-admin/app/controllers/decidim/admin/newsletters_controller.rb +1 -1
  46. data/decidim-admin/app/controllers/decidim/admin/organization_controller.rb +2 -0
  47. data/decidim-admin/app/controllers/decidim/admin/participatory_process_user_roles_controller.rb +29 -0
  48. data/decidim-admin/app/controllers/decidim/admin/participatory_processes_controller.rb +2 -2
  49. data/decidim-admin/app/controllers/decidim/admin/scopes_controller.rb +2 -0
  50. data/decidim-admin/app/controllers/decidim/admin/static_pages_controller.rb +2 -0
  51. data/decidim-admin/app/controllers/decidim/admin/user_groups_controller.rb +3 -1
  52. data/decidim-admin/app/controllers/decidim/admin/users_controller.rb +1 -1
  53. data/decidim-admin/app/helpers/decidim/admin/application_helper.rb +8 -0
  54. data/decidim-admin/app/helpers/decidim/admin/icon_link_helper.rb +30 -0
  55. data/decidim-admin/app/jobs/decidim/admin/newsletter_job.rb +1 -1
  56. data/decidim-admin/app/queries/decidim/admin/process_admin_roles_for_process.rb +1 -1
  57. data/decidim-admin/app/views/decidim/admin/attachments/_form.html.erb +29 -8
  58. data/decidim-admin/app/views/decidim/admin/attachments/edit.html.erb +3 -5
  59. data/decidim-admin/app/views/decidim/admin/attachments/index.html.erb +45 -35
  60. data/decidim-admin/app/views/decidim/admin/attachments/new.html.erb +3 -5
  61. data/decidim-admin/app/views/decidim/admin/categories/_form.html.erb +18 -10
  62. data/decidim-admin/app/views/decidim/admin/categories/edit.html.erb +3 -5
  63. data/decidim-admin/app/views/decidim/admin/categories/index.html.erb +57 -42
  64. data/decidim-admin/app/views/decidim/admin/categories/new.html.erb +3 -5
  65. data/decidim-admin/app/views/decidim/admin/dashboard/show.html.erb +6 -3
  66. data/decidim-admin/app/views/decidim/admin/features/_feature.html.erb +11 -11
  67. data/decidim-admin/app/views/decidim/admin/features/_form.html.erb +56 -48
  68. data/decidim-admin/app/views/decidim/admin/features/edit.html.erb +3 -5
  69. data/decidim-admin/app/views/decidim/admin/features/index.html.erb +21 -19
  70. data/decidim-admin/app/views/decidim/admin/features/new.html.erb +3 -4
  71. data/decidim-admin/app/views/decidim/admin/moderations/index.html.erb +71 -61
  72. data/decidim-admin/app/views/decidim/admin/newsletters/_form.html.erb +7 -1
  73. data/decidim-admin/app/views/decidim/admin/newsletters/edit.html.erb +10 -8
  74. data/decidim-admin/app/views/decidim/admin/newsletters/index.html.erb +50 -43
  75. data/decidim-admin/app/views/decidim/admin/newsletters/new.html.erb +10 -8
  76. data/decidim-admin/app/views/decidim/admin/newsletters/show.html.erb +20 -12
  77. data/decidim-admin/app/views/decidim/admin/organization/_form.html.erb +98 -62
  78. data/decidim-admin/app/views/decidim/admin/organization/edit.html.erb +11 -8
  79. data/decidim-admin/app/views/decidim/admin/participatory_process_groups/_form.html.erb +4 -4
  80. data/decidim-admin/app/views/decidim/admin/participatory_process_groups/edit.html.erb +15 -9
  81. data/decidim-admin/app/views/decidim/admin/participatory_process_groups/index.html.erb +37 -35
  82. data/decidim-admin/app/views/decidim/admin/participatory_process_groups/new.html.erb +10 -8
  83. data/decidim-admin/app/views/decidim/admin/participatory_process_steps/_form.html.erb +21 -11
  84. data/decidim-admin/app/views/decidim/admin/participatory_process_steps/edit.html.erb +3 -4
  85. data/decidim-admin/app/views/decidim/admin/participatory_process_steps/index.html.erb +60 -51
  86. data/decidim-admin/app/views/decidim/admin/participatory_process_steps/new.html.erb +4 -5
  87. data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/_form.html.erb +23 -0
  88. data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/edit.html.erb +7 -0
  89. data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/index.html.erb +46 -34
  90. data/decidim-admin/app/views/decidim/admin/participatory_process_user_roles/new.html.erb +7 -0
  91. data/decidim-admin/app/views/decidim/admin/participatory_processes/_form.html.erb +103 -72
  92. data/decidim-admin/app/views/decidim/admin/participatory_processes/edit.html.erb +15 -17
  93. data/decidim-admin/app/views/decidim/admin/participatory_processes/index.html.erb +52 -43
  94. data/decidim-admin/app/views/decidim/admin/participatory_processes/new.html.erb +6 -5
  95. data/decidim-admin/app/views/decidim/admin/scopes/edit.html.erb +9 -7
  96. data/decidim-admin/app/views/decidim/admin/scopes/index.html.erb +37 -36
  97. data/decidim-admin/app/views/decidim/admin/scopes/new.html.erb +9 -6
  98. data/decidim-admin/app/views/decidim/admin/static_pages/_form.html.erb +3 -3
  99. data/decidim-admin/app/views/decidim/admin/static_pages/edit.html.erb +10 -8
  100. data/decidim-admin/app/views/decidim/admin/static_pages/index.html.erb +38 -37
  101. data/decidim-admin/app/views/decidim/admin/static_pages/new.html.erb +10 -8
  102. data/decidim-admin/app/views/decidim/admin/user_groups/index.html.erb +37 -31
  103. data/decidim-admin/app/views/decidim/admin/users/_form.html.erb +5 -4
  104. data/decidim-admin/app/views/decidim/admin/users/index.html.erb +57 -52
  105. data/decidim-admin/app/views/decidim/admin/users/new.html.erb +10 -7
  106. data/decidim-admin/app/views/layouts/decidim/admin/_application.html.erb +23 -36
  107. data/decidim-admin/app/views/layouts/decidim/admin/_callouts_full.html.erb +10 -0
  108. data/decidim-admin/app/views/layouts/decidim/admin/_language_chooser.html.erb +9 -9
  109. data/decidim-admin/app/views/layouts/decidim/admin/_main_nav.html.erb +11 -0
  110. data/decidim-admin/app/views/layouts/decidim/admin/_template_bottom.html.erb +2 -0
  111. data/decidim-admin/app/views/layouts/decidim/admin/_template_top.html.erb +3 -0
  112. data/decidim-admin/app/views/layouts/decidim/admin/_title_bar.html.erb +20 -0
  113. data/decidim-admin/app/views/layouts/decidim/admin/newsletters.erb +14 -0
  114. data/decidim-admin/app/views/layouts/decidim/admin/pages.html.erb +14 -0
  115. data/decidim-admin/app/views/layouts/decidim/admin/participatory_process.html.erb +55 -53
  116. data/decidim-admin/app/views/layouts/decidim/admin/participatory_process_groups.html.erb +14 -0
  117. data/decidim-admin/app/views/layouts/decidim/admin/participatory_processes.html.erb +14 -0
  118. data/decidim-admin/app/views/layouts/decidim/admin/settings.html.erb +19 -0
  119. data/decidim-admin/app/views/layouts/decidim/admin/users.html.erb +21 -0
  120. data/decidim-admin/config/i18n-tasks.yml +1 -0
  121. data/decidim-admin/config/locales/ca.yml +77 -22
  122. data/decidim-admin/config/locales/en.yml +75 -20
  123. data/decidim-admin/config/locales/es.yml +77 -22
  124. data/decidim-admin/config/locales/eu.yml +191 -16
  125. data/decidim-admin/config/locales/fi.yml +0 -29
  126. data/decidim-admin/config/routes.rb +1 -1
  127. data/decidim-admin/lib/decidim/admin/test/manage_attachments_examples.rb +11 -11
  128. data/decidim-admin/spec/commands/deliver_newsletter_spec.rb +4 -1
  129. data/decidim-admin/spec/commands/update_participatory_process_spec.rb +117 -0
  130. data/decidim-admin/spec/features/admin_invite_spec.rb +5 -1
  131. data/decidim-admin/spec/features/admin_manages_feature_permissions_spec.rb +1 -1
  132. data/decidim-admin/spec/features/admin_manages_features_spec.rb +10 -10
  133. data/decidim-admin/spec/features/admin_manages_newsletters_spec.rb +11 -9
  134. data/decidim-admin/spec/features/admin_manages_organization_admins_spec.rb +8 -5
  135. data/decidim-admin/spec/features/admin_manages_organization_scopes_spec.rb +7 -6
  136. data/decidim-admin/spec/features/admin_manages_organization_spec.rb +14 -0
  137. data/decidim-admin/spec/features/admin_manages_participatory_process_groups_spec.rb +6 -6
  138. data/decidim-admin/spec/features/admin_manages_participatory_processes_spec.rb +27 -5
  139. data/decidim-admin/spec/features/admin_manages_user_groups_spec.rb +1 -1
  140. data/decidim-admin/spec/features/participatory_process_admin_manages_participatory_process_admins_spec.rb +2 -2
  141. data/decidim-admin/spec/features/static_pages_spec.rb +9 -7
  142. data/decidim-admin/spec/jobs/newsletter_job_spec.rb +2 -0
  143. data/decidim-admin/spec/queries/process_admin_roles_for_process_spec.rb +4 -3
  144. data/decidim-admin/spec/shared/manage_process_admins_examples.rb +31 -8
  145. data/decidim-admin/spec/shared/manage_process_attachments_examples.rb +1 -1
  146. data/decidim-admin/spec/shared/manage_process_categories_examples.rb +11 -26
  147. data/decidim-admin/spec/shared/manage_process_steps_examples.rb +8 -23
  148. data/decidim-admin/spec/shared/manage_processes_examples.rb +5 -33
  149. data/decidim-admin/spec/support/processes_menu_links_helpers.rb +1 -1
  150. data/decidim-admin/yarn.lock +4 -0
  151. data/decidim-api/app/controllers/decidim/api/application_controller.rb +2 -1
  152. data/decidim-budgets/app/controllers/decidim/budgets/admin/projects_controller.rb +1 -1
  153. data/decidim-budgets/app/controllers/decidim/budgets/line_items_controller.rb +21 -15
  154. data/decidim-budgets/app/views/decidim/budgets/admin/projects/_form.html.erb +34 -24
  155. data/decidim-budgets/app/views/decidim/budgets/admin/projects/edit.html.erb +3 -5
  156. data/decidim-budgets/app/views/decidim/budgets/admin/projects/index.html.erb +52 -34
  157. data/decidim-budgets/app/views/decidim/budgets/admin/projects/new.html.erb +4 -5
  158. data/decidim-budgets/app/views/decidim/budgets/projects/_filters.html.erb +1 -1
  159. data/decidim-budgets/config/i18n-tasks.yml +1 -0
  160. data/decidim-budgets/config/locales/ca.yml +5 -0
  161. data/decidim-budgets/config/locales/en.yml +5 -0
  162. data/decidim-budgets/config/locales/es.yml +5 -0
  163. data/decidim-budgets/config/locales/eu.yml +27 -0
  164. data/decidim-budgets/spec/features/orders_spec.rb +22 -0
  165. data/decidim-budgets/spec/shared/manage_attachments_examples.rb +1 -1
  166. data/decidim-budgets/spec/shared/manage_projects_examples.rb +10 -8
  167. data/decidim-comments/README.md +33 -0
  168. data/decidim-comments/app/assets/javascripts/decidim/comments/bundle.js +0 -0
  169. data/decidim-comments/app/assets/javascripts/decidim/comments/comments.js.erb +2 -0
  170. data/decidim-comments/app/frontend/application/{apollo_client.js → apollo_client.ts} +5 -5
  171. data/decidim-comments/app/frontend/application/application.component.test.tsx +36 -0
  172. data/decidim-comments/app/frontend/application/application.component.tsx +37 -0
  173. data/decidim-comments/app/frontend/application/icon.component.test.tsx +49 -0
  174. data/decidim-comments/app/frontend/application/icon.component.tsx +35 -0
  175. data/decidim-comments/app/frontend/comments/{add_comment_form.component.test.jsx → add_comment_form.component.test.tsx} +98 -92
  176. data/decidim-comments/app/frontend/comments/{add_comment_form.component.jsx → add_comment_form.component.tsx} +152 -153
  177. data/decidim-comments/app/frontend/comments/{comment.component.test.jsx → comment.component.test.tsx} +59 -71
  178. data/decidim-comments/app/frontend/comments/{comment.component.jsx → comment.component.tsx} +114 -116
  179. data/decidim-comments/app/frontend/comments/comment_order_selector.component.test.tsx +21 -0
  180. data/decidim-comments/app/frontend/comments/comment_order_selector.component.tsx +88 -0
  181. data/decidim-comments/app/frontend/comments/comment_thread.component.test.tsx +65 -0
  182. data/decidim-comments/app/frontend/comments/comment_thread.component.tsx +70 -0
  183. data/decidim-comments/app/frontend/comments/{comments.component.test.jsx → comments.component.test.tsx} +38 -81
  184. data/decidim-comments/app/frontend/comments/{comments.component.jsx → comments.component.tsx} +49 -63
  185. data/decidim-comments/app/frontend/comments/down_vote_button.component.test.tsx +39 -0
  186. data/decidim-comments/app/frontend/comments/down_vote_button.component.tsx +89 -0
  187. data/decidim-comments/app/frontend/comments/up_vote_button.component.test.tsx +39 -0
  188. data/decidim-comments/app/frontend/comments/up_vote_button.component.tsx +89 -0
  189. data/decidim-comments/app/frontend/comments/vote_button.component.tsx +36 -0
  190. data/decidim-comments/app/frontend/comments/{vote_button_component.test.jsx → vote_button_component.test.tsx} +16 -20
  191. data/decidim-comments/app/frontend/entry.ts +19 -0
  192. data/decidim-comments/app/frontend/{comments → fragments}/add_comment_form_commentable.fragment.graphql +1 -1
  193. data/decidim-comments/app/frontend/{comments → fragments}/add_comment_form_session.fragment.graphql +1 -1
  194. data/decidim-comments/app/frontend/{comments → fragments}/comment.fragment.graphql +3 -1
  195. data/decidim-comments/app/frontend/{comments → fragments}/comment_data.fragment.graphql +6 -3
  196. data/decidim-comments/app/frontend/{comments → fragments}/comment_thread.fragment.graphql +3 -1
  197. data/decidim-comments/app/frontend/{comments/down_vote.fragment.graphql → fragments/down_vote_button.fragment.graphql} +2 -2
  198. data/decidim-comments/app/frontend/{comments/up_vote.fragment.graphql → fragments/up_vote_button.fragment.graphql} +2 -2
  199. data/decidim-comments/app/frontend/{comments/add_comment_form.mutation.graphql → mutations/add_comment.mutation.graphql} +3 -1
  200. data/decidim-comments/app/frontend/{comments → mutations}/down_vote.mutation.graphql +3 -1
  201. data/decidim-comments/app/frontend/{comments → mutations}/up_vote.mutation.graphql +3 -1
  202. data/decidim-comments/app/frontend/{comments → queries}/comments.query.graphql +4 -1
  203. data/decidim-comments/app/frontend/support/{asset_url.js → asset_url.ts} +1 -1
  204. data/decidim-comments/app/frontend/support/{generate_comments_data.js → generate_comments_data.ts} +11 -6
  205. data/decidim-comments/app/frontend/support/{generate_user_data.js → generate_user_data.ts} +2 -2
  206. data/decidim-comments/app/frontend/support/{generate_user_group_data.js → generate_user_group_data.ts} +2 -2
  207. data/decidim-comments/app/frontend/support/graphql_transformer.js +32 -0
  208. data/decidim-comments/app/frontend/support/load_translations.ts +44 -0
  209. data/decidim-comments/app/frontend/support/{require_all.js → require_all.ts} +1 -1
  210. data/decidim-comments/app/frontend/support/{resolve_graphql_query.js → resolve_graphql_query.ts} +7 -7
  211. data/decidim-comments/app/frontend/support/schema.ts +119 -0
  212. data/decidim-comments/config/locales/eu.yml +29 -5
  213. data/decidim-dev/Rakefile +2 -0
  214. data/decidim-dev/config/locales/eu.yml +1 -1
  215. data/decidim-dev/decidim-dev.gemspec +1 -1
  216. data/decidim-dev/lib/decidim/dev/test/rspec_support/capybara.rb +1 -4
  217. data/decidim-dev/lib/decidim/dev/test/rspec_support/feature.rb +1 -0
  218. data/decidim-dev/lib/decidim/dev/test/rspec_support/helpers.rb +1 -1
  219. data/decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/phantomjs-shim.js +215 -0
  220. data/decidim-dev/lib/decidim/dev/test/rspec_support/translation_helpers.rb +1 -1
  221. data/decidim-dev/lib/generators/decidim/dummy_generator.rb +5 -0
  222. data/decidim-meetings/app/controllers/decidim/meetings/admin/application_controller.rb +1 -1
  223. data/decidim-meetings/app/views/decidim/meetings/admin/meeting_closes/_form.html.erb +30 -19
  224. data/decidim-meetings/app/views/decidim/meetings/admin/meeting_closes/edit.html.erb +3 -5
  225. data/decidim-meetings/app/views/decidim/meetings/admin/meetings/_form.html.erb +46 -35
  226. data/decidim-meetings/app/views/decidim/meetings/admin/meetings/edit.html.erb +5 -6
  227. data/decidim-meetings/app/views/decidim/meetings/admin/meetings/index.html.erb +72 -51
  228. data/decidim-meetings/app/views/decidim/meetings/admin/meetings/new.html.erb +4 -6
  229. data/decidim-meetings/app/views/decidim/meetings/meetings/_filters.html.erb +1 -1
  230. data/decidim-meetings/config/locales/ca.yml +2 -1
  231. data/decidim-meetings/config/locales/en.yml +2 -1
  232. data/decidim-meetings/config/locales/es.yml +2 -1
  233. data/decidim-meetings/config/locales/eu.yml +25 -5
  234. data/decidim-meetings/config/locales/fi.yml +0 -1
  235. data/decidim-meetings/spec/shared/manage_attachments_examples.rb +1 -1
  236. data/decidim-meetings/spec/shared/manage_meetings_examples.rb +18 -16
  237. data/decidim-pages/app/views/decidim/pages/admin/pages/_form.html.erb +10 -3
  238. data/decidim-pages/app/views/decidim/pages/admin/pages/edit.html.erb +3 -5
  239. data/decidim-pages/config/locales/eu.yml +4 -2
  240. data/decidim-pages/spec/features/admin_spec.rb +1 -1
  241. data/decidim-proposals/app/controllers/decidim/proposals/admin/proposals_controller.rb +1 -1
  242. data/decidim-proposals/app/views/decidim/proposals/admin/proposal_answers/edit.html.erb +14 -8
  243. data/decidim-proposals/app/views/decidim/proposals/admin/proposals/_form.html.erb +28 -20
  244. data/decidim-proposals/app/views/decidim/proposals/admin/proposals/index.html.erb +60 -43
  245. data/decidim-proposals/app/views/decidim/proposals/admin/proposals/new.html.erb +3 -5
  246. data/decidim-proposals/app/views/decidim/proposals/proposals/_filters.html.erb +1 -1
  247. data/decidim-proposals/config/locales/ca.yml +3 -0
  248. data/decidim-proposals/config/locales/en.yml +4 -1
  249. data/decidim-proposals/config/locales/es.yml +3 -0
  250. data/decidim-proposals/config/locales/eu.yml +42 -19
  251. data/decidim-proposals/config/locales/fi.yml +0 -1
  252. data/decidim-proposals/spec/shared/manage_proposals_examples.rb +15 -13
  253. data/decidim-results/README.md +1 -1
  254. data/decidim-results/app/controllers/decidim/results/admin/results_controller.rb +1 -1
  255. data/decidim-results/app/views/decidim/results/admin/results/_form.html.erb +30 -21
  256. data/decidim-results/app/views/decidim/results/admin/results/edit.html.erb +4 -5
  257. data/decidim-results/app/views/decidim/results/admin/results/index.html.erb +40 -25
  258. data/decidim-results/app/views/decidim/results/admin/results/new.html.erb +4 -5
  259. data/decidim-results/app/views/decidim/results/results/_filters.html.erb +1 -1
  260. data/decidim-results/config/locales/ca.yml +2 -0
  261. data/decidim-results/config/locales/en.yml +2 -0
  262. data/decidim-results/config/locales/es.yml +2 -0
  263. data/decidim-results/config/locales/eu.yml +22 -4
  264. data/decidim-results/spec/shared/manage_results_examples.rb +10 -8
  265. data/decidim-system/config/locales/eu.yml +60 -2
  266. data/lib/generators/decidim/app_generator.rb +0 -4
  267. data/lib/generators/decidim/install_generator.rb +0 -4
  268. data/lib/generators/decidim/templates/README.md.erb +18 -18
  269. data/package.json +47 -22
  270. data/tsconfig.json +17 -0
  271. data/tslint.json +12 -0
  272. data/webpack.config.js +8 -6
  273. data/webpack.d.ts +5 -0
  274. data/yarn.lock +1461 -781
  275. metadata +119 -83
  276. data/decidim-admin/app/assets/stylesheets/decidim/admin/_actions.scss +0 -8
  277. data/decidim-admin/app/assets/stylesheets/decidim/admin/_forms.scss +0 -10
  278. data/decidim-admin/app/assets/stylesheets/decidim/admin/_foundation_and_overrides.scss +0 -53
  279. data/decidim-admin/app/assets/stylesheets/decidim/admin/_icons.scss +0 -9
  280. data/decidim-admin/app/assets/stylesheets/decidim/admin/_layout.scss +0 -27
  281. data/decidim-admin/app/assets/stylesheets/decidim/admin/_settings.scss +0 -566
  282. data/decidim-admin/app/assets/stylesheets/decidim/admin/_tables.scss +0 -21
  283. data/decidim-admin/app/views/layouts/decidim/admin/_login_items.html.erb +0 -8
  284. data/decidim-admin/app/views/layouts/decidim/admin/_sidebar.html.erb +0 -22
  285. data/decidim-comments/app/frontend/application/application.component.jsx +0 -37
  286. data/decidim-comments/app/frontend/application/application.component.test.jsx +0 -33
  287. data/decidim-comments/app/frontend/application/icon.component.jsx +0 -26
  288. data/decidim-comments/app/frontend/application/icon.component.test.jsx +0 -53
  289. data/decidim-comments/app/frontend/comments/comment_order_selector.component.jsx +0 -72
  290. data/decidim-comments/app/frontend/comments/comment_order_selector.component.test.jsx +0 -20
  291. data/decidim-comments/app/frontend/comments/comment_thread.component.jsx +0 -75
  292. data/decidim-comments/app/frontend/comments/comment_thread.component.test.jsx +0 -83
  293. data/decidim-comments/app/frontend/comments/down_vote_button.component.jsx +0 -98
  294. data/decidim-comments/app/frontend/comments/down_vote_button.component.test.jsx +0 -48
  295. data/decidim-comments/app/frontend/comments/featured_comment.component.jsx +0 -23
  296. data/decidim-comments/app/frontend/comments/featured_comment.component.test.jsx +0 -15
  297. data/decidim-comments/app/frontend/comments/up_vote_button.component.jsx +0 -98
  298. data/decidim-comments/app/frontend/comments/up_vote_button.component.test.jsx +0 -48
  299. data/decidim-comments/app/frontend/comments/vote_button.component.jsx +0 -32
  300. data/decidim-comments/app/frontend/entry.js +0 -17
  301. data/decidim-comments/app/frontend/entry.test.js +0 -31
  302. data/decidim-comments/app/frontend/support/load_translations.js +0 -23
  303. data/decidim-comments/app/frontend/support/stub_component.js +0 -29
  304. data/decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/bind-polyfill.js +0 -18
  305. data/decidim-dev/lib/decidim/dev/test/rspec_support/phantomjs_polyfills/object-assign-polyfill.js +0 -24
  306. data/karma.conf.js +0 -45
  307. data/lib/generators/decidim/review_app_generator.rb +0 -53
  308. data/lib/generators/decidim/templates/app.json.erb +0 -16
@@ -1,53 +0,0 @@
1
- @charset "utf-8";
2
-
3
- @import "settings";
4
- @import "foundation";
5
-
6
- // If you'd like to include motion-ui the foundation-rails gem comes prepackaged with it, uncomment the 3 @imports, if you are not using the gem you need to install the motion-ui sass package.
7
- //
8
- // @import 'motion-ui/motion-ui';
9
-
10
- // We include everything by default. To slim your CSS, remove components you don't use.
11
-
12
- @include foundation-global-styles;
13
- @include foundation-flex-grid;
14
- @include foundation-typography;
15
- @include foundation-button;
16
- @include foundation-forms;
17
- @include foundation-visibility-classes;
18
- @include foundation-flex-classes;
19
- @include foundation-accordion;
20
- @include foundation-accordion-menu;
21
- @include foundation-badge;
22
- @include foundation-breadcrumbs;
23
- @include foundation-button-group;
24
- @include foundation-callout;
25
- @include foundation-card;
26
- @include foundation-close-button;
27
- @include foundation-drilldown-menu;
28
- @include foundation-dropdown;
29
- @include foundation-dropdown-menu;
30
- @include foundation-responsive-embed;
31
- @include foundation-label;
32
- @include foundation-media-object;
33
- @include foundation-menu;
34
- @include foundation-menu-icon;
35
- @include foundation-off-canvas;
36
- @include foundation-orbit;
37
- @include foundation-pagination;
38
- @include foundation-progress-bar;
39
- @include foundation-slider;
40
- @include foundation-sticky;
41
- @include foundation-reveal;
42
- @include foundation-switch;
43
- @include foundation-table;
44
- @include foundation-tabs;
45
- @include foundation-thumbnail;
46
- @include foundation-title-bar;
47
- @include foundation-tooltip;
48
- @include foundation-top-bar;
49
-
50
- // If you'd like to include motion-ui the foundation-rails gem comes prepackaged with it, uncomment the 3 @imports, if you are not using the gem you need to install the motion-ui sass package.
51
- //
52
- // @include motion-ui-transitions;
53
- // @include motion-ui-animations;
@@ -1,9 +0,0 @@
1
- .icon{
2
- height: 0.8em;
3
- width: 0.8em;
4
- display: inline;
5
- vertical-align: middle;
6
- fill: currentColor;
7
- margin-left: .1rem;
8
- margin-right: .1rem;
9
- }
@@ -1,27 +0,0 @@
1
- .off-canvas, .sidebar, .off-canvas-wrapper{
2
- min-height: 100vh;
3
- }
4
-
5
- .off-canvas{
6
- color: #fff;
7
- }
8
-
9
- .main-content{
10
- padding: $global-padding 0;
11
- min-height: 100vh;
12
- }
13
-
14
- .page-title{
15
- margin-bottom: $global-margin;
16
- }
17
-
18
- dd {
19
- margin-bottom: 1rem;
20
- }
21
-
22
- tr.subcategory {
23
- td:first-child a:before {
24
- content: "•";
25
- margin-right: 1rem;
26
- }
27
- }
@@ -1,566 +0,0 @@
1
- // Foundation for Sites Settings
2
- // -----------------------------
3
- //
4
- // Table of Contents:
5
- //
6
- // 1. Global
7
- // 2. Breakpoints
8
- // 3. The Grid
9
- // 4. Base Typography
10
- // 5. Typography Helpers
11
- // 6. Abide
12
- // 7. Accordion
13
- // 8. Accordion Menu
14
- // 9. Badge
15
- // 10. Breadcrumbs
16
- // 11. Button
17
- // 12. Button Group
18
- // 13. Callout
19
- // 14. Close Button
20
- // 15. Drilldown
21
- // 16. Dropdown
22
- // 17. Dropdown Menu
23
- // 18. Flex Video
24
- // 19. Forms
25
- // 20. Label
26
- // 21. Media Object
27
- // 22. Menu
28
- // 23. Meter
29
- // 24. Off-canvas
30
- // 25. Orbit
31
- // 26. Pagination
32
- // 27. Progress Bar
33
- // 28. Reveal
34
- // 29. Slider
35
- // 30. Switch
36
- // 31. Table
37
- // 32. Tabs
38
- // 33. Thumbnail
39
- // 34. Title Bar
40
- // 35. Tooltip
41
- // 36. Top Bar
42
-
43
- @import "util/util";
44
-
45
- // 1. Global
46
- // ---------
47
-
48
- // $global-font-size: 100%;
49
- // $global-width: rem-calc(1200);
50
- // $global-lineheight: 1.5;
51
- $foundation-palette: (
52
- primary: #2199e8,
53
- secondary: #777,
54
- success: #3adb76,
55
- warning: #ffae00,
56
- alert: #ec5840,
57
- );
58
- $light-gray: #e6e6e6;
59
- // $medium-gray: #cacaca;
60
- // $dark-gray: #8a8a8a;
61
- $black: #232323;
62
- // $white: #fefefe;
63
- // $body-background: $white;
64
- // $body-font-color: $black;
65
- $body-font-family: 'Montserrat', sans-serif;
66
- // $body-antialiased: true;
67
- // $global-margin: 1rem;
68
- // $global-padding: 1rem;
69
- // $global-weight-normal: normal;
70
- // $global-weight-bold: bold;
71
- // $global-radius: 0;
72
- // $global-text-direction: ltr;
73
- $global-flexbox: true;
74
- // $print-transparent-backgrounds: true;
75
-
76
- @include add-foundation-colors;
77
-
78
- // 2. Breakpoints
79
- // --------------
80
-
81
- // $breakpoints: (
82
- // small: 0,
83
- // medium: 640px,
84
- // large: 1024px,
85
- // xlarge: 1200px,
86
- // xxlarge: 1440px,
87
- // );
88
- // $breakpoint-classes: (small medium large);
89
-
90
- // 3. The Grid
91
- // -----------
92
-
93
- // $grid-row-width: $global-width;
94
- // $grid-column-count: 12;
95
- // $grid-column-gutter: (
96
- // small: 20px,
97
- // medium: 30px,
98
- // );
99
- // $grid-column-align-edge: true;
100
- // $block-grid-max: 8;
101
-
102
- // 4. Base Typography
103
- // ------------------
104
-
105
- // $header-font-family: $body-font-family;
106
- // $header-font-weight: $global-weight-normal;
107
- // $header-font-style: normal;
108
- // $font-family-monospace: Consolas, 'Liberation Mono', Courier, monospace;
109
- // $header-sizes: (
110
- // small: (
111
- // 'h1': 24,
112
- // 'h2': 20,
113
- // 'h3': 19,
114
- // 'h4': 18,
115
- // 'h5': 17,
116
- // 'h6': 16,
117
- // ),
118
- // medium: (
119
- // 'h1': 48,
120
- // 'h2': 40,
121
- // 'h3': 31,
122
- // 'h4': 25,
123
- // 'h5': 20,
124
- // 'h6': 16,
125
- // ),
126
- // );
127
- // $header-color: inherit;
128
- // $header-lineheight: 1.4;
129
- // $header-margin-bottom: 0.5rem;
130
- // $header-text-rendering: optimizeLegibility;
131
- // $small-font-size: 80%;
132
- // $header-small-font-color: $medium-gray;
133
- // $paragraph-lineheight: 1.6;
134
- // $paragraph-margin-bottom: 1rem;
135
- // $paragraph-text-rendering: optimizeLegibility;
136
- // $code-color: $black;
137
- // $code-font-family: $font-family-monospace;
138
- // $code-font-weight: $global-weight-normal;
139
- // $code-background: $light-gray;
140
- // $code-border: 1px solid $medium-gray;
141
- // $code-padding: rem-calc(2 5 1);
142
- // $anchor-color: $primary-color;
143
- // $anchor-color-hover: scale-color($anchor-color, $lightness: -14%);
144
- // $anchor-text-decoration: none;
145
- // $anchor-text-decoration-hover: none;
146
- // $hr-width: $global-width;
147
- // $hr-border: 1px solid $medium-gray;
148
- // $hr-margin: rem-calc(20) auto;
149
- // $list-lineheight: $paragraph-lineheight;
150
- // $list-margin-bottom: $paragraph-margin-bottom;
151
- // $list-style-type: disc;
152
- // $list-style-position: outside;
153
- // $list-side-margin: 1.25rem;
154
- // $list-nested-side-margin: 1.25rem;
155
- // $defnlist-margin-bottom: 1rem;
156
- // $defnlist-term-weight: $global-weight-bold;
157
- // $defnlist-term-margin-bottom: 0.3rem;
158
- // $blockquote-color: $dark-gray;
159
- // $blockquote-padding: rem-calc(9 20 0 19);
160
- // $blockquote-border: 1px solid $medium-gray;
161
- // $cite-font-size: rem-calc(13);
162
- // $cite-color: $dark-gray;
163
- // $keystroke-font: $font-family-monospace;
164
- // $keystroke-color: $black;
165
- // $keystroke-background: $light-gray;
166
- // $keystroke-padding: rem-calc(2 4 0);
167
- // $keystroke-radius: $global-radius;
168
- // $abbr-underline: 1px dotted $black;
169
-
170
- // 5. Typography Helpers
171
- // ---------------------
172
-
173
- // $lead-font-size: $global-font-size * 1.25;
174
- // $lead-lineheight: 1.6;
175
- // $subheader-lineheight: 1.4;
176
- // $subheader-color: $dark-gray;
177
- // $subheader-font-weight: $global-weight-normal;
178
- // $subheader-margin-t#23262Cop: 0.2rem;
179
- // $subheader-margin-bottom: 0.5rem;
180
- // $stat-font-size: 2.5rem;
181
-
182
- // 6. Abide
183
- // --------
184
-
185
- // $abide-inputs: true;
186
- // $abide-labels: true;
187
- // $input-background-invalid: map-get($foundation-palette, alert);
188
- // $form-label-color-invalid: map-get($foundation-palette, alert);
189
- // $input-error-color: map-get($foundation-palette, alert);
190
- // $input-error-font-size: rem-calc(12);
191
- // $input-error-font-weight: $global-weight-bold;
192
-
193
- // 7. Accordion
194
- // ------------
195
-
196
- // $accordion-background: $white;
197
- // $accordion-plusminus: true;
198
- // $accordion-item-color: foreground($accordion-background, $primary-color);
199
- // $accordion-item-background-hover: $light-gray;
200
- // $accordion-item-padding: 1.25rem 1rem;
201
- // $accordion-content-background: $white;
202
- // $accordion-content-border: 1px solid $light-gray;
203
- // $accordion-content-color: foreground($accordion-content-background, $body-font-color);
204
- // $accordion-content-padding: 1rem;
205
-
206
- // 8. Accordion Menu
207
- // -----------------
208
-
209
- // $accordionmenu-arrows: true;
210
- // $accordionmenu-arrow-color: $primary-color;
211
-
212
- // 9. Badge
213
- // --------
214
-
215
- // $badge-background: $primary-color;
216
- // $badge-color: foreground($badge-background);
217
- // $badge-padding: 0.3em;
218
- // $badge-minwidth: 2.1em;
219
- // $badge-font-size: 0.6rem;
220
-
221
- // 10. Breadcrumbs
222
- // ---------------
223
-
224
- // $breadcrumbs-margin: 0 0 $global-margin 0;
225
- // $breadcrumbs-item-font-size: rem-calc(11);
226
- // $breadcrumbs-item-color: $primary-color;
227
- // $breadcrumbs-item-color-current: $black;
228
- // $breadcrumbs-item-color-disabled: $medium-gray;
229
- // $breadcrumbs-item-margin: 0.75rem;
230
- // $breadcrumbs-item-uppercase: true;
231
- // $breadcrumbs-item-slash: true;
232
-
233
- // 11. Button
234
- // ----------
235
-
236
- // $button-padding: 0.85em 1em;
237
- $button-margin: 0;
238
- // $button-fill: solid;
239
- // $button-background: $primary-color;
240
- // $button-background-hover: scale-color($button-background, $lightness: -15%);
241
- // $button-color: $white;
242
- // $button-color-alt: $black;
243
- // $button-radius: $global-radius;
244
- // $button-sizes: (
245
- // tiny: 0.6rem,
246
- // small: 0.75rem,
247
- // default: 0.9rem,
248
- // large: 1.25rem,
249
- // );
250
- // $button-opacity-disabled: 0.25;
251
-
252
- // 12. Button Group
253
- // ----------------
254
-
255
- // $buttongroup-margin: 1rem;
256
- // $buttongroup-spacing: 1px;
257
- // $buttongroup-child-selector: ".button";
258
- // $buttongroup-expand-max: 6;
259
-
260
- // 13. Callout
261
- // -----------
262
-
263
- // $callout-background: $white;
264
- // $callout-background-fade: 85%;
265
- // $callout-border: 1px solid rgba($black, 0.25);
266
- // $callout-margin: 0 0 1rem 0;
267
- // $callout-padding: 1rem;
268
- // $callout-font-color: $body-font-color;
269
- // $callout-font-color-alt: $body-background;
270
- // $callout-radius: $global-radius;
271
- // $callout-link-tint: 30%;
272
-
273
- // 14. Close Button
274
- // ----------------
275
-
276
- // $closebutton-position: right top;
277
- // $closebutton-offset-horizontal: 1rem;
278
- // $closebutton-offset-vertical: 0.5rem;
279
- // $closebutton-size: 2em;
280
- // $closebutton-lineheight: 1;
281
- // $closebutton-color: $dark-gray;
282
- // $closebutton-color-hover: $black;
283
-
284
- // 15. Drilldown
285
- // -------------
286
-
287
- // $drilldown-transition: transform 0.15s linear;
288
- // $drilldown-arrows: true;
289
- // $drilldown-arrow-color: $primary-color;
290
- // $drilldown-background: $white;
291
-
292
- // 16. Dropdown
293
- // ------------
294
-
295
- // $dropdown-padding: 1rem;
296
- // $dropdown-border: 1px solid $medium-gray;
297
- // $dropdown-font-size: 1rem;
298
- // $dropdown-width: 300px;
299
- // $dropdown-radius: $global-radius;
300
- // $dropdown-sizes: (
301
- // tiny: 100px,
302
- // small: 200px,
303
- // large: 400px,
304
- // );
305
-
306
- // 17. Dropdown Menu
307
- // -----------------
308
-
309
- // $dropdownmenu-arrows: true;
310
- // $dropdownmenu-arrow-color: $anchor-color;
311
- // $dropdownmenu-min-width: 200px;
312
- // $dropdownmenu-background: $white;
313
- // $dropdownmenu-border: 1px solid $medium-gray;
314
-
315
- // 18. Flex Video
316
- // --------------
317
-
318
- // $flexvideo-margin-bottom: rem-calc(16);
319
- // $flexvideo-ratio: 4 by 3;
320
- // $flexvideo-ratio-widescreen: 16 by 9;
321
-
322
- // 19. Forms
323
- // ---------
324
-
325
- // $fieldset-border: 1px solid $medium-gray;
326
- // $fieldset-padding: rem-calc(20);
327
- // $fieldset-margin: rem-calc(18 0);
328
- // $legend-padding: rem-calc(0 3);
329
- // $form-spacing: rem-calc(16);
330
- // $helptext-color: $black;
331
- // $helptext-font-size: rem-calc(13);
332
- // $helptext-font-style: italic;
333
- // $input-prefix-color: $black;
334
- // $input-prefix-background: $light-gray;
335
- // $input-prefix-border: 1px solid $medium-gray;
336
- // $input-prefix-padding: 1rem;
337
- // $form-label-color: $black;
338
- // $form-label-font-size: rem-calc(14);
339
- // $form-label-font-weight: $global-weight-normal;
340
- // $form-label-line-height: 1.8;
341
- // $select-background: $white;
342
- // $select-triangle-color: $dark-gray;
343
- // $select-radius: $global-radius;
344
- // $input-color: $black;
345
- // $input-placeholder-color: $medium-gray;
346
- // $input-font-family: inherit;
347
- // $input-font-size: rem-calc(16);
348
- // $input-background: $white;
349
- // $input-background-focus: $white;
350
- // $input-background-disabled: $light-gray;
351
- // $input-border: 1px solid $medium-gray;
352
- // $input-border-focus: 1px solid $dark-gray;
353
- // $input-shadow: inset 0 1px 2px rgba($black, 0.1);
354
- // $input-shadow-focus: 0 0 5px $medium-gray;
355
- // $input-cursor-disabled: not-allowed;
356
- // $input-transition: box-shadow 0.5s, border-color 0.25s ease-in-out;
357
- // $input-number-spinners: true;
358
- // $input-radius: $global-radius;
359
-
360
- // 20. Label
361
- // ---------
362
-
363
- // $label-background: $primary-color;
364
- // $label-color: foreground($label-background);
365
- // $label-font-size: 0.8rem;
366
- // $label-padding: 0.33333rem 0.5rem;
367
- // $label-radius: $global-radius;
368
-
369
- // 21. Media Object
370
- // ----------------
371
-
372
- // $mediaobject-margin-bottom: $global-margin;
373
- // $mediaobject-section-padding: $global-padding;
374
- // $mediaobject-image-width-stacked: 100%;
375
-
376
- // 22. Menu
377
- // --------
378
-
379
- // $menu-margin: 0;
380
- // $menu-margin-nested: 1rem;
381
- // $menu-item-padding: 0.7rem 1rem;
382
- // $menu-item-color-active: $white;
383
- // $menu-item-background-active: map-get($foundation-palette, primary);
384
- // $menu-icon-spacing: 0.25rem;
385
-
386
- // 23. Meter
387
- // ---------
388
-
389
- // $meter-height: 1rem;
390
- // $meter-radius: $global-radius;
391
- // $meter-background: $medium-gray;
392
- // $meter-fill-good: $success-color;
393
- // $meter-fill-medium: $warning-color;
394
- // $meter-fill-bad: $alert-color;
395
-
396
- // 24. Off-canvas
397
- // --------------
398
-
399
- // $offcanvas-size: 250px;
400
- $offcanvas-background: $black;
401
- // $offcanvas-zindex: -1;
402
- // $offcanvas-transition-length: 0.5s;
403
- // $offcanvas-transition-timing: ease;
404
- // $offcanvas-fixed-reveal: true;
405
- // $offcanvas-exit-background: rgba($white, 0.25);
406
- // $maincontent-class: "off-canvas-content";
407
- $maincontent-shadow: none;
408
-
409
- // 25. Orbit
410
- // ---------
411
-
412
- // $orbit-bullet-background: $medium-gray;
413
- // $orbit-bullet-background-active: $dark-gray;
414
- // $orbit-bullet-diameter: 1.2rem;
415
- // $orbit-bullet-margin: 0.1rem;
416
- // $orbit-bullet-margin-top: 0.8rem;
417
- // $orbit-bullet-margin-bottom: 0.8rem;
418
- // $orbit-caption-background: rgba($black, 0.5);
419
- // $orbit-caption-padding: 1rem;
420
- // $orbit-control-background-hover: rgba($black, 0.5);
421
- // $orbit-control-padding: 1rem;
422
- // $orbit-control-zindex: 10;
423
-
424
- // 26. Pagination
425
- // --------------
426
-
427
- // $pagination-font-size: rem-calc(14);
428
- // $pagination-margin-bottom: $global-margin;
429
- // $pagination-item-color: $black;
430
- // $pagination-item-padding: rem-calc(3 10);
431
- // $pagination-item-spacing: rem-calc(1);
432
- // $pagination-radius: $global-radius;
433
- // $pagination-item-background-hover: $light-gray;
434
- // $pagination-item-background-current: $primary-color;
435
- // $pagination-item-color-current: foreground($pagination-item-background-current);
436
- // $pagination-item-color-disabled: $medium-gray;
437
- // $pagination-ellipsis-color: $black;
438
- // $pagination-mobile-items: false;
439
- // $pagination-arrows: true;
440
-
441
- // 27. Progress Bar
442
- // ----------------
443
-
444
- // $progress-height: 1rem;
445
- // $progress-background: $medium-gray;
446
- // $progress-margin-bottom: $global-margin;
447
- // $progress-meter-background: $primary-color;
448
- // $progress-radius: $global-radius;
449
-
450
- // 28. Reveal
451
- // ----------
452
-
453
- // $reveal-background: $white;
454
- // $reveal-width: 600px;
455
- // $reveal-max-width: $global-width;
456
- // $reveal-padding: $global-padding;
457
- // $reveal-border: 1px solid $medium-gray;
458
- // $reveal-radius: $global-radius;
459
- // $reveal-zindex: 1005;
460
- // $reveal-overlay-background: rgba($black, 0.45);
461
-
462
- // 29. Slider
463
- // ----------
464
-
465
- // $slider-width-vertical: 0.5rem;
466
- // $slider-transition: all 0.2s ease-in-out;
467
- // $slider-height: 0.5rem;
468
- // $slider-background: $light-gray;
469
- // $slider-fill-background: $medium-gray;
470
- // $slider-handle-height: 1.4rem;
471
- // $slider-handle-width: 1.4rem;
472
- // $slider-handle-background: $primary-color;
473
- // $slider-opacity-disabled: 0.25;
474
- // $slider-radius: $global-radius;
475
-
476
- // 30. Switch
477
- // ----------
478
-
479
- // $switch-background: $medium-gray;
480
- // $switch-background-active: $primary-color;
481
- // $switch-height: 2rem;
482
- // $switch-height-tiny: 1.5rem;
483
- // $switch-height-small: 1.75rem;
484
- // $switch-height-large: 2.5rem;
485
- // $switch-radius: $global-radius;
486
- // $switch-margin: $global-margin;
487
- // $switch-paddle-background: $white;
488
- // $switch-paddle-offset: 0.25rem;
489
- // $switch-paddle-radius: $global-radius;
490
- // $switch-paddle-transition: all 0.25s ease-out;
491
-
492
- // 31. Table
493
- // ---------
494
-
495
- // $table-background: $white;
496
- // $table-color-scale: 5%;
497
- // $table-border: 1px solid smart-scale($table-background, $table-color-scale);
498
- // $table-padding: rem-calc(8 10 10);
499
- // $table-hover-scale: 2%;
500
- // $table-row-hover: darken($table-background, $table-hover-scale);
501
- // $table-row-stripe-hover: darken($table-background, $table-color-scale + $table-hover-scale);
502
- // $table-striped-background: smart-scale($table-background, $table-color-scale);
503
- // $table-stripe: even;
504
- // $table-head-background: smart-scale($table-background, $table-color-scale / 2);
505
- // $table-foot-background: smart-scale($table-background, $table-color-scale);
506
- // $table-head-font-color: $body-font-color;
507
- // $show-header-for-stacked: false;
508
-
509
- // 32. Tabs
510
- // --------
511
-
512
- // $tab-margin: 0;
513
- // $tab-background: $white;
514
- // $tab-background-active: $light-gray;
515
- // $tab-item-font-size: rem-calc(12);
516
- // $tab-item-background-hover: $white;
517
- // $tab-item-padding: 1.25rem 1.5rem;
518
- // $tab-expand-max: 6;
519
- // $tab-content-background: $white;
520
- // $tab-content-border: $light-gray;
521
- // $tab-content-color: foreground($tab-background, $primary-color);
522
- // $tab-content-padding: 1rem;
523
-
524
- // 33. Thumbnail
525
- // -------------
526
-
527
- // $thumbnail-border: solid 4px $white;
528
- // $thumbnail-margin-bottom: $global-margin;
529
- // $thumbnail-shadow: 0 0 0 1px rgba($black, 0.2);
530
- // $thumbnail-shadow-hover: 0 0 6px 1px rgba($primary-color, 0.5);
531
- // $thumbnail-transition: box-shadow 200ms ease-out;
532
- // $thumbnail-radius: $global-radius;
533
-
534
- // 34. Title Bar
535
- // -------------
536
-
537
- $titlebar-background: map-get($foundation-palette, primary);
538
- // $titlebar-color: $white;
539
- // $titlebar-padding: 0.5rem;
540
- // $titlebar-text-font-weight: bold;
541
- // $titlebar-icon-color: $white;
542
- // $titlebar-icon-color-hover: $medium-gray;
543
- // $titlebar-icon-spacing: 0.25rem;
544
-
545
- // 35. Tooltip
546
- // -----------
547
-
548
- // $has-tip-font-weight: $global-weight-bold;
549
- // $has-tip-border-bottom: dotted 1px $dark-gray;
550
- // $tooltip-background-color: $black;
551
- // $tooltip-color: $white;
552
- // $tooltip-padding: 0.75rem;
553
- // $tooltip-font-size: $small-font-size;
554
- // $tooltip-pip-width: 0.75rem;
555
- // $tooltip-pip-height: $tooltip-pip-width * 0.866;
556
- // $tooltip-radius: $global-radius;
557
-
558
- // 36. Top Bar
559
- // -----------
560
-
561
- // $topbar-padding: 0.5rem;
562
- // $topbar-background: $light-gray;
563
- // $topbar-submenu-background: $topbar-background;
564
- // $topbar-title-spacing: 1rem;
565
- // $topbar-input-width: 200px;
566
- // $topbar-unstack-breakpoint: medium;