decidim-theme 0.1.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (186) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE-AGPLv3.txt +661 -0
  3. data/README.md +104 -0
  4. data/Rakefile +9 -0
  5. data/app/cells/decidim/meetings/meeting_cell.rb +65 -0
  6. data/app/cells/decidim/meetings/meeting_s_overrides/show.erb +25 -0
  7. data/app/cells/decidim/meetings/meeting_s_overrides_cell.rb +53 -0
  8. data/app/controllers/decidim/theme/admin/application_controller.rb +15 -0
  9. data/app/controllers/decidim/theme/application_controller.rb +13 -0
  10. data/app/helpers/decidim/theme/application_helper.rb +10 -0
  11. data/app/models/decidim/theme/application_record.rb +10 -0
  12. data/app/overrides/insert_javascript_tag.rb +6 -0
  13. data/app/overrides/language_chooser_icon.rb +4 -0
  14. data/app/overrides/layouts/decidim/_main_footer/replace_content.html.erb.deface +96 -0
  15. data/app/overrides/layouts/decidim/_mini_footer/replace_content.html.erb.deface +25 -0
  16. data/app/overrides/mailer_styles.rb +36 -0
  17. data/app/overrides/prefix_body.rb +10 -0
  18. data/app/overrides/prefix_classes.rb +63 -0
  19. data/app/overrides/prefix_processes_wrapper.rb +10 -0
  20. data/app/packs/entrypoints/decidim_theme_email.js +1 -0
  21. data/app/packs/entrypoints/decidim_theme_email.scss +2 -0
  22. data/app/packs/entrypoints/decidim_theme_polyfill.js +5 -0
  23. data/app/packs/fonts/decidim/Inter-Black.woff +0 -0
  24. data/app/packs/fonts/decidim/Inter-Black.woff2 +0 -0
  25. data/app/packs/fonts/decidim/Inter-BlackItalic.woff +0 -0
  26. data/app/packs/fonts/decidim/Inter-BlackItalic.woff2 +0 -0
  27. data/app/packs/fonts/decidim/Inter-Bold.woff +0 -0
  28. data/app/packs/fonts/decidim/Inter-Bold.woff2 +0 -0
  29. data/app/packs/fonts/decidim/Inter-BoldItalic.woff +0 -0
  30. data/app/packs/fonts/decidim/Inter-BoldItalic.woff2 +0 -0
  31. data/app/packs/fonts/decidim/Inter-ExtraBold.woff +0 -0
  32. data/app/packs/fonts/decidim/Inter-ExtraBold.woff2 +0 -0
  33. data/app/packs/fonts/decidim/Inter-ExtraBoldItalic.woff +0 -0
  34. data/app/packs/fonts/decidim/Inter-ExtraBoldItalic.woff2 +0 -0
  35. data/app/packs/fonts/decidim/Inter-ExtraLight.woff +0 -0
  36. data/app/packs/fonts/decidim/Inter-ExtraLight.woff2 +0 -0
  37. data/app/packs/fonts/decidim/Inter-ExtraLightItalic.woff +0 -0
  38. data/app/packs/fonts/decidim/Inter-ExtraLightItalic.woff2 +0 -0
  39. data/app/packs/fonts/decidim/Inter-Italic.woff +0 -0
  40. data/app/packs/fonts/decidim/Inter-Italic.woff2 +0 -0
  41. data/app/packs/fonts/decidim/Inter-Light.woff +0 -0
  42. data/app/packs/fonts/decidim/Inter-Light.woff2 +0 -0
  43. data/app/packs/fonts/decidim/Inter-LightItalic.woff +0 -0
  44. data/app/packs/fonts/decidim/Inter-LightItalic.woff2 +0 -0
  45. data/app/packs/fonts/decidim/Inter-Medium.woff +0 -0
  46. data/app/packs/fonts/decidim/Inter-Medium.woff2 +0 -0
  47. data/app/packs/fonts/decidim/Inter-MediumItalic.woff +0 -0
  48. data/app/packs/fonts/decidim/Inter-MediumItalic.woff2 +0 -0
  49. data/app/packs/fonts/decidim/Inter-Regular.woff +0 -0
  50. data/app/packs/fonts/decidim/Inter-Regular.woff2 +0 -0
  51. data/app/packs/fonts/decidim/Inter-SemiBold.woff +0 -0
  52. data/app/packs/fonts/decidim/Inter-SemiBold.woff2 +0 -0
  53. data/app/packs/fonts/decidim/Inter-SemiBoldItalic.woff +0 -0
  54. data/app/packs/fonts/decidim/Inter-SemiBoldItalic.woff2 +0 -0
  55. data/app/packs/fonts/decidim/Inter-Thin.woff +0 -0
  56. data/app/packs/fonts/decidim/Inter-Thin.woff2 +0 -0
  57. data/app/packs/fonts/decidim/Inter-ThinItalic.woff +0 -0
  58. data/app/packs/fonts/decidim/Inter-ThinItalic.woff2 +0 -0
  59. data/app/packs/fonts/decidim/Inter-italic.var.woff2 +0 -0
  60. data/app/packs/fonts/decidim/Inter-roman.var.woff2 +0 -0
  61. data/app/packs/fonts/decidim/Inter.var.woff2 +0 -0
  62. data/app/packs/images/decidim/cc-by-sa-4.svg +8 -0
  63. data/app/packs/images/decidim/decidim-initial.svg +9 -0
  64. data/app/packs/images/decidim/theme/icon.svg +1 -0
  65. data/app/packs/javascripts/empty.polyfill.js +7 -0
  66. data/app/packs/javascripts/has.polyfill.js +30 -0
  67. data/app/packs/stylesheets/decidim/theme/_font_face.scss +180 -0
  68. data/app/packs/stylesheets/decidim/theme/_theme.scss +121 -0
  69. data/app/packs/stylesheets/decidim/theme/_theme_settings.scss +923 -0
  70. data/app/packs/stylesheets/decidim/theme/_theme_variables.scss +80 -0
  71. data/app/packs/stylesheets/decidim/theme/atoms/Buttons/_Generic.scss +98 -0
  72. data/app/packs/stylesheets/decidim/theme/atoms/Buttons/_Misc.scss +115 -0
  73. data/app/packs/stylesheets/decidim/theme/atoms/Buttons/_Navigation.scss +83 -0
  74. data/app/packs/stylesheets/decidim/theme/atoms/Typography/_Body.scss +88 -0
  75. data/app/packs/stylesheets/decidim/theme/atoms/Typography/_Headline.scss +98 -0
  76. data/app/packs/stylesheets/decidim/theme/atoms/Typography/_mixins.scss +109 -0
  77. data/app/packs/stylesheets/decidim/theme/email.scss +41 -0
  78. data/app/packs/stylesheets/decidim/theme/molecules/Callouts/_default.scss +41 -0
  79. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_card_process.scss +24 -0
  80. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_data-item.scss +31 -0
  81. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_documents.scss +46 -0
  82. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_extra.scss +32 -0
  83. data/app/packs/stylesheets/decidim/theme/molecules/Cards/_upcoming_meetings.scss +47 -0
  84. data/app/packs/stylesheets/decidim/theme/organisms/_account.scss +129 -0
  85. data/app/packs/stylesheets/decidim/theme/organisms/_accountability.scss +119 -0
  86. data/app/packs/stylesheets/decidim/theme/organisms/_assembly.scss +5 -0
  87. data/app/packs/stylesheets/decidim/theme/organisms/_authorizations.scss +25 -0
  88. data/app/packs/stylesheets/decidim/theme/organisms/_blog.scss +77 -0
  89. data/app/packs/stylesheets/decidim/theme/organisms/_budgets.scss +221 -0
  90. data/app/packs/stylesheets/decidim/theme/organisms/_cookie_warning.scss +6 -0
  91. data/app/packs/stylesheets/decidim/theme/organisms/_debate.scss +65 -0
  92. data/app/packs/stylesheets/decidim/theme/organisms/_footer.scss +145 -0
  93. data/app/packs/stylesheets/decidim/theme/organisms/_groups.scss +49 -0
  94. data/app/packs/stylesheets/decidim/theme/organisms/_logins.scss +45 -0
  95. data/app/packs/stylesheets/decidim/theme/organisms/_meetings.scss +214 -0
  96. data/app/packs/stylesheets/decidim/theme/organisms/_members.scss +6 -0
  97. data/app/packs/stylesheets/decidim/theme/organisms/_messaging.scss +118 -0
  98. data/app/packs/stylesheets/decidim/theme/organisms/_metrics.scss +31 -0
  99. data/app/packs/stylesheets/decidim/theme/organisms/_notifications.scss +20 -0
  100. data/app/packs/stylesheets/decidim/theme/organisms/_processes.scss +12 -0
  101. data/app/packs/stylesheets/decidim/theme/organisms/_proposals.scss +150 -0
  102. data/app/packs/stylesheets/decidim/theme/organisms/_search.scss +12 -0
  103. data/app/packs/stylesheets/decidim/theme/organisms/_sortitions.scss +65 -0
  104. data/app/packs/stylesheets/decidim/theme/organisms/_surveys.scss +65 -0
  105. data/app/packs/stylesheets/decidim/theme/organisms/_text_page.scss +115 -0
  106. data/app/packs/stylesheets/decidim/theme/organisms/_user_conversations.scss +7 -0
  107. data/app/packs/stylesheets/decidim/theme/reset/_author.scss +36 -0
  108. data/app/packs/stylesheets/decidim/theme/reset/_author_avatar.scss +182 -0
  109. data/app/packs/stylesheets/decidim/theme/reset/_badges.scss +159 -0
  110. data/app/packs/stylesheets/decidim/theme/reset/_base.scss +543 -0
  111. data/app/packs/stylesheets/decidim/theme/reset/_budget-list.scss +202 -0
  112. data/app/packs/stylesheets/decidim/theme/reset/_budget-meter.scss +85 -0
  113. data/app/packs/stylesheets/decidim/theme/reset/_buttons.scss +538 -0
  114. data/app/packs/stylesheets/decidim/theme/reset/_callout.scss +37 -0
  115. data/app/packs/stylesheets/decidim/theme/reset/_card.scss +1480 -0
  116. data/app/packs/stylesheets/decidim/theme/reset/_categories.scss +130 -0
  117. data/app/packs/stylesheets/decidim/theme/reset/_collapsible.scss +59 -0
  118. data/app/packs/stylesheets/decidim/theme/reset/_columns.scss +8 -0
  119. data/app/packs/stylesheets/decidim/theme/reset/_comments.scss +320 -0
  120. data/app/packs/stylesheets/decidim/theme/reset/_conversation.scss +158 -0
  121. data/app/packs/stylesheets/decidim/theme/reset/_data-consent.scss +133 -0
  122. data/app/packs/stylesheets/decidim/theme/reset/_data-picker.scss +243 -0
  123. data/app/packs/stylesheets/decidim/theme/reset/_definition_data.scss +93 -0
  124. data/app/packs/stylesheets/decidim/theme/reset/_docs-manager.scss +16 -0
  125. data/app/packs/stylesheets/decidim/theme/reset/_dropdown_menu.scss +312 -0
  126. data/app/packs/stylesheets/decidim/theme/reset/_errors.scss +87 -0
  127. data/app/packs/stylesheets/decidim/theme/reset/_extra.scss +56 -0
  128. data/app/packs/stylesheets/decidim/theme/reset/_filters.scss +224 -0
  129. data/app/packs/stylesheets/decidim/theme/reset/_floating_helper.scss +133 -0
  130. data/app/packs/stylesheets/decidim/theme/reset/_form.scss +176 -0
  131. data/app/packs/stylesheets/decidim/theme/reset/_home.scss +416 -0
  132. data/app/packs/stylesheets/decidim/theme/reset/_home_section.scss +23 -0
  133. data/app/packs/stylesheets/decidim/theme/reset/_horizontal-tabs.scss +130 -0
  134. data/app/packs/stylesheets/decidim/theme/reset/_icons.scss +3 -0
  135. data/app/packs/stylesheets/decidim/theme/reset/_inline-filters.scss +77 -0
  136. data/app/packs/stylesheets/decidim/theme/reset/_label.scss +79 -0
  137. data/app/packs/stylesheets/decidim/theme/reset/_labels.scss +53 -0
  138. data/app/packs/stylesheets/decidim/theme/reset/_layout.scss +82 -0
  139. data/app/packs/stylesheets/decidim/theme/reset/_lines_breadcrumb.scss +38 -0
  140. data/app/packs/stylesheets/decidim/theme/reset/_login.scss +3 -0
  141. data/app/packs/stylesheets/decidim/theme/reset/_logo_wrapper.scss +28 -0
  142. data/app/packs/stylesheets/decidim/theme/reset/_main_container.scss +96 -0
  143. data/app/packs/stylesheets/decidim/theme/reset/_metric-chart.scss +25 -0
  144. data/app/packs/stylesheets/decidim/theme/reset/_navbar.scss +763 -0
  145. data/app/packs/stylesheets/decidim/theme/reset/_opinion_toggle.scss +55 -0
  146. data/app/packs/stylesheets/decidim/theme/reset/_order-by.scss +34 -0
  147. data/app/packs/stylesheets/decidim/theme/reset/_org-chart.scss +6 -0
  148. data/app/packs/stylesheets/decidim/theme/reset/_pagination.scss +195 -0
  149. data/app/packs/stylesheets/decidim/theme/reset/_process.scss +20 -0
  150. data/app/packs/stylesheets/decidim/theme/reset/_process_header.scss +97 -0
  151. data/app/packs/stylesheets/decidim/theme/reset/_process_header_phase.scss +13 -0
  152. data/app/packs/stylesheets/decidim/theme/reset/_process_nav.scss +317 -0
  153. data/app/packs/stylesheets/decidim/theme/reset/_progress_bar.scss +89 -0
  154. data/app/packs/stylesheets/decidim/theme/reset/_quill.scss +47 -0
  155. data/app/packs/stylesheets/decidim/theme/reset/_result_per_page.scss +82 -0
  156. data/app/packs/stylesheets/decidim/theme/reset/_results.scss +158 -0
  157. data/app/packs/stylesheets/decidim/theme/reset/_reveal.scss +210 -0
  158. data/app/packs/stylesheets/decidim/theme/reset/_scope-picker.scss +10 -0
  159. data/app/packs/stylesheets/decidim/theme/reset/_select.scss +92 -0
  160. data/app/packs/stylesheets/decidim/theme/reset/_signup.scss +179 -0
  161. data/app/packs/stylesheets/decidim/theme/reset/_statistics.scss +42 -0
  162. data/app/packs/stylesheets/decidim/theme/reset/_switch.scss +272 -0
  163. data/app/packs/stylesheets/decidim/theme/reset/_tabs.scss +4 -0
  164. data/app/packs/stylesheets/decidim/theme/reset/_tags.scss +47 -0
  165. data/app/packs/stylesheets/decidim/theme/reset/_thumbnail.scss +66 -0
  166. data/app/packs/stylesheets/decidim/theme/reset/_timeline.scss +183 -0
  167. data/app/packs/stylesheets/decidim/theme/reset/_title_bar.scss +89 -0
  168. data/app/packs/stylesheets/decidim/theme/reset/_toggle.scss +14 -0
  169. data/app/packs/stylesheets/decidim/theme/reset/_tooltip.scss +173 -0
  170. data/app/packs/stylesheets/decidim/theme/reset/_typography.scss +283 -0
  171. data/app/packs/stylesheets/decidim/theme/reset/_upload_modal.scss +140 -0
  172. data/app/packs/stylesheets/decidim/theme/reset/_user-form.scss +15 -0
  173. data/app/packs/stylesheets/decidim/theme/reset/_user.scss +184 -0
  174. data/app/packs/stylesheets/decidim/theme/reset/_versions.scss +82 -0
  175. data/app/packs/stylesheets/decidim/theme/reset/_wrapper.scss +3 -0
  176. data/config/assets.rb +17 -0
  177. data/config/i18n-tasks.yml +10 -0
  178. data/config/locales/en.yml +62 -0
  179. data/config/locales/fr.yml +11 -0
  180. data/lib/decidim/theme/admin.rb +10 -0
  181. data/lib/decidim/theme/admin_engine.rb +27 -0
  182. data/lib/decidim/theme/engine.rb +29 -0
  183. data/lib/decidim/theme/test/factories.rb +13 -0
  184. data/lib/decidim/theme/version.rb +13 -0
  185. data/lib/decidim/theme.rb +12 -0
  186. metadata +271 -0
@@ -0,0 +1,317 @@
1
+ $nav-border-width: 3px;
2
+
3
+ .process-nav {
4
+ position: relative;
5
+ background-color: var(--white);
6
+ padding: 0.75rem 0.5rem;
7
+ box-shadow: unset;
8
+ @include breakpoint(small only) {
9
+ padding: 0;
10
+ }
11
+
12
+ &::after {
13
+ display: none;
14
+ }
15
+
16
+ ul {
17
+ margin: 0;
18
+ list-style: none;
19
+ }
20
+
21
+ .about-link {
22
+ font-size: 80%;
23
+ }
24
+
25
+ @include breakpoint(medium) {
26
+ padding: 0;
27
+
28
+ ul {
29
+ overflow-x: auto;
30
+ -webkit-overflow-scrolling: touch;
31
+ white-space: nowrap;
32
+ display: flex;
33
+ align-items: center;
34
+ flex-wrap: nowrap;
35
+ justify-content: space-between;
36
+ flex-grow: 1;
37
+ }
38
+
39
+ ul::-webkit-scrollbar {
40
+ display: none;
41
+ }
42
+
43
+ ul::after {
44
+ display: inline-block;
45
+ flex-grow: 1;
46
+ content: "";
47
+ }
48
+
49
+ li {
50
+ flex: 1;
51
+ align-items: center;
52
+ flex-grow: 1;
53
+ display: flex;
54
+ padding: 0;
55
+ }
56
+
57
+ .about-link {
58
+ float: right;
59
+ margin-right: 0;
60
+ margin-left: auto;
61
+ }
62
+ }
63
+ }
64
+
65
+ .process-nav__trigger {
66
+ display: block;
67
+ width: 100%;
68
+ text-align: left;
69
+ position: relative;
70
+ }
71
+
72
+ .process-nav__trigger__icon {
73
+ position: absolute;
74
+ right: 0.5rem;
75
+ top: 0.55rem;
76
+ }
77
+
78
+ .process-nav__content {
79
+ display: flex;
80
+ justify-content: space-between;
81
+ align-items: baseline;
82
+ @include breakpoint(medium down) {
83
+ display: none;
84
+
85
+ &.is-active {
86
+ display: block;
87
+ }
88
+ }
89
+ }
90
+
91
+ .process-nav__content li {
92
+ position: relative;
93
+ a {
94
+ display: block;
95
+ flex: 1;
96
+ padding: rem-calc(16) rem-calc(10) calc(rem-calc(16) + rem-calc(3px)) 1rem;
97
+ @include breakpoint(large) {
98
+ padding-left: rem-calc(10);
99
+ }
100
+ text-align: left;
101
+ color: var(--emphasis-low);
102
+ font-size: 16px;
103
+ text-transform: none;
104
+ @include breakpoint(large) {
105
+ text-align: center;
106
+ }
107
+ &:hover,
108
+ &:focus {
109
+ color: var(--primary);
110
+ text-decoration: none;
111
+ }
112
+ &::after {
113
+ display: none;
114
+ }
115
+ @include breakpoint(small only) {
116
+ &::after {
117
+ display: block;
118
+ content: "";
119
+ position: absolute;
120
+ bottom: 0;
121
+ left: 0;
122
+ height: 3px;
123
+ width: 100%;
124
+ background-color: var(--grey2);
125
+ z-index: 1;
126
+ }
127
+ &:hover,
128
+ &:focus {
129
+ &:after {
130
+ background-color: var(--primary);
131
+ }
132
+ }
133
+ }
134
+ }
135
+
136
+ @include breakpoint(small medium down) {
137
+ margin-top: 0;
138
+ }
139
+
140
+ &.is-active {
141
+ box-shadow: none;
142
+ display: flex;
143
+
144
+ & a,
145
+ & a:hover,
146
+ & a:focus {
147
+ color: var(--primary);
148
+ text-decoration: none;
149
+ &:after {
150
+ display: none;
151
+ }
152
+ @include breakpoint(small only) {
153
+ &::after {
154
+ display: block;
155
+ content: "";
156
+ position: absolute;
157
+ bottom: 0;
158
+ left: 0;
159
+ height: 3px;
160
+ width: 100%;
161
+ background-color: var(--grey2);
162
+ z-index: 1;
163
+ }
164
+ }
165
+ }
166
+ }
167
+ }
168
+
169
+ .process-nav__more {
170
+ @extend .btn--nav-more;
171
+
172
+ &:hover,
173
+ &:focus {
174
+ background: var(--primary);
175
+ color: var(--on-primary);
176
+ i {
177
+ background-color: var(--on-primary);
178
+ }
179
+ }
180
+ i {
181
+ @include square(5px);
182
+
183
+ border-radius: 100%;
184
+ background-color: var(--on-primary);
185
+ display: inline-block;
186
+ margin-top: 5px;
187
+ align-items: center;
188
+ vertical-align: middle;
189
+ margin-bottom: 0.25rem;
190
+
191
+ &:not(:last-child) {
192
+ margin-right: 0.1rem;
193
+ }
194
+ }
195
+ }
196
+
197
+ .process-nav__hidden-content.dropdown-pane {
198
+ background-color: var(--white);
199
+ box-shadow: var(--card-shadow);
200
+ padding: 0;
201
+ top: 0px !important;
202
+ & > ul {
203
+ padding-top: $global-padding * 0.5;
204
+ padding-left: 0;
205
+ display: flex;
206
+ flex-direction: column;
207
+ border-top: var(--divider-border);
208
+ justify-content: flex-start;
209
+ align-items: flex-start;
210
+ text-align: left;
211
+
212
+ &:after {
213
+ display: none;
214
+ }
215
+
216
+ & > li {
217
+ width: 100%;
218
+ padding: 0;
219
+ margin: 0;
220
+ a,
221
+ a:hover {
222
+ text-align: left;
223
+ &::after {
224
+ display: block;
225
+ content: "";
226
+ position: absolute;
227
+ bottom: 0;
228
+ left: 0;
229
+ height: 3px;
230
+ width: 100%;
231
+ background-color: var(--grey2);
232
+ z-index: 1;
233
+ }
234
+ }
235
+ }
236
+ }
237
+ }
238
+
239
+ .process-nav__hidden-content__more {
240
+ @extend .process-nav__more;
241
+ display: inline-flex;
242
+ align-items: center;
243
+ justify-content: flex-end;
244
+ text-align: right;
245
+ width: 100%;
246
+ min-height: 48px;
247
+ background-color: transparent;
248
+ border-bottom: $border;
249
+ padding-top: 1.25rem;
250
+ padding-bottom: $card-padding-small;
251
+ border-bottom-left-radius: 0px;
252
+ border-bottom-right-radius: 0px;
253
+ &,
254
+ &:hover,
255
+ &:focus {
256
+ background-color: var(--white);
257
+ color: var(--primary);
258
+ i {
259
+ background-color: var(--primary);
260
+ }
261
+ }
262
+ i {
263
+ background-color: var(--primary);
264
+ }
265
+ }
266
+
267
+ .process-nav__link {
268
+ @extend .body-4;
269
+ @extend .body-4-medium;
270
+ @extend .body-4-link;
271
+ text-transform: initial;
272
+ color: var(--primary);
273
+ display: inline-flex;
274
+ align-items: center;
275
+ padding: 0.62rem 1rem;
276
+ &:hover,
277
+ &.active,
278
+ &:focus {
279
+ background: var(--primary-10);
280
+ text-decoration: none !important;
281
+ }
282
+
283
+ svg {
284
+ margin-right: 0.4em;
285
+ width: 25px;
286
+ height: 25px;
287
+ fill: var(--grey2);
288
+
289
+ .stroked-shape {
290
+ fill: none;
291
+ fill-opacity: 1;
292
+ stroke-width: 2.01957917;
293
+ stroke-miterlimit: 4;
294
+ stroke-dasharray: none;
295
+ stroke-dashoffset: 0;
296
+ stroke: $muted;
297
+ }
298
+ }
299
+
300
+ &.process-nav__hidden-content__more {
301
+ text-align: left;
302
+ }
303
+ }
304
+
305
+ @include breakpoint(medium) {
306
+ .process-nav__link.is-active {
307
+ color: var(--primary);
308
+
309
+ svg {
310
+ fill: var(--primary);
311
+
312
+ .stroked-shape {
313
+ stroke: var(--primary);
314
+ }
315
+ }
316
+ }
317
+ }
@@ -0,0 +1,89 @@
1
+ // Foundation for Sites
2
+ // https://get.foundation
3
+ // Licensed under MIT Open Source
4
+ $progress-radius: 40px;
5
+ $progress-height: 1rem;
6
+ $progress-background: var(--grey2);
7
+
8
+ /// Adds styles for a progress bar container.
9
+ @mixin ov-progress-container {
10
+ height: $progress-height;
11
+ margin-bottom: $progress-margin-bottom;
12
+ border-radius: $progress-radius;
13
+ background-color: var(--grey2);
14
+ }
15
+
16
+ /// Adds styles for the inner meter of a progress bar.
17
+ @mixin ov-progress-meter {
18
+ position: relative;
19
+ display: block;
20
+ width: 0%;
21
+ height: 1rem;
22
+ background-color: var(--primary);
23
+ min-height: $progress-height;
24
+ &.progress-meter--minimum {
25
+ background-color: var(--grey2) !important;
26
+ }
27
+ @if has-value($progress-radius) {
28
+ border-radius: $progress-radius;
29
+ }
30
+ }
31
+
32
+ /// Adds styles for text in the progress meter.
33
+ @mixin ov-progress-meter-text {
34
+ @include absolute-center;
35
+ margin: 0;
36
+ font-size: 0.75rem;
37
+ font-weight: bold;
38
+ color: var(--white);
39
+ white-space: nowrap;
40
+ transform: translate(-42%, -50%);
41
+ @if has-value($progress-radius) {
42
+ border-radius: $progress-radius;
43
+ }
44
+ }
45
+
46
+ // Progress bar
47
+
48
+ .progress__bar {
49
+ .progress__bar__title .progress__bar__number {
50
+ color: var(--emphasis-low) !important;
51
+ }
52
+ .progress__bar__bar {
53
+ height: 1rem;
54
+ .progress__bar__bar--complete {
55
+ border-radius: $progress-radius;
56
+ background-color: $actions;
57
+ height: 1rem;
58
+ }
59
+
60
+ .progress__bar__bar--incomplete {
61
+ background-color: var(--grey2);
62
+ height: 1rem;
63
+ margin-left: 1px;
64
+ border-top-right-radius: $progress-radius;
65
+ border-bottom-right-radius: $progress-radius;
66
+ }
67
+ }
68
+
69
+ .progress {
70
+ @include ov-progress-container;
71
+ }
72
+ @each $name, $color in $foundation-palette {
73
+ &.#{$name} {
74
+ .progress-meter {
75
+ background-color: $color;
76
+ }
77
+ }
78
+ }
79
+ }
80
+
81
+ // Inner meter
82
+ .progress-meter {
83
+ @include ov-progress-meter;
84
+ }
85
+
86
+ // Inner meter text
87
+ .progress-meter-text {
88
+ @include ov-progress-meter-text;
89
+ }
@@ -0,0 +1,47 @@
1
+ //impact project cards, higligted process, blog card, randomly add or
2
+ //remove spaces here and there due to strange positioning that may not be due to css
3
+
4
+ .ql-reset-decidim {
5
+ & > p {
6
+ @extend .body-4;
7
+ margin-bottom: rem-calc(32);
8
+
9
+ //Used at least in blog component
10
+ padding: 0 $card-padding;
11
+
12
+ //used in projects cards
13
+ &:only-child {
14
+ padding: 0;
15
+ margin: 0;
16
+ }
17
+ }
18
+ }
19
+
20
+ .ql-editor.ql-reset-decidim {
21
+ &:not(.card--post) {
22
+ & > p {
23
+ //Was used at least in help page but stopped working for some reason
24
+ padding: $card-padding 0;
25
+
26
+ //used in projects cards
27
+ &:only-child {
28
+ padding: 0;
29
+ margin: 0;
30
+ }
31
+ }
32
+ }
33
+ }
34
+
35
+ .card__content {
36
+ & > .ql-editor.ql-reset-decidim {
37
+ padding-top: 0;
38
+ padding-right: $card-padding;
39
+ padding-bottom: $card-padding;
40
+ padding-left: $card-padding;
41
+ }
42
+
43
+ > .card__header {
44
+ margin: 0;
45
+ padding-bottom: 0;
46
+ }
47
+ }
@@ -0,0 +1,82 @@
1
+ //Variables
2
+ $order-border: $border;
3
+
4
+ /* Results per page styles */
5
+ .results-per-page {
6
+ margin-bottom: 1rem;
7
+ display: flex;
8
+ align-items: flex-start;
9
+ flex-wrap: wrap;
10
+ z-index: 10;
11
+ .results-per-page__text {
12
+ @extend .body-4;
13
+ color: var(--emphasis-med);
14
+ }
15
+
16
+ a:hover {
17
+ color: var(--primary);
18
+ background: var(--primary-10);
19
+
20
+ text-decoration: none;
21
+ }
22
+
23
+ a:focus {
24
+ outline: var(--primary);
25
+ }
26
+ }
27
+
28
+ .results-per-page__dropdown {
29
+ transform: translateY(-4px);
30
+ z-index: 1;
31
+ .menu {
32
+ margin-top: 0;
33
+ .is-dropdown-submenu-parent > a {
34
+ padding: 1rem 0.5rem;
35
+ margin-left: 0.5rem;
36
+ margin-top: 0.25rem;
37
+ }
38
+ }
39
+ }
40
+
41
+ .results-per-page__dropdown--right {
42
+ margin-left: auto;
43
+ }
44
+
45
+ .results-per-page__action {
46
+ margin-left: auto;
47
+ justify-content: flex-end;
48
+
49
+ .button {
50
+ margin-bottom: 0;
51
+ }
52
+ }
53
+
54
+ .results-per-page__tabs {
55
+ display: inline-block;
56
+ }
57
+
58
+ .results-per-page__tab {
59
+ color: $muted;
60
+
61
+ &::after {
62
+ content: "";
63
+ display: inline-block;
64
+ height: 0.75em;
65
+ border-left: $border;
66
+ margin: 0 0.2em 0 0.5em;
67
+ vertical-align: middle;
68
+ }
69
+
70
+ &.is-active {
71
+ color: var(--primary);
72
+ background: var(--primary-10);
73
+ }
74
+
75
+ &:first-of-type {
76
+ padding-left: 0;
77
+ }
78
+
79
+ &:last-of-type::after {
80
+ border-left: none;
81
+ }
82
+ }
@@ -0,0 +1,158 @@
1
+ .result-view .result-meta .result-meta--data {
2
+ @extend .body-4;
3
+ }
4
+ .result-view .result-meta {
5
+ @extend .body-4;
6
+ }
7
+
8
+ .accountability {
9
+ .result-view .result-meta {
10
+ @extend .body-4;
11
+ }
12
+
13
+ .result-view .result-meta .result-meta--data {
14
+ @extend .body-4;
15
+ }
16
+
17
+ .intro {
18
+ ul {
19
+ margin-bottom: 1rem;
20
+ }
21
+
22
+ .progress-level {
23
+ @extend .card;
24
+ margin-bottom: 0;
25
+
26
+ p {
27
+ margin-bottom: 1rem;
28
+ display: inline-block;
29
+ margin-right: 0.5rem;
30
+ @extend .body-2;
31
+ @extend .body-2-semibold;
32
+ color: var(--emphasis-low);
33
+ }
34
+
35
+ .icon {
36
+ background: var(--grey2);
37
+ border-radius: 50%;
38
+ fill: white;
39
+ padding: 0.15rem;
40
+ }
41
+
42
+ .progress {
43
+ max-width: 85%;
44
+ margin-bottom: 0;
45
+ }
46
+
47
+ .progress-figure {
48
+ @extend .heading-2;
49
+ color: var(--emphasis-lowest);
50
+ margin-top: 2.25rem;
51
+ }
52
+ }
53
+ }
54
+
55
+ .scope-filters {
56
+ div {
57
+ @extend .mini-title;
58
+ margin-bottom: 0.5rem;
59
+ }
60
+
61
+ span {
62
+ margin-right: 0.5rem;
63
+ }
64
+
65
+ ul {
66
+ display: inline;
67
+ }
68
+
69
+ li.active {
70
+ background-color: var(--grey2);
71
+ }
72
+ }
73
+
74
+ .description {
75
+ margin-bottom: 1rem;
76
+ }
77
+
78
+ .title-action {
79
+ margin-bottom: 0.5rem;
80
+ }
81
+ }
82
+
83
+ .result-view {
84
+ .title {
85
+ display: flex;
86
+ align-items: flex-start;
87
+ margin-bottom: 1rem;
88
+ flex-direction: column;
89
+
90
+ .icon {
91
+ fill: $secondary;
92
+ min-width: 1.5rem;
93
+ min-height: 1.5rem;
94
+ margin-bottom: 0.5rem;
95
+
96
+ @include breakpoint(medium) {
97
+ margin-right: 0.75rem;
98
+ margin-top: 0.5rem;
99
+ }
100
+ }
101
+
102
+ @include breakpoint(medium) {
103
+ flex-direction: row;
104
+ }
105
+ }
106
+
107
+ .progress-level {
108
+ background: $white;
109
+ border-radius: 4px;
110
+ padding: 1.5rem;
111
+ border: 1px solid var(--grey2);
112
+
113
+ .progress-label {
114
+ display: flex;
115
+ justify-content: space-between;
116
+ align-items: flex-end;
117
+ margin-bottom: 0.5rem;
118
+
119
+ .progress-text {
120
+ @extend .body-2;
121
+ @extend .body-2-semibold;
122
+ color: var(--emphasis-low);
123
+ }
124
+
125
+ .progress-figure {
126
+ line-height: 1;
127
+ font-size: 2.25rem;
128
+ font-weight: 600;
129
+ margin-top: 2.25rem;
130
+ }
131
+ }
132
+ }
133
+
134
+ .result-description div {
135
+ margin-bottom: 1rem;
136
+ }
137
+
138
+ .result-meta {
139
+ margin-bottom: 0.5rem;
140
+
141
+ .result-meta--label {
142
+ font-weight: inherit;
143
+ @extend .mini-title;
144
+ }
145
+ }
146
+
147
+ hr {
148
+ width: 100%;
149
+ margin: 0 0 3rem;
150
+ }
151
+
152
+ .timeline {
153
+ .timeline__info {
154
+ background-color: transparent;
155
+ border: none;
156
+ }
157
+ }
158
+ }