@internetstiftelsen/styleguide 4.1.13 → 5.0.1

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 (248) hide show
  1. package/dist/assets/js/iconToggle.js +1 -2
  2. package/dist/assets/js/parallax.js +0 -2
  3. package/dist/assets/js/textToggle.js +0 -1
  4. package/dist/assets/js/track.js +2 -2
  5. package/dist/assets/js/youtube.js +2 -1
  6. package/dist/components.js +0 -4
  7. package/dist/molecules/glider/glider-hero.js +1 -2
  8. package/dist/molecules/modal/modal.js +2 -2
  9. package/dist/molecules/overview-navigation/overview-navigation.js +1 -2
  10. package/dist/organisms/mailchimp/mailchimp.js +2 -1
  11. package/dist/organisms/tabs/tabs.js +3 -2
  12. package/dist/organisms/timeline/timeline.js +2 -4
  13. package/package.json +23 -18
  14. package/src/app.js +1 -15
  15. package/src/app.scss +85 -88
  16. package/src/assets/js/iconToggle.js +2 -2
  17. package/src/assets/js/parallax.js +0 -2
  18. package/src/assets/js/textToggle.js +1 -1
  19. package/src/assets/js/track.js +2 -2
  20. package/src/assets/js/youtube.js +2 -1
  21. package/src/atoms/archive-link/archive-link.config.js +1 -1
  22. package/src/atoms/archive-link/archive-link.scss +24 -17
  23. package/src/atoms/button/_button.scss +216 -210
  24. package/src/atoms/checkbox/_checkbox.scss +33 -26
  25. package/src/atoms/checkbox/checkbox.config.js +1 -1
  26. package/src/atoms/file/_file.scss +23 -13
  27. package/src/atoms/file/file.config.js +1 -1
  28. package/src/atoms/grid-toggle/_grid-toggle.scss +11 -6
  29. package/src/atoms/grid-toggle/grid-toggle.config.js +1 -1
  30. package/src/atoms/height-limiter/_height-limiter.scss +21 -14
  31. package/src/atoms/height-limiter/height-limiter.config.js +1 -1
  32. package/src/atoms/hr/hr.config.js +1 -1
  33. package/src/atoms/icon/icon.config.js +2 -2
  34. package/src/atoms/input/_input.scss +23 -16
  35. package/src/atoms/input/input.config.js +1 -1
  36. package/src/atoms/label/label.config.js +1 -1
  37. package/src/atoms/label/label.scss +11 -5
  38. package/src/atoms/logotype/_logotype.scss +3 -2
  39. package/src/atoms/logotype/logotype.config.js +3 -3
  40. package/src/atoms/main-menu/_main-menu.scss +67 -60
  41. package/src/atoms/main-menu/main-menu.config.js +1 -1
  42. package/src/atoms/meta/_meta.scss +44 -33
  43. package/src/atoms/meta/meta.config.js +2 -2
  44. package/src/atoms/paging/_paging.scss +27 -21
  45. package/src/atoms/paging/paging.config.js +1 -1
  46. package/src/atoms/password-toggle/_password-toggle.scss +9 -6
  47. package/src/atoms/password-toggle/password-toggle.config.js +1 -1
  48. package/src/atoms/progress/_progress.scss +19 -11
  49. package/src/atoms/progress/progress.config.js +1 -1
  50. package/src/atoms/quote/_quote.scss +17 -10
  51. package/src/atoms/quote/quote.config.js +1 -1
  52. package/src/atoms/radiobutton/_radiobutton.scss +33 -26
  53. package/src/atoms/radiobutton/radiobutton.config.js +1 -1
  54. package/src/atoms/range/_range.scss +46 -39
  55. package/src/atoms/range/range.config.js +1 -1
  56. package/src/atoms/rating/_rating.scss +11 -4
  57. package/src/atoms/rating/rating.config.js +1 -1
  58. package/src/atoms/ribbon/_ribbon.scss +17 -10
  59. package/src/atoms/ribbon/ribbon.config.js +1 -1
  60. package/src/atoms/select/_select.scss +18 -10
  61. package/src/atoms/select/select.config.js +1 -1
  62. package/src/atoms/skip/_skip.scss +9 -6
  63. package/src/atoms/skip/skip.config.js +1 -1
  64. package/src/atoms/spinner/_spinner.scss +4 -3
  65. package/src/atoms/spinner/spinner.config.js +1 -1
  66. package/src/atoms/tag/_tag.scss +26 -19
  67. package/src/atoms/tag/tag.config.js +1 -1
  68. package/src/atoms/textarea/_textarea.scss +22 -13
  69. package/src/atoms/textarea/textarea.config.js +1 -1
  70. package/src/atoms/toggle-button/toggle-button.config.js +1 -1
  71. package/src/atoms/tooltip/_tooltip.scss +28 -21
  72. package/src/atoms/tooltip/tooltip.config.js +1 -1
  73. package/src/base/_grid.scss +4 -4
  74. package/src/base/_normalize.scss +122 -120
  75. package/src/base/fonts/_fonts.scss +1 -1
  76. package/src/brandbook/goto10/goto10.config.js +1 -1
  77. package/src/brandbook/internetstiftelsen/bildman/303/251r/bildman/303/251r.config.js +1 -1
  78. package/src/brandbook/internetstiftelsen/identitet/identitet.config.js +1 -1
  79. package/src/brandbook/internetstiftelsen/tonalitet och spr/303/245kbruk/tonalitet och spr/303/245kbruk.config.js" +1 -1
  80. package/src/components.js +0 -2
  81. package/src/configurations/_bem.scss +30 -27
  82. package/src/configurations/_config.scss +24 -23
  83. package/src/configurations/_extends.scss +38 -34
  84. package/src/configurations/_functions.scss +25 -9
  85. package/src/configurations/_mixins.scss +23 -19
  86. package/src/configurations/_recaptcha.scss +2 -2
  87. package/src/configurations/_variables.scss +40 -46
  88. package/src/configurations/_wordpress.scss +69 -62
  89. package/src/configurations/colors/_background-colors.scss +3 -2
  90. package/src/configurations/colors/_colors-functions.scss +41 -39
  91. package/src/configurations/colors/_colors.scss +4 -4
  92. package/src/configurations/colors/_text-colors.scss +3 -2
  93. package/src/configurations/colors/_wordpress-colors.scss +3 -2
  94. package/src/configurations/colors/colors.config.js +1 -1
  95. package/src/configurations/favicon/favicon.config.js +1 -1
  96. package/src/configurations/forms/_fields.scss +28 -23
  97. package/src/configurations/grid/_grid.scss +33 -28
  98. package/src/configurations/grid/grid.config.js +1 -1
  99. package/src/configurations/icons.json +1 -1
  100. package/src/configurations/typography/_typography.scss +113 -105
  101. package/src/configurations/typography/readme.md +1 -1
  102. package/src/configurations/typography/typography.config.js +1 -1
  103. package/src/globals.scss +16 -18
  104. package/src/isolated-footer.scss +25 -25
  105. package/src/molecules/alert/_alert.scss +44 -35
  106. package/src/molecules/alert/alert.config.js +1 -1
  107. package/src/molecules/breadcrumb/_breadcrumb.scss +43 -35
  108. package/src/molecules/breadcrumb/breadcrumb.config.js +1 -1
  109. package/src/molecules/byline/_byline.scss +30 -21
  110. package/src/molecules/byline/byline.config.js +1 -1
  111. package/src/molecules/card/_card.scss +87 -77
  112. package/src/molecules/context-menu/_context-menu.scss +32 -15
  113. package/src/molecules/context-menu/context-menu.config.js +11 -11
  114. package/src/molecules/continue-video-guide/continue-video-guide.config.js +1 -1
  115. package/src/molecules/continue-video-guide/continue-video-guide.scss +37 -28
  116. package/src/molecules/cookie-disclaimer/cookie-disclaimer.config.js +1 -1
  117. package/src/molecules/cookie-disclaimer/cookie-disclaimer.scss +32 -23
  118. package/src/molecules/download/_download.scss +38 -30
  119. package/src/molecules/download/download.config.js +1 -1
  120. package/src/molecules/form/form.config.js +1 -1
  121. package/src/molecules/form-control/_form-control.scss +66 -58
  122. package/src/molecules/form-control/form-control.config.js +1 -1
  123. package/src/molecules/glider/_glider-course.scss +29 -23
  124. package/src/molecules/glider/_glider-hero.scss +112 -104
  125. package/src/molecules/glider/_glider.scss +36 -30
  126. package/src/molecules/glider/glider-hero.js +1 -3
  127. package/src/molecules/glider/glider.config.js +1 -1
  128. package/src/molecules/icon-overlay/_icon-overlay.scss +29 -20
  129. package/src/molecules/icon-overlay/icon-overlay.config.js +1 -1
  130. package/src/molecules/info-box/_info-box.scss +31 -22
  131. package/src/molecules/info-box/info-box.config.js +1 -1
  132. package/src/molecules/input-group/_input-group.scss +23 -13
  133. package/src/molecules/input-group/input-group.config.js +1 -1
  134. package/src/molecules/modal/_modal.scss +77 -65
  135. package/src/molecules/modal/modal.js +2 -2
  136. package/src/molecules/multi-select/_multi-select.scss +44 -33
  137. package/src/molecules/multi-select/multi-select.js +3 -3
  138. package/src/molecules/natural-language-form/_natural-language-form.scss +33 -23
  139. package/src/molecules/natural-language-form/natural-language-form.config.js +4 -4
  140. package/src/molecules/overview-navigation/_overview-navigation.scss +54 -45
  141. package/src/molecules/overview-navigation/overview-navigation.js +2 -2
  142. package/src/molecules/readspeaker/_readspeaker.scss +1 -1
  143. package/src/molecules/share/_share.scss +23 -15
  144. package/src/molecules/share/share.config.js +1 -1
  145. package/src/molecules/submenu/_submenu.scss +77 -69
  146. package/src/molecules/submenu/submenu.config.js +1 -1
  147. package/src/molecules/system-error/_system-error.scss +26 -17
  148. package/src/molecules/system-error/system-error.config.js +1 -1
  149. package/src/molecules/table/_table.scss +50 -42
  150. package/src/molecules/table/table.config.js +1 -1
  151. package/src/molecules/teaser-news-list/_teaser-news-list.scss +21 -12
  152. package/src/molecules/teaser-news-list/teaser-news-list.config.js +1 -1
  153. package/src/organisms/accordion/_accordion.scss +64 -54
  154. package/src/organisms/accordion/accordion.config.js +1 -1
  155. package/src/organisms/domain-search/_domain-search.scss +54 -45
  156. package/src/organisms/domain-search/domain-search.config.js +1 -1
  157. package/src/organisms/event-listing-item/_event-listing-item.scss +36 -26
  158. package/src/organisms/features-box/_features-box.scss +30 -19
  159. package/src/organisms/filter/_filter.scss +15 -10
  160. package/src/organisms/filter/filter.config.js +1 -1
  161. package/src/organisms/footer/_footer.scss +121 -111
  162. package/src/organisms/footer/footer.config.js +1 -1
  163. package/src/organisms/header/_header.scss +24 -14
  164. package/src/organisms/header/header.config.js +1 -1
  165. package/src/organisms/hero/_hero--bbk.scss +50 -38
  166. package/src/organisms/hero/_hero--dynamic-headline.scss +49 -39
  167. package/src/organisms/hero/_hero.scss +222 -207
  168. package/src/organisms/hero/hero.config.js +37 -38
  169. package/src/organisms/mailchimp/_mailchimp.scss +53 -43
  170. package/src/organisms/mailchimp/mailchimp.config.js +1 -1
  171. package/src/organisms/mailchimp/mailchimp.js +2 -1
  172. package/src/organisms/mega-menu/_mega-menu.scss +55 -45
  173. package/src/organisms/mega-menu/mega-menu.config.js +1 -1
  174. package/src/organisms/members-service-product/_members-service-product.scss +29 -18
  175. package/src/organisms/members-service-product/members-service-product.config.js +6 -8
  176. package/src/organisms/podcast/_podcast-episodes.scss +85 -75
  177. package/src/organisms/podcast/_podcast-player.scss +73 -64
  178. package/src/organisms/podcast/podcast.config.js +1 -1
  179. package/src/organisms/schedule/_schedule.scss +92 -82
  180. package/src/organisms/search/_search.scss +68 -58
  181. package/src/organisms/search-result/_search-result.scss +50 -40
  182. package/src/organisms/search-result/search-result.config.js +1 -1
  183. package/src/organisms/sections/_sections.scss +41 -31
  184. package/src/organisms/sections/sections.config.js +1 -1
  185. package/src/organisms/tabs/_tabs.scss +58 -46
  186. package/src/organisms/tabs/tabs.config.js +1 -1
  187. package/src/organisms/tabs/tabs.js +3 -2
  188. package/src/organisms/timeline/_timeline.scss +92 -81
  189. package/src/organisms/timeline/timeline.config.js +1 -1
  190. package/src/organisms/timeline/timeline.js +3 -2
  191. package/src/organisms/video-guide/VideoGuidePlayback.js +1 -1
  192. package/src/organisms/video-guide/_video-guide.scss +148 -138
  193. package/src/organisms/video-guide/video-guide.config.js +1 -1
  194. package/src/organisms/video-guide/video-guide.js +2 -2
  195. package/src/pages/animate-footer/animate-footer.config.js +181 -2
  196. package/src/pages/bredbandskollen/bredbandskollen.config.js +1 -1
  197. package/src/pages/conditional/conditional.config.js +1 -1
  198. package/src/pages/dark-mode/dark-mode.config.js +1 -1
  199. package/src/pages/internetguider/internetguider.config.js +1 -1
  200. package/src/pages/magazine/magazine.config.js +1 -1
  201. package/src/pages/mailchimp-newsletter/mailchimp-newsletter.config.js +1 -1
  202. package/src/pages/responsive-position/responsive-position.config.js +1 -1
  203. package/src/pages/search/search.config.js +1 -1
  204. package/src/pages/wordpress-blocks/wordpress-blocks.config.js +1 -1
  205. package/src/print.scss +1 -1
  206. package/src/structures/_article.scss +39 -28
  207. package/src/structures/_core-values.scss +14 -2
  208. package/src/structures/_manifest.scss +4 -4
  209. package/src/structures/_section.scss +32 -20
  210. package/src/structures/_site.scss +19 -7
  211. package/src/theme/_dark-mode.scss +14 -13
  212. package/src/theme/_theme.scss +29 -26
  213. package/src/utilities/_align.scss +1 -1
  214. package/src/utilities/_border.scss +5 -3
  215. package/src/utilities/_box-shadow.scss +5 -2
  216. package/src/utilities/_display.scss +1 -1
  217. package/src/utilities/_fill.scss +5 -4
  218. package/src/utilities/_flex.scss +1 -1
  219. package/src/utilities/_font-size.scss +6 -5
  220. package/src/utilities/_fonts.scss +6 -5
  221. package/src/utilities/_gutter.scss +3 -2
  222. package/src/utilities/_hide.scss +17 -15
  223. package/src/utilities/_icons.scss +41 -37
  224. package/src/utilities/_indent.scss +8 -6
  225. package/src/utilities/_links.scss +22 -18
  226. package/src/utilities/_lists.scss +19 -14
  227. package/src/utilities/_manifest.scss +27 -27
  228. package/src/utilities/_margin.scss +28 -25
  229. package/src/utilities/_misc.scss +3 -2
  230. package/src/utilities/_padding.scss +26 -23
  231. package/src/utilities/_position.scss +3 -2
  232. package/src/utilities/_show.scss +7 -6
  233. package/src/utilities/_text.scss +1 -1
  234. package/src/utilities/_vertical-align.scss +1 -1
  235. package/src/utilities/_wrap.scss +1 -1
  236. package/src/utilities/_z-index.scss +7 -6
  237. package/src/utilities/tab-highlighting/_tab-highlighting.scss +6 -5
  238. package/src/vendor/baseline/_plumber.scss +14 -13
  239. package/src/vendor/grid/_breakpoints.scss +17 -13
  240. package/src/vendor/grid/_flex.scss +8 -4
  241. package/src/vendor/grid/_functions.scss +9 -6
  242. package/src/vendor/grid/_grid-framework.scss +14 -9
  243. package/src/vendor/grid/_grid.scss +19 -16
  244. package/src/vendor/grid/_spacing.scss +8 -3
  245. package/src/atoms/toggle-high-contrast/readme.md +0 -6
  246. package/src/atoms/toggle-high-contrast/toggle-high-contrast.config.js +0 -8
  247. package/src/atoms/toggle-high-contrast/toggle-high-contrast.js +0 -10
  248. package/src/molecules/modal/modal-graph.js +0 -40
@@ -1,4 +1,12 @@
1
1
  @charset "UTF-8";
2
+ @use "sass:color";
3
+ @use '../../configurations/mixins' as mixin;
4
+ @use '../../configurations/bem' as bem;
5
+ @use '../../configurations/variables' as var;
6
+ @use '../../configurations/functions' as func;
7
+ @use '../../configurations/colors/colors' as colors;
8
+ @use '../../vendor/grid/breakpoints' as breakpoint;
9
+ @use '../../vendor/baseline/plumber' as plumber;
2
10
 
3
11
  // NOTE: this compnent is dependant on the glider.scss component
4
12
  // The Glider components is dependant on JS-classes and is therefore not namespaced
@@ -9,88 +17,88 @@
9
17
  align-items: center;
10
18
  margin: 0;
11
19
 
12
- @include e(text) {
20
+ @include bem.e(text) {
13
21
  position: absolute;
14
- top: rhythm(2);
15
- left: rhythm(2);
16
- z-index: z_index(background);
17
- padding-right: rhythm(2);
22
+ top: func.rhythm(2);
23
+ left: func.rhythm(2);
24
+ z-index: func.z_index(background);
25
+ padding-right: func.rhythm(2);
18
26
  max-width: 95%;
19
27
 
20
- @include bp-up(sm-xs) {
21
- top: rhythm(3);
22
- left: rhythm(3);
23
- padding-right: rhythm(3);
28
+ @include breakpoint.bp-up(sm-xs) {
29
+ top: func.rhythm(3);
30
+ left: func.rhythm(3);
31
+ padding-right: func.rhythm(3);
24
32
  max-width: 90%;
25
33
  }
26
34
 
27
35
 
28
- @include bp-up(sm) {
29
- top: rhythm(4);
30
- left: rhythm(4);
31
- padding-right: rhythm(4);
36
+ @include breakpoint.bp-up(sm) {
37
+ top: func.rhythm(4);
38
+ left: func.rhythm(4);
39
+ padding-right: func.rhythm(4);
32
40
  max-width: 80%;
33
41
  }
34
42
 
35
- @include bp-up(md) {
36
- top: rhythm(6);
37
- left: rhythm(6);
38
- padding-right: rhythm(6);
43
+ @include breakpoint.bp-up(md) {
44
+ top: func.rhythm(6);
45
+ left: func.rhythm(6);
46
+ padding-right: func.rhythm(6);
39
47
  max-width: 70%;
40
48
  }
41
49
 
42
- @include bp-up(lg) {
43
- top: rhythm(7);
44
- left: rhythm(7);
50
+ @include breakpoint.bp-up(lg) {
51
+ top: func.rhythm(7);
52
+ left: func.rhythm(7);
45
53
  padding-right: 0;
46
54
  max-width: 60%;
47
55
  }
48
56
 
49
- @include bp-up(xl) {
50
- top: rhythm(8);
51
- left: rhythm(8);
57
+ @include breakpoint.bp-up(xl) {
58
+ top: func.rhythm(8);
59
+ left: func.rhythm(8);
52
60
  }
53
61
 
54
62
  > h1 {
55
- color: $color-snow;
63
+ color: colors.$color-snow;
56
64
 
57
65
  > span {
58
66
  background-color: rgba(0,0,0,0.6);
59
67
  }
60
68
 
61
- @include plumber(
62
- $font-size: 2,
69
+ @include plumber.plumber(
70
+ var.$font-size: 2,
63
71
  $line-height: 3,
64
72
  $leading-bottom: 1
65
73
  );
66
74
 
67
- @include bp-up(sm) {
68
- @include plumber(
69
- $font-size: 2.3,
75
+ @include breakpoint.bp-up(sm) {
76
+ @include plumber.plumber(
77
+ var.$font-size: 2.3,
70
78
  $line-height: 3,
71
79
  $leading-bottom: 1
72
80
  );
73
81
  }
74
82
 
75
- @include bp-up(md) {
76
- @include plumber(
77
- $font-size: 3,
83
+ @include breakpoint.bp-up(md) {
84
+ @include plumber.plumber(
85
+ var.$font-size: 3,
78
86
  $line-height: 4,
79
87
  $leading-bottom: 2
80
88
  );
81
89
  }
82
90
 
83
- @include bp-up(lg) {
84
- @include plumber(
85
- $font-size: 4,
91
+ @include breakpoint.bp-up(lg) {
92
+ @include plumber.plumber(
93
+ var.$font-size: 4,
86
94
  $line-height: 5,
87
95
  $leading-bottom: 2
88
96
  );
89
97
  }
90
98
 
91
- @include bp-up(xl) {
92
- @include plumber(
93
- $font-size: 5,
99
+ @include breakpoint.bp-up(xl) {
100
+ @include plumber.plumber(
101
+ var.$font-size: 5,
94
102
  $line-height: 6,
95
103
  $leading-bottom: 3
96
104
  );
@@ -98,34 +106,34 @@
98
106
  }
99
107
 
100
108
  > p {
101
- color: $color-snow;
109
+ color: colors.$color-snow;
102
110
 
103
111
  > span {
104
112
  background-color: rgba(0,0,0,0.6);
105
113
  }
106
114
 
107
- @include plumber(
108
- $font-size: 1.5,
115
+ @include plumber.plumber(
116
+ var.$font-size: 1.5,
109
117
  $line-height: 2,
110
118
  );
111
119
 
112
- @include bp-up(sm) {
113
- @include plumber(
114
- $font-size: 2,
120
+ @include breakpoint.bp-up(sm) {
121
+ @include plumber.plumber(
122
+ var.$font-size: 2,
115
123
  $line-height: 3,
116
124
  );
117
125
  }
118
126
 
119
- @include bp-up(lg) {
120
- @include plumber(
121
- $font-size: 2.5,
127
+ @include breakpoint.bp-up(lg) {
128
+ @include plumber.plumber(
129
+ var.$font-size: 2.5,
122
130
  $line-height: 3,
123
131
  );
124
132
  }
125
133
 
126
- @include bp-up(xl) {
127
- @include plumber(
128
- $font-size: 3,
134
+ @include breakpoint.bp-up(xl) {
135
+ @include plumber.plumber(
136
+ var.$font-size: 3,
129
137
  $line-height: 4,
130
138
  );
131
139
  }
@@ -144,7 +152,7 @@
144
152
  .glider-slide {
145
153
  width: 100vw;
146
154
 
147
- @include m(hero) {
155
+ @include bem.m(hero) {
148
156
  margin: 0;
149
157
  padding: 0;
150
158
  position: relative;
@@ -157,30 +165,30 @@
157
165
  right: 0;
158
166
  bottom: 0;
159
167
  left: 0;
160
- background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba($color-black, 0) 35%, rgba($color-black, 1) 100%);
168
+ background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(colors.$color-black, 0) 35%, rgba(colors.$color-black, 1) 100%);
161
169
  }
162
170
 
163
- @include e(image) {
171
+ @include bem.e(image) {
164
172
  display: block;
165
173
  object-fit: cover;
166
174
  object-position: 50% 50%;
167
175
  width: 100%;
168
176
  height: 100%;
169
177
 
170
- @include bp-up(sm) {
171
- min-height: rem(500px);
178
+ @include breakpoint.bp-up(sm) {
179
+ min-height: func.to_rem(500px);
172
180
  max-height: 75vh;
173
181
  }
174
182
  }
175
183
 
176
- @include e(text) {
184
+ @include bem.e(text) {
177
185
  position: absolute;
178
186
  z-index: 1;
179
- bottom: rhythm(2);
180
- left: rhythm(2);
181
- padding-right: rhythm(2);
182
- color: $color-snow;
183
- font-family: $font-family-bold;
187
+ bottom: func.rhythm(2);
188
+ left: func.rhythm(2);
189
+ padding-right: func.rhythm(2);
190
+ color: colors.$color-snow;
191
+ font-family: var.$font-family-bold;
184
192
  max-width: 95%;
185
193
 
186
194
  > span {
@@ -192,7 +200,7 @@
192
200
 
193
201
  &:hover {
194
202
  text-decoration: none;
195
- color: $color-cyberspace !important;
203
+ color: colors.$color-cyberspace !important;
196
204
  text-shadow: none;
197
205
  }
198
206
 
@@ -202,7 +210,7 @@
202
210
  z-index: -1;
203
211
  width: 100%;
204
212
  height: 100%;
205
- background-color: $color-snow;
213
+ background-color: colors.$color-snow;
206
214
  bottom: 0;
207
215
  left: 0;
208
216
  transform-origin: right;
@@ -217,72 +225,72 @@
217
225
  }
218
226
  }
219
227
 
220
- @include plumber(
221
- $font-size: 2.3,
228
+ @include plumber.plumber(
229
+ var.$font-size: 2.3,
222
230
  $line-height: 3,
223
231
  $leading-bottom: 0,
224
- $baseline: $headings-baseline
232
+ $baseline: var.$headings-baseline
225
233
  );
226
234
 
227
- @include bp-up(sm-xs) {
228
- bottom: rhythm(3);
229
- left: rhythm(3);
230
- padding-right: rhythm(3);
235
+ @include breakpoint.bp-up(sm-xs) {
236
+ bottom: func.rhythm(3);
237
+ left: func.rhythm(3);
238
+ padding-right: func.rhythm(3);
231
239
  max-width: 90%;
232
240
 
233
- @include plumber(
234
- $font-size: 3,
241
+ @include plumber.plumber(
242
+ var.$font-size: 3,
235
243
  $line-height: 4,
236
244
  $leading-bottom: 0
237
245
  );
238
246
  }
239
247
 
240
248
 
241
- @include bp-up(sm) {
242
- bottom: rhythm(4);
243
- left: rhythm(4);
244
- padding-right: rhythm(4);
249
+ @include breakpoint.bp-up(sm) {
250
+ bottom: func.rhythm(4);
251
+ left: func.rhythm(4);
252
+ padding-right: func.rhythm(4);
245
253
  max-width: 80%;
246
254
 
247
- @include plumber(
248
- $font-size: 4,
255
+ @include plumber.plumber(
256
+ var.$font-size: 4,
249
257
  $line-height: 5,
250
258
  $leading-bottom: 0
251
259
  );
252
260
  }
253
261
 
254
- @include bp-up(md) {
255
- bottom: rhythm(6);
256
- left: rhythm(6);
257
- padding-right: rhythm(6);
262
+ @include breakpoint.bp-up(md) {
263
+ bottom: func.rhythm(6);
264
+ left: func.rhythm(6);
265
+ padding-right: func.rhythm(6);
258
266
  max-width: 70%;
259
267
 
260
- @include plumber(
261
- $font-size: 5,
268
+ @include plumber.plumber(
269
+ var.$font-size: 5,
262
270
  $line-height: 6,
263
271
  $leading-bottom: 0
264
272
  );
265
273
  }
266
274
 
267
- @include bp-up(lg) {
268
- bottom: rhythm(7);
269
- left: rhythm(7);
275
+ @include breakpoint.bp-up(lg) {
276
+ bottom: func.rhythm(7);
277
+ left: func.rhythm(7);
270
278
  padding-right: 0;
271
279
  max-width: 60%;
272
280
 
273
- @include plumber(
274
- $font-size: 6,
281
+ @include plumber.plumber(
282
+ var.$font-size: 6,
275
283
  $line-height: 8,
276
284
  $leading-bottom: 0
277
285
  );
278
286
  }
279
287
 
280
- @include bp-up(xl) {
281
- bottom: rhythm(8);
282
- left: rhythm(8);
288
+ @include breakpoint.bp-up(xl) {
289
+ bottom: func.rhythm(8);
290
+ left: func.rhythm(8);
283
291
 
284
- @include plumber(
285
- $font-size: 7,
292
+ @include plumber.plumber(
293
+ var.$font-size: 7,
286
294
  $line-height: 9,
287
295
  $leading-bottom: 0
288
296
  );
@@ -294,11 +302,11 @@
294
302
  .glider-nav {
295
303
  transform: scale(0.7) translateY(-100%);
296
304
 
297
- @include bp-up(md) {
305
+ @include breakpoint.bp-up(md) {
298
306
  transform: scale(1) translateY(-50%);
299
307
  }
300
308
 
301
- @include m(hero) {
309
+ @include bem.m(hero) {
302
310
  &.disabled {
303
311
  display: none;
304
312
  }
@@ -306,24 +314,24 @@
306
314
  &.glider-prev {
307
315
  left: 0;
308
316
 
309
- @include bp-up(md) {
310
- left: rhythm(1);
317
+ @include breakpoint.bp-up(md) {
318
+ left: func.rhythm(1);
311
319
  }
312
320
 
313
- @include bp-up(lg) {
314
- left: rhythm(2);
321
+ @include breakpoint.bp-up(lg) {
322
+ left: func.rhythm(2);
315
323
  }
316
324
  }
317
325
 
318
326
  &.glider-next {
319
327
  right: 0;
320
328
 
321
- @include bp-up(md) {
322
- right: rhythm(1);
329
+ @include breakpoint.bp-up(md) {
330
+ right: func.rhythm(1);
323
331
  }
324
332
 
325
- @include bp-up(lg) {
326
- right: rhythm(2);
333
+ @include breakpoint.bp-up(lg) {
334
+ right: func.rhythm(2);
327
335
  }
328
336
  }
329
337
  }
@@ -1,5 +1,11 @@
1
1
  @charset "UTF-8";
2
2
  @use "sass:color";
3
+ @use '../../configurations/mixins' as mixin;
4
+ @use '../../configurations/bem' as bem;
5
+ @use '../../configurations/variables' as var;
6
+ @use '../../configurations/functions' as func;
7
+ @use '../../configurations/colors/colors' as colors;
8
+ @use '../../vendor/grid/breakpoints' as breakpoint;
3
9
 
4
10
  // The Glider components is dependant on JS-classes and is therefore not namespaced
5
11
 
@@ -7,10 +13,10 @@
7
13
  display: flex;
8
14
  position: relative;
9
15
  align-items: center;
10
- margin-top: rhythm(2);
11
- margin-bottom: rhythm(2);
12
- padding-right: rhythm(8);
13
- padding-left: rhythm(8);
16
+ margin-top: func.rhythm(2);
17
+ margin-bottom: func.rhythm(2);
18
+ padding-right: func.rhythm(8);
19
+ padding-left: func.rhythm(8);
14
20
  }
15
21
 
16
22
  .glider {
@@ -26,7 +32,7 @@
26
32
  cursor: grab;
27
33
  user-select: none;
28
34
 
29
- @include b(glider-slide) {
35
+ @include bem.b(glider-slide) {
30
36
  img {
31
37
  pointer-events: none;
32
38
  user-select: none;
@@ -55,31 +61,31 @@
55
61
  width: 100%;
56
62
  min-width: 150px;
57
63
  margin-left: 1px;
58
- padding: rhythm(2) 0;
64
+ padding: func.rhythm(2) 0;
59
65
  overflow: hidden;
60
66
 
61
67
  img:not([class]) {
62
68
  display: block;
63
- border-radius: $border-radius;
69
+ border-radius: var.$border-radius;
64
70
  width: 100%;
65
71
  }
66
72
 
67
- @include bp-only(sm) {
68
- padding-right: rhythm(2);
69
- padding-left: rhythm(2);
73
+ @include breakpoint.bp-only(sm) {
74
+ padding-right: func.rhythm(2);
75
+ padding-left: func.rhythm(2);
70
76
  }
71
77
 
72
- @include bp-up(lg) {
73
- padding-right: rhythm(3);
74
- padding-left: rhythm(3);
78
+ @include breakpoint.bp-up(lg) {
79
+ padding-right: func.rhythm(3);
80
+ padding-left: func.rhythm(3);
75
81
  }
76
82
 
77
- @include m(stretch-items) {
83
+ @include bem.m(stretch-items) {
78
84
  display: flex;
79
85
  align-items: stretch;
80
86
  }
81
87
 
82
- @include bp-up(lg) {
88
+ @include breakpoint.bp-up(lg) {
83
89
  &:not(.active) {
84
90
  &::after {
85
91
  content: '';
@@ -88,7 +94,7 @@
88
94
  bottom: 0;
89
95
  left: 0;
90
96
  width: 1px;
91
- background-color: $color-concrete;
97
+ background-color: colors.$color-concrete;
92
98
  }
93
99
  }
94
100
  }
@@ -98,14 +104,14 @@
98
104
  position: absolute;
99
105
  top: 50%;
100
106
  left: 0;
101
- z-index: z_index(middleground);
107
+ z-index: func.z_index(middleground);
102
108
  transform: translateY(-50%);
103
109
  transition: background-color 0.25s ease-out;
104
110
  user-select: none;
105
111
  cursor: pointer;
106
112
 
107
113
  &:focus {
108
- background-color: $color-snow;
114
+ background-color: colors.$color-snow;
109
115
  }
110
116
 
111
117
  svg {
@@ -114,18 +120,18 @@
114
120
  }
115
121
 
116
122
  &.disabled {
117
- background-color: $color-ash;
118
- box-shadow: 0 2px 5px color.adjust($color-granit, $lightness: 25%);
123
+ background-color: colors.$color-ash;
124
+ box-shadow: 0 2px 5px color.adjust(colors.$color-granit, $lightness: 25%);
119
125
  pointer-events: none;
120
126
 
121
127
  svg {
122
128
  opacity: 0.2;
123
- fill: $color-cyberspace;
129
+ fill: colors.$color-cyberspace;
124
130
  }
125
131
  }
126
132
 
127
- @include bp-up(sm) {
128
- left: rhythm(1);
133
+ @include breakpoint.bp-up(sm) {
134
+ left: func.rhythm(1);
129
135
  }
130
136
  }
131
137
 
@@ -133,8 +139,8 @@
133
139
  right: 0;
134
140
  left: auto;
135
141
 
136
- @include bp-up(sm) {
137
- right: rhythm(1);
142
+ @include breakpoint.bp-up(sm) {
143
+ right: func.rhythm(1);
138
144
  }
139
145
  }
140
146
 
@@ -168,20 +174,20 @@
168
174
 
169
175
  .glider-dot {
170
176
  display: block;
171
- width: rem(14px);
172
- height: rem(14px);
173
- margin: rhythm(0.5);
177
+ width: func.to_rem(14px);
178
+ height: func.to_rem(14px);
179
+ margin: func.rhythm(0.5);
174
180
  padding: 0;
175
181
  border: 0;
176
182
  border-radius: 50%;
177
183
  outline: none;
178
- background: $color-concrete;
184
+ background: colors.$color-concrete;
179
185
  cursor: pointer;
180
186
  user-select: none;
181
187
 
182
188
  &:hover,
183
189
  &:focus,
184
190
  &.active {
185
- background: $color-cyberspace;
191
+ background: colors.$color-cyberspace;
186
192
  }
187
193
  }
@@ -1,12 +1,10 @@
1
1
  import Glider from 'glider-js';
2
2
  import nodeAdded from '../../assets/js/nodeAdded';
3
-
4
- // eslint-disable-next-line import/prefer-default-export
5
3
  export function initHeroGlider(node) {
6
4
  if (node.hasAttribute('data-glider-initialized')) {
7
5
  return;
8
6
  }
9
- // eslint-disable-next-line no-underscore-dangle
7
+
10
8
  const dataLayer = window._mtm || [];
11
9
  const gliderLinks = document.querySelectorAll('.glider-slide a');
12
10
 
@@ -26,4 +26,4 @@ module.exports = {
26
26
  }
27
27
  }
28
28
  ]
29
- }
29
+ };
@@ -1,10 +1,19 @@
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;
2
11
 
3
- @include molecule(icon-overlay) {
12
+ @include mixin.molecule(icon-overlay) {
4
13
  position: relative;
5
14
  width: 100%;
6
15
  overflow: hidden;
7
- border-radius: $border-radius;
16
+ border-radius: var.$border-radius;
8
17
 
9
18
  > img {
10
19
  display: block;
@@ -26,13 +35,13 @@
26
35
  left: 0;
27
36
  }
28
37
 
29
- @include e(button) {
38
+ @include bem.e(button) {
30
39
  position: absolute;
31
40
  z-index: 3;
32
41
  top: 50%;
33
42
  left: 50%;
34
- width: rhythm(7);
35
- height: rhythm(7);
43
+ width: func.rhythm(7);
44
+ height: func.rhythm(7);
36
45
  padding: 0;
37
46
  transform: translateX(-50%) translateY(-50%);
38
47
  border: 0;
@@ -41,30 +50,30 @@
41
50
  &:hover,
42
51
  &:focus {
43
52
  > svg {
44
- fill: $color-concrete;
53
+ fill: colors.$color-concrete;
45
54
  }
46
55
  }
47
56
 
48
- @include bp-up(sm) {
49
- width: rhythm(10);
50
- height: rhythm(10);
57
+ @include breakpoint.bp-up(sm) {
58
+ width: func.rhythm(10);
59
+ height: func.rhythm(10);
51
60
  }
52
61
  }
53
62
 
54
- @include e(icon) {
55
- width: rhythm(7);
56
- height: rhythm(7);
57
- fill: $color-snow;
63
+ @include bem.e(icon) {
64
+ width: func.rhythm(7);
65
+ height: func.rhythm(7);
66
+ fill: colors.$color-snow;
58
67
  filter: drop-shadow(5px 5px 5px rgba(0, 0, 0, 0.4));
59
68
  cursor: pointer;
60
69
 
61
- @include bp-up(sm) {
62
- width: rhythm(10);
63
- height: rhythm(10);
70
+ @include breakpoint.bp-up(sm) {
71
+ width: func.rhythm(10);
72
+ height: func.rhythm(10);
64
73
  }
65
74
  }
66
75
 
67
- @include e(message) {
76
+ @include bem.e(message) {
68
77
  display: flex;
69
78
  flex-direction: column;
70
79
  position: absolute;
@@ -76,8 +85,8 @@
76
85
  align-items: center;
77
86
  justify-content: center;
78
87
  text-align: center;
79
- background: $color-concrete;
80
- padding-left: rhythm(2);
81
- padding-right: rhythm(2);
88
+ background: colors.$color-concrete;
89
+ padding-left: func.rhythm(2);
90
+ padding-right: func.rhythm(2);
82
91
  }
83
92
  }
@@ -8,4 +8,4 @@ module.exports = {
8
8
  overlay_icon: "play",
9
9
  additional_classes: false
10
10
  }
11
- }
11
+ };