@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,142 +1,153 @@
1
- @charset 'UTF-8';
2
-
3
- @include organism(hero) {
1
+ @charset "UTF-8";
2
+ @use '../../configurations/mixins' as mixin;
3
+ @use '../../configurations/bem' as bem;
4
+ @use '../../configurations/typography/typography';
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(hero) {
4
15
  position: relative;
5
- z-index: z_index(background);
6
- margin-bottom: rhythm(4);
16
+ z-index: func.z_index(background);
17
+ margin-bottom: func.rhythm(4);
7
18
  -webkit-font-smoothing: antialiased;
8
19
  -moz-osx-font-smoothing: grayscale;
9
20
 
10
21
  .supersize {
11
22
  + [class*='buttons'] {
12
- margin-top: rhythm(2);
23
+ margin-top: func.rhythm(2);
13
24
 
14
- @include bp-up(lg) {
15
- margin-top: rhythm(3);
25
+ @include breakpoint.bp-up(lg) {
26
+ margin-top: func.rhythm(3);
16
27
  }
17
28
  }
18
29
  }
19
30
 
20
- @include bp-up(sm) {
31
+ @include breakpoint.bp-up(sm) {
21
32
  overflow: hidden;
22
33
  background-color: transparent;
23
34
  }
24
35
 
25
- @include e(image) {
36
+ @include bem.e(image) {
26
37
  display: block;
27
38
  object-fit: cover;
28
39
  object-position: 50% 25%;
29
40
  width: 100%;
30
41
 
31
- @include bp-up(sm) {
32
- min-height: rem(500px);
42
+ @include breakpoint.bp-up(sm) {
43
+ min-height: func.to_rem(500px);
33
44
  max-height: 50vh;
34
45
  }
35
46
  }
36
47
 
37
- @include e(caption) {
48
+ @include bem.e(caption) {
38
49
  display: flex;
39
50
  align-items: flex-end;
40
- padding: rhythm(2) 0;
51
+ padding: func.rhythm(2) 0;
41
52
  background-image: none;
42
53
 
43
- @include bp-up(sm) {
54
+ @include breakpoint.bp-up(sm) {
44
55
  position: absolute;
45
- z-index: z_index(middlegroundImportant);
56
+ z-index: func.z_index(middlegroundImportant);
46
57
  top: 0;
47
58
  right: 0;
48
59
  bottom: 0;
49
60
  left: 0;
50
- padding: rhythm(4);
51
- background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba($color-black, 0) 35%, rgba($color-black, 1) 100%);
52
- text-shadow: $text-shadow;
61
+ padding: func.rhythm(4);
62
+ background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(colors.$color-black, 0) 35%, rgba(colors.$color-black, 1) 100%);
63
+ text-shadow: config.$text-shadow;
53
64
  }
54
65
 
55
- @include bp-up(md) {
56
- padding: rhythm(6);
66
+ @include breakpoint.bp-up(md) {
67
+ padding: func.rhythm(6);
57
68
  }
58
69
 
59
- @include bp-up(lg) {
60
- padding: rhythm(8);
70
+ @include breakpoint.bp-up(lg) {
71
+ padding: func.rhythm(8);
61
72
  }
62
73
  }
63
74
 
64
- @include e(paragraph) {
65
- color: $color-cyberspace;
75
+ @include bem.e(paragraph) {
76
+ color: colors.$color-cyberspace;
66
77
 
67
- @include plumber(
68
- $font-size: 2.5,
78
+ @include plumber.plumber(
79
+ var.$font-size: 2.5,
69
80
  $line-height: 3
70
81
  );
71
82
 
72
- @include bp-up(sm) {
73
- color: $color-snow;
83
+ @include breakpoint.bp-up(sm) {
84
+ color: colors.$color-snow;
74
85
  }
75
86
  }
76
87
 
77
- @include e(tags) {
78
- margin-top: rhythm(2);
88
+ @include bem.e(tags) {
89
+ margin-top: func.rhythm(2);
79
90
 
80
- @include bp-up(lg) {
81
- margin-top: rhythm(3);
91
+ @include breakpoint.bp-up(lg) {
92
+ margin-top: func.rhythm(3);
82
93
  }
83
94
 
84
- @include bp-down(sm-xs) {
95
+ @include breakpoint.bp-down(sm-xs) {
85
96
  [class*="tag--light"] {
86
97
  [class*="tag__text"] {
87
- color: $color-cyberspace;
98
+ color: colors.$color-cyberspace;
88
99
  }
89
100
  }
90
101
  }
91
102
  }
92
103
 
93
- @include e(buttons) {
104
+ @include bem.e(buttons) {
94
105
  display: flex;
95
106
  flex-direction: row;
96
107
  flex-wrap: wrap;
97
- margin: -#{rhythm(1)} 0 0 -#{rhythm(3)};
108
+ margin: -#{func.rhythm(1)} 0 0 -#{func.rhythm(3)};
98
109
 
99
- @include atom(button) {
100
- margin: rhythm(1) 0 0 rhythm(3);
110
+ @include mixin.atom(button) {
111
+ margin: func.rhythm(1) 0 0 func.rhythm(3);
101
112
  }
102
113
 
103
- @include bp-up(sm) {
114
+ @include breakpoint.bp-up(sm) {
104
115
  flex-direction: row;
105
116
  }
106
117
  }
107
118
 
108
- @include e(text) {
119
+ @include bem.e(text) {
109
120
  :last-child {
110
121
  margin-bottom: 0;
111
122
  }
112
123
 
113
- @include bp-up(sm) {
114
- color: $color-snow;
124
+ @include breakpoint.bp-up(sm) {
125
+ color: colors.$color-snow;
115
126
  }
116
127
 
117
- @include bp-up(md) {
128
+ @include breakpoint.bp-up(md) {
118
129
  max-width: 100%;
119
130
  }
120
131
 
121
- @include bp-up(lg) {
132
+ @include breakpoint.bp-up(lg) {
122
133
  max-width: 70%;
123
134
  }
124
135
 
125
- @include bp-up(xxl) {
136
+ @include breakpoint.bp-up(xxl) {
126
137
  max-width: 60%;
127
138
  }
128
139
  }
129
140
 
130
- @include b(a-tag) {
131
- @include tag;
141
+ @include bem.b(a-tag) {
142
+ @include mixin.tag;
132
143
 
133
- @include bp-up(sm) {
134
- @include tag-light;
144
+ @include breakpoint.bp-up(sm) {
145
+ @include mixin.tag-light;
135
146
  }
136
147
  }
137
148
 
138
- @include e(link) {
139
- color: $color-cyberspace;
149
+ @include bem.e(link) {
150
+ color: colors.$color-cyberspace;
140
151
  text-decoration: none;
141
152
 
142
153
  &:hover,
@@ -156,32 +167,32 @@
156
167
  }
157
168
 
158
169
  > p {
159
- @include plumber(
160
- $font-size: 2.5,
170
+ @include plumber.plumber(
171
+ var.$font-size: 2.5,
161
172
  $line-height: 3
162
173
  );
163
174
  }
164
175
 
165
176
  + [class*='buttons'] {
166
- margin-top: rhythm(2);
177
+ margin-top: func.rhythm(2);
167
178
 
168
- @include bp-up(lg) {
169
- margin-top: rhythm(3);
179
+ @include breakpoint.bp-up(lg) {
180
+ margin-top: func.rhythm(3);
170
181
  }
171
182
  }
172
183
 
173
- @include bp-up(sm) {
174
- color: $color-snow;
184
+ @include breakpoint.bp-up(sm) {
185
+ color: colors.$color-snow;
175
186
  }
176
187
  }
177
188
 
178
189
  // Hero without image
179
- @include m(no-image) {
190
+ @include bem.m(no-image) {
180
191
  background-color: transparent;
181
192
  -webkit-font-smoothing: auto;
182
193
  -moz-osx-font-smoothing: auto;
183
194
 
184
- @include e(caption) {
195
+ @include bem.e(caption) {
185
196
  position: static;
186
197
  background-image: none;
187
198
  text-shadow: none;
@@ -190,127 +201,127 @@
190
201
  padding-right: 0;
191
202
  padding-left: 0;
192
203
 
193
- @include bp-up(sm) {
194
- padding-right: $grid-gutter-width;
195
- padding-left: $grid-gutter-width;
204
+ @include breakpoint.bp-up(sm) {
205
+ padding-right: var.$grid-gutter-width;
206
+ padding-left: var.$grid-gutter-width;
196
207
  }
197
208
  }
198
209
 
199
- @include bp-down(md) {
210
+ @include breakpoint.bp-down(md) {
200
211
  padding-right: 0;
201
212
  padding-left: 0;
202
213
  }
203
214
  }
204
215
 
205
- @include e(paragraph) {
206
- color: $color-cyberspace;
216
+ @include bem.e(paragraph) {
217
+ color: colors.$color-cyberspace;
207
218
  }
208
219
 
209
220
  &.alignfull {
210
- @include e(caption) {
221
+ @include bem.e(caption) {
211
222
  .wrapper {
212
- padding-right: rhythm(2);
213
- padding-left: rhythm(2);
223
+ padding-right: func.rhythm(2);
224
+ padding-left: func.rhythm(2);
214
225
  }
215
226
  }
216
227
  }
217
228
 
218
- @include e(link) {
219
- color: $color-cyberspace;
229
+ @include bem.e(link) {
230
+ color: colors.$color-cyberspace;
220
231
  }
221
232
 
222
- @include e(text) {
223
- color: $color-cyberspace;
233
+ @include bem.e(text) {
234
+ color: colors.$color-cyberspace;
224
235
  }
225
236
 
226
- @include e(paragraph) {
237
+ @include bem.e(paragraph) {
227
238
  @extend %preamble;
228
239
  }
229
240
 
230
- @include b(a-tag) {
231
- @include tag;
241
+ @include bem.b(a-tag) {
242
+ @include mixin.tag;
232
243
 
233
244
  [class*=text] {
234
- color: $color-cyberspace;
245
+ color: colors.$color-cyberspace;
235
246
  }
236
247
  }
237
248
 
238
- @include bp-up(md) {
239
- @include e(text) {
249
+ @include breakpoint.bp-up(md) {
250
+ @include bem.e(text) {
240
251
  max-width: 85%;
241
252
  }
242
253
  }
243
254
 
244
- @include bp-up(lg) {
245
- @include e(text) {
255
+ @include breakpoint.bp-up(lg) {
256
+ @include bem.e(text) {
246
257
  max-width: 67%;
247
258
  }
248
259
  }
249
260
  }
250
261
 
251
- @include m(timeline) {
252
- @include e(caption) {
253
- background-color: $color-snow;
262
+ @include bem.m(timeline) {
263
+ @include bem.e(caption) {
264
+ background-color: colors.$color-snow;
254
265
 
255
- @include bp-up(sm) {
266
+ @include breakpoint.bp-up(sm) {
256
267
  background-color: transparent;
257
268
  }
258
269
  }
259
270
  }
260
271
 
261
272
  // Hero with earlier mobile breakpoint
262
- @include m(break-early) {
263
- @include e(caption) {
264
- @include bp-up(sm) {
273
+ @include bem.m(break-early) {
274
+ @include bem.e(caption) {
275
+ @include breakpoint.bp-up(sm) {
265
276
  position: static;
266
- padding: rhythm(2) 0;
277
+ padding: func.rhythm(2) 0;
267
278
  }
268
279
 
269
- @include bp-up(md) {
270
- padding: rhythm(3) rhythm(1);
280
+ @include breakpoint.bp-up(md) {
281
+ padding: func.rhythm(3) func.rhythm(1);
271
282
  }
272
283
 
273
- @include bp-up(lg) {
284
+ @include breakpoint.bp-up(lg) {
274
285
  position: absolute;
275
- z-index: z_index(middlegroundImportant);
286
+ z-index: func.z_index(middlegroundImportant);
276
287
  top: 50%;
277
288
  right: 0;
278
289
  bottom: auto;
279
290
  left: 0;
280
- padding: rhythm(4);
291
+ padding: func.rhythm(4);
281
292
  transform: translateY(-50%);
282
- background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba($color-black, 0) 55%, rgba($color-black, 1) 100%);
283
- text-shadow: 0 0 rhythm(2) rgba($color-black, 0.5);
293
+ background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(colors.$color-black, 0) 55%, rgba(colors.$color-black, 1) 100%);
294
+ text-shadow: 0 0 func.rhythm(2) rgba(colors.$color-black, 0.5);
284
295
  }
285
296
 
286
- @include bp-down(md) {
297
+ @include breakpoint.bp-down(md) {
287
298
  [class*="tag--light"] {
288
299
  [class*="tag__text"] {
289
- color: $color-cyberspace;
300
+ color: colors.$color-cyberspace;
290
301
  }
291
302
  }
292
303
  }
293
304
  }
294
305
 
295
- @include e(text) {
306
+ @include bem.e(text) {
296
307
  max-width: 100%;
297
308
 
298
- @include bp-up(md) {
309
+ @include breakpoint.bp-up(md) {
299
310
  max-width: 90%;
300
311
  }
301
312
 
302
- @include bp-up(lg) {
313
+ @include breakpoint.bp-up(lg) {
303
314
  max-width: 85%;
304
315
  }
305
316
 
306
- @include bp-up(xxl) {
317
+ @include breakpoint.bp-up(xxl) {
307
318
  max-width: 70%;
308
319
  }
309
320
 
310
- @include bp-only(lg) {
321
+ @include breakpoint.bp-only(lg) {
311
322
  .supersize {
312
- @include plumber(
313
- $font-size: 6,
323
+ @include plumber.plumber(
324
+ var.$font-size: 6,
314
325
  $line-height: 7,
315
326
  $leading-bottom: 2
316
327
  );
@@ -318,96 +329,96 @@
318
329
  }
319
330
  }
320
331
 
321
- @include e(link) {
322
- color: $color-cyberspace;
332
+ @include bem.e(link) {
333
+ color: colors.$color-cyberspace;
323
334
  text-shadow: none;
324
335
 
325
- @include bp-up(lg) {
326
- color: $color-snow;
327
- text-shadow: 0 0 rhythm(2) rgba($color-black, 0.5);
336
+ @include breakpoint.bp-up(lg) {
337
+ color: colors.$color-snow;
338
+ text-shadow: 0 0 func.rhythm(2) rgba(colors.$color-black, 0.5);
328
339
  }
329
340
  }
330
341
 
331
- @include b(a-tag) {
332
- @include tag;
342
+ @include bem.b(a-tag) {
343
+ @include mixin.tag;
333
344
 
334
- @include bp-up(lg) {
335
- @include tag-light;
345
+ @include breakpoint.bp-up(lg) {
346
+ @include mixin.tag-light;
336
347
  }
337
348
  }
338
349
  }
339
350
 
340
- @include m(no-break) {
341
- @include e(image) {
351
+ @include bem.m(no-break) {
352
+ @include bem.e(image) {
342
353
  aspect-ratio: 1 / 1;
343
354
  object-position: 100% 25%;
344
355
 
345
- @include bp-up(sm-xs) {
356
+ @include breakpoint.bp-up(sm-xs) {
346
357
  aspect-ratio: 4 / 3;
347
358
  }
348
359
 
349
- @include bp-up(sm) {
360
+ @include breakpoint.bp-up(sm) {
350
361
  aspect-ratio: 16 / 9;
351
362
  }
352
363
 
353
- @include bp-up(md) {
364
+ @include breakpoint.bp-up(md) {
354
365
  object-position: 50% 25%;
355
366
  }
356
367
  }
357
368
 
358
- @include e(caption) {
369
+ @include bem.e(caption) {
359
370
  position: absolute;
360
- z-index: z_index(middlegroundImportant);
371
+ z-index: func.z_index(middlegroundImportant);
361
372
  top: 0;
362
373
  right: 0;
363
374
  bottom: 0;
364
375
  left: 0;
365
- padding: rhythm(1) rhythm(1) rhythm(4) rhythm(1);
366
- background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba($color-black, 0) 35%, rgba($color-black, 1) 100%);
367
- text-shadow: $text-shadow;
376
+ padding: func.rhythm(1) func.rhythm(1) func.rhythm(4) func.rhythm(1);
377
+ background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba(colors.$color-black, 0) 35%, rgba(colors.$color-black, 1) 100%);
378
+ text-shadow: config.$text-shadow;
368
379
 
369
- @include bp-up(sm) {
370
- padding: rhythm(2) rhythm(2) rhythm(4) rhythm(2);
380
+ @include breakpoint.bp-up(sm) {
381
+ padding: func.rhythm(2) func.rhythm(2) func.rhythm(4) func.rhythm(2);
371
382
  }
372
383
 
373
- @include bp-up(md) {
374
- padding: rhythm(4);
384
+ @include breakpoint.bp-up(md) {
385
+ padding: func.rhythm(4);
375
386
  }
376
387
  }
377
388
 
378
- @include e(paragraph) {
379
- color: $color-snow;
389
+ @include bem.e(paragraph) {
390
+ color: colors.$color-snow;
380
391
 
381
- @include bp-down(sm-xs) {
392
+ @include breakpoint.bp-down(sm-xs) {
382
393
  font-size: 95%;
383
394
  }
384
395
  }
385
396
 
386
- @include e(text) {
387
- color: $color-snow;
397
+ @include bem.e(text) {
398
+ color: colors.$color-snow;
388
399
  }
389
400
 
390
- @include e(link) {
391
- color: $color-snow;
401
+ @include bem.e(link) {
402
+ color: colors.$color-snow;
392
403
  }
393
404
 
394
- @include bp-down(sm-xs) {
395
- @include e(buttons) {
405
+ @include breakpoint.bp-down(sm-xs) {
406
+ @include bem.e(buttons) {
396
407
  position: absolute;
397
408
  bottom: 0;
398
- left: rhythm(3);
399
- right: rhythm(3);
409
+ left: func.rhythm(3);
410
+ right: func.rhythm(3);
400
411
  display: flex;
401
412
  flex-wrap: nowrap;
402
413
  justify-content: space-between;
403
414
  align-items: stretch;
404
- margin: 0 0 rhythm(2) 0;
415
+ margin: 0 0 func.rhythm(2) 0;
405
416
 
406
417
  > div {
407
418
  flex: 1;
408
419
  display: flex;
409
420
  align-items: stretch;
410
- margin: 0 rhythm(1) 0 0;
421
+ margin: 0 func.rhythm(1) 0 0;
411
422
 
412
423
  &:last-child {
413
424
  margin-right: 0;
@@ -418,10 +429,10 @@
418
429
  button[class*='a-button']{
419
430
  flex: 1;
420
431
  margin: 0;
421
- padding-top: rhythm(1);
422
- padding-bottom: rhythm(1);
423
- padding-left: rhythm(1.5);
424
- padding-right: rhythm(1.5);
432
+ padding-top: func.rhythm(1);
433
+ padding-bottom: func.rhythm(1);
434
+ padding-left: func.rhythm(1.5);
435
+ padding-right: func.rhythm(1.5);
425
436
  white-space: nowrap;
426
437
 
427
438
  > span {
@@ -433,27 +444,27 @@
433
444
  }
434
445
 
435
446
  // Hero without darkened caption
436
- @include m(clean) {
437
- @include e(caption) {
447
+ @include bem.m(clean) {
448
+ @include bem.e(caption) {
438
449
  background: none;
439
450
  }
440
451
  }
441
452
 
442
453
  // Hero with border-radius
443
- @include m(border-radius) {
444
- border-radius: $border-radius;
454
+ @include bem.m(border-radius) {
455
+ border-radius: var.$border-radius;
445
456
 
446
- @include e(image) {
447
- border-radius: $border-radius;
457
+ @include bem.e(image) {
458
+ border-radius: var.$border-radius;
448
459
  }
449
460
 
450
- @include bp-up(md) {
451
- @include e(text) {
461
+ @include breakpoint.bp-up(md) {
462
+ @include bem.e(text) {
452
463
  max-width: 100%;
453
464
 
454
465
  .supersize {
455
- @include plumber(
456
- $font-size: 4.5,
466
+ @include plumber.plumber(
467
+ var.$font-size: 4.5,
457
468
  $line-height: 5,
458
469
  $leading-bottom: 1
459
470
  );
@@ -461,19 +472,19 @@
461
472
  }
462
473
  }
463
474
 
464
- @include bp-up(lg) {
465
- @include e(text) {
475
+ @include breakpoint.bp-up(lg) {
476
+ @include bem.e(text) {
466
477
  max-width: 90%;
467
478
  }
468
479
  }
469
480
 
470
- @include bp-up(xxl) {
471
- @include e(text) {
481
+ @include breakpoint.bp-up(xxl) {
482
+ @include bem.e(text) {
472
483
  max-width: 80%;
473
484
 
474
485
  .supersize {
475
- @include plumber(
476
- $font-size: 7,
486
+ @include plumber.plumber(
487
+ var.$font-size: 7,
477
488
  $line-height: 8,
478
489
  $leading-bottom: 2
479
490
  );
@@ -481,7 +492,7 @@
481
492
  }
482
493
  }
483
494
 
484
- @include bp-only(xs) {
495
+ @include breakpoint.bp-only(xs) {
485
496
  .wrapper {
486
497
  padding-left: 0;
487
498
  padding-right: 0;
@@ -490,8 +501,8 @@
490
501
  }
491
502
 
492
503
  // Hero with video
493
- @include m(video) {
494
- margin-top: rem(20px);
504
+ @include bem.m(video) {
505
+ margin-top: func.to_rem(20px);
495
506
  //padding-top: 56.25%;
496
507
 
497
508
  iframe {
@@ -502,21 +513,21 @@
502
513
  left: 0;
503
514
  }
504
515
 
505
- @include bp-up(lg) {
506
- margin-top: rhythm(4);
516
+ @include breakpoint.bp-up(lg) {
517
+ margin-top: func.rhythm(4);
507
518
  }
508
519
  }
509
520
 
510
- @include m(video-wide) {
521
+ @include bem.m(video-wide) {
511
522
  width: 100%;
512
523
 
513
- @include e(video) {
524
+ @include bem.e(video) {
514
525
  width: 100%;
515
526
  object-fit: cover;
516
527
  object-position: 50% center;
517
528
 
518
- @include bp-up(sm) {
519
- min-height: rem(500px);
529
+ @include breakpoint.bp-up(sm) {
530
+ min-height: func.to_rem(500px);
520
531
  max-height: 50vh;
521
532
  }
522
533
 
@@ -524,7 +535,7 @@
524
535
  }
525
536
 
526
537
  // Event
527
- @include m(event) {
538
+ @include bem.m(event) {
528
539
  width: 100%;
529
540
 
530
541
  [class*='share'] {
@@ -532,70 +543,74 @@
532
543
  > svg {
533
544
  &[class*='facebook'],
534
545
  &[class*='linkedin'] {
535
- border-radius: $border-radius;
536
- background-color: $color-snow;
546
+ border-radius: var.$border-radius;
547
+ background-color: colors.$color-snow;
548
+ }
549
+
550
+ &[class*='facebook'] {
551
+ border-radius: 50%;
537
552
  }
538
553
  }
539
554
  }
540
555
  }
541
556
 
542
- @include e(content) {
543
- padding: rhythm(2) 0;
557
+ @include bem.e(content) {
558
+ padding: func.rhythm(2) 0;
544
559
 
545
- @include bp-up(sm) {
546
- padding: rhythm(4);
560
+ @include breakpoint.bp-up(sm) {
561
+ padding: func.rhythm(4);
547
562
  }
548
563
 
549
- @include e(icon) {
564
+ @include bem.e(icon) {
550
565
  position: relative;
551
- width: $icon-size-medium;
552
- height: $icon-size-medium;
553
- margin-left: rhythm(0.5);
554
- transform: translateY(rem(1px));
566
+ width: var.$icon-size-medium;
567
+ height: var.$icon-size-medium;
568
+ margin-left: func.rhythm(0.5);
569
+ transform: translateY(func.to_rem(1px));
555
570
  fill: currentColor;
556
571
 
557
- @include m(external) {
558
- width: $icon-size-smallest;
559
- height: $icon-size-smallest;
572
+ @include bem.m(external) {
573
+ width: var.$icon-size-smallest;
574
+ height: var.$icon-size-smallest;
560
575
  }
561
576
  }
562
577
  }
563
578
 
564
- @include e(text) {
579
+ @include bem.e(text) {
565
580
  margin-bottom: 0;
566
- color: $color-cyberspace;
581
+ color: colors.$color-cyberspace;
567
582
  }
568
583
 
569
- @include e(spacer) {
584
+ @include bem.e(spacer) {
570
585
  display: inline-flex;
571
- margin-right: rhythm(1);
586
+ margin-right: func.rhythm(1);
572
587
  }
573
588
  }
574
589
 
575
590
  // Geometric
576
- @include m(geometric) {
591
+ @include bem.m(geometric) {
577
592
  position: relative;
578
593
  overflow: hidden;
579
594
 
580
595
  &::after {
581
596
  content: '';
582
597
  position: absolute;
583
- z-index: z_index(background);
598
+ z-index: func.z_index(background);
584
599
  top: 25%;
585
600
  left: -25%;
586
- width: rem(250px);
587
- height: rem(250px);
588
- transform: translate(calc(-150% - #{rem(20px)}), -50%) rotate(-20deg);
601
+ width: func.to_rem(250px);
602
+ height: func.to_rem(250px);
603
+ transform: translate(calc(-150% - #{func.to_rem(20px)}), -50%) rotate(-20deg);
589
604
  transform-origin: center left;
590
605
  animation: spin 240s linear infinite;
591
606
  animation-direction: alternate;
592
- background-color: $color-lemon;
607
+ background-color: colors.$color-lemon;
593
608
 
594
- @include bp-up(sm) {
609
+ @include breakpoint.bp-up(sm) {
595
610
  left: -15%;
596
611
  }
597
612
 
598
- @include bp-up(xl) {
613
+ @include breakpoint.bp-up(xl) {
599
614
  left: 0;
600
615
  animation-duration: 120s;
601
616
  }
@@ -606,33 +621,33 @@
606
621
  position: absolute;
607
622
  top: 75%;
608
623
  right: -25%;
609
- width: rem(250px);
610
- height: rem(80px);
611
- transform: translate(calc(120% + #{rem(20px)}), 50%) rotate(20deg);
624
+ width: func.to_rem(250px);
625
+ height: func.to_rem(80px);
626
+ transform: translate(calc(120% + #{func.to_rem(20px)}), 50%) rotate(20deg);
612
627
  transform-origin: center center;
613
628
  animation: spin 240s linear infinite;
614
629
  animation-direction: alternate-reverse;
615
- background-color: $color-lemon;
630
+ background-color: colors.$color-lemon;
616
631
 
617
- @include bp-up(sm) {
632
+ @include breakpoint.bp-up(sm) {
618
633
  right: -15%;
619
634
  }
620
635
 
621
- @include bp-up(xl) {
636
+ @include breakpoint.bp-up(xl) {
622
637
  right: 0;
623
638
  animation-duration: 120s;
624
639
  }
625
640
  }
626
641
 
627
- @include bp-up(xl) {
642
+ @include breakpoint.bp-up(xl) {
628
643
  h1 {
629
644
  max-width: 60%;
630
645
  }
631
646
  }
632
647
 
633
- @include e(content) {
648
+ @include bem.e(content) {
634
649
  position: relative;
635
- z-index: z_index(middleground);
650
+ z-index: func.z_index(middleground);
636
651
  }
637
652
 
638
653
  @keyframes spin {