@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,13 +1,22 @@
1
- @charset 'UTF-8';
1
+ @charset "UTF-8";
2
2
  @use "sass:color";
3
-
4
- @include organism(domain-search) {
5
- padding: rhythm(2) 0 rhythm(1) 0;
3
+ @use '../../configurations/mixins' as mixin;
4
+ @use '../../configurations/extends';
5
+ @use '../../configurations/bem' as bem;
6
+ @use '../../configurations/config' as config;
7
+ @use '../../configurations/variables' as var;
8
+ @use '../../configurations/functions' as func;
9
+ @use '../../configurations/colors/colors' as colors;
10
+ @use '../../configurations/colors/colors-functions' as colorFunc;
11
+ @use '../../vendor/grid/breakpoints' as breakpoint;
12
+
13
+ @include mixin.organism(domain-search) {
14
+ padding: func.rhythm(2) 0 func.rhythm(1) 0;
6
15
 
7
16
  &:not([class*='is-in-mega-menu']) {
8
17
  display: none;
9
18
  position: absolute;
10
- z-index: z_index(middlegroundImportant);
19
+ z-index: func.z_index(middlegroundImportant);
11
20
  bottom: 0;
12
21
  transform: translateY(0);
13
22
  transition: transform 0.25s ease-out;
@@ -25,7 +34,7 @@
25
34
  }
26
35
  }
27
36
 
28
- @include bp-up(xl) {
37
+ @include breakpoint.bp-up(xl) {
29
38
  display: flex;
30
39
  }
31
40
 
@@ -40,110 +49,110 @@
40
49
  }
41
50
 
42
51
  a {
43
- color: $color-cyberspace;
52
+ color: colors.$color-cyberspace;
44
53
  text-decoration: underline;
45
54
 
46
55
  &:hover,
47
56
  &:focus {
48
- border-bottom: rem(2px) solid $color-jade;
57
+ border-bottom: func.to_rem(2px) solid colors.$color-jade;
49
58
  border-radius: 0;
50
59
  background-color: transparent;
51
60
  text-decoration: none;
52
61
  }
53
62
 
54
63
  [class*='icon'] {
55
- transform: translateY(rem(2px));
64
+ transform: translateY(func.to_rem(2px));
56
65
  }
57
66
  }
58
67
 
59
- @include bp-up(md) {
60
- padding: rhythm(3) rhythm(1);
68
+ @include breakpoint.bp-up(md) {
69
+ padding: func.rhythm(3) func.rhythm(1);
61
70
  }
62
71
 
63
- @include e(list-container) {
64
- padding: 0 rhythm(1) 0 rhythm(1);
72
+ @include bem.e(list-container) {
73
+ padding: 0 func.rhythm(1) 0 func.rhythm(1);
65
74
  }
66
75
 
67
- @include e(input) {
76
+ @include bem.e(input) {
68
77
  display: block;
69
- width: calc(100% - #{rhythm(2)});
70
- margin-right: rhythm(2);
71
- padding: rhythm(1) rhythm(2);
78
+ width: calc(100% - #{func.rhythm(2)});
79
+ margin-right: func.rhythm(2);
80
+ padding: func.rhythm(1) func.rhythm(2);
72
81
  transition: padding 0.25s ease-out;
73
82
  border: 0;
74
- border-radius: $border-radius;
75
- background-color: color.adjust($color-ash, $lightness: 4%);
83
+ border-radius: var.$border-radius;
84
+ background-color: color.adjust(colors.$color-ash, $lightness: 4%);
76
85
  letter-spacing: -0.1px;
77
86
  -webkit-appearance: none;
78
87
 
79
- @include bp-up(md) {
80
- font-size: rem(32px);
88
+ @include breakpoint.bp-up(md) {
89
+ font-size: func.to_rem(32px);
81
90
  }
82
91
 
83
- @include m(force-focus-look) {
84
- background-color: color.adjust($color-ash, $lightness: 4%);
92
+ @include bem.m(force-focus-look) {
93
+ background-color: color.adjust(colors.$color-ash, $lightness: 4%);
85
94
 
86
95
  &:focus {
87
- background-color: color.adjust($color-ash, $lightness: 4%);
96
+ background-color: color.adjust(colors.$color-ash, $lightness: 4%);
88
97
  }
89
98
  }
90
99
  }
91
100
 
92
- @include e(list) {
101
+ @include bem.e(list) {
93
102
  display: flex;
94
103
  flex-wrap: wrap;
95
- padding: rhythm(1) 0 0 0;
104
+ padding: func.rhythm(1) 0 0 0;
96
105
 
97
106
  li {
98
- padding: rhythm(1) 0;
107
+ padding: func.rhythm(1) 0;
99
108
  white-space: nowrap;
100
109
 
101
110
  + li {
102
- border-top: 1px solid $color-concrete;
111
+ border-top: 1px solid colors.$color-concrete;
103
112
 
104
- @include bp-up(md) {
113
+ @include breakpoint.bp-up(md) {
105
114
  padding-bottom: 0;
106
115
  border-top: 0;
107
116
  }
108
117
  }
109
118
 
110
119
  a {
111
- padding: 0 rhythm(1);
120
+ padding: 0 func.rhythm(1);
112
121
  border-bottom: 0;
113
- font-size: rem($size-medium-plus);
122
+ font-size: func.to_rem(var.$size-medium-plus);
114
123
  text-decoration: underline;
115
124
 
116
- @include bp-up(md) {
125
+ @include breakpoint.bp-up(md) {
117
126
  padding: 0;
118
127
  }
119
128
  }
120
129
  }
121
130
  }
122
131
 
123
- @include bp-up(md) {
132
+ @include breakpoint.bp-up(md) {
124
133
 
125
- @include e(pretext) {
126
- font-size: rem(32px);
134
+ @include bem.e(pretext) {
135
+ font-size: func.to_rem(32px);
127
136
  }
128
137
  }
129
138
 
130
- @include e(submit) {
139
+ @include bem.e(submit) {
131
140
  flex-shrink: 0;
132
- padding-right: rhythm(4);
133
- padding-left: rhythm(4);
134
- font-size: rem(24px);
141
+ padding-right: func.rhythm(4);
142
+ padding-left: func.rhythm(4);
143
+ font-size: func.to_rem(24px);
135
144
 
136
- @include bp-down(md) {
137
- font-size: rem($size-base);
145
+ @include breakpoint.bp-down(md) {
146
+ font-size: func.to_rem(var.$size-base);
138
147
  }
139
148
 
140
- @include bp-down(sm) {
141
- padding: rhythm(0.6) rhythm(1);
142
- font-size: rem($size-small);
149
+ @include breakpoint.bp-down(sm) {
150
+ padding: func.rhythm(0.6) func.rhythm(1);
151
+ font-size: func.to_rem(var.$size-small);
143
152
  }
144
153
  }
145
154
 
146
- @include bp-up(xl) {
155
+ @include breakpoint.bp-up(xl) {
147
156
  display: none;
148
157
  }
149
158
  }
@@ -1,64 +1,74 @@
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 '../../vendor/grid/breakpoints' as breakpoint;
10
+ @use '../../vendor/grid/grid' as grid;
11
+ @use '../../vendor/baseline/plumber' as plumber;
2
12
 
3
- @include organism(event-listing-item) {
13
+ @include mixin.organism(event-listing-item) {
4
14
  position: relative;
5
- padding: rhythm(2);
15
+ padding: func.rhythm(2);
6
16
  border-left: 4px solid;
7
- border-radius: $border-radius;
8
- background-color: $color-snow;
9
- font-size: $size-medium-plus;
17
+ border-radius: var.$border-radius;
18
+ background-color: colors.$color-snow;
19
+ font-size: var.$size-medium-plus;
10
20
 
11
- @include e(button) {
21
+ @include bem.e(button) {
12
22
 
13
23
  }
14
24
 
15
- @include bp-up(md) {
16
- font-size: $size-base;
25
+ @include breakpoint.bp-up(md) {
26
+ font-size: var.$size-base;
17
27
  }
18
28
 
19
- @include e(upper) {
29
+ @include bem.e(upper) {
20
30
  position: static;
21
31
  flex-direction: column;
22
- margin-bottom: rhythm(1);
32
+ margin-bottom: func.rhythm(1);
23
33
  }
24
34
 
25
- @include e(lower) {
35
+ @include bem.e(lower) {
26
36
  align-items: center;
27
37
  justify-content: space-between;
28
- margin-top: rhythm(1);
38
+ margin-top: func.rhythm(1);
29
39
  }
30
40
 
31
- @include e(heading) {
32
- @include plumber(
33
- $font-size: 2.5,
41
+ @include bem.e(heading) {
42
+ @include plumber.plumber(
43
+ var.$font-size: 2.5,
34
44
  $leading-bottom: 1
35
45
  );
36
46
 
37
- font-family: $font-family-headings;
47
+ font-family: var.$font-family-headings;
38
48
  line-height: 1.75rem;
39
49
  }
40
50
 
41
- @include e(footer) {
42
- margin-bottom: rhythm(2);
43
- margin-top: rhythm(2);
51
+ @include bem.e(footer) {
52
+ margin-bottom: func.rhythm(2);
53
+ margin-top: func.rhythm(2);
44
54
 
45
- @include bp-up(sm-xs) {
55
+ @include breakpoint.bp-up(sm-xs) {
46
56
  margin-bottom: 0;
47
57
  margin-top: 0;
48
58
  }
49
59
  }
50
60
 
51
- @include e(button) {
52
- margin-right: rhythm(1);
53
- margin-left: rhythm(1);
61
+ @include bem.e(button) {
62
+ margin-right: func.rhythm(1);
63
+ margin-left: func.rhythm(1);
54
64
  }
55
65
 
56
- @include e(icon-wrapper) {
66
+ @include bem.e(icon-wrapper) {
57
67
  display: flex;
58
68
  align-items: center;
59
69
  }
60
70
 
61
- @include e(icon) {
62
- margin-right: rhythm(1);
71
+ @include bem.e(icon) {
72
+ margin-right: func.rhythm(1);
63
73
  }
64
74
  }
@@ -1,48 +1,59 @@
1
1
  @charset "UTF-8";
2
-
3
- @include organism(features-box) {
4
- padding: rhythm(2) rhythm(3) rhythm(3) rhythm(3);
5
- border-radius: $border-radius;
6
-
7
- @include bp-up(lg) {
8
- padding: rhythm(3) rhythm(4) rhythm(4) rhythm(4);
2
+ @use '../../configurations/mixins' as mixin;
3
+ @use '../../configurations/extends';
4
+ @use '../../configurations/bem' as bem;
5
+ @use '../../configurations/config' as config;
6
+ @use '../../configurations/variables' as var;
7
+ @use '../../configurations/functions' as func;
8
+ @use '../../configurations/colors/colors' as colors;
9
+ @use '../../configurations/colors/colors-functions' as colorFunc;
10
+ @use '../../vendor/grid/breakpoints' as breakpoint;
11
+ @use '../../vendor/grid/grid' as grid;
12
+ @use '../../vendor/baseline/plumber' as plumber;
13
+
14
+ @include mixin.organism(features-box) {
15
+ padding: func.rhythm(2) func.rhythm(3) func.rhythm(3) func.rhythm(3);
16
+ border-radius: var.$border-radius;
17
+
18
+ @include breakpoint.bp-up(lg) {
19
+ padding: func.rhythm(3) func.rhythm(4) func.rhythm(4) func.rhythm(4);
9
20
  }
10
21
 
11
- @include m(large-text) {
12
- @include bp-up(lg) {
13
- padding: rhythm(4) rhythm(6) rhythm(6) rhythm(6);
22
+ @include bem.m(large-text) {
23
+ @include breakpoint.bp-up(lg) {
24
+ padding: func.rhythm(4) func.rhythm(6) func.rhythm(6) func.rhythm(6);
14
25
  }
15
26
  }
16
27
 
17
- @include e(list) {
28
+ @include bem.e(list) {
18
29
  margin: 0;
19
30
  padding: 0;
20
31
  list-style: none;
21
32
 
22
- @include e(item) {
33
+ @include bem.e(item) {
23
34
  display: flex;
24
- margin-bottom: rhythm(2);
35
+ margin-bottom: func.rhythm(2);
25
36
 
26
37
  a {
27
38
  @extend %link-styles;
28
39
  }
29
40
  }
30
41
 
31
- @include e(icon) {
42
+ @include bem.e(icon) {
32
43
  display: flex;
33
- margin-right: rhythm(2);
44
+ margin-right: func.rhythm(2);
34
45
 
35
46
  > svg {
36
- margin-top: rhythm(0.5);
47
+ margin-top: func.rhythm(0.5);
37
48
  }
38
49
 
39
- @include bp-up(lg) {
40
- margin-right: rhythm(4);
50
+ @include breakpoint.bp-up(lg) {
51
+ margin-right: func.rhythm(4);
41
52
  }
42
53
  }
43
54
  }
44
55
 
45
- @include e(button) {
56
+ @include bem.e(button) {
46
57
  display: flex;
47
58
  flex-grow: 1;
48
59
  justify-content: center;
@@ -1,21 +1,26 @@
1
- @charset 'UTF-8';
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/functions' as func;
6
+ @use '../../vendor/grid/breakpoints' as breakpoint;
2
7
 
3
- @include organism(filter) {
4
- @include e(title) {
5
- padding: 0 0 0 rhythm(3);
8
+ @include mixin.organism(filter) {
9
+ @include bem.e(title) {
10
+ padding: 0 0 0 func.rhythm(3);
6
11
  }
7
12
 
8
- @include e(column) {
9
- margin-bottom: rhythm(4);
13
+ @include bem.e(column) {
14
+ margin-bottom: func.rhythm(4);
10
15
 
11
- @include bp-up(lg) {
16
+ @include breakpoint.bp-up(lg) {
12
17
  margin-bottom: 0;
13
18
  }
14
19
  }
15
20
 
16
- @include e(clear) {
21
+ @include bem.e(clear) {
17
22
  position: absolute;
18
- top: -#{rem(50px)};
19
- right: rhythm(3);
23
+ top: -#{func.to_rem(50px)};
24
+ right: func.rhythm(3);
20
25
  }
21
26
  }