@internetstiftelsen/styleguide 4.1.13-beta.0.2 → 5.0.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 (145) hide show
  1. package/package.json +29 -29
  2. package/src/app.scss +85 -88
  3. package/src/atoms/archive-link/archive-link.scss +24 -17
  4. package/src/atoms/button/_button.scss +209 -203
  5. package/src/atoms/checkbox/_checkbox.scss +33 -26
  6. package/src/atoms/file/_file.scss +23 -13
  7. package/src/atoms/grid-toggle/_grid-toggle.scss +11 -6
  8. package/src/atoms/height-limiter/_height-limiter.scss +21 -14
  9. package/src/atoms/input/_input.scss +23 -16
  10. package/src/atoms/label/label.scss +11 -5
  11. package/src/atoms/logotype/_logotype.scss +3 -2
  12. package/src/atoms/main-menu/_main-menu.scss +67 -60
  13. package/src/atoms/meta/_meta.scss +44 -33
  14. package/src/atoms/meta/meta.config.js +1 -1
  15. package/src/atoms/paging/_paging.scss +27 -21
  16. package/src/atoms/password-toggle/_password-toggle.scss +9 -6
  17. package/src/atoms/progress/_progress.scss +19 -11
  18. package/src/atoms/quote/_quote.scss +17 -10
  19. package/src/atoms/radiobutton/_radiobutton.scss +33 -26
  20. package/src/atoms/range/_range.scss +46 -39
  21. package/src/atoms/rating/_rating.scss +11 -4
  22. package/src/atoms/ribbon/_ribbon.scss +16 -9
  23. package/src/atoms/select/_select.scss +18 -10
  24. package/src/atoms/skip/_skip.scss +9 -6
  25. package/src/atoms/spinner/_spinner.scss +4 -3
  26. package/src/atoms/tag/_tag.scss +26 -19
  27. package/src/atoms/textarea/_textarea.scss +22 -13
  28. package/src/atoms/tooltip/_tooltip.scss +28 -21
  29. package/src/base/_grid.scss +4 -4
  30. package/src/base/_normalize.scss +29 -27
  31. package/src/base/fonts/_fonts.scss +1 -1
  32. package/src/components.js +0 -2
  33. package/src/configurations/_bem.scss +10 -7
  34. package/src/configurations/_config.scss +11 -10
  35. package/src/configurations/_extends.scss +38 -34
  36. package/src/configurations/_functions.scss +23 -7
  37. package/src/configurations/_mixins.scss +23 -19
  38. package/src/configurations/_recaptcha.scss +2 -2
  39. package/src/configurations/_variables.scss +19 -25
  40. package/src/configurations/_wordpress.scss +64 -57
  41. package/src/configurations/colors/_background-colors.scss +3 -2
  42. package/src/configurations/colors/_colors-functions.scss +41 -39
  43. package/src/configurations/colors/_colors.scss +1 -1
  44. package/src/configurations/colors/_text-colors.scss +3 -2
  45. package/src/configurations/colors/_wordpress-colors.scss +3 -2
  46. package/src/configurations/forms/_fields.scss +28 -23
  47. package/src/configurations/grid/_grid.scss +40 -34
  48. package/src/configurations/typography/_typography.scss +113 -105
  49. package/src/configurations/typography/readme.md +1 -1
  50. package/src/globals.scss +16 -18
  51. package/src/isolated-footer.scss +25 -25
  52. package/src/molecules/alert/_alert.scss +44 -35
  53. package/src/molecules/breadcrumb/_breadcrumb.scss +43 -35
  54. package/src/molecules/byline/_byline.scss +30 -21
  55. package/src/molecules/card/_card.scss +87 -77
  56. package/src/molecules/context-menu/_context-menu.scss +32 -15
  57. package/src/molecules/continue-video-guide/continue-video-guide.scss +37 -28
  58. package/src/molecules/cookie-disclaimer/cookie-disclaimer.scss +32 -23
  59. package/src/molecules/download/_download.scss +38 -30
  60. package/src/molecules/form-control/_form-control.scss +66 -58
  61. package/src/molecules/glider/_glider-course.scss +29 -23
  62. package/src/molecules/glider/_glider-hero.scss +112 -104
  63. package/src/molecules/glider/_glider.scss +36 -30
  64. package/src/molecules/icon-overlay/_icon-overlay.scss +29 -20
  65. package/src/molecules/info-box/_info-box.scss +31 -22
  66. package/src/molecules/input-group/_input-group.scss +23 -13
  67. package/src/molecules/modal/_modal.scss +77 -65
  68. package/src/molecules/multi-select/_multi-select.scss +44 -33
  69. package/src/molecules/natural-language-form/_natural-language-form.scss +33 -23
  70. package/src/molecules/overview-navigation/_overview-navigation.scss +54 -45
  71. package/src/molecules/readspeaker/_readspeaker.scss +1 -1
  72. package/src/molecules/share/_share.scss +23 -15
  73. package/src/molecules/submenu/_submenu.scss +77 -69
  74. package/src/molecules/system-error/_system-error.scss +26 -17
  75. package/src/molecules/table/_table.scss +50 -42
  76. package/src/molecules/teaser-news-list/_teaser-news-list.scss +21 -12
  77. package/src/organisms/accordion/_accordion.scss +59 -49
  78. package/src/organisms/domain-search/_domain-search.scss +54 -45
  79. package/src/organisms/event-listing-item/_event-listing-item.scss +36 -26
  80. package/src/organisms/features-box/_features-box.scss +30 -19
  81. package/src/organisms/filter/_filter.scss +15 -10
  82. package/src/organisms/footer/_footer.scss +119 -109
  83. package/src/organisms/header/_header.scss +24 -14
  84. package/src/organisms/hero/_hero--bbk.scss +50 -38
  85. package/src/organisms/hero/_hero--dynamic-headline.scss +49 -39
  86. package/src/organisms/hero/_hero.scss +222 -207
  87. package/src/organisms/hero/hero.config.js +2 -2
  88. package/src/organisms/mailchimp/_mailchimp.scss +52 -42
  89. package/src/organisms/mega-menu/_mega-menu.scss +55 -45
  90. package/src/organisms/members-service-product/_members-service-product.scss +29 -18
  91. package/src/organisms/members-service-product/members-service-product.config.js +5 -5
  92. package/src/organisms/podcast/_podcast-episodes.scss +85 -75
  93. package/src/organisms/podcast/_podcast-player.scss +73 -64
  94. package/src/organisms/schedule/_schedule.scss +92 -82
  95. package/src/organisms/search/_search.scss +68 -58
  96. package/src/organisms/search-result/_search-result.scss +50 -40
  97. package/src/organisms/sections/_sections.scss +41 -31
  98. package/src/organisms/tabs/_tabs.scss +58 -46
  99. package/src/organisms/timeline/_timeline.scss +92 -81
  100. package/src/organisms/video-guide/_video-guide.scss +148 -138
  101. package/src/pages/animate-footer/animate-footer.config.js +180 -1
  102. package/src/print.scss +1 -1
  103. package/src/structures/_article.scss +39 -28
  104. package/src/structures/_core-values.scss +14 -2
  105. package/src/structures/_manifest.scss +4 -4
  106. package/src/structures/_section.scss +32 -20
  107. package/src/structures/_site.scss +19 -7
  108. package/src/theme/_dark-mode.scss +14 -13
  109. package/src/theme/_theme.scss +28 -25
  110. package/src/utilities/_align.scss +1 -1
  111. package/src/utilities/_border.scss +5 -3
  112. package/src/utilities/_box-shadow.scss +5 -2
  113. package/src/utilities/_display.scss +1 -1
  114. package/src/utilities/_fill.scss +5 -4
  115. package/src/utilities/_flex.scss +1 -1
  116. package/src/utilities/_font-size.scss +6 -5
  117. package/src/utilities/_fonts.scss +6 -5
  118. package/src/utilities/_gutter.scss +3 -2
  119. package/src/utilities/_hide.scss +17 -15
  120. package/src/utilities/_icons.scss +37 -33
  121. package/src/utilities/_indent.scss +8 -6
  122. package/src/utilities/_links.scss +22 -18
  123. package/src/utilities/_lists.scss +19 -14
  124. package/src/utilities/_manifest.scss +27 -27
  125. package/src/utilities/_margin.scss +20 -17
  126. package/src/utilities/_misc.scss +3 -2
  127. package/src/utilities/_padding.scss +18 -15
  128. package/src/utilities/_position.scss +3 -2
  129. package/src/utilities/_show.scss +7 -6
  130. package/src/utilities/_text.scss +1 -1
  131. package/src/utilities/_vertical-align.scss +1 -1
  132. package/src/utilities/_wrap.scss +1 -1
  133. package/src/utilities/_z-index.scss +7 -6
  134. package/src/utilities/tab-highlighting/_tab-highlighting.scss +6 -5
  135. package/src/vendor/baseline/_plumber.scss +14 -13
  136. package/src/vendor/grid/_breakpoints.scss +17 -13
  137. package/src/vendor/grid/_flex.scss +8 -4
  138. package/src/vendor/grid/_functions.scss +9 -6
  139. package/src/vendor/grid/_grid-framework.scss +14 -9
  140. package/src/vendor/grid/_grid.scss +19 -16
  141. package/src/vendor/grid/_spacing.scss +8 -3
  142. package/src/atoms/toggle-high-contrast/readme.md +0 -6
  143. package/src/atoms/toggle-high-contrast/toggle-high-contrast.config.js +0 -8
  144. package/src/atoms/toggle-high-contrast/toggle-high-contrast.js +0 -10
  145. package/src/molecules/modal/modal-graph.js +0 -40
@@ -1,24 +1,35 @@
1
1
  @charset "UTF-8";
2
+ @use '../../configurations/mixins' as mixin;
3
+ @use '../../configurations/bem' as bem;
4
+ @use '../../configurations/config' as config;
5
+ @use '../../configurations/variables' as var;
6
+ @use '../../configurations/functions' as func;
7
+ @use '../../configurations/colors/colors' as colors;
8
+ @use '../../configurations/colors/colors-functions' as colorFunc;
9
+ @use '../../configurations/typography/typography';
10
+ @use '../../vendor/grid/breakpoints' as breakpoint;
11
+ @use '../../vendor/grid/grid' as grid;
12
+ @use '../../vendor/baseline/plumber' as plumber;
2
13
 
3
14
  html {
4
15
  scroll-behavior: smooth;
5
16
  }
6
17
 
7
- @include organism(timeline) {
18
+ @include mixin.organism(timeline) {
8
19
  position: sticky;
9
20
  top: -1px;
10
21
  left: 0;
11
22
  right: 0;
12
- z-index: z_index(middlegroundImportant);
13
- background: $color-ash;
23
+ z-index: func.z_index(middlegroundImportant);
24
+ background: colors.$color-ash;
14
25
 
15
- @include card-shadow($color-cyberspace, 0.2);
26
+ @include mixin.card-shadow(colors.$color-cyberspace, 0.2);
16
27
 
17
28
  &::after {
18
- background-color: $color-concrete;
29
+ background-color: colors.$color-concrete;
19
30
  content: '';
20
31
  display: block;
21
- height: rhythm(1);
32
+ height: func.rhythm(1);
22
33
  position: absolute;
23
34
  top: 0;
24
35
  left: 0;
@@ -27,14 +38,14 @@ html {
27
38
  }
28
39
 
29
40
 
30
- @include e(progress-bar) {
41
+ @include bem.e(progress-bar) {
31
42
  display:flex;
32
- height: rhythm(1);
43
+ height: func.rhythm(1);
33
44
  background-image: linear-gradient(90deg, #55c7b4 0vw, #55c7b4 14.285vw, #c27fec 14.285vw, #c27fec 28.57vw, #ffa94d 28.57vw, #ffa94d 42.855vw, #ffce2e 42.855vw, #ffce2e 57.14vw, #50b2fc 57.14vw, #50b2fc 71.425vw, #ff4069 71.425vw, #ff4069 85.71vw, #8E9297 85.71vw, #8E9297 100%);
34
45
  width: 0;
35
46
  }
36
47
 
37
- @include e(decades-container) {
48
+ @include bem.e(decades-container) {
38
49
  display: flex;
39
50
  justify-content: space-around;
40
51
  align-items: stretch;
@@ -43,77 +54,77 @@ html {
43
54
  display: block;
44
55
  flex: 1;
45
56
  text-decoration: none;
46
- color: $color-cyberspace;
57
+ color: colors.$color-cyberspace;
47
58
  text-align: center;
48
- padding-top: rhythm(1);
49
- padding-bottom: rhythm(1);
50
- font-family: $font-family-headings;
51
- font-size: $size-medium;
59
+ padding-top: func.rhythm(1);
60
+ padding-bottom: func.rhythm(1);
61
+ font-family: var.$font-family-headings;
62
+ font-size: var.$size-medium;
52
63
 
53
64
  &.is-reading {
54
65
  &:nth-child(1) {
55
- color: $color-jade;
66
+ color: colors.$color-jade;
56
67
  }
57
68
 
58
69
  &:nth-child(2) {
59
- color: $color-peacock;
70
+ color: colors.$color-peacock;
60
71
  }
61
72
 
62
73
  &:nth-child(3) {
63
- color: $color-sandstone;
74
+ color: colors.$color-sandstone;
64
75
  }
65
76
 
66
77
  &:nth-child(4) {
67
- color: $color-lemon;
78
+ color: colors.$color-lemon;
68
79
  }
69
80
 
70
81
  &:nth-child(5) {
71
- color: $color-ocean;
82
+ color: colors.$color-ocean;
72
83
  }
73
84
 
74
85
  &:nth-child(6) {
75
- color: $color-ruby;
86
+ color: colors.$color-ruby;
76
87
  }
77
88
 
78
89
  &:nth-child(7) {
79
- color: $color-granit;
90
+ color: colors.$color-granit;
80
91
  }
81
92
  }
82
93
 
83
- @include bp-up(lg) {
84
- font-size: $size-base;
85
- padding-top: rhythm(2);
86
- padding-bottom: rhythm(2);
94
+ @include breakpoint.bp-up(lg) {
95
+ font-size: var.$size-base;
96
+ padding-top: func.rhythm(2);
97
+ padding-bottom: func.rhythm(2);
87
98
  }
88
99
  }
89
100
  }
90
101
 
91
- @include e(decade) {
92
- @include e(intro) {
93
- padding-top: rhythm(4);
94
- margin-bottom: rhythm(8);
102
+ @include bem.e(decade) {
103
+ @include bem.e(intro) {
104
+ padding-top: func.rhythm(4);
105
+ margin-bottom: func.rhythm(8);
95
106
 
96
- @include bp-up(sm) {
97
- margin-bottom: rhythm(10);
107
+ @include breakpoint.bp-up(sm) {
108
+ margin-bottom: func.rhythm(10);
98
109
  }
99
110
 
100
- @include bp-up(md) {
101
- margin-bottom: rhythm(12);
111
+ @include breakpoint.bp-up(md) {
112
+ margin-bottom: func.rhythm(12);
102
113
  }
103
114
 
104
- @include bp-up(lg) {
105
- margin-bottom: rhythm(14);
115
+ @include breakpoint.bp-up(lg) {
116
+ margin-bottom: func.rhythm(14);
106
117
  }
107
118
 
108
- @include bp-up(xl) {
109
- margin-bottom: rhythm(18);
119
+ @include breakpoint.bp-up(xl) {
120
+ margin-bottom: func.rhythm(18);
110
121
  }
111
122
  }
112
123
  }
113
124
 
114
125
 
115
126
  // "Parallax" scroll items
116
- @include e(parallax) {
127
+ @include bem.e(parallax) {
117
128
  opacity: 0;
118
129
  transition: opacity 1s ease-out, transform 3s cubic-bezier(0, 1, 0, 1);
119
130
  transform: translateY(200px);
@@ -123,14 +134,14 @@ html {
123
134
  &.animate {
124
135
  transform: translateY(0);
125
136
  opacity: 1;
126
- z-index: z_index(middleGround);
137
+ z-index: func.z_index(middleGround);
127
138
 
128
139
 
129
140
  }
130
141
  }
131
142
 
132
- @include e(item) {
133
- @include e(content) {
143
+ @include bem.e(item) {
144
+ @include bem.e(content) {
134
145
  display: none;
135
146
  padding-bottom: 0;
136
147
  margin-top: 0;
@@ -140,7 +151,7 @@ html {
140
151
  background-position: center center;
141
152
  background-size: 45px 45px;
142
153
 
143
- @include bp-up(lg) {
154
+ @include breakpoint.bp-up(lg) {
144
155
  min-height: 100px;
145
156
  background-size: 100px 100px;
146
157
  }
@@ -149,18 +160,18 @@ html {
149
160
  background-image: none;
150
161
  }
151
162
 
152
- @include e(meta) {
153
- @include e(related) {
154
- margin-top: rhythm(4);
155
- border-top: 1px solid $color-granit;
156
- padding-top: rhythm(4);
163
+ @include bem.e(meta) {
164
+ @include bem.e(related) {
165
+ margin-top: func.rhythm(4);
166
+ border-top: 1px solid colors.$color-granit;
167
+ padding-top: func.rhythm(4);
157
168
 
158
169
  img {
159
170
  max-height: 100px;
160
171
  width: 100%;
161
172
  object-fit: cover;
162
173
  object-position: 50% 25%;
163
- border-radius: $border-radius;
174
+ border-radius: var.$border-radius;
164
175
  }
165
176
  }
166
177
  }
@@ -173,25 +184,25 @@ html {
173
184
 
174
185
  &.is-open {
175
186
  flex: 0 0 100%;
176
- background-color: $color-cyberspace;
187
+ background-color: colors.$color-cyberspace;
177
188
  width: 100vw;
178
189
  max-width: 100vw;
179
190
  min-width: 100vw;
180
191
  margin-left: calc(50% - 50vw);
181
192
  margin-right: calc(50% - 50vw);
182
193
  transform: translateY(0) !important;
183
- z-index: z_index(middlegroundImportant);
184
- padding-top: rhythm(6);
185
- padding-bottom: rhythm(4);
194
+ z-index: func.z_index(middlegroundImportant);
195
+ padding-top: func.rhythm(6);
196
+ padding-bottom: func.rhythm(4);
186
197
 
187
198
  & + [class*='timeline__item'] {
188
199
  transform: translateY(0) !important;
189
- margin-top: rhythm(6);
200
+ margin-top: func.rhythm(6);
190
201
  }
191
202
 
192
- @include bp-up(md) {
193
- padding-top: rhythm(8);
194
- padding-bottom: rhythm(8);
203
+ @include breakpoint.bp-up(md) {
204
+ padding-top: func.rhythm(8);
205
+ padding-bottom: func.rhythm(8);
195
206
  }
196
207
 
197
208
  h1,
@@ -204,7 +215,7 @@ html {
204
215
  ol li,
205
216
  ul li a,
206
217
  ol li a {
207
- color: $color-snow;
218
+ color: colors.$color-snow;
208
219
  }
209
220
 
210
221
  p a,
@@ -216,7 +227,7 @@ html {
216
227
  ol li a {
217
228
  &:hover,
218
229
  &:focus {
219
- color: $color-cyberspace;
230
+ color: colors.$color-cyberspace;
220
231
  }
221
232
  }
222
233
 
@@ -231,14 +242,14 @@ html {
231
242
  ol li,
232
243
  ul li a,
233
244
  ol li a {
234
- color: $color-cyberspace;
245
+ color: colors.$color-cyberspace;
235
246
  }
236
247
 
237
248
  ul li a,
238
249
  ol li a {
239
250
  &:hover,
240
251
  &:focus {
241
- color: $color-cyberspace;
252
+ color: colors.$color-cyberspace;
242
253
  }
243
254
  }
244
255
  }
@@ -271,19 +282,19 @@ html {
271
282
  margin-left: auto;
272
283
  margin-right: auto;
273
284
 
274
- @include bp-up(sm) {
285
+ @include breakpoint.bp-up(sm) {
275
286
  width: make_col(16);
276
287
  }
277
288
 
278
- @include bp-up(md) {
289
+ @include breakpoint.bp-up(md) {
279
290
  width: make_col(12);
280
291
  }
281
292
 
282
- @include bp-up(lg) {
293
+ @include breakpoint.bp-up(lg) {
283
294
  width: make_col(12);
284
295
  }
285
296
 
286
- @include bp-up(xl) {
297
+ @include breakpoint.bp-up(xl) {
287
298
  width: make_col(9);
288
299
  }
289
300
  }
@@ -300,20 +311,20 @@ html {
300
311
  button[class*="close"] {
301
312
  display: inline-block;
302
313
  position: absolute;
303
- right: rhythm(1);
304
- transform: translateY(-#{rhythm(1)});
314
+ right: func.rhythm(1);
315
+ transform: translateY(-#{func.rhythm(1)});
305
316
 
306
317
  &:first-child {
307
- top: rhythm(1);
318
+ top: func.rhythm(1);
308
319
  transform: none;
309
320
  }
310
321
 
311
- @include bp-up(md) {
312
- right: rhythm(2);
313
- transform: translateY(rhythm(2));
322
+ @include breakpoint.bp-up(md) {
323
+ right: func.rhythm(2);
324
+ transform: translateY(func.rhythm(2));
314
325
 
315
326
  &:first-child {
316
- top: rhythm(2);
327
+ top: func.rhythm(2);
317
328
  }
318
329
  }
319
330
  }
@@ -324,22 +335,22 @@ html {
324
335
  }
325
336
  }
326
337
 
327
- @include e(item-close) {
338
+ @include bem.e(item-close) {
328
339
  display: none;
329
340
  }
330
341
 
331
- @include e(heading) {
332
- @include plumber(
333
- $font-size: 2,
342
+ @include bem.e(heading) {
343
+ @include plumber.plumber(
344
+ var.$font-size: 2,
334
345
  $line-height: 3,
335
346
  $leading-top: 0,
336
347
  $leading-bottom: 0,
337
- $baseline: $body-baseline
348
+ $baseline: var.$body-baseline
338
349
  );
339
350
 
340
- @include bp-up(sm) {
341
- @include plumber(
342
- $font-size: 2.2,
351
+ @include breakpoint.bp-up(sm) {
352
+ @include plumber.plumber(
353
+ var.$font-size: 2.2,
343
354
  $line-height: 3,
344
355
  $leading-top: 0,
345
356
  $leading-bottom: 0,
@@ -347,11 +358,11 @@ html {
347
358
  }
348
359
  }
349
360
 
350
- @include e(card-text) {
361
+ @include bem.e(card-text) {
351
362
  font-size: 80%;
352
363
  line-height: 1.3rem;
353
364
 
354
- @include bp-up(lg) {
365
+ @include breakpoint.bp-up(lg) {
355
366
  font-size: 100%;
356
367
  line-height: 1.5rem;
357
368
  }