@politicalwatch/tipi-uikit 1.3.0

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 (178) hide show
  1. package/.browserslistrc +2 -0
  2. package/.editorconfig +7 -0
  3. package/.eslintrc.js +11 -0
  4. package/.postcssrc.json +5 -0
  5. package/.prettierrc.js +7 -0
  6. package/.stylelintrc +24 -0
  7. package/README.md +21 -0
  8. package/package.json +45 -0
  9. package/src/assets/.gitkeep +0 -0
  10. package/src/assets/birthday_bg.png +0 -0
  11. package/src/assets/party_logos/bildu.png +0 -0
  12. package/src/assets/party_logos/bng.png +0 -0
  13. package/src/assets/party_logos/ca.jpeg +0 -0
  14. package/src/assets/party_logos/ciudadanos.png +0 -0
  15. package/src/assets/party_logos/compromis.jpg +0 -0
  16. package/src/assets/party_logos/cup.png +0 -0
  17. package/src/assets/party_logos/eajpnv.png +0 -0
  18. package/src/assets/party_logos/encomupodem.jpg +0 -0
  19. package/src/assets/party_logos/erc.png +0 -0
  20. package/src/assets/party_logos/fac.png +0 -0
  21. package/src/assets/party_logos/icon/bng.svg +4 -0
  22. package/src/assets/party_logos/icon/coalicioncanaria.svg +7 -0
  23. package/src/assets/party_logos/icon/compromis.svg +3 -0
  24. package/src/assets/party_logos/icon/cs.svg +3 -0
  25. package/src/assets/party_logos/icon/cup.svg +4 -0
  26. package/src/assets/party_logos/icon/ehbildu.svg +4 -0
  27. package/src/assets/party_logos/icon/encomu.svg +3 -0
  28. package/src/assets/party_logos/icon/erc.svg +5 -0
  29. package/src/assets/party_logos/icon/foroasturias.svg +4 -0
  30. package/src/assets/party_logos/icon/iu.svg +3 -0
  31. package/src/assets/party_logos/icon/jxcat.svg +3 -0
  32. package/src/assets/party_logos/icon/maspais.svg +3 -0
  33. package/src/assets/party_logos/icon/nuevacanaria.svg +3 -0
  34. package/src/assets/party_logos/icon/pdecat.svg +3 -0
  35. package/src/assets/party_logos/icon/pnv.svg +4 -0
  36. package/src/assets/party_logos/icon/podemos.svg +3 -0
  37. package/src/assets/party_logos/icon/pp.svg +4 -0
  38. package/src/assets/party_logos/icon/prc.svg +5 -0
  39. package/src/assets/party_logos/icon/psoe.svg +3 -0
  40. package/src/assets/party_logos/icon/sumar.svg +73 -0
  41. package/src/assets/party_logos/icon/teruelexiste.svg +3 -0
  42. package/src/assets/party_logos/icon/unidaspodemos.svg +27 -0
  43. package/src/assets/party_logos/icon/upn.svg +5 -0
  44. package/src/assets/party_logos/icon/vox.svg +4 -0
  45. package/src/assets/party_logos/iu.png +0 -0
  46. package/src/assets/party_logos/jxcat.png +0 -0
  47. package/src/assets/party_logos/mas-pais.jpg +0 -0
  48. package/src/assets/party_logos/nueva_canarias.png +0 -0
  49. package/src/assets/party_logos/pdecat.png +0 -0
  50. package/src/assets/party_logos/podemos.jpg +0 -0
  51. package/src/assets/party_logos/pp.png +0 -0
  52. package/src/assets/party_logos/prc.png +0 -0
  53. package/src/assets/party_logos/psc.png +0 -0
  54. package/src/assets/party_logos/pse-ee.png +0 -0
  55. package/src/assets/party_logos/psoe.png +0 -0
  56. package/src/assets/party_logos/teruelexiste.svg +4 -0
  57. package/src/assets/party_logos/unidaspodemos.png +0 -0
  58. package/src/assets/party_logos/upn.jpg +0 -0
  59. package/src/assets/party_logos/vox.png +0 -0
  60. package/src/assets/svg/icon-advanced.svg +3 -0
  61. package/src/assets/svg/icon-bell.svg +3 -0
  62. package/src/assets/svg/icon-birthday.svg +18 -0
  63. package/src/assets/svg/icon-building.svg +3 -0
  64. package/src/assets/svg/icon-calendar.svg +4 -0
  65. package/src/assets/svg/icon-chevron-down.svg +3 -0
  66. package/src/assets/svg/icon-chevron-left.svg +3 -0
  67. package/src/assets/svg/icon-chevron-right.svg +3 -0
  68. package/src/assets/svg/icon-chevron-up.svg +3 -0
  69. package/src/assets/svg/icon-clock.svg +4 -0
  70. package/src/assets/svg/icon-close-menu.svg +3 -0
  71. package/src/assets/svg/icon-close.svg +3 -0
  72. package/src/assets/svg/icon-conversation.svg +3 -0
  73. package/src/assets/svg/icon-denied.svg +3 -0
  74. package/src/assets/svg/icon-document.svg +4 -0
  75. package/src/assets/svg/icon-download.svg +3 -0
  76. package/src/assets/svg/icon-error.svg +3 -0
  77. package/src/assets/svg/icon-github.svg +9 -0
  78. package/src/assets/svg/icon-hamburger.svg +1 -0
  79. package/src/assets/svg/icon-info.svg +3 -0
  80. package/src/assets/svg/icon-less.svg +3 -0
  81. package/src/assets/svg/icon-location.svg +3 -0
  82. package/src/assets/svg/icon-mail.svg +4 -0
  83. package/src/assets/svg/icon-more.svg +5 -0
  84. package/src/assets/svg/icon-open-blank.svg +3 -0
  85. package/src/assets/svg/icon-plus.svg +3 -0
  86. package/src/assets/svg/icon-search.svg +4 -0
  87. package/src/assets/svg/icon-success.svg +3 -0
  88. package/src/assets/svg/icon-twitter.svg +3 -0
  89. package/src/assets/svg/icon-upload.svg +3 -0
  90. package/src/components/CSVDownload/CSVDownload.vue +77 -0
  91. package/src/components/Charts/Barchart/d3.barchart.js +488 -0
  92. package/src/components/Charts/Barchart/d3.barchart.vue +16 -0
  93. package/src/components/Charts/Sliceschart/d3.sliceschart.js +272 -0
  94. package/src/components/Charts/Sliceschart/d3.sliceschart.vue +20 -0
  95. package/src/components/Charts/Sunburst/d3.sunburst.js +416 -0
  96. package/src/components/Charts/Sunburst/d3.sunburst.vue +23 -0
  97. package/src/components/Charts/WordsCloud/d3.wordscloud.js +336 -0
  98. package/src/components/Charts/WordsCloud/d3.wordscloud.vue +16 -0
  99. package/src/components/Charts/d3.chart.js +242 -0
  100. package/src/components/Charts/d3.chart.vue +80 -0
  101. package/src/components/Charts/styles.scss +92 -0
  102. package/src/components/CongressLink/CongressLink.vue +17 -0
  103. package/src/components/Deputy/Deputy.vue +119 -0
  104. package/src/components/Header/Header.vue +15 -0
  105. package/src/components/Icon/Icon.vue +33 -0
  106. package/src/components/InitiativeCard/InitiativeCard.vue +98 -0
  107. package/src/components/InitiativeMeta/InitiativeMeta.vue +85 -0
  108. package/src/components/Loader/Loader.vue +27 -0
  109. package/src/components/Message/Message.vue +29 -0
  110. package/src/components/Navbar/Navbar.vue +96 -0
  111. package/src/components/Neuron/Neuron.vue +209 -0
  112. package/src/components/PartyLogo/PartyLogo.vue +59 -0
  113. package/src/components/PartyLogo/PartyLogoIcon.vue +229 -0
  114. package/src/components/Results/Results.vue +109 -0
  115. package/src/components/Splash/Splash.vue +42 -0
  116. package/src/components/Text/Text.vue +59 -0
  117. package/src/components/TipiCharts/TipiBarchart.vue +204 -0
  118. package/src/components/TopicCard/TopicCard.vue +40 -0
  119. package/src/components/TopicLink/TopicLink.vue +33 -0
  120. package/src/components/TopicPill/TopicPill.vue +69 -0
  121. package/src/components/Topics/Topics.vue +84 -0
  122. package/src/components/TwoCircles/TwoCircles.vue +138 -0
  123. package/src/components/index.js +53 -0
  124. package/src/main.js +11 -0
  125. package/src/styles/01_settings/_settings__breakpoints.scss +28 -0
  126. package/src/styles/01_settings/_settings__colors.scss +30 -0
  127. package/src/styles/01_settings/_settings__fonts.scss +3 -0
  128. package/src/styles/01_settings/_settings__icons.scss +0 -0
  129. package/src/styles/01_settings/_settings__variables.scss +45 -0
  130. package/src/styles/02_tools/_tools__functions.scss +19 -0
  131. package/src/styles/02_tools/_tools__mixins.scss +321 -0
  132. package/src/styles/03_generic/_generic__box-sizing.scss +12 -0
  133. package/src/styles/03_generic/_generic__global.scss +20 -0
  134. package/src/styles/03_generic/_generic__normalize.scss +371 -0
  135. package/src/styles/04_base/_base__anchors.scss +8 -0
  136. package/src/styles/04_base/_base__blockquotes.scss +8 -0
  137. package/src/styles/04_base/_base__forms.scss +32 -0
  138. package/src/styles/04_base/_base__headings.scss +23 -0
  139. package/src/styles/04_base/_base__images.scss +4 -0
  140. package/src/styles/04_base/_base__lists.scss +66 -0
  141. package/src/styles/04_base/_base__paragraphs.scss +11 -0
  142. package/src/styles/04_base/_base__tables.scss +95 -0
  143. package/src/styles/05_objects/_objects__columns.scss +29 -0
  144. package/src/styles/05_objects/_objects__container.scss +19 -0
  145. package/src/styles/05_objects/_objects__grid.scss +57 -0
  146. package/src/styles/05_objects/_objects__masonry.scss +11 -0
  147. package/src/styles/05_objects/_objects__media.scss +24 -0
  148. package/src/styles/05_objects/_objects__section.scss +21 -0
  149. package/src/styles/06_components/_components__button.scss +178 -0
  150. package/src/styles/06_components/_components__congress-link.scss +12 -0
  151. package/src/styles/06_components/_components__decorator.scss +10 -0
  152. package/src/styles/06_components/_components__deputy.scss +167 -0
  153. package/src/styles/06_components/_components__disclaimer.scss +24 -0
  154. package/src/styles/06_components/_components__forms.scss +454 -0
  155. package/src/styles/06_components/_components__header.scss +36 -0
  156. package/src/styles/06_components/_components__icon.scss +17 -0
  157. package/src/styles/06_components/_components__initiative-card.scss +49 -0
  158. package/src/styles/06_components/_components__initiative-meta.scss +91 -0
  159. package/src/styles/06_components/_components__loader.scss +125 -0
  160. package/src/styles/06_components/_components__menu.scss +104 -0
  161. package/src/styles/06_components/_components__message.scss +66 -0
  162. package/src/styles/06_components/_components__navbar.scss +114 -0
  163. package/src/styles/06_components/_components__party-logo.scss +21 -0
  164. package/src/styles/06_components/_components__splash.scss +29 -0
  165. package/src/styles/06_components/_components__text.scss +69 -0
  166. package/src/styles/06_components/_components__topic-card.scss +36 -0
  167. package/src/styles/06_components/_components__topic-link.scss +37 -0
  168. package/src/styles/06_components/_components__topics.scss +107 -0
  169. package/src/styles/07_trumps/_trumps__borders.scss +1 -0
  170. package/src/styles/07_trumps/_trumps__colors.scss +3 -0
  171. package/src/styles/07_trumps/_trumps__grid.scss +1 -0
  172. package/src/styles/07_trumps/_trumps__helpers.scss +17 -0
  173. package/src/styles/07_trumps/_trumps__texts.scss +39 -0
  174. package/src/styles/07_trumps/_trumps__visibility.scss +56 -0
  175. package/src/styles/main.scss +54 -0
  176. package/src/utils/index.js +26 -0
  177. package/svgo.config.js +16 -0
  178. package/vite.config.js +57 -0
@@ -0,0 +1,454 @@
1
+ .c-input-label {
2
+ display: inline-block;
3
+ border: solid 1px $secondary;
4
+ background-color: $white;
5
+ padding: rem($spacer-unit * 2);
6
+
7
+ input {
8
+ @include tbody;
9
+
10
+ outline: none;
11
+ border: none;
12
+ display: block;
13
+ background: transparent;
14
+ padding: 0;
15
+
16
+ &::placeholder {
17
+ @include tbody;
18
+
19
+ color: $secondary;
20
+ }
21
+
22
+ &[type='file'] {
23
+ width: 100%;
24
+ height: 100%;
25
+ }
26
+ }
27
+
28
+ ::-webkit-file-upload-button {
29
+ border: 0;
30
+ color: transparent;
31
+ width: 0;
32
+ position: relative;
33
+ padding: 0;
34
+ margin: 0;
35
+ }
36
+
37
+ label {
38
+ @include overline;
39
+
40
+ display: block;
41
+ }
42
+
43
+ &--disabled {
44
+ background-color: $secondary-light;
45
+ pointer-events: none;
46
+ }
47
+
48
+ &--error {
49
+ border-color: $error;
50
+ box-shadow: 0 0 0 4px $error inset;
51
+ }
52
+
53
+ &--file {
54
+ position: relative;
55
+
56
+ &::after {
57
+ position: absolute;
58
+ content: '';
59
+ right: rem($spacer-unit * 2);
60
+ top: 50%;
61
+ transform: translateY(-50%);
62
+ pointer-events: none;
63
+ width: rem($spacer-unit * 4);
64
+ height: rem($spacer-unit * 3);
65
+ background: url('../assets/svg/icon-upload.svg') no-repeat center center;
66
+ }
67
+ }
68
+ }
69
+
70
+ .c-select-label {
71
+ display: inline-block;
72
+ border: solid 1px $secondary;
73
+ background-color: $white;
74
+ padding: rem($spacer-unit * 2);
75
+ position: relative;
76
+
77
+ input {
78
+ padding: 0;
79
+ border: 0;
80
+ }
81
+
82
+ select {
83
+ @include tbody;
84
+
85
+ outline: none;
86
+ border: none;
87
+ display: block;
88
+ background: transparent;
89
+ appearance: none;
90
+ color: $secondary;
91
+ width: 110%;
92
+
93
+ &::placeholder {
94
+ @include tbody;
95
+
96
+ color: $secondary;
97
+ }
98
+ }
99
+
100
+ label {
101
+ @include overline;
102
+
103
+ display: block;
104
+ }
105
+
106
+ &::after {
107
+ position: absolute;
108
+ content: '';
109
+ right: rem($spacer-unit * 2);
110
+ bottom: rem($spacer-unit * 2);
111
+ pointer-events: none;
112
+ width: rem($spacer-unit * 4);
113
+ height: rem($spacer-unit * 3);
114
+ background: url('../assets/svg/icon-chevron-down.svg') no-repeat center
115
+ center;
116
+ }
117
+
118
+ .multiselect {
119
+ min-height: 24px;
120
+
121
+ &__select {
122
+ min-height: 24px;
123
+
124
+ &::before {
125
+ display: none;
126
+ }
127
+ }
128
+
129
+ &__single,
130
+ &__placeholder {
131
+ @include tbody;
132
+
133
+ margin: 0;
134
+ padding: 0;
135
+ color: $secondary;
136
+ }
137
+
138
+ &__single {
139
+ color: $secondary-dark;
140
+ }
141
+
142
+ &__tags {
143
+ border: none;
144
+ padding-top: 0;
145
+ padding-left: 0;
146
+ min-height: 24px;
147
+ background-color: transparent;
148
+ }
149
+
150
+ &__content {
151
+ li {
152
+ background-color: $white;
153
+ margin-bottom: rem(calc($spacer-unit / 2));
154
+
155
+ &::before {
156
+ display: none;
157
+ }
158
+ }
159
+ }
160
+
161
+ &__content-wrapper {
162
+ border: none;
163
+ border-radius: 0;
164
+ background: transparent;
165
+ }
166
+
167
+ &__option {
168
+ @include tbody;
169
+
170
+ display: block;
171
+ border: solid 1px $secondary;
172
+ padding: rem($spacer-unit * 2);
173
+
174
+ &::after {
175
+ background-color: $completed;
176
+ }
177
+
178
+ &--highlight {
179
+ background-color: $secondary-dark;
180
+
181
+ &::after {
182
+ background-color: $secondary-dark;
183
+ }
184
+ }
185
+
186
+ &--selected {
187
+ background-color: $primary-light;
188
+
189
+ &::after {
190
+ background-color: $primary-light;
191
+ }
192
+ }
193
+
194
+ &--selected.multiselect__option--highlight {
195
+ background-color: $error;
196
+
197
+ &::after {
198
+ background-color: $error;
199
+ }
200
+ }
201
+ }
202
+
203
+ &__element {
204
+ background-color: $white;
205
+ margin-bottom: rem(calc($spacer-unit / 2));
206
+
207
+ &::before {
208
+ display: none;
209
+ }
210
+ }
211
+
212
+ &__input {
213
+ margin-bottom: 0;
214
+ padding: 0;
215
+ }
216
+
217
+ &__tags-wrap {
218
+ line-height: 1;
219
+ }
220
+
221
+ &__tag {
222
+ border-radius: 0;
223
+ background-color: $secondary-light;
224
+ padding: rem($spacer-unit) rem($spacer-unit * 4) rem($spacer-unit)
225
+ rem($spacer-unit);
226
+ color: $secondary-dark;
227
+ margin-top: rem(calc($spacer-unit / 2));
228
+ margin-bottom: rem(calc(-#{$spacer-unit} / 2));
229
+
230
+ &-icon {
231
+ line-height: 29px;
232
+ border-radius: 0;
233
+
234
+ &:hover {
235
+ background-color: $error;
236
+ }
237
+ }
238
+ }
239
+
240
+ &--disabled {
241
+ background-color: transparent;
242
+
243
+ .multiselect {
244
+ &__select {
245
+ background-color: transparent;
246
+ }
247
+ }
248
+ }
249
+ }
250
+
251
+ &--disabled {
252
+ background-color: $secondary-light;
253
+ pointer-events: none;
254
+ }
255
+
256
+ &--error {
257
+ border-color: $error;
258
+ box-shadow: 0 0 0 4px $error inset;
259
+ }
260
+ }
261
+
262
+ .c-datepicker-label {
263
+ display: inline-block;
264
+ border: solid 1px $secondary;
265
+ background-color: $white;
266
+ padding: rem($spacer-unit * 2);
267
+ position: relative;
268
+
269
+ input {
270
+ @include tbody;
271
+
272
+ outline: none;
273
+ border: none;
274
+ display: block;
275
+ background: transparent;
276
+ appearance: none;
277
+ color: $secondary-dark;
278
+ padding: 0;
279
+
280
+ &::placeholder {
281
+ @include tbody;
282
+
283
+ color: $secondary;
284
+ }
285
+ }
286
+
287
+ label {
288
+ @include overline;
289
+
290
+ display: block;
291
+ }
292
+
293
+ &::after {
294
+ position: absolute;
295
+ content: '';
296
+ right: rem($spacer-unit * 2);
297
+ bottom: rem($spacer-unit * 2);
298
+ pointer-events: none;
299
+ width: rem($spacer-unit * 4);
300
+ height: rem($spacer-unit * 3);
301
+ background: url('../assets/svg/icon-calendar.svg') no-repeat center center;
302
+ }
303
+
304
+ .vdp-datepicker {
305
+ &__calendar {
306
+ border: 0;
307
+
308
+ header {
309
+ .prev {
310
+ background-color: $secondary;
311
+
312
+ &:not(.disabled):hover {
313
+ background-color: $secondary-light;
314
+ }
315
+
316
+ &::after {
317
+ border: 0;
318
+ width: rem(10px);
319
+ height: rem($spacer-unit * 2);
320
+ background: url('../assets/svg/icon-chevron-left.svg') transparent;
321
+ }
322
+ }
323
+
324
+ .up {
325
+ @include overline;
326
+
327
+ height: 40px;
328
+ background-color: $secondary;
329
+ color: $white;
330
+ display: flex;
331
+ justify-content: center;
332
+ align-items: center;
333
+
334
+ &:not(.disabled):hover {
335
+ background-color: $secondary-dark;
336
+ }
337
+ }
338
+
339
+ .next {
340
+ background-color: $secondary;
341
+
342
+ &:not(.disabled):hover {
343
+ background-color: $secondary-light;
344
+ }
345
+
346
+ &::after {
347
+ border: 0;
348
+ width: rem(10px);
349
+ height: rem($spacer-unit * 2);
350
+ background: url('../assets/svg/icon-chevron-right.svg') transparent;
351
+ }
352
+ }
353
+ }
354
+
355
+ .cell.day-header {
356
+ @include overline;
357
+
358
+ height: auto;
359
+ margin: rem($spacer-unit) 0;
360
+ }
361
+
362
+ .cell.day:not(.blank):not(.disabled) {
363
+ @include overline;
364
+
365
+ color: $secondary;
366
+ background-color: $secondary-light;
367
+ border: 2px solid $white;
368
+ display: inline-flex;
369
+ justify-content: center;
370
+ align-items: center;
371
+
372
+ &:hover,
373
+ &.selected {
374
+ border: 2px solid $white;
375
+ background-color: $secondary;
376
+ color: $white;
377
+ }
378
+ }
379
+ }
380
+
381
+ &__clear-button {
382
+ display: none;
383
+ }
384
+ }
385
+ }
386
+
387
+ .c-checkbox {
388
+ input[type='checkbox'] {
389
+ appearance: none;
390
+ position: relative;
391
+ top: 2px;
392
+ width: rem($spacer-unit * 2);
393
+ height: rem($spacer-unit * 2);
394
+ margin-right: rem(calc($spacer-unit / 2));
395
+ outline: none;
396
+
397
+ &::before {
398
+ display: block;
399
+ top: 0;
400
+ left: 0;
401
+ content: '';
402
+ border: solid 1px $secondary;
403
+ width: rem($spacer-unit * 2);
404
+ height: rem($spacer-unit * 2);
405
+ background: $white;
406
+ box-shadow: 0 0 0 2px $white inset;
407
+ }
408
+
409
+ &:checked {
410
+ &::before {
411
+ background: $secondary;
412
+ }
413
+ }
414
+ }
415
+
416
+ label {
417
+ color: $secondary-dark;
418
+ }
419
+ }
420
+
421
+ .c-radio {
422
+ input[type='radio'] {
423
+ appearance: none;
424
+ position: relative;
425
+ top: 2px;
426
+ width: rem($spacer-unit * 2);
427
+ height: rem($spacer-unit * 2);
428
+ margin-right: rem(calc($spacer-unit / 2));
429
+ outline: none;
430
+
431
+ &::before {
432
+ display: block;
433
+ top: 0;
434
+ left: 0;
435
+ content: '';
436
+ border-radius: 50%;
437
+ border: solid 1px $secondary;
438
+ width: rem($spacer-unit * 2);
439
+ height: rem($spacer-unit * 2);
440
+ background: $white;
441
+ box-shadow: 0 0 0 2px $white inset;
442
+ }
443
+
444
+ &:checked {
445
+ &::before {
446
+ background: $secondary;
447
+ }
448
+ }
449
+ }
450
+
451
+ label {
452
+ color: $secondary-dark;
453
+ }
454
+ }
@@ -0,0 +1,36 @@
1
+ .c-page-header {
2
+ margin-bottom: rem($spacer-unit * 4);
3
+ padding-bottom: rem($spacer-unit * 4);
4
+ border-bottom: 1px solid $neutral;
5
+
6
+ @media (min-width: $md) {
7
+ margin-bottom: rem($spacer-unit * 8);
8
+ }
9
+
10
+ &__title {
11
+ margin-bottom: rem($spacer-unit * 2);
12
+ color: $secondary-dark;
13
+
14
+ a {
15
+ color: $secondary-dark;
16
+ }
17
+ }
18
+
19
+ &__subtitle {
20
+ @include subtitle;
21
+
22
+ color: $secondary;
23
+ margin: 0;
24
+ }
25
+
26
+ &--nosub {
27
+ padding-bottom: rem($spacer-unit * 2);
28
+
29
+ .c-page-header {
30
+
31
+ &__title {
32
+ margin-bottom: 0;
33
+ }
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,17 @@
1
+ .c-icon {
2
+ @each $color-name, $color-value in $colors {
3
+
4
+ &--#{$color-name} {
5
+
6
+ path {
7
+ fill: $color-value !important;
8
+ }
9
+ }
10
+ }
11
+
12
+ &--type-less {
13
+ svg {
14
+ margin-bottom: 4px;
15
+ }
16
+ }
17
+ }
@@ -0,0 +1,49 @@
1
+ .c-initiative-card {
2
+ @include tbody2;
3
+
4
+ border-bottom: 1px solid $neutral;
5
+ padding-bottom: rem($spacer-unit * 2);
6
+
7
+ &__topics {
8
+ margin-bottom: rem($spacer-unit * 2);
9
+ }
10
+
11
+ &__title {
12
+ @include tbody;
13
+
14
+ margin-bottom: rem($spacer-unit * 2);
15
+
16
+ a {
17
+ color: $secondary-dark;
18
+ text-decoration: none;
19
+
20
+ &:hover {
21
+ text-decoration: underline;
22
+ }
23
+ }
24
+ }
25
+
26
+ &__authors {
27
+ @include tbody2;
28
+
29
+ margin-bottom: rem($spacer-unit * 2);
30
+
31
+ p {
32
+ margin: 0;
33
+ }
34
+ }
35
+
36
+ &__label {
37
+ @include overline;
38
+
39
+ margin: 0;
40
+ }
41
+
42
+ &__date {
43
+ color: $secondary;
44
+ }
45
+
46
+ .c-initiative-meta {
47
+ margin-bottom: 0px;
48
+ }
49
+ }
@@ -0,0 +1,91 @@
1
+ .c-initiative-meta {
2
+
3
+ &__status {
4
+ @include overline;
5
+
6
+ display: block;
7
+ color: $white;
8
+ padding: rem($spacer-unit);
9
+ text-align: center;
10
+
11
+ &--neutral {
12
+ background-color: $secondary;
13
+ color: $black;
14
+ }
15
+
16
+ &--completed {
17
+ background-color: $completed;
18
+ color: $white;
19
+ }
20
+
21
+ &--error {
22
+ background-color: $error;
23
+ color: $white;
24
+ }
25
+ }
26
+
27
+ &__link {
28
+ @include overline;
29
+
30
+ text-transform: none;
31
+ text-decoration: none;
32
+ color: $black;
33
+ display: flex;
34
+ align-items: center;
35
+ justify-content: center;
36
+
37
+ svg {
38
+ margin-right: rem($spacer-unit);
39
+ }
40
+
41
+ &:hover {
42
+ color: $primary;
43
+
44
+ svg {
45
+
46
+ path {
47
+ fill: $primary;
48
+ }
49
+ }
50
+ }
51
+ }
52
+
53
+ .c-icon {
54
+ margin-right: 8px;
55
+ }
56
+
57
+ &__status {
58
+ text-align: left;
59
+ padding: 0 0 0 rem($spacer-unit);
60
+
61
+ &--neutral {
62
+ background-color: transparent;
63
+ border-color: $secondary;
64
+ color: $secondary;
65
+
66
+ svg path {
67
+ fill: $secondary;
68
+ }
69
+ }
70
+
71
+ &--completed {
72
+ background-color: transparent;
73
+ border-color: $completed;
74
+ color: $completed;
75
+
76
+ svg path {
77
+ fill: $completed;
78
+ }
79
+ }
80
+
81
+ &--error {
82
+ background-color: transparent;
83
+ border-color: $error;
84
+ color: $error;
85
+
86
+ svg path {
87
+ fill: $error;
88
+ }
89
+ }
90
+ }
91
+ }