@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,177 @@
1
+ .c-deputy {
2
+ padding: rem($spacer-unit * 8) rem($spacer-unit * 4) rem($spacer-unit * 4);
3
+ background-color: $secondary-light;
4
+ color: $secondary-dark;
5
+
6
+ @media (min-width: $md) {
7
+ margin-bottom: rem($spacer-unit * 4);
8
+ }
9
+
10
+ &__image_container {
11
+ position: relative;
12
+ width: rem($spacer-unit * 20);
13
+ height: rem($spacer-unit * 20);
14
+ margin: 0 auto 30px;
15
+
16
+ @media (min-width: $md) {
17
+ width: rem($spacer-unit * 20);
18
+ height: rem($spacer-unit * 20);
19
+ }
20
+ }
21
+
22
+ &__image {
23
+ width: rem($spacer-unit * 20);
24
+ height: rem($spacer-unit * 20);
25
+ border-radius: 50%;
26
+ object-fit: cover;
27
+ border: 2px solid $secondary;
28
+ margin: 0 auto rem($spacer-unit) auto;
29
+ display: block;
30
+ position: absolute;
31
+ z-index: 0;
32
+
33
+ @media (min-width: $md) {
34
+ margin: 0 0 0 auto;
35
+ }
36
+ }
37
+
38
+ &__name {
39
+ @include th2;
40
+
41
+ & {
42
+ text-align: center;
43
+ margin: 0 0 rem($spacer-unit) 0;
44
+ }
45
+
46
+ @media (min-width: $sm) {
47
+ text-align: left;
48
+ }
49
+ }
50
+
51
+ &__group {
52
+ @include subtitle;
53
+
54
+ & {
55
+ text-transform: uppercase;
56
+ margin: 0 0 rem($spacer-unit) 0;
57
+ text-align: center;
58
+ }
59
+
60
+ @media (min-width: $sm) {
61
+ text-align: left;
62
+ }
63
+
64
+ a {
65
+ text-decoration: none;
66
+ color: $secondary-dark;
67
+ }
68
+ }
69
+
70
+ &__description {
71
+ @include subtitle;
72
+
73
+ & {
74
+ text-align: center;
75
+ }
76
+
77
+ @media (min-width: $sm) {
78
+ text-align: left;
79
+ }
80
+ }
81
+
82
+ &__links {
83
+ @include th6;
84
+
85
+ & {
86
+ color: $secondary-dark;
87
+ text-align: center;
88
+ }
89
+
90
+ @media (min-width: $sm) {
91
+ text-align: left;
92
+ }
93
+
94
+ a {
95
+ color: $secondary-dark;
96
+ text-decoration: none;
97
+ display: block;
98
+
99
+ @media (min-width: $md) {
100
+ display: inline-block;
101
+ margin-right: rem($spacer-unit * 2);
102
+ }
103
+ }
104
+ }
105
+
106
+ &__extra {
107
+ margin-top: 8px;
108
+ margin-bottom: 8px;
109
+ text-align: center;
110
+
111
+ @media (min-width: $md) {
112
+ text-align: left;
113
+ }
114
+ }
115
+
116
+ &__personal {
117
+ margin-right: 16px;
118
+
119
+ span {
120
+ margin-right: 4px;
121
+ }
122
+ }
123
+
124
+ &__more {
125
+ text-align: center;
126
+
127
+ @media (min-width: $md) {
128
+ text-align: left;
129
+ }
130
+
131
+ a,
132
+ a:hover {
133
+ color: $secondary-dark;
134
+ font-weight: 500;
135
+ text-decoration: none;
136
+
137
+ .c-icon {
138
+ margin-left: 8px;
139
+ }
140
+ }
141
+ }
142
+
143
+ &__info {
144
+ display: inline-block;
145
+ vertical-align: top;
146
+ font-size: 14px;
147
+ margin-top: rem($spacer-unit * 8);
148
+
149
+ h3 {
150
+ color: $secondary;
151
+ font-size: 12px;
152
+ }
153
+
154
+ p,
155
+ a {
156
+ margin-top: 8px;
157
+ margin-bottom: 8px;
158
+ }
159
+
160
+ a {
161
+ font-weight: 500;
162
+ color: $secondary-dark;
163
+ }
164
+
165
+ span {
166
+ margin-right: 8px;
167
+ }
168
+ }
169
+
170
+ &__hidden {
171
+ display: none;
172
+ }
173
+
174
+ &__birthday {
175
+ background: url('../assets/birthday_bg.png');
176
+ }
177
+ }
@@ -0,0 +1,24 @@
1
+ .c-disclaimer {
2
+ @include overline;
3
+
4
+ text-transform: none;
5
+ color: $white;
6
+ background-color: $secondary-dark;
7
+ padding: rem($spacer-unit) rem($spacer-unit * 2);
8
+ display: flex;
9
+ align-items: center;
10
+
11
+ a {
12
+ color: $white;
13
+ text-decoration: none;
14
+ margin-left: auto;
15
+
16
+ img {
17
+ height: 25px;
18
+ width: auto;
19
+ padding-right: 5px;
20
+ vertical-align: middle;
21
+ }
22
+
23
+ }
24
+ }
@@ -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,37 @@
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
+ & {
23
+ color: $secondary;
24
+ margin: 0;
25
+ }
26
+ }
27
+
28
+ &--nosub {
29
+ padding-bottom: rem($spacer-unit * 2);
30
+
31
+ .c-page-header {
32
+ &__title {
33
+ margin-bottom: 0;
34
+ }
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,27 @@
1
+ .c-icon {
2
+ svg {
3
+ width: 16px;
4
+ height: 16px;
5
+ }
6
+
7
+ &--type-location {
8
+ svg {
9
+ width: 14px;
10
+ height: 16px;
11
+ }
12
+ }
13
+
14
+ @each $color-name, $color-value in $colors {
15
+ &--#{$color-name} {
16
+ path {
17
+ fill: $color-value !important;
18
+ }
19
+ }
20
+ }
21
+
22
+ &--type-less {
23
+ svg {
24
+ margin-bottom: 4px;
25
+ }
26
+ }
27
+ }