@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,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
+ margin: 0 0 rem($spacer-unit) 0;
15
+
16
+ @media (min-width: $md) {
17
+ @include th4;
18
+
19
+ margin: 0 0 rem($spacer-unit) 0;
20
+ }
21
+ }
22
+
23
+ &__spinner {
24
+ margin: 0 auto;
25
+ width: rem($spacer-unit * 5);
26
+ height: rem($spacer-unit * 5);
27
+ position: relative;
28
+ animation: sk-chase 2.5s infinite linear both;
29
+ }
30
+
31
+ &__spinner-dot {
32
+ width: 100%;
33
+ height: 100%;
34
+ position: absolute;
35
+ left: 0;
36
+ top: 0;
37
+ animation: sk-chase-dot 2s infinite ease-in-out both;
38
+
39
+ &::before {
40
+ content: '';
41
+ display: block;
42
+ width: 25%;
43
+ height: 25%;
44
+ background-color: $secondary;
45
+ border-radius: 100%;
46
+ animation: sk-chase-dot-before 2s infinite ease-in-out both;
47
+ }
48
+
49
+ &:nth-child(1) {
50
+ animation-delay: -1.1s;
51
+
52
+ &::before {
53
+ animation-delay: -1.1s;
54
+ }
55
+ }
56
+
57
+ &:nth-child(2) {
58
+ animation-delay: -1s;
59
+
60
+ &::before {
61
+ animation-delay: -1s;
62
+ }
63
+ }
64
+
65
+ &:nth-child(3) {
66
+ animation-delay: -0.9s;
67
+
68
+ &::before {
69
+ animation-delay: -0.9s;
70
+ }
71
+ }
72
+
73
+ &:nth-child(4) {
74
+ animation-delay: -0.8s;
75
+
76
+ &::before {
77
+ animation-delay: -0.8s;
78
+ }
79
+ }
80
+
81
+ &:nth-child(5) {
82
+ animation-delay: -0.7s;
83
+
84
+ &::before {
85
+ animation-delay: -0.7s;
86
+ }
87
+ }
88
+
89
+ &:nth-child(6) {
90
+ animation-delay: -0.6s;
91
+
92
+ &::before {
93
+ animation-delay: -0.6s;
94
+ }
95
+ }
96
+ }
97
+
98
+ }
99
+
100
+ @keyframes sk-chase {
101
+
102
+ 100% {
103
+ transform: rotate(360deg);
104
+ }
105
+ }
106
+
107
+ @keyframes sk-chase-dot {
108
+
109
+ 80%,
110
+ 100% {
111
+ transform: rotate(360deg);
112
+ }
113
+ }
114
+
115
+ @keyframes sk-chase-dot-before {
116
+
117
+ 50% {
118
+ transform: scale(0.4);
119
+ }
120
+
121
+ 100%,
122
+ 0% {
123
+ transform: scale(1);
124
+ }
125
+ }
@@ -0,0 +1,104 @@
1
+ /* stylelint-disable no-descending-specificity */
2
+ .c-menu {
3
+ @include th6;
4
+
5
+ color: $menu-link-color;
6
+ list-style: none;
7
+ text-align: center;
8
+ padding-top: rem($spacer-unit * 4);
9
+
10
+ @media (min-width: $md) {
11
+ @include tbody;
12
+
13
+ display: flex;
14
+ flex-wrap: wrap;
15
+ flex: 1;
16
+ text-align: left;
17
+ padding: 0 0 0 rem($spacer-unit * 4);
18
+ margin: 0;
19
+ justify-content: flex-end;
20
+ }
21
+
22
+ &__submenu {
23
+ margin: rem($spacer-unit * 2) 0 0 0;
24
+ padding: 0;
25
+
26
+ @media (min-width: $md) {
27
+ position: absolute;
28
+ top: 100%;
29
+ left: rem($spacer-unit * 2);
30
+ transform: translateY(-$spacer-unit);
31
+ opacity: 0;
32
+ transition: opacity 0.2s linear, transform 0.2s linear;
33
+ margin: 0;
34
+ padding: rem($spacer-unit);
35
+ background: $white;
36
+ box-shadow: inset 0 -2px 2px 0 rgba(0, 0, 0, 0.1);
37
+ z-index: 10;
38
+ }
39
+
40
+ .c-menu__item {
41
+ margin-bottom: rem($spacer-unit);
42
+ }
43
+ }
44
+
45
+ &__item {
46
+ margin-bottom: rem($spacer-unit * 2);
47
+
48
+ @media (min-width: $md) {
49
+ margin-bottom: 0;
50
+ padding: 0 rem($spacer-unit * 2);
51
+ }
52
+
53
+ &::before {
54
+ display: none;
55
+ }
56
+
57
+ &:hover {
58
+
59
+ .c-menu__submenu {
60
+ @media (min-width: $md) {
61
+ opacity: 1;
62
+ transform: translateY(0);
63
+ }
64
+ }
65
+ }
66
+
67
+ &.has-submenu {
68
+ position: relative;
69
+
70
+ &::after {
71
+ @media (min-width: $md) {
72
+ position: absolute;
73
+ content: "";
74
+ right: 0;
75
+ top: rem($spacer-unit);
76
+ pointer-events: none;
77
+ width: rem($spacer-unit);
78
+ height: rem($spacer-unit);
79
+ background: url('../assets/svg/icon-chevron-down.svg') no-repeat center center;
80
+ background-size: contain;
81
+ }
82
+ }
83
+ }
84
+ }
85
+
86
+ &__link {
87
+ color: $menu-link-color;
88
+ text-decoration: none;
89
+
90
+ &:hover {
91
+ color: $primary;
92
+ text-decoration: none;
93
+ }
94
+ }
95
+
96
+ &__icon {
97
+ margin-left: 5px;
98
+
99
+ & svg {
100
+ width: 10px;
101
+ height: 10px;
102
+ }
103
+ }
104
+ }
@@ -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,36 @@
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
+ text-transform: uppercase;
20
+ text-align: center;
21
+
22
+ @media (min-width: $sm) {
23
+ text-align: left;
24
+ }
25
+ }
26
+
27
+ &__description {
28
+ @include subtitle;
29
+
30
+ text-align: center;
31
+
32
+ @media (min-width: $sm) {
33
+ text-align: left;
34
+ }
35
+ }
36
+ }
@@ -0,0 +1,37 @@
1
+ .c-topic-link {
2
+
3
+ &__image-link {
4
+ display: flex;
5
+ justify-content: center;
6
+ align-items: center;
7
+ padding: rem($spacer-unit * 2);
8
+ margin-bottom: rem($spacer-unit * 2);
9
+ transition: transform 0.3s ease;
10
+
11
+ &::after {
12
+ content: "";
13
+ display: block;
14
+ padding-bottom: 100%;
15
+ }
16
+
17
+ &:hover {
18
+ transform: scale(1.05);
19
+ }
20
+ }
21
+
22
+ &__image {
23
+ max-width: 80%;
24
+ max-height: 80%;
25
+ }
26
+
27
+ &__name {
28
+ @include overline;
29
+
30
+ text-align: center;
31
+
32
+ a {
33
+ color: $secondary;
34
+ text-decoration: none;
35
+ }
36
+ }
37
+ }
@@ -0,0 +1,107 @@
1
+ .c-topics {
2
+ display: flex;
3
+ flex-wrap: wrap;
4
+
5
+ &__topic {
6
+ @include overline;
7
+
8
+ flex: 0 0 auto;
9
+ color: $topic-pill-color;
10
+ padding: rem($spacer-unit);
11
+ text-decoration: none;
12
+ margin: 0 $topic-pill-separator $topic-pill-separator 0;
13
+
14
+ &__small {
15
+ margin-left: 1px;
16
+ float: left;
17
+ }
18
+
19
+ &:hover {
20
+ text-decoration: underline;
21
+ }
22
+ }
23
+
24
+ &__label {
25
+ @include overline;
26
+
27
+ color: $secondary;
28
+ margin: 0 0 rem($spacer-unit) 0;
29
+ }
30
+
31
+ &--extended {
32
+ display: block;
33
+
34
+ .c-topics {
35
+
36
+ &__list {
37
+ margin-top: rem($spacer-unit * 2);
38
+
39
+ &-subtopic {
40
+ margin-top: rem($spacer-unit);
41
+ }
42
+
43
+ &-tags {
44
+ display: flex;
45
+ flex-wrap: wrap;
46
+
47
+ .c-topics__tag {
48
+ &:hover {
49
+ text-decoration: underline;
50
+ }
51
+ }
52
+ }
53
+
54
+ &-topic {
55
+ margin-bottom: rem($spacer-unit * 4);
56
+ }
57
+ }
58
+
59
+ &__subtopic {
60
+ @include tbody2;
61
+
62
+ text-decoration: none;
63
+ font-weight: 500;
64
+
65
+ > .c-topics__link {
66
+ display: inline-block;
67
+ margin: rem($spacer-unit) 0;
68
+ color: $secondary-dark;
69
+ text-decoration: none;
70
+
71
+ &:hover {
72
+ text-decoration: underline;
73
+ }
74
+ }
75
+ }
76
+
77
+ &__tag {
78
+ @include overline;
79
+
80
+ margin-right: rem($spacer-unit);
81
+ margin-bottom: rem($spacer-unit);
82
+ display: inline-block;
83
+ text-transform: none;
84
+ background-color: $secondary-light;
85
+ padding: rem($spacer-unit);
86
+ flex: 0 auto;
87
+
88
+ .c-topics__link {
89
+ color: $secondary-dark;
90
+ text-decoration: none;
91
+ }
92
+ }
93
+ }
94
+
95
+ ul {
96
+ margin: 0;
97
+ padding: 0;
98
+
99
+ li {
100
+
101
+ &::before {
102
+ display: none;
103
+ }
104
+ }
105
+ }
106
+ }
107
+ }
@@ -0,0 +1 @@
1
+ @include borders();
@@ -0,0 +1,3 @@
1
+ @include background-colors();
2
+ @include text-colors();
3
+ @include fill-colors();
@@ -0,0 +1 @@
1
+ @include offsets($grid-fractions);