@internetstiftelsen/styleguide 4.1.13 → 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 +18 -18
  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 +33 -28
  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,6 +1,16 @@
1
- @charset 'UTF-8';
2
-
1
+ @charset "UTF-8";
3
2
  @use "sass:math";
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
+ @use '../../vendor/grid/grid' as grid;
13
+ @use '../../vendor/baseline/plumber' as plumber;
4
14
 
5
15
  $footer-font-size: 18px; // To ensure all footers on all sites have the same font size this component used pixel based values
6
16
 
@@ -8,54 +18,54 @@ $footer-font-size: 18px; // To ensure all footers on all sites have the same fon
8
18
  box-sizing: border-box;
9
19
  }
10
20
 
11
- @include organism(footer) {
21
+ @include mixin.organism(footer) {
12
22
  position: relative;
13
- z-index: z_index(middleground);
23
+ z-index: func.z_index(middleground);
14
24
  transform: translateY(0);
15
- border-top: 1px solid $color-ash;
25
+ border-top: 1px solid colors.$color-ash;
16
26
  font-size: $footer-font-size;
17
27
 
18
28
  &.is-animated {
19
- z-index: z_index(foreground);
29
+ z-index: func.z_index(foreground);
20
30
  }
21
31
 
22
- @include e(logotype) {
32
+ @include bem.e(logotype) {
23
33
  width: 100%;
24
34
  max-width: 250px;
25
35
  height: 100%;
26
36
 
27
- @include bp-up(xl) {
37
+ @include breakpoint.bp-up(xl) {
28
38
  max-width: 300px;
29
39
  }
30
40
  }
31
41
 
32
- @include e(link) {
42
+ @include bem.e(link) {
33
43
  @extend %normalize-links;
34
44
 
35
45
  background-color: transparent;
36
- color: $color-jade;
46
+ color: colors.$color-jade;
37
47
  text-decoration: none;
38
48
 
39
49
  &:hover,
40
50
  &:focus {
41
51
  background-color: transparent;
42
- color: $color-jade;
52
+ color: colors.$color-jade;
43
53
  text-decoration: underline;
44
54
  }
45
55
  }
46
56
 
47
- @include e(info) {
48
- background-color: $color-cyberspace;
49
- color: $color-snow;
57
+ @include bem.e(info) {
58
+ background-color: colors.$color-cyberspace;
59
+ color: colors.$color-snow;
50
60
  -webkit-font-smoothing: antialiased;
51
61
  -moz-osx-font-smoothing: grayscale;
52
62
 
53
- @include e(freetext) {
54
- padding: rhythm(3) rhythm(3) rhythm(4) rhythm(3);
55
- border-bottom: 1px solid $color-black;
63
+ @include bem.e(freetext) {
64
+ padding: func.rhythm(3) func.rhythm(3) func.rhythm(4) func.rhythm(3);
65
+ border-bottom: 1px solid colors.$color-black;
56
66
 
57
- @include bp-up(xl) {
58
- padding: rhythm(4) rhythm(6);
67
+ @include breakpoint.bp-up(xl) {
68
+ padding: func.rhythm(4) func.rhythm(6);
59
69
  border-bottom: 0;
60
70
  }
61
71
 
@@ -64,21 +74,21 @@ $footer-font-size: 18px; // To ensure all footers on all sites have the same fon
64
74
  margin-bottom: 27px;
65
75
  font-size: $footer-font-size;
66
76
 
67
- @include bp-up(xxl) {
68
- @include make-col(14);
69
- max-width: rem(612px);
77
+ @include breakpoint.bp-up(xxl) {
78
+ @include grid.make-col(14);
79
+ max-width: func.to_rem(612px);
70
80
  }
71
81
  }
72
82
 
73
83
  a {
74
84
  @extend %normalize-links;
75
85
 
76
- color: $color-jade;
86
+ color: colors.$color-jade;
77
87
  text-decoration: none;
78
88
 
79
89
  &:hover,
80
90
  &:focus {
81
- color: $color-jade;
91
+ color: colors.$color-jade;
82
92
  text-decoration: underline;
83
93
  }
84
94
 
@@ -88,154 +98,154 @@ $footer-font-size: 18px; // To ensure all footers on all sites have the same fon
88
98
  }
89
99
  }
90
100
 
91
- @include e(contact) {
101
+ @include bem.e(contact) {
92
102
  font-size: 80%;
93
103
 
94
- @include bp-up(lg) {
95
- border-left: 1px solid $color-black;
104
+ @include breakpoint.bp-up(lg) {
105
+ border-left: 1px solid colors.$color-black;
96
106
  }
97
107
 
98
- @include e(address) {
108
+ @include bem.e(address) {
99
109
  font-size: inherit;
100
110
 
101
- @include e(li) {
111
+ @include bem.e(li) {
102
112
  font-size: #{($footer-font-size) - 3px};
103
113
  line-height: 1.3;
104
114
  }
105
115
  }
106
116
 
107
- @include bp-up(xxl) {
108
- padding-right: rhythm(1);
117
+ @include breakpoint.bp-up(xxl) {
118
+ padding-right: func.rhythm(1);
109
119
 
110
120
  & + & {
111
121
  padding-right: 0;
112
- padding-left: rhythm(1);
122
+ padding-left: func.rhythm(1);
113
123
  }
114
124
  }
115
125
 
116
- @include e(row-first) {
117
- border-bottom: 1px solid $color-black;
126
+ @include bem.e(row-first) {
127
+ border-bottom: 1px solid colors.$color-black;
118
128
  overflow: hidden;
119
129
 
120
- @include bp-up(lg) {
130
+ @include breakpoint.bp-up(lg) {
121
131
  height: 70%;
122
132
  }
123
133
 
124
- @include bp-up(xl) {
134
+ @include breakpoint.bp-up(xl) {
125
135
  height: 50%;
126
136
  }
127
137
  }
128
138
 
129
- @include e(row-second) {
130
- @include bp-up(lg) {
139
+ @include bem.e(row-second) {
140
+ @include breakpoint.bp-up(lg) {
131
141
  height: 30%;
132
142
  }
133
143
 
134
- @include bp-up(xl) {
144
+ @include breakpoint.bp-up(xl) {
135
145
  height: 50%;
136
146
  }
137
147
  }
138
148
  }
139
149
 
140
- @include e(address1) {
141
- padding: rhythm(3);
142
- border-bottom: 1px solid $color-black;
150
+ @include bem.e(address1) {
151
+ padding: func.rhythm(3);
152
+ border-bottom: 1px solid colors.$color-black;
143
153
 
144
- @include bp-only(md) {
154
+ @include breakpoint.bp-only(md) {
145
155
  border-bottom: 0;
146
156
  }
147
157
 
148
- @include bp-up(xl) {
158
+ @include breakpoint.bp-up(xl) {
149
159
  border-bottom: 0;
150
- padding: rhythm(4) rhythm(3) rhythm(3) rhythm(6);
160
+ padding: func.rhythm(4) func.rhythm(3) func.rhythm(3) func.rhythm(6);
151
161
  }
152
162
  }
153
163
 
154
- @include e(address2) {
155
- padding: rhythm(3);
164
+ @include bem.e(address2) {
165
+ padding: func.rhythm(3);
156
166
 
157
- @include bp-only(md) {
158
- border-left: 1px solid $color-black;
167
+ @include breakpoint.bp-only(md) {
168
+ border-left: 1px solid colors.$color-black;
159
169
  }
160
170
 
161
- @include bp-up(xl) {
162
- border-left: 1px solid $color-black;
163
- padding-left: rhythm(6);
164
- padding-top: rhythm(4);
171
+ @include breakpoint.bp-up(xl) {
172
+ border-left: 1px solid colors.$color-black;
173
+ padding-left: func.rhythm(6);
174
+ padding-top: func.rhythm(4);
165
175
  }
166
176
  }
167
177
 
168
- @include e(ISO) {
169
- border-bottom: 1px solid $color-black;
170
- padding: rhythm(3);
178
+ @include bem.e(ISO) {
179
+ border-bottom: 1px solid colors.$color-black;
180
+ padding: func.rhythm(3);
171
181
  display: flex;
172
182
  align-items: center;
173
183
 
174
- @include bp-up(md) {
184
+ @include breakpoint.bp-up(md) {
175
185
  border-bottom: 0;
176
186
  }
177
187
 
178
- @include bp-up(xl) {
179
- padding: rhythm(3) rhythm(3) rhythm(4) rhythm(6);
188
+ @include breakpoint.bp-up(xl) {
189
+ padding: func.rhythm(3) func.rhythm(3) func.rhythm(4) func.rhythm(6);
180
190
  }
181
191
  }
182
192
 
183
- @include e(CC) {
184
- padding: rhythm(3);
193
+ @include bem.e(CC) {
194
+ padding: func.rhythm(3);
185
195
  display: flex;
186
196
  align-items: center;
187
197
 
188
- @include bp-up(md) {
189
- border-left: 1px solid $color-black;
198
+ @include breakpoint.bp-up(md) {
199
+ border-left: 1px solid colors.$color-black;
190
200
  }
191
201
 
192
- @include bp-up(xl) {
193
- padding-left: rhythm(6);
194
- padding-bottom: rhythm(4);
202
+ @include breakpoint.bp-up(xl) {
203
+ padding-left: func.rhythm(6);
204
+ padding-bottom: func.rhythm(4);
195
205
  }
196
206
  }
197
207
  }
198
208
 
199
- @include e(logotypes) {
209
+ @include bem.e(logotypes) {
200
210
  max-width: 100%;
201
211
  height: auto;
202
- background-color: $color-snow;
212
+ background-color: colors.$color-snow;
203
213
 
204
- @include e(item) {
214
+ @include bem.e(item) {
205
215
  display: flex;
206
216
  flex-basis: 100%;
207
217
  flex-grow: 1;
208
218
  flex-shrink: 1;
209
219
  justify-content: center;
210
220
  min-height: 130px;
211
- padding: 0 rhythm(6);
221
+ padding: 0 func.rhythm(6);
212
222
  overflow: hidden;
213
- border-bottom: 1px solid $color-ash;
214
- border-left: 1px solid $color-ash;
223
+ border-bottom: 1px solid colors.$color-ash;
224
+ border-left: 1px solid colors.$color-ash;
215
225
 
216
- @include bp-up(sm) {
226
+ @include breakpoint.bp-up(sm) {
217
227
  flex-basis: 50%;
218
228
  padding: 0;
219
229
  min-height: 200px;
220
230
  }
221
231
 
222
- @include bp-only(sm) {
223
- padding: 0 rhythm(2);
232
+ @include breakpoint.bp-only(sm) {
233
+ padding: 0 func.rhythm(2);
224
234
  }
225
235
 
226
- @include bp-up(md) {
236
+ @include breakpoint.bp-up(md) {
227
237
  flex-basis: 50%;
228
238
  }
229
239
 
230
- @include bp-up(lg) {
240
+ @include breakpoint.bp-up(lg) {
231
241
  flex-basis: 33.333333%;
232
242
  }
233
243
 
234
- @include bp-up(xl) {
244
+ @include breakpoint.bp-up(xl) {
235
245
  flex-basis: 16.666666%;
236
246
  }
237
247
 
238
- @include e(link) {
248
+ @include bem.e(link) {
239
249
  display: block;
240
250
  width: 100%;
241
251
  height: 100%;
@@ -243,7 +253,7 @@ $footer-font-size: 18px; // To ensure all footers on all sites have the same fon
243
253
  overflow: hidden;
244
254
  perspective: 1000px;
245
255
 
246
- @include bp-up(sm) {
256
+ @include breakpoint.bp-up(sm) {
247
257
  &:hover,
248
258
  &:focus {
249
259
  [class*='inner'] {
@@ -252,38 +262,38 @@ $footer-font-size: 18px; // To ensure all footers on all sites have the same fon
252
262
  }
253
263
  }
254
264
 
255
- @include bp-up(sm) {
265
+ @include breakpoint.bp-up(sm) {
256
266
  padding: 0;
257
267
  }
258
268
 
259
- @include bp-up(md) {
260
- padding: 0 rhythm(4);
269
+ @include breakpoint.bp-up(md) {
270
+ padding: 0 func.rhythm(4);
261
271
  }
262
272
 
263
- @include bp-up(xl) {
264
- padding: 0 rhythm(3);
273
+ @include breakpoint.bp-up(xl) {
274
+ padding: 0 func.rhythm(3);
265
275
  }
266
276
  }
267
277
 
268
- @include e(inner) {
278
+ @include bem.e(inner) {
269
279
  position: relative;
270
280
  width: 100%;
271
281
  height: 100%;
272
282
  transform-style: preserve-3d;
273
283
  transition: transform 0.5s;
274
- color: $color-cyberspace;
284
+ color: colors.$color-cyberspace;
275
285
  text-align: center;
276
286
  }
277
287
 
278
- @include e(front) {
288
+ @include bem.e(front) {
279
289
  position: absolute;
280
290
  width: 100%;
281
291
  height: 100%;
282
292
  backface-visibility: hidden;
283
- background-color: $color-snow;
293
+ background-color: colors.$color-snow;
284
294
  }
285
295
 
286
- @include e(back) {
296
+ @include bem.e(back) {
287
297
  display: flex;
288
298
  position: absolute;
289
299
  flex-direction: column;
@@ -293,21 +303,21 @@ $footer-font-size: 18px; // To ensure all footers on all sites have the same fon
293
303
  height: 100%;
294
304
  transform: rotateY(180deg);
295
305
  backface-visibility: hidden;
296
- background-color: $color-snow;
306
+ background-color: colors.$color-snow;
297
307
 
298
308
  span {
299
309
  display: inline-block;
300
310
  max-width: 300px;
301
311
 
302
- @include plumber(
303
- $font-size: 1.7,
312
+ @include plumber.plumber(
313
+ var.$font-size: 1.7,
304
314
  $line-height: 2
305
315
  );
306
316
  }
307
317
 
308
- @include bp-only(xl) {
318
+ @include breakpoint.bp-only(xl) {
309
319
  h2 {
310
- font-size: rem(18px);
320
+ font-size: func.to_rem(18px);
311
321
  line-height: 1.3rem;
312
322
  }
313
323
  }
@@ -315,7 +325,7 @@ $footer-font-size: 18px; // To ensure all footers on all sites have the same fon
315
325
  }
316
326
  }
317
327
 
318
- @include e(logo-link) {
328
+ @include bem.e(logo-link) {
319
329
  display: flex;
320
330
  justify-content: center;
321
331
  background-color: transparent;
@@ -328,7 +338,7 @@ $footer-font-size: 18px; // To ensure all footers on all sites have the same fon
328
338
  }
329
339
  }
330
340
 
331
- @include e(external-link) {
341
+ @include bem.e(external-link) {
332
342
  display: flex;
333
343
  align-items: center;
334
344
  font-size: 12px;
@@ -337,50 +347,50 @@ $footer-font-size: 18px; // To ensure all footers on all sites have the same fon
337
347
  text-decoration: none;
338
348
  }
339
349
 
340
- @include e(external-logo) {
341
- width: rhythm(6);
350
+ @include bem.e(external-logo) {
351
+ width: func.rhythm(6);
342
352
  max-width: 100%;
343
353
  height: auto;
344
- margin-right: rhythm(2);
354
+ margin-right: func.rhythm(2);
345
355
 
346
- @include m(cc) {
356
+ @include bem.m(cc) {
347
357
  width: auto;
348
358
  }
349
359
  }
350
360
 
351
- @include e(bottom-links) {
361
+ @include bem.e(bottom-links) {
352
362
  display: flex;
353
363
  flex-wrap: wrap-reverse;
354
364
  justify-content: center;
355
365
  width: 100%;
356
- background-color: $color-black;
366
+ background-color: colors.$color-black;
357
367
  }
358
368
 
359
- @include e(about-link) {
369
+ @include bem.e(about-link) {
360
370
  font-size: #{($footer-font-size) - 4px};
361
371
  -webkit-font-smoothing: antialiased;
362
372
  -moz-osx-font-smoothing: grayscale;
363
373
  }
364
374
  }
365
375
 
366
- @include b(o-footer-grid) {
376
+ @include bem.b(o-footer-grid) {
367
377
  position: relative;
368
378
  flex-basis: 100%;
369
379
  flex-grow: 1;
370
380
  width: 100%;
371
381
  max-width: 100%;
372
382
  min-height: 1px;
373
- padding-right: math.div($grid-gutter-width, 2);
374
- padding-left: math.div($grid-gutter-width, 2);
383
+ padding-right: math.div(var.$grid-gutter-width, 2);
384
+ padding-left: math.div(var.$grid-gutter-width, 2);
375
385
  -ms-flex-preferred-size: 0;
376
386
  -webkit-box-flex: 1;
377
387
  -ms-flex-positive: 1;
378
388
 
379
389
  & + & {
380
- margin-top: rhythm(2);
390
+ margin-top: func.rhythm(2);
381
391
  }
382
392
 
383
- @include bp-up(sm) {
393
+ @include breakpoint.bp-up(sm) {
384
394
  flex-basis: 0;
385
395
 
386
396
  & + & {
@@ -1,33 +1,43 @@
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/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 organism(header) {
12
+
13
+ @include mixin.organism(header) {
4
14
  position: relative;
5
- z-index: z_index(foregroundMinus);
6
- border-bottom: 1px solid $color-ash;
15
+ z-index: func.z_index(foregroundMinus);
16
+ border-bottom: 1px solid colors.$color-ash;
7
17
  background-color: var(--snow-color);
8
18
 
9
- @include e(logo-link) {
19
+ @include bem.e(logo-link) {
10
20
  display: flex;
11
21
  align-items: center;
12
22
  height: 100%;
13
23
  padding: 0;
14
24
 
15
- @include bp-up(md) {
16
- padding: rhythm(2) 0;
25
+ @include breakpoint.bp-up(md) {
26
+ padding: func.rhythm(2) 0;
17
27
  }
18
28
  }
19
29
 
20
- @include b(logotype) {
30
+ @include bem.b(logotype) {
21
31
  width: 100%;
22
- max-width: rhythm(10);
23
- height: rhythm(2.96);
32
+ max-width: func.rhythm(10);
33
+ height: func.rhythm(2.96);
24
34
  overflow: visible;
25
35
  }
26
36
 
27
- @include bp-up(md) {
28
- @include b(logotype) {
29
- max-width: rhythm(20);
30
- height: rhythm(5.92);
37
+ @include breakpoint.bp-up(md) {
38
+ @include bem.b(logotype) {
39
+ max-width: func.rhythm(20);
40
+ height: func.rhythm(5.92);
31
41
  }
32
42
  }
33
43
  }