@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.
- package/package.json +18 -18
- package/src/app.scss +85 -88
- package/src/atoms/archive-link/archive-link.scss +24 -17
- package/src/atoms/button/_button.scss +209 -203
- package/src/atoms/checkbox/_checkbox.scss +33 -26
- package/src/atoms/file/_file.scss +23 -13
- package/src/atoms/grid-toggle/_grid-toggle.scss +11 -6
- package/src/atoms/height-limiter/_height-limiter.scss +21 -14
- package/src/atoms/input/_input.scss +23 -16
- package/src/atoms/label/label.scss +11 -5
- package/src/atoms/logotype/_logotype.scss +3 -2
- package/src/atoms/main-menu/_main-menu.scss +67 -60
- package/src/atoms/meta/_meta.scss +44 -33
- package/src/atoms/meta/meta.config.js +1 -1
- package/src/atoms/paging/_paging.scss +27 -21
- package/src/atoms/password-toggle/_password-toggle.scss +9 -6
- package/src/atoms/progress/_progress.scss +19 -11
- package/src/atoms/quote/_quote.scss +17 -10
- package/src/atoms/radiobutton/_radiobutton.scss +33 -26
- package/src/atoms/range/_range.scss +46 -39
- package/src/atoms/rating/_rating.scss +11 -4
- package/src/atoms/ribbon/_ribbon.scss +16 -9
- package/src/atoms/select/_select.scss +18 -10
- package/src/atoms/skip/_skip.scss +9 -6
- package/src/atoms/spinner/_spinner.scss +4 -3
- package/src/atoms/tag/_tag.scss +26 -19
- package/src/atoms/textarea/_textarea.scss +22 -13
- package/src/atoms/tooltip/_tooltip.scss +28 -21
- package/src/base/_grid.scss +4 -4
- package/src/base/_normalize.scss +29 -27
- package/src/base/fonts/_fonts.scss +1 -1
- package/src/components.js +0 -2
- package/src/configurations/_bem.scss +10 -7
- package/src/configurations/_config.scss +11 -10
- package/src/configurations/_extends.scss +38 -34
- package/src/configurations/_functions.scss +23 -7
- package/src/configurations/_mixins.scss +23 -19
- package/src/configurations/_recaptcha.scss +2 -2
- package/src/configurations/_variables.scss +19 -25
- package/src/configurations/_wordpress.scss +64 -57
- package/src/configurations/colors/_background-colors.scss +3 -2
- package/src/configurations/colors/_colors-functions.scss +41 -39
- package/src/configurations/colors/_colors.scss +1 -1
- package/src/configurations/colors/_text-colors.scss +3 -2
- package/src/configurations/colors/_wordpress-colors.scss +3 -2
- package/src/configurations/forms/_fields.scss +28 -23
- package/src/configurations/grid/_grid.scss +33 -28
- package/src/configurations/typography/_typography.scss +113 -105
- package/src/configurations/typography/readme.md +1 -1
- package/src/globals.scss +16 -18
- package/src/isolated-footer.scss +25 -25
- package/src/molecules/alert/_alert.scss +44 -35
- package/src/molecules/breadcrumb/_breadcrumb.scss +43 -35
- package/src/molecules/byline/_byline.scss +30 -21
- package/src/molecules/card/_card.scss +87 -77
- package/src/molecules/context-menu/_context-menu.scss +32 -15
- package/src/molecules/continue-video-guide/continue-video-guide.scss +37 -28
- package/src/molecules/cookie-disclaimer/cookie-disclaimer.scss +32 -23
- package/src/molecules/download/_download.scss +38 -30
- package/src/molecules/form-control/_form-control.scss +66 -58
- package/src/molecules/glider/_glider-course.scss +29 -23
- package/src/molecules/glider/_glider-hero.scss +112 -104
- package/src/molecules/glider/_glider.scss +36 -30
- package/src/molecules/icon-overlay/_icon-overlay.scss +29 -20
- package/src/molecules/info-box/_info-box.scss +31 -22
- package/src/molecules/input-group/_input-group.scss +23 -13
- package/src/molecules/modal/_modal.scss +77 -65
- package/src/molecules/multi-select/_multi-select.scss +44 -33
- package/src/molecules/natural-language-form/_natural-language-form.scss +33 -23
- package/src/molecules/overview-navigation/_overview-navigation.scss +54 -45
- package/src/molecules/readspeaker/_readspeaker.scss +1 -1
- package/src/molecules/share/_share.scss +23 -15
- package/src/molecules/submenu/_submenu.scss +77 -69
- package/src/molecules/system-error/_system-error.scss +26 -17
- package/src/molecules/table/_table.scss +50 -42
- package/src/molecules/teaser-news-list/_teaser-news-list.scss +21 -12
- package/src/organisms/accordion/_accordion.scss +59 -49
- package/src/organisms/domain-search/_domain-search.scss +54 -45
- package/src/organisms/event-listing-item/_event-listing-item.scss +36 -26
- package/src/organisms/features-box/_features-box.scss +30 -19
- package/src/organisms/filter/_filter.scss +15 -10
- package/src/organisms/footer/_footer.scss +119 -109
- package/src/organisms/header/_header.scss +24 -14
- package/src/organisms/hero/_hero--bbk.scss +50 -38
- package/src/organisms/hero/_hero--dynamic-headline.scss +49 -39
- package/src/organisms/hero/_hero.scss +222 -207
- package/src/organisms/hero/hero.config.js +2 -2
- package/src/organisms/mailchimp/_mailchimp.scss +52 -42
- package/src/organisms/mega-menu/_mega-menu.scss +55 -45
- package/src/organisms/members-service-product/_members-service-product.scss +29 -18
- package/src/organisms/members-service-product/members-service-product.config.js +5 -5
- package/src/organisms/podcast/_podcast-episodes.scss +85 -75
- package/src/organisms/podcast/_podcast-player.scss +73 -64
- package/src/organisms/schedule/_schedule.scss +92 -82
- package/src/organisms/search/_search.scss +68 -58
- package/src/organisms/search-result/_search-result.scss +50 -40
- package/src/organisms/sections/_sections.scss +41 -31
- package/src/organisms/tabs/_tabs.scss +58 -46
- package/src/organisms/timeline/_timeline.scss +92 -81
- package/src/organisms/video-guide/_video-guide.scss +148 -138
- package/src/pages/animate-footer/animate-footer.config.js +180 -1
- package/src/print.scss +1 -1
- package/src/structures/_article.scss +39 -28
- package/src/structures/_core-values.scss +14 -2
- package/src/structures/_manifest.scss +4 -4
- package/src/structures/_section.scss +32 -20
- package/src/structures/_site.scss +19 -7
- package/src/theme/_dark-mode.scss +14 -13
- package/src/theme/_theme.scss +28 -25
- package/src/utilities/_align.scss +1 -1
- package/src/utilities/_border.scss +5 -3
- package/src/utilities/_box-shadow.scss +5 -2
- package/src/utilities/_display.scss +1 -1
- package/src/utilities/_fill.scss +5 -4
- package/src/utilities/_flex.scss +1 -1
- package/src/utilities/_font-size.scss +6 -5
- package/src/utilities/_fonts.scss +6 -5
- package/src/utilities/_gutter.scss +3 -2
- package/src/utilities/_hide.scss +17 -15
- package/src/utilities/_icons.scss +37 -33
- package/src/utilities/_indent.scss +8 -6
- package/src/utilities/_links.scss +22 -18
- package/src/utilities/_lists.scss +19 -14
- package/src/utilities/_manifest.scss +27 -27
- package/src/utilities/_margin.scss +20 -17
- package/src/utilities/_misc.scss +3 -2
- package/src/utilities/_padding.scss +18 -15
- package/src/utilities/_position.scss +3 -2
- package/src/utilities/_show.scss +7 -6
- package/src/utilities/_text.scss +1 -1
- package/src/utilities/_vertical-align.scss +1 -1
- package/src/utilities/_wrap.scss +1 -1
- package/src/utilities/_z-index.scss +7 -6
- package/src/utilities/tab-highlighting/_tab-highlighting.scss +6 -5
- package/src/vendor/baseline/_plumber.scss +14 -13
- package/src/vendor/grid/_breakpoints.scss +17 -13
- package/src/vendor/grid/_flex.scss +8 -4
- package/src/vendor/grid/_functions.scss +9 -6
- package/src/vendor/grid/_grid-framework.scss +14 -9
- package/src/vendor/grid/_grid.scss +19 -16
- package/src/vendor/grid/_spacing.scss +8 -3
- package/src/atoms/toggle-high-contrast/readme.md +0 -6
- package/src/atoms/toggle-high-contrast/toggle-high-contrast.config.js +0 -8
- package/src/atoms/toggle-high-contrast/toggle-high-contrast.js +0 -10
- package/src/molecules/modal/modal-graph.js +0 -40
|
@@ -1,41 +1,50 @@
|
|
|
1
|
-
@charset
|
|
2
|
-
|
|
3
|
-
@
|
|
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/baseline/plumber' as plumber;
|
|
11
|
+
|
|
12
|
+
@include mixin.molecule(system-error) {
|
|
4
13
|
display: flex;
|
|
5
14
|
flex-direction: column;
|
|
6
15
|
align-items: center;
|
|
7
|
-
margin: rhythm(8) 0;
|
|
16
|
+
margin: func.rhythm(8) 0;
|
|
8
17
|
|
|
9
|
-
@include bp-up(md) {
|
|
18
|
+
@include breakpoint.bp-up(md) {
|
|
10
19
|
justify-content: center;
|
|
11
20
|
}
|
|
12
21
|
|
|
13
|
-
@include e(content) {
|
|
22
|
+
@include bem.e(content) {
|
|
14
23
|
max-width: 600px;
|
|
15
|
-
padding-right:
|
|
16
|
-
padding-left:
|
|
24
|
+
padding-right: var.$grid-gutter-width;
|
|
25
|
+
padding-left: var.$grid-gutter-width;
|
|
17
26
|
text-align: left;
|
|
18
27
|
}
|
|
19
28
|
|
|
20
|
-
@include e(heading) {
|
|
29
|
+
@include bem.e(heading) {
|
|
21
30
|
|
|
22
|
-
@include plumber(
|
|
23
|
-
|
|
31
|
+
@include plumber.plumber(
|
|
32
|
+
var.$font-size: 10,
|
|
24
33
|
$line-height: 11,
|
|
25
34
|
$leading-bottom: 2
|
|
26
35
|
);
|
|
27
36
|
|
|
28
37
|
animation: rumble 4s infinite linear;
|
|
29
|
-
font-family:
|
|
30
|
-
text-shadow: 0 1px 0 rgba(
|
|
38
|
+
font-family: var.$font-family-mono;
|
|
39
|
+
text-shadow: 0 1px 0 rgba(colors.$color-snow, 0.8), 0 30px 100px rgba(colors.$color-cyberspace, 0.5);
|
|
31
40
|
|
|
32
|
-
@include bp-up(md) {
|
|
41
|
+
@include breakpoint.bp-up(md) {
|
|
33
42
|
|
|
34
|
-
@include plumber(
|
|
35
|
-
|
|
43
|
+
@include plumber.plumber(
|
|
44
|
+
var.$font-size: 15,
|
|
36
45
|
$line-height: 16,
|
|
37
46
|
$leading-bottom: 4
|
|
38
47
|
);
|
|
39
48
|
}
|
|
40
49
|
}
|
|
41
|
-
}
|
|
50
|
+
}
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
@charset
|
|
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;
|
|
2
10
|
|
|
3
11
|
@mixin table() {
|
|
4
12
|
width: 100%;
|
|
@@ -7,14 +15,14 @@
|
|
|
7
15
|
counter-reset: table-counter;
|
|
8
16
|
|
|
9
17
|
caption {
|
|
10
|
-
font-family:
|
|
11
|
-
padding-top: rhythm(1);
|
|
12
|
-
padding-bottom: rhythm(1);
|
|
18
|
+
font-family: var.$font-family-headings;
|
|
19
|
+
padding-top: func.rhythm(1);
|
|
20
|
+
padding-bottom: func.rhythm(1);
|
|
13
21
|
}
|
|
14
22
|
|
|
15
23
|
thead,
|
|
16
24
|
tfoot {
|
|
17
|
-
font-family:
|
|
25
|
+
font-family: var.$font-family-mono;
|
|
18
26
|
font-size: 85%;
|
|
19
27
|
text-transform: uppercase;
|
|
20
28
|
}
|
|
@@ -22,15 +30,15 @@
|
|
|
22
30
|
tfoot {
|
|
23
31
|
th,
|
|
24
32
|
td {
|
|
25
|
-
border-top: 2px solid
|
|
26
|
-
font-family:
|
|
33
|
+
border-top: 2px solid colors.$color-granit;
|
|
34
|
+
font-family: var.$font-family-headings;
|
|
27
35
|
font-size: 90%;
|
|
28
36
|
|
|
29
37
|
&::before {
|
|
30
38
|
display: none;
|
|
31
39
|
}
|
|
32
40
|
|
|
33
|
-
@include bp-up(lg) {
|
|
41
|
+
@include breakpoint.bp-up(lg) {
|
|
34
42
|
font-size: 100%;
|
|
35
43
|
}
|
|
36
44
|
}
|
|
@@ -54,11 +62,11 @@
|
|
|
54
62
|
|
|
55
63
|
th,
|
|
56
64
|
td {
|
|
57
|
-
padding-top: rhythm(1);
|
|
58
|
-
padding-right: rhythm(2);
|
|
59
|
-
padding-bottom: rhythm(1);
|
|
60
|
-
padding-left: rhythm(2);
|
|
61
|
-
border-bottom: 2px solid
|
|
65
|
+
padding-top: func.rhythm(1);
|
|
66
|
+
padding-right: func.rhythm(2);
|
|
67
|
+
padding-bottom: func.rhythm(1);
|
|
68
|
+
padding-left: func.rhythm(2);
|
|
69
|
+
border-bottom: 2px solid colors.$color-granit;
|
|
62
70
|
color: var(--cyberspace-color);
|
|
63
71
|
font-size: 90%;
|
|
64
72
|
text-align: left;
|
|
@@ -80,7 +88,7 @@
|
|
|
80
88
|
display: inline;
|
|
81
89
|
}
|
|
82
90
|
|
|
83
|
-
@include bp-up(lg) {
|
|
91
|
+
@include breakpoint.bp-up(lg) {
|
|
84
92
|
font-size: 100%;
|
|
85
93
|
}
|
|
86
94
|
}
|
|
@@ -90,7 +98,7 @@
|
|
|
90
98
|
}
|
|
91
99
|
}
|
|
92
100
|
|
|
93
|
-
@include b(table-container) {
|
|
101
|
+
@include bem.b(table-container) {
|
|
94
102
|
position: relative;
|
|
95
103
|
width: 100%;
|
|
96
104
|
max-width: 1320px;
|
|
@@ -119,16 +127,16 @@
|
|
|
119
127
|
}
|
|
120
128
|
}
|
|
121
129
|
|
|
122
|
-
@include molecule(table) {
|
|
130
|
+
@include mixin.molecule(table) {
|
|
123
131
|
@include table();
|
|
124
132
|
|
|
125
|
-
@include m(columns) {
|
|
133
|
+
@include bem.m(columns) {
|
|
126
134
|
th {
|
|
127
|
-
border-bottom: 2px solid
|
|
135
|
+
border-bottom: 2px solid colors.$color-granit;
|
|
128
136
|
}
|
|
129
137
|
|
|
130
138
|
td {
|
|
131
|
-
border-bottom: 1px solid
|
|
139
|
+
border-bottom: 1px solid colors.$color-granit;
|
|
132
140
|
}
|
|
133
141
|
|
|
134
142
|
th,
|
|
@@ -139,7 +147,7 @@
|
|
|
139
147
|
}
|
|
140
148
|
}
|
|
141
149
|
|
|
142
|
-
@include m(rows) {
|
|
150
|
+
@include bem.m(rows) {
|
|
143
151
|
thead {
|
|
144
152
|
th {
|
|
145
153
|
background-color: var(--ash-color);
|
|
@@ -163,7 +171,7 @@
|
|
|
163
171
|
}
|
|
164
172
|
}
|
|
165
173
|
|
|
166
|
-
@include m(align-text-center) {
|
|
174
|
+
@include bem.m(align-text-center) {
|
|
167
175
|
th,
|
|
168
176
|
td {
|
|
169
177
|
text-align: center;
|
|
@@ -174,7 +182,7 @@
|
|
|
174
182
|
}
|
|
175
183
|
}
|
|
176
184
|
|
|
177
|
-
@include m(increment) {
|
|
185
|
+
@include bem.m(increment) {
|
|
178
186
|
tbody {
|
|
179
187
|
tr:nth-child(odd) {
|
|
180
188
|
th,
|
|
@@ -192,8 +200,8 @@
|
|
|
192
200
|
}
|
|
193
201
|
|
|
194
202
|
th {
|
|
195
|
-
width: rhythm(4);
|
|
196
|
-
padding-right: rhythm(3);
|
|
203
|
+
width: func.rhythm(4);
|
|
204
|
+
padding-right: func.rhythm(3);
|
|
197
205
|
|
|
198
206
|
&::before {
|
|
199
207
|
content: counter(table-counter);
|
|
@@ -202,14 +210,14 @@
|
|
|
202
210
|
}
|
|
203
211
|
}
|
|
204
212
|
|
|
205
|
-
@include m(lines) {
|
|
213
|
+
@include bem.m(lines) {
|
|
206
214
|
tbody {
|
|
207
215
|
tr {
|
|
208
216
|
background-image:
|
|
209
217
|
linear-gradient(
|
|
210
218
|
to right,
|
|
211
|
-
|
|
212
|
-
|
|
219
|
+
colors.$color-cyberspace,
|
|
220
|
+
colors.$color-cyberspace 2px,
|
|
213
221
|
transparent 2px,
|
|
214
222
|
transparent 6px
|
|
215
223
|
);
|
|
@@ -220,8 +228,8 @@
|
|
|
220
228
|
|
|
221
229
|
td,
|
|
222
230
|
th {
|
|
223
|
-
padding-top: rhythm(2);
|
|
224
|
-
padding-bottom: rhythm(2);
|
|
231
|
+
padding-top: func.rhythm(2);
|
|
232
|
+
padding-bottom: func.rhythm(2);
|
|
225
233
|
border: 0;
|
|
226
234
|
}
|
|
227
235
|
}
|
|
@@ -239,22 +247,22 @@
|
|
|
239
247
|
}
|
|
240
248
|
}
|
|
241
249
|
|
|
242
|
-
@include b(scroll-indicator) {
|
|
250
|
+
@include bem.b(scroll-indicator) {
|
|
243
251
|
display: block;
|
|
244
252
|
position: relative;
|
|
245
253
|
width: 100%;
|
|
246
|
-
height: rhythm(3);
|
|
254
|
+
height: func.rhythm(3);
|
|
247
255
|
|
|
248
256
|
&::before {
|
|
249
257
|
content: 'Scroll';
|
|
250
258
|
position: absolute;
|
|
251
|
-
z-index: z_index(background);
|
|
259
|
+
z-index: func.z_index(background);
|
|
252
260
|
top: 0;
|
|
253
|
-
right: rhythm(3);
|
|
254
|
-
width: rhythm(7);
|
|
261
|
+
right: func.rhythm(3);
|
|
262
|
+
width: func.rhythm(7);
|
|
255
263
|
height: 0;
|
|
256
264
|
animation: xPulse 2s infinite;
|
|
257
|
-
font-family:
|
|
265
|
+
font-family: var.$font-family-mono;
|
|
258
266
|
font-size: 80%;
|
|
259
267
|
text-transform: uppercase;
|
|
260
268
|
}
|
|
@@ -262,24 +270,24 @@
|
|
|
262
270
|
&::after {
|
|
263
271
|
content: '›';
|
|
264
272
|
position: absolute;
|
|
265
|
-
z-index: z_index(background);
|
|
266
|
-
top: -#{
|
|
273
|
+
z-index: func.z_index(background);
|
|
274
|
+
top: -#{func.to_rem(4px)};
|
|
267
275
|
right: 0;
|
|
268
276
|
animation: xPulse 2s infinite;
|
|
269
|
-
font-family:
|
|
277
|
+
font-family: var.$font-family-mono;
|
|
270
278
|
}
|
|
271
279
|
}
|
|
272
280
|
|
|
273
|
-
@include b(table-scroll-wrapper) {
|
|
281
|
+
@include bem.b(table-scroll-wrapper) {
|
|
274
282
|
|
|
275
|
-
@include b(table-container) {
|
|
283
|
+
@include bem.b(table-container) {
|
|
276
284
|
overflow-x: auto;
|
|
277
285
|
overflow-y: hidden;
|
|
278
286
|
-webkit-overflow-scrolling: touch;
|
|
279
287
|
}
|
|
280
288
|
|
|
281
|
-
@include bp-up(sm) {
|
|
282
|
-
@include b(scroll-indicator) {
|
|
289
|
+
@include breakpoint.bp-up(sm) {
|
|
290
|
+
@include bem.b(scroll-indicator) {
|
|
283
291
|
display: none;
|
|
284
292
|
}
|
|
285
293
|
}
|
|
@@ -1,30 +1,39 @@
|
|
|
1
|
-
@charset
|
|
2
|
-
|
|
3
|
-
@
|
|
1
|
+
@charset "UTF-8";
|
|
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
|
+
|
|
12
|
+
@include mixin.molecule(teaser-news) {
|
|
4
13
|
height: 100%;
|
|
5
|
-
padding: rhythm(2);
|
|
6
|
-
border-radius:
|
|
14
|
+
padding: func.rhythm(2);
|
|
15
|
+
border-radius: var.$border-radius;
|
|
7
16
|
background-color: var(--snow-color);
|
|
8
17
|
|
|
9
|
-
@include bp-up(md) {
|
|
10
|
-
padding: rhythm(2) rhythm(4);
|
|
18
|
+
@include breakpoint.bp-up(md) {
|
|
19
|
+
padding: func.rhythm(2) func.rhythm(4);
|
|
11
20
|
}
|
|
12
21
|
|
|
13
|
-
@include e(list) {
|
|
22
|
+
@include bem.e(list) {
|
|
14
23
|
margin: 0;
|
|
15
24
|
padding: 0;
|
|
16
25
|
list-style: none;
|
|
17
26
|
}
|
|
18
27
|
|
|
19
|
-
@include e(item) {
|
|
28
|
+
@include bem.e(item) {
|
|
20
29
|
position: relative;
|
|
21
30
|
|
|
22
31
|
&:not(:last-child) {
|
|
23
|
-
margin-bottom: rhythm(3);
|
|
32
|
+
margin-bottom: func.rhythm(3);
|
|
24
33
|
}
|
|
25
34
|
}
|
|
26
35
|
|
|
27
|
-
@include e(link) {
|
|
36
|
+
@include bem.e(link) {
|
|
28
37
|
@extend %normalize-links;
|
|
29
38
|
|
|
30
39
|
color: currentcolor;
|
|
@@ -32,7 +41,7 @@
|
|
|
32
41
|
|
|
33
42
|
&:hover,
|
|
34
43
|
&:focus {
|
|
35
|
-
color:
|
|
44
|
+
color: colors.$color-ruby;
|
|
36
45
|
text-decoration: underline;
|
|
37
46
|
}
|
|
38
47
|
|
|
@@ -1,5 +1,15 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
2
|
@use "sass:color";
|
|
3
|
+
@use '../../configurations/mixins' as mixin;
|
|
4
|
+
@use '../../configurations/bem' as bem;
|
|
5
|
+
@use '../../configurations/extends';
|
|
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 '../../utilities/hide';
|
|
3
13
|
|
|
4
14
|
// Extends
|
|
5
15
|
%header {
|
|
@@ -7,21 +17,21 @@
|
|
|
7
17
|
position: relative;
|
|
8
18
|
flex-direction: column;
|
|
9
19
|
width: 100%;
|
|
10
|
-
padding: rhythm(2) rhythm(5) rhythm(2) rhythm(2);
|
|
20
|
+
padding: func.rhythm(2) func.rhythm(5) func.rhythm(2) func.rhythm(2);
|
|
11
21
|
border: 0;
|
|
12
22
|
background: transparent;
|
|
13
|
-
box-shadow: inset 0 -1px 1px rgba(
|
|
14
|
-
font-family:
|
|
15
|
-
font-size:
|
|
23
|
+
box-shadow: inset 0 -1px 1px rgba(colors.$color-cyberspace, 0.2);
|
|
24
|
+
font-family: var.$font-family-headings;
|
|
25
|
+
font-size: func.to_rem(17px);
|
|
16
26
|
text-align: left;
|
|
17
27
|
-webkit-appearance: none;
|
|
18
28
|
|
|
19
|
-
@include bp-up(md) {
|
|
20
|
-
font-size:
|
|
29
|
+
@include breakpoint.bp-up(md) {
|
|
30
|
+
font-size: func.to_rem(18px);
|
|
21
31
|
}
|
|
22
32
|
|
|
23
|
-
@include bp-up(xl) {
|
|
24
|
-
font-size:
|
|
33
|
+
@include breakpoint.bp-up(xl) {
|
|
34
|
+
font-size: func.to_rem(20px);
|
|
25
35
|
}
|
|
26
36
|
|
|
27
37
|
&::before,
|
|
@@ -30,8 +40,8 @@
|
|
|
30
40
|
display: block;
|
|
31
41
|
position: absolute;
|
|
32
42
|
top: 50%;
|
|
33
|
-
right:
|
|
34
|
-
width:
|
|
43
|
+
right: func.to_rem(23px);
|
|
44
|
+
width: var.$icon-size-small;
|
|
35
45
|
height: 3px;
|
|
36
46
|
transform: translateY(-50%);
|
|
37
47
|
transform-origin: center center;
|
|
@@ -44,7 +54,7 @@
|
|
|
44
54
|
}
|
|
45
55
|
|
|
46
56
|
&::after {
|
|
47
|
-
right:
|
|
57
|
+
right: func.to_rem(13px);
|
|
48
58
|
transform: rotate(-45deg);
|
|
49
59
|
}
|
|
50
60
|
|
|
@@ -60,7 +70,7 @@
|
|
|
60
70
|
}
|
|
61
71
|
}
|
|
62
72
|
|
|
63
|
-
@include bp-up(md) {
|
|
73
|
+
@include breakpoint.bp-up(md) {
|
|
64
74
|
flex-direction: row;
|
|
65
75
|
align-items: center;
|
|
66
76
|
}
|
|
@@ -92,7 +102,7 @@
|
|
|
92
102
|
|
|
93
103
|
// Styling before Accordion script kicks in
|
|
94
104
|
.js-accordion {
|
|
95
|
-
@include e(header) {
|
|
105
|
+
@include bem.e(header) {
|
|
96
106
|
@extend %header;
|
|
97
107
|
|
|
98
108
|
margin-bottom: 0;
|
|
@@ -103,7 +113,7 @@
|
|
|
103
113
|
}
|
|
104
114
|
}
|
|
105
115
|
|
|
106
|
-
@include e(panel) {
|
|
116
|
+
@include bem.e(panel) {
|
|
107
117
|
@extend %panel;
|
|
108
118
|
}
|
|
109
119
|
}
|
|
@@ -111,7 +121,7 @@
|
|
|
111
121
|
.js {
|
|
112
122
|
.js-accordion {
|
|
113
123
|
|
|
114
|
-
@include e(header) {
|
|
124
|
+
@include bem.e(header) {
|
|
115
125
|
border-bottom: 1px solid var(--snow-color);
|
|
116
126
|
|
|
117
127
|
&[aria-expanded='true'] {
|
|
@@ -125,17 +135,17 @@
|
|
|
125
135
|
}
|
|
126
136
|
}
|
|
127
137
|
|
|
128
|
-
@include organism(accordion) {
|
|
129
|
-
background-color: color.adjust(
|
|
138
|
+
@include mixin.organism(accordion) {
|
|
139
|
+
background-color: color.adjust(colors.$color-ash, $lightness: 4%);
|
|
130
140
|
|
|
131
|
-
@include e(panel) {
|
|
141
|
+
@include bem.e(panel) {
|
|
132
142
|
&[aria-hidden='false'],
|
|
133
143
|
&:not([aria-hidden='true']) {
|
|
134
144
|
@extend %is-visible;
|
|
135
145
|
}
|
|
136
146
|
}
|
|
137
147
|
|
|
138
|
-
@include m(transparent) {
|
|
148
|
+
@include bem.m(transparent) {
|
|
139
149
|
background-color: transparent;
|
|
140
150
|
|
|
141
151
|
[class*='header'] {
|
|
@@ -151,7 +161,7 @@
|
|
|
151
161
|
}
|
|
152
162
|
}
|
|
153
163
|
|
|
154
|
-
@include organism(accordion) {
|
|
164
|
+
@include mixin.organism(accordion) {
|
|
155
165
|
margin: 0;
|
|
156
166
|
padding: 0;
|
|
157
167
|
background-position: top left;
|
|
@@ -160,27 +170,27 @@
|
|
|
160
170
|
&::before {
|
|
161
171
|
@extend %u-visuallyhidden;
|
|
162
172
|
|
|
163
|
-
content:
|
|
173
|
+
content: var.$namespace;
|
|
164
174
|
}
|
|
165
175
|
|
|
166
|
-
@include e(row) {
|
|
176
|
+
@include bem.e(row) {
|
|
167
177
|
pointer-events: none;
|
|
168
178
|
}
|
|
169
179
|
|
|
170
|
-
@include e(header) {
|
|
180
|
+
@include bem.e(header) {
|
|
171
181
|
@extend %header;
|
|
172
182
|
|
|
173
|
-
@include m(inline) {
|
|
183
|
+
@include bem.m(inline) {
|
|
174
184
|
display: inline-flex;
|
|
175
185
|
width: auto;
|
|
176
186
|
|
|
177
187
|
button {
|
|
178
|
-
padding-right: rhythm(5);
|
|
188
|
+
padding-right: func.rhythm(5);
|
|
179
189
|
padding-left: 0;
|
|
180
190
|
}
|
|
181
191
|
}
|
|
182
192
|
|
|
183
|
-
@include m(no-border) {
|
|
193
|
+
@include bem.m(no-border) {
|
|
184
194
|
button[role='tab'] {
|
|
185
195
|
border-bottom: 0;
|
|
186
196
|
box-shadow: none;
|
|
@@ -191,13 +201,13 @@
|
|
|
191
201
|
}
|
|
192
202
|
}
|
|
193
203
|
|
|
194
|
-
@include m(background) {
|
|
204
|
+
@include bem.m(background) {
|
|
195
205
|
button {
|
|
196
206
|
box-shadow: none;
|
|
197
207
|
}
|
|
198
208
|
}
|
|
199
209
|
|
|
200
|
-
@include m(no-content) {
|
|
210
|
+
@include bem.m(no-content) {
|
|
201
211
|
button {
|
|
202
212
|
cursor: default;
|
|
203
213
|
pointer-events: none;
|
|
@@ -209,42 +219,42 @@
|
|
|
209
219
|
}
|
|
210
220
|
}
|
|
211
221
|
|
|
212
|
-
@include e(time) {
|
|
222
|
+
@include bem.e(time) {
|
|
213
223
|
margin-top: 0;
|
|
214
|
-
margin-right: rhythm(2);
|
|
224
|
+
margin-right: func.rhythm(2);
|
|
215
225
|
padding-top: 0;
|
|
216
226
|
padding-bottom: 0;
|
|
217
227
|
|
|
218
|
-
@include bp-up(md) {
|
|
228
|
+
@include breakpoint.bp-up(md) {
|
|
219
229
|
font-size: 90%;
|
|
220
230
|
}
|
|
221
231
|
}
|
|
222
232
|
}
|
|
223
233
|
|
|
224
|
-
@include e(panel) {
|
|
234
|
+
@include bem.e(panel) {
|
|
225
235
|
@extend %panel;
|
|
226
236
|
|
|
227
237
|
// Nested to prevent padding when JS is disabled
|
|
228
|
-
@include e(content) {
|
|
238
|
+
@include bem.e(content) {
|
|
229
239
|
position: relative;
|
|
230
|
-
padding: rhythm(3);
|
|
240
|
+
padding: func.rhythm(3);
|
|
231
241
|
|
|
232
242
|
> :last-child {
|
|
233
243
|
margin-bottom: 0;
|
|
234
244
|
}
|
|
235
245
|
}
|
|
236
246
|
|
|
237
|
-
@include m(transparent) {
|
|
247
|
+
@include bem.m(transparent) {
|
|
238
248
|
background-color: transparent;
|
|
239
249
|
}
|
|
240
250
|
|
|
241
|
-
@include m(ash) {
|
|
251
|
+
@include bem.m(ash) {
|
|
242
252
|
border-radius: 0;
|
|
243
|
-
background-color: color.adjust(
|
|
253
|
+
background-color: color.adjust(colors.$color-ash, $lightness: 4%);
|
|
244
254
|
}
|
|
245
255
|
}
|
|
246
256
|
|
|
247
|
-
@include e(title) {
|
|
257
|
+
@include bem.e(title) {
|
|
248
258
|
margin-top: 0;
|
|
249
259
|
margin-bottom: 0;
|
|
250
260
|
padding-top: 0;
|
|
@@ -257,16 +267,16 @@
|
|
|
257
267
|
}
|
|
258
268
|
}
|
|
259
269
|
|
|
260
|
-
@include e(logo) {
|
|
261
|
-
margin-bottom: rhythm(2);
|
|
270
|
+
@include bem.e(logo) {
|
|
271
|
+
margin-bottom: func.rhythm(2);
|
|
262
272
|
|
|
263
|
-
@include bp-up(sm) {
|
|
264
|
-
margin-right: rhythm(2);
|
|
273
|
+
@include breakpoint.bp-up(sm) {
|
|
274
|
+
margin-right: func.rhythm(2);
|
|
265
275
|
margin-bottom: 0;
|
|
266
276
|
}
|
|
267
277
|
}
|
|
268
278
|
|
|
269
|
-
@include e(list) {
|
|
279
|
+
@include bem.e(list) {
|
|
270
280
|
display: inline-block;
|
|
271
281
|
margin-bottom: 0;
|
|
272
282
|
|
|
@@ -283,23 +293,23 @@
|
|
|
283
293
|
}
|
|
284
294
|
}
|
|
285
295
|
|
|
286
|
-
@include e(item) {
|
|
296
|
+
@include bem.e(item) {
|
|
287
297
|
display: flex;
|
|
288
298
|
align-items: center;
|
|
289
299
|
margin-left: 0;
|
|
290
300
|
pointer-events: initial;
|
|
291
301
|
}
|
|
292
302
|
|
|
293
|
-
@include e(flag) {
|
|
294
|
-
margin-right: rhythm(1);
|
|
295
|
-
font-size:
|
|
303
|
+
@include bem.e(flag) {
|
|
304
|
+
margin-right: func.rhythm(1);
|
|
305
|
+
font-size: func.to_rem(32px);
|
|
296
306
|
line-height: 1;
|
|
297
307
|
}
|
|
298
308
|
}
|
|
299
309
|
}
|
|
300
310
|
|
|
301
311
|
.no-js {
|
|
302
|
-
@include organism(accordion) {
|
|
312
|
+
@include mixin.organism(accordion) {
|
|
303
313
|
> [class*='panel'] {
|
|
304
314
|
@extend %is-visible;
|
|
305
315
|
}
|