@politicalwatch/tipi-uikit 1.0.0-dev

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 (238) 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/.storybook/main.js +19 -0
  7. package/.storybook/preview.js +17 -0
  8. package/.stylelintrc +24 -0
  9. package/README.md +21 -0
  10. package/dist/bng-890acecf.mjs +29 -0
  11. package/dist/coalicioncanaria-6f4c1db4.mjs +18 -0
  12. package/dist/compromis-5ea8e904.mjs +23 -0
  13. package/dist/cs-de2f22f8.mjs +21 -0
  14. package/dist/cup-83f9d201.mjs +25 -0
  15. package/dist/ehbildu-23275d48.mjs +25 -0
  16. package/dist/encomu-90f0f0ee.mjs +23 -0
  17. package/dist/erc-83cebd9f.mjs +33 -0
  18. package/dist/foroasturias-c86ed9f1.mjs +27 -0
  19. package/dist/iu-0d57eb1a.mjs +23 -0
  20. package/dist/jxcat-69202004.mjs +23 -0
  21. package/dist/maspais-a61a53ef.mjs +21 -0
  22. package/dist/nuevacanaria-559edad7.mjs +21 -0
  23. package/dist/pdecat-0ec3db5a.mjs +21 -0
  24. package/dist/pnv-7f6f4b34.mjs +29 -0
  25. package/dist/podemos-de793077.mjs +21 -0
  26. package/dist/pp-13bed712.mjs +25 -0
  27. package/dist/prc-8a3d42c1.mjs +29 -0
  28. package/dist/psoe-97af3ccf.mjs +21 -0
  29. package/dist/style.css +1 -0
  30. package/dist/sumar-7dfecef0.mjs +29 -0
  31. package/dist/teruelexiste-7d4a17ab.mjs +21 -0
  32. package/dist/tipi-uikit.es.js +26196 -0
  33. package/dist/tipi-uikit.umd.js +134 -0
  34. package/dist/unidaspodemos-43ae78cc.mjs +18 -0
  35. package/dist/upn-e7eb332f.mjs +35 -0
  36. package/dist/vox-64380b40.mjs +25 -0
  37. package/package.json +57 -0
  38. package/src/assets/.gitkeep +0 -0
  39. package/src/assets/birthday_bg.png +0 -0
  40. package/src/assets/index.js +64 -0
  41. package/src/assets/party_logos/bildu.png +0 -0
  42. package/src/assets/party_logos/bng.png +0 -0
  43. package/src/assets/party_logos/ca.jpeg +0 -0
  44. package/src/assets/party_logos/ciudadanos.png +0 -0
  45. package/src/assets/party_logos/compromis.jpg +0 -0
  46. package/src/assets/party_logos/cup.png +0 -0
  47. package/src/assets/party_logos/eajpnv.png +0 -0
  48. package/src/assets/party_logos/encomupodem.jpg +0 -0
  49. package/src/assets/party_logos/erc.png +0 -0
  50. package/src/assets/party_logos/fac.png +0 -0
  51. package/src/assets/party_logos/icon/bng.svg +4 -0
  52. package/src/assets/party_logos/icon/coalicioncanaria.svg +7 -0
  53. package/src/assets/party_logos/icon/compromis.svg +3 -0
  54. package/src/assets/party_logos/icon/cs.svg +3 -0
  55. package/src/assets/party_logos/icon/cup.svg +4 -0
  56. package/src/assets/party_logos/icon/ehbildu.svg +4 -0
  57. package/src/assets/party_logos/icon/encomu.svg +3 -0
  58. package/src/assets/party_logos/icon/erc.svg +5 -0
  59. package/src/assets/party_logos/icon/foroasturias.svg +4 -0
  60. package/src/assets/party_logos/icon/iu.svg +3 -0
  61. package/src/assets/party_logos/icon/jxcat.svg +3 -0
  62. package/src/assets/party_logos/icon/maspais.svg +3 -0
  63. package/src/assets/party_logos/icon/nuevacanaria.svg +3 -0
  64. package/src/assets/party_logos/icon/party-error.svg +3 -0
  65. package/src/assets/party_logos/icon/pdecat.svg +3 -0
  66. package/src/assets/party_logos/icon/pnv.svg +4 -0
  67. package/src/assets/party_logos/icon/podemos.svg +3 -0
  68. package/src/assets/party_logos/icon/pp.svg +4 -0
  69. package/src/assets/party_logos/icon/prc.svg +5 -0
  70. package/src/assets/party_logos/icon/psoe.svg +3 -0
  71. package/src/assets/party_logos/icon/sumar.svg +73 -0
  72. package/src/assets/party_logos/icon/teruelexiste.svg +3 -0
  73. package/src/assets/party_logos/icon/unidaspodemos.svg +27 -0
  74. package/src/assets/party_logos/icon/upn.svg +5 -0
  75. package/src/assets/party_logos/icon/vox.svg +4 -0
  76. package/src/assets/party_logos/iu.png +0 -0
  77. package/src/assets/party_logos/jxcat.png +0 -0
  78. package/src/assets/party_logos/mas-pais.jpg +0 -0
  79. package/src/assets/party_logos/nueva_canarias.png +0 -0
  80. package/src/assets/party_logos/pdecat.png +0 -0
  81. package/src/assets/party_logos/podemos.jpg +0 -0
  82. package/src/assets/party_logos/pp.png +0 -0
  83. package/src/assets/party_logos/prc.png +0 -0
  84. package/src/assets/party_logos/psc.png +0 -0
  85. package/src/assets/party_logos/pse-ee.png +0 -0
  86. package/src/assets/party_logos/psoe.png +0 -0
  87. package/src/assets/party_logos/teruelexiste.svg +4 -0
  88. package/src/assets/party_logos/unidaspodemos.png +0 -0
  89. package/src/assets/party_logos/upn.jpg +0 -0
  90. package/src/assets/party_logos/vox.png +0 -0
  91. package/src/assets/svg/icon-advanced.svg +3 -0
  92. package/src/assets/svg/icon-bell.svg +3 -0
  93. package/src/assets/svg/icon-birthday.svg +18 -0
  94. package/src/assets/svg/icon-building.svg +3 -0
  95. package/src/assets/svg/icon-calendar.svg +4 -0
  96. package/src/assets/svg/icon-chevron-down.svg +3 -0
  97. package/src/assets/svg/icon-chevron-left.svg +3 -0
  98. package/src/assets/svg/icon-chevron-right.svg +3 -0
  99. package/src/assets/svg/icon-chevron-up.svg +3 -0
  100. package/src/assets/svg/icon-clock.svg +4 -0
  101. package/src/assets/svg/icon-close-menu.svg +3 -0
  102. package/src/assets/svg/icon-close.svg +3 -0
  103. package/src/assets/svg/icon-conversation.svg +3 -0
  104. package/src/assets/svg/icon-denied.svg +3 -0
  105. package/src/assets/svg/icon-document.svg +4 -0
  106. package/src/assets/svg/icon-download.svg +3 -0
  107. package/src/assets/svg/icon-error.svg +3 -0
  108. package/src/assets/svg/icon-footprint.svg +3 -0
  109. package/src/assets/svg/icon-github.svg +9 -0
  110. package/src/assets/svg/icon-hamburger.svg +1 -0
  111. package/src/assets/svg/icon-info.svg +3 -0
  112. package/src/assets/svg/icon-less.svg +3 -0
  113. package/src/assets/svg/icon-location.svg +3 -0
  114. package/src/assets/svg/icon-logout.svg +13 -0
  115. package/src/assets/svg/icon-mail.svg +4 -0
  116. package/src/assets/svg/icon-more.svg +5 -0
  117. package/src/assets/svg/icon-open-blank.svg +3 -0
  118. package/src/assets/svg/icon-plus.svg +3 -0
  119. package/src/assets/svg/icon-search.svg +4 -0
  120. package/src/assets/svg/icon-success.svg +3 -0
  121. package/src/assets/svg/icon-twitter.svg +3 -0
  122. package/src/assets/svg/icon-upload.svg +3 -0
  123. package/src/assets/svg/icons.js +67 -0
  124. package/src/components/CSVDownload/CSVDownload.vue +146 -0
  125. package/src/components/Charts/Barchart/d3.barchart.js +484 -0
  126. package/src/components/Charts/Barchart/d3.barchart.vue +16 -0
  127. package/src/components/Charts/Sliceschart/d3.sliceschart.js +372 -0
  128. package/src/components/Charts/Sliceschart/d3.sliceschart.vue +20 -0
  129. package/src/components/Charts/Sunburst/d3.sunburst.js +412 -0
  130. package/src/components/Charts/Sunburst/d3.sunburst.vue +23 -0
  131. package/src/components/Charts/WordsCloud/d3.wordscloud.js +332 -0
  132. package/src/components/Charts/WordsCloud/d3.wordscloud.vue +16 -0
  133. package/src/components/Charts/d3.chart.js +242 -0
  134. package/src/components/Charts/d3.chart.vue +81 -0
  135. package/src/components/Charts/styles.scss +92 -0
  136. package/src/components/CongressLink/CongressLink.vue +19 -0
  137. package/src/components/Deputy/Deputy.vue +106 -0
  138. package/src/components/Header/Header.vue +19 -0
  139. package/src/components/Icon/Icon.vue +30 -0
  140. package/src/components/InitiativeCard/InitiativeCard.vue +94 -0
  141. package/src/components/InitiativeMeta/InitiativeMeta.vue +79 -0
  142. package/src/components/Loader/Loader.vue +23 -0
  143. package/src/components/Message/Message.vue +27 -0
  144. package/src/components/Navbar/Navbar.vue +117 -0
  145. package/src/components/Neuron/Neuron.vue +211 -0
  146. package/src/components/PartyLogo/PartyLogo.vue +58 -0
  147. package/src/components/PartyLogo/PartyLogoIcon.vue +239 -0
  148. package/src/components/Results/Results.vue +114 -0
  149. package/src/components/Splash/Splash.vue +43 -0
  150. package/src/components/Text/Text.vue +69 -0
  151. package/src/components/TipiCharts/TipiBarchart.vue +204 -0
  152. package/src/components/TopicCard/TopicCard.vue +52 -0
  153. package/src/components/TopicLink/TopicLink.vue +37 -0
  154. package/src/components/TopicPill/TopicPill.vue +67 -0
  155. package/src/components/Topics/Topics.vue +79 -0
  156. package/src/components/TwoCircles/TwoCircles.vue +134 -0
  157. package/src/components/index.js +57 -0
  158. package/src/main.js +11 -0
  159. package/src/stories/CSVDownload.stories.js +245 -0
  160. package/src/stories/CongressLink.stories.js +21 -0
  161. package/src/stories/D3BarChart.stories.js +40 -0
  162. package/src/stories/D3SlicesChart.stories.js +64 -0
  163. package/src/stories/D3Sunburst.stories.js +293 -0
  164. package/src/stories/D3WordsCloud.stories.js +64 -0
  165. package/src/stories/Deputy.stories.js +168 -0
  166. package/src/stories/Header.stories.js +26 -0
  167. package/src/stories/Icon.stories.js +25 -0
  168. package/src/stories/InitiativeCard.stories.js +58 -0
  169. package/src/stories/InitiativeMeta.stories.js +37 -0
  170. package/src/stories/Loader.stories.js +25 -0
  171. package/src/stories/Message.stories.js +49 -0
  172. package/src/stories/Navbar.stories.js +85 -0
  173. package/src/stories/Neuron.stories.js +210 -0
  174. package/src/stories/PartyLogo.stories.js +21 -0
  175. package/src/stories/PartyLogoIcon.stories.js +21 -0
  176. package/src/stories/Results.stories.js +350 -0
  177. package/src/stories/Splash.stories.js +25 -0
  178. package/src/stories/Text.stories.js +46 -0
  179. package/src/stories/TopicCard.stories.js +775 -0
  180. package/src/stories/TopicLink.stories.js +778 -0
  181. package/src/stories/TopicPill.stories.js +46 -0
  182. package/src/stories/Topics.stories.js +80 -0
  183. package/src/stories/TwoCircles.stories.js +144 -0
  184. package/src/stories/mocks.js +153 -0
  185. package/src/styles/01_settings/_settings__breakpoints.scss +28 -0
  186. package/src/styles/01_settings/_settings__colors.scss +30 -0
  187. package/src/styles/01_settings/_settings__fonts.scss +3 -0
  188. package/src/styles/01_settings/_settings__icons.scss +0 -0
  189. package/src/styles/01_settings/_settings__variables.scss +45 -0
  190. package/src/styles/02_tools/_tools__functions.scss +19 -0
  191. package/src/styles/02_tools/_tools__mixins.scss +321 -0
  192. package/src/styles/03_generic/_generic__box-sizing.scss +12 -0
  193. package/src/styles/03_generic/_generic__global.scss +20 -0
  194. package/src/styles/03_generic/_generic__normalize.scss +371 -0
  195. package/src/styles/04_base/_base__anchors.scss +8 -0
  196. package/src/styles/04_base/_base__blockquotes.scss +10 -0
  197. package/src/styles/04_base/_base__forms.scss +32 -0
  198. package/src/styles/04_base/_base__headings.scss +23 -0
  199. package/src/styles/04_base/_base__images.scss +4 -0
  200. package/src/styles/04_base/_base__lists.scss +66 -0
  201. package/src/styles/04_base/_base__paragraphs.scss +11 -0
  202. package/src/styles/04_base/_base__tables.scss +95 -0
  203. package/src/styles/05_objects/_objects__columns.scss +29 -0
  204. package/src/styles/05_objects/_objects__container.scss +19 -0
  205. package/src/styles/05_objects/_objects__grid.scss +57 -0
  206. package/src/styles/05_objects/_objects__masonry.scss +11 -0
  207. package/src/styles/05_objects/_objects__media.scss +24 -0
  208. package/src/styles/05_objects/_objects__section.scss +21 -0
  209. package/src/styles/06_components/_components__button.scss +178 -0
  210. package/src/styles/06_components/_components__congress-link.scss +12 -0
  211. package/src/styles/06_components/_components__decorator.scss +10 -0
  212. package/src/styles/06_components/_components__deputy.scss +177 -0
  213. package/src/styles/06_components/_components__disclaimer.scss +24 -0
  214. package/src/styles/06_components/_components__forms.scss +454 -0
  215. package/src/styles/06_components/_components__header.scss +37 -0
  216. package/src/styles/06_components/_components__icon.scss +27 -0
  217. package/src/styles/06_components/_components__initiative-card.scss +49 -0
  218. package/src/styles/06_components/_components__initiative-meta.scss +91 -0
  219. package/src/styles/06_components/_components__loader.scss +125 -0
  220. package/src/styles/06_components/_components__menu.scss +110 -0
  221. package/src/styles/06_components/_components__message.scss +66 -0
  222. package/src/styles/06_components/_components__navbar.scss +114 -0
  223. package/src/styles/06_components/_components__party-logo.scss +21 -0
  224. package/src/styles/06_components/_components__splash.scss +29 -0
  225. package/src/styles/06_components/_components__text.scss +69 -0
  226. package/src/styles/06_components/_components__topic-card.scss +40 -0
  227. package/src/styles/06_components/_components__topic-link.scss +37 -0
  228. package/src/styles/06_components/_components__topics.scss +107 -0
  229. package/src/styles/07_trumps/_trumps__borders.scss +1 -0
  230. package/src/styles/07_trumps/_trumps__colors.scss +3 -0
  231. package/src/styles/07_trumps/_trumps__grid.scss +1 -0
  232. package/src/styles/07_trumps/_trumps__helpers.scss +17 -0
  233. package/src/styles/07_trumps/_trumps__texts.scss +39 -0
  234. package/src/styles/07_trumps/_trumps__visibility.scss +56 -0
  235. package/src/styles/main.scss +54 -0
  236. package/src/utils/index.js +26 -0
  237. package/svgo.config.js +16 -0
  238. package/vite.config.js +54 -0
@@ -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
+ }
@@ -0,0 +1,125 @@
1
+ .c-loader {
2
+ padding: rem($spacer-unit * 4) rem($spacer-unit * 2);
3
+ color: $secondary-dark;
4
+ text-align: center;
5
+ background-color: $secondary-light;
6
+
7
+ &__text {
8
+ margin-top: rem($spacer-unit * 2);
9
+ }
10
+
11
+ &__title {
12
+ @include th5;
13
+
14
+ & {
15
+ margin: 0 0 rem($spacer-unit) 0;
16
+ }
17
+
18
+ @media (min-width: $md) {
19
+ @include th4;
20
+
21
+ & {
22
+ margin: 0 0 rem($spacer-unit) 0;
23
+ }
24
+ }
25
+ }
26
+
27
+ &__spinner {
28
+ margin: 0 auto;
29
+ width: rem($spacer-unit * 5);
30
+ height: rem($spacer-unit * 5);
31
+ position: relative;
32
+ animation: sk-chase 2.5s infinite linear both;
33
+ }
34
+
35
+ &__spinner-dot {
36
+ width: 100%;
37
+ height: 100%;
38
+ position: absolute;
39
+ left: 0;
40
+ top: 0;
41
+ animation: sk-chase-dot 2s infinite ease-in-out both;
42
+
43
+ &::before {
44
+ content: '';
45
+ display: block;
46
+ width: 25%;
47
+ height: 25%;
48
+ background-color: $secondary;
49
+ border-radius: 100%;
50
+ animation: sk-chase-dot-before 2s infinite ease-in-out both;
51
+ }
52
+
53
+ &:nth-child(1) {
54
+ animation-delay: -1.1s;
55
+
56
+ &::before {
57
+ animation-delay: -1.1s;
58
+ }
59
+ }
60
+
61
+ &:nth-child(2) {
62
+ animation-delay: -1s;
63
+
64
+ &::before {
65
+ animation-delay: -1s;
66
+ }
67
+ }
68
+
69
+ &:nth-child(3) {
70
+ animation-delay: -0.9s;
71
+
72
+ &::before {
73
+ animation-delay: -0.9s;
74
+ }
75
+ }
76
+
77
+ &:nth-child(4) {
78
+ animation-delay: -0.8s;
79
+
80
+ &::before {
81
+ animation-delay: -0.8s;
82
+ }
83
+ }
84
+
85
+ &:nth-child(5) {
86
+ animation-delay: -0.7s;
87
+
88
+ &::before {
89
+ animation-delay: -0.7s;
90
+ }
91
+ }
92
+
93
+ &:nth-child(6) {
94
+ animation-delay: -0.6s;
95
+
96
+ &::before {
97
+ animation-delay: -0.6s;
98
+ }
99
+ }
100
+ }
101
+ }
102
+
103
+ @keyframes sk-chase {
104
+ 100% {
105
+ transform: rotate(360deg);
106
+ }
107
+ }
108
+
109
+ @keyframes sk-chase-dot {
110
+ 80%,
111
+ 100% {
112
+ transform: rotate(360deg);
113
+ }
114
+ }
115
+
116
+ @keyframes sk-chase-dot-before {
117
+ 50% {
118
+ transform: scale(0.4);
119
+ }
120
+
121
+ 100%,
122
+ 0% {
123
+ transform: scale(1);
124
+ }
125
+ }
@@ -0,0 +1,110 @@
1
+ /* stylelint-disable no-descending-specificity */
2
+ .c-menu {
3
+ @include th6;
4
+
5
+ & {
6
+ color: $menu-link-color;
7
+ list-style: none;
8
+ text-align: center;
9
+ padding-top: rem($spacer-unit * 4);
10
+ }
11
+
12
+ @media (min-width: $md) {
13
+ @include tbody;
14
+
15
+ & {
16
+ display: flex;
17
+ flex-wrap: wrap;
18
+ flex: 1;
19
+ text-align: left;
20
+ padding: 0 0 0 rem($spacer-unit * 4);
21
+ margin: 0;
22
+ justify-content: flex-end;
23
+ }
24
+ }
25
+
26
+ &__submenu {
27
+ margin: rem($spacer-unit * 2) 0 0 0;
28
+ padding: 0;
29
+
30
+ @media (min-width: $md) {
31
+ position: absolute;
32
+ top: 100%;
33
+ left: rem($spacer-unit * 2);
34
+ transform: translateY(-$spacer-unit);
35
+ opacity: 0;
36
+ transition:
37
+ opacity 0.2s linear,
38
+ transform 0.2s linear;
39
+ margin: 0;
40
+ padding: rem($spacer-unit);
41
+ background: $white;
42
+ box-shadow: inset 0 -2px 2px 0 rgba(0, 0, 0, 0.1);
43
+ z-index: 10;
44
+ }
45
+
46
+ .c-menu__item {
47
+ margin-bottom: rem($spacer-unit);
48
+ }
49
+ }
50
+
51
+ &__item {
52
+ margin-bottom: rem($spacer-unit * 2);
53
+
54
+ @media (min-width: $md) {
55
+ margin-bottom: 0;
56
+ padding: 0 rem($spacer-unit * 2);
57
+ }
58
+
59
+ &::before {
60
+ display: none;
61
+ }
62
+
63
+ &:hover {
64
+ .c-menu__submenu {
65
+ @media (min-width: $md) {
66
+ opacity: 1;
67
+ transform: translateY(0);
68
+ }
69
+ }
70
+ }
71
+
72
+ &.has-submenu {
73
+ position: relative;
74
+
75
+ &::after {
76
+ @media (min-width: $md) {
77
+ position: absolute;
78
+ content: '';
79
+ right: 0;
80
+ top: rem($spacer-unit);
81
+ pointer-events: none;
82
+ width: rem($spacer-unit);
83
+ height: rem($spacer-unit);
84
+ background: url('../assets/svg/icon-chevron-down.svg') no-repeat
85
+ center center;
86
+ background-size: contain;
87
+ }
88
+ }
89
+ }
90
+ }
91
+
92
+ &__link {
93
+ color: $menu-link-color;
94
+ text-decoration: none;
95
+
96
+ &:hover {
97
+ color: $primary;
98
+ text-decoration: none;
99
+ }
100
+ }
101
+
102
+ &__icon {
103
+ margin-left: 5px;
104
+
105
+ & svg {
106
+ width: 10px;
107
+ height: 10px;
108
+ }
109
+ }
110
+ }
@@ -0,0 +1,66 @@
1
+ .c-message {
2
+ margin-bottom: rem($spacer-unit * 2);
3
+
4
+ &__wrapper {
5
+ @include tbody2;
6
+
7
+ display: inline-block;
8
+ padding: rem($spacer-unit * 2) rem($spacer-unit * 4);
9
+ background-color: $completed;
10
+ color: $white;
11
+ position: relative;
12
+ }
13
+
14
+ &__icon {
15
+ position: absolute;
16
+ left: rem($spacer-unit * 2);
17
+ margin-top: rem(calc($spacer-unit / 4));
18
+
19
+ svg {
20
+ path {
21
+ fill: $white;
22
+ }
23
+ }
24
+ }
25
+
26
+ &--error {
27
+ .c-message {
28
+ &__wrapper {
29
+ background-color: $error;
30
+ }
31
+ }
32
+ }
33
+
34
+ &--info {
35
+ .c-message {
36
+ &__wrapper {
37
+ color: $secondary-dark;
38
+ background-color: $secondary-light;
39
+ }
40
+
41
+ &__icon {
42
+ svg {
43
+ path {
44
+ fill: $secondary;
45
+ }
46
+ }
47
+ }
48
+ }
49
+ }
50
+
51
+ &--icon {
52
+ .c-message {
53
+ &__wrapper {
54
+ padding-left: rem($spacer-unit * 5);
55
+ }
56
+ }
57
+ }
58
+
59
+ &.u-block {
60
+ .c-message {
61
+ &__wrapper {
62
+ display: block;
63
+ }
64
+ }
65
+ }
66
+ }
@@ -0,0 +1,114 @@
1
+ .c-navbar {
2
+ transition: height 1.3s ease;
3
+ box-shadow: inset 0 -2px 2px 0 rgba(0, 0, 0, 0.1);
4
+ background-color: $navbar-background-color;
5
+
6
+ &__wrapper {
7
+ display: flex;
8
+ justify-content: space-between;
9
+ padding: rem($spacer-unit * 3) rem($spacer-unit * 2);
10
+ flex-wrap: wrap;
11
+ }
12
+
13
+ &__brand {
14
+ flex: 0 1 80%;
15
+ max-width: $logo-mobile-width;
16
+
17
+ @media (min-width: $md) {
18
+ max-width: $logo-desktop-width;
19
+ }
20
+
21
+ &-link {
22
+ display: block;
23
+ }
24
+
25
+ &-logo {
26
+ display: block;
27
+ height: auto;
28
+ max-width: 100%;
29
+ }
30
+ }
31
+
32
+ &__menu {
33
+ transition: max-height 0.3s ease;
34
+ max-height: 0;
35
+ overflow: hidden;
36
+ width: 100%;
37
+
38
+ @media (min-width: $md) {
39
+ display: flex;
40
+ align-items: center;
41
+ justify-content: space-between;
42
+ flex: 1;
43
+ max-height: none;
44
+ width: auto;
45
+ overflow: visible;
46
+ }
47
+
48
+ &.is-active {
49
+ width: 100%;
50
+ max-height: 100vh;
51
+
52
+ @media (min-width: $md) {
53
+ width: auto;
54
+ }
55
+ }
56
+
57
+ &-toggle {
58
+ appearance: none;
59
+ background: transparent;
60
+ border: 0;
61
+ margin-left: auto;
62
+ flex: 0 0 24px;
63
+ display: block;
64
+ height: rem(18px);
65
+ width: rem(24px);
66
+ text-decoration: none;
67
+ position: relative;
68
+
69
+ @media (min-width: $md) {
70
+ display: none;
71
+ }
72
+
73
+ .bar {
74
+ display: block;
75
+ width: 100%;
76
+ height: 2px;
77
+ background: $navbar-toogle-color;
78
+ position: absolute;
79
+ right: 0;
80
+ top: 0;
81
+ transition: 0.25s ease-in-out;
82
+
83
+ &:nth-child(2) {
84
+ top: calc(50% - 1px);
85
+ }
86
+
87
+ &:nth-child(3) {
88
+ top: calc(100% - 2px);
89
+ }
90
+ }
91
+
92
+ &.is-active {
93
+ z-index: 100;
94
+
95
+ .bar {
96
+
97
+ &:nth-child(1) {
98
+ top: 50%;
99
+ transform: rotate(135deg);
100
+ }
101
+
102
+ &:nth-child(2) {
103
+ opacity: 0;
104
+ }
105
+
106
+ &:nth-child(3) {
107
+ top: 50%;
108
+ transform: rotate(-135deg);
109
+ }
110
+ }
111
+ }
112
+ }
113
+ }
114
+ }
@@ -0,0 +1,21 @@
1
+ .c-party_logo {
2
+ &__container {
3
+ width: rem($spacer-unit * 10);
4
+ height: rem($spacer-unit * 10);
5
+ border-radius: 50%;
6
+ object-fit: cover;
7
+ display: block;
8
+ position: absolute;
9
+ bottom: rem($spacer-unit * 10 * -0.25);
10
+ left: rem($spacer-unit * 10 * -0.25);
11
+ position: absolute;
12
+ text-align: center;
13
+ background-color: white;
14
+ overflow: hidden;
15
+ }
16
+
17
+ &__image {
18
+ max-width: 100%;
19
+ vertical-align: middle;
20
+ }
21
+ }
@@ -0,0 +1,29 @@
1
+ .c-splash {
2
+
3
+ &__outer {
4
+ position: fixed;
5
+ width: 100%;
6
+ height: 100%;
7
+ left: 0;
8
+ top: 0;
9
+ background-color: rgba($black, 0.5);
10
+ text-align: center;
11
+ z-index: 10;
12
+ }
13
+
14
+ &__inner {
15
+ position: absolute;
16
+ width: 95%;
17
+ max-width: 800px;
18
+ top: 50%;
19
+ left: 50%;
20
+ margin: 0;
21
+ transform: translate3d(-50%, -50%, 0);
22
+ background-color: $white;
23
+ padding: rem($spacer-unit * 2);
24
+
25
+ @media (min-width: $md) {
26
+ padding: rem($spacer-unit * 4);
27
+ }
28
+ }
29
+ }
@@ -0,0 +1,69 @@
1
+ .c-text {
2
+ margin-bottom: rem($spacer-unit * 4);
3
+
4
+ &__label {
5
+ @include overline;
6
+
7
+ color: $secondary;
8
+ margin: 0 0 rem($spacer-unit) 0;
9
+ }
10
+
11
+ &__value {
12
+ margin: 0;
13
+ color: $secondary-dark;
14
+ line-height: 1.94;
15
+ }
16
+
17
+ &__list {
18
+ margin: 0;
19
+ padding: 0;
20
+ list-style: none;
21
+
22
+ &-item {
23
+ display: flex;
24
+ align-items: center;
25
+
26
+ &::before {
27
+ display: none;
28
+ }
29
+
30
+ a {
31
+ color: $secondary-dark;
32
+ text-decoration: none;
33
+
34
+ &:hover {
35
+ text-decoration: underline;
36
+ }
37
+ }
38
+
39
+ &--image {
40
+ @include tbody2;
41
+
42
+ line-height: 1.43;
43
+ }
44
+ }
45
+ }
46
+
47
+ &__wrapper {
48
+ font-weight: 500;
49
+ flex: 1;
50
+
51
+ span {
52
+ @include overline;
53
+
54
+ display: block;
55
+ font-weight: 400;
56
+ color: $secondary;
57
+ }
58
+ }
59
+
60
+ &__image {
61
+ border: solid 2px $secondary;
62
+ width: rem($spacer-unit * 7);
63
+ height: rem($spacer-unit * 7);
64
+ object-fit: cover;
65
+ border-radius: 50%;
66
+ vertical-align: middle;
67
+ margin-right: rem($spacer-unit * 2);
68
+ }
69
+ }
@@ -0,0 +1,40 @@
1
+ .c-topic-card {
2
+ padding: rem($spacer-unit * 8) rem($spacer-unit * 4);
3
+ color: $white;
4
+
5
+ @media (min-width: $md) {
6
+ margin-bottom: rem($spacer-unit * 4);
7
+ }
8
+
9
+ &__image {
10
+ width: 100%;
11
+ display: block;
12
+ margin-bottom: rem($spacer-unit * 4);
13
+ max-height: 150px;
14
+ }
15
+
16
+ &__title {
17
+ @include th2;
18
+
19
+ & {
20
+ text-transform: uppercase;
21
+ text-align: center;
22
+ }
23
+
24
+ @media (min-width: $sm) {
25
+ text-align: left;
26
+ }
27
+ }
28
+
29
+ &__description {
30
+ @include subtitle;
31
+
32
+ & {
33
+ text-align: center;
34
+ }
35
+
36
+ @media (min-width: $sm) {
37
+ text-align: left;
38
+ }
39
+ }
40
+ }