@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.
- package/package.json +29 -29
- 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 +40 -34
- 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,62 +1,72 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
-
|
|
3
|
-
@
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/bem' as bem;
|
|
4
|
+
@use '../../configurations/config' as config;
|
|
5
|
+
@use '../../configurations/variables' as var;
|
|
6
|
+
@use '../../configurations/functions' as func;
|
|
7
|
+
@use '../../configurations/colors/colors' as colors;
|
|
8
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
9
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
10
|
+
@use '../../vendor/grid/grid' as grid;
|
|
11
|
+
@use '../../vendor/baseline/plumber' as plumber;
|
|
12
|
+
|
|
13
|
+
@include mixin.organism(podcast-episodes) {
|
|
4
14
|
|
|
5
15
|
// Episode
|
|
6
|
-
@include e(episode) {
|
|
16
|
+
@include bem.e(episode) {
|
|
7
17
|
justify-content: center;
|
|
8
18
|
margin-right: 0;
|
|
9
19
|
margin-left: 0;
|
|
10
|
-
padding: rhythm(2);
|
|
11
|
-
border-radius:
|
|
12
|
-
background-color:
|
|
20
|
+
padding: func.rhythm(2);
|
|
21
|
+
border-radius: var.$border-radius;
|
|
22
|
+
background-color: colors.$color-snow;
|
|
13
23
|
|
|
14
|
-
@include bp-up(sm) {
|
|
15
|
-
padding-right: rhythm(2);
|
|
16
|
-
padding-left: rhythm(2);
|
|
24
|
+
@include breakpoint.bp-up(sm) {
|
|
25
|
+
padding-right: func.rhythm(2);
|
|
26
|
+
padding-left: func.rhythm(2);
|
|
17
27
|
}
|
|
18
28
|
|
|
19
|
-
@include bp-up(md) {
|
|
29
|
+
@include breakpoint.bp-up(md) {
|
|
20
30
|
justify-content: flex-start;
|
|
21
31
|
}
|
|
22
32
|
|
|
23
|
-
@include bp-up(md) {
|
|
24
|
-
padding: rhythm(3);
|
|
33
|
+
@include breakpoint.bp-up(md) {
|
|
34
|
+
padding: func.rhythm(3);
|
|
25
35
|
}
|
|
26
36
|
|
|
27
|
-
@include m(list) {
|
|
28
|
-
margin-bottom: rhythm(2);
|
|
37
|
+
@include bem.m(list) {
|
|
38
|
+
margin-bottom: func.rhythm(2);
|
|
29
39
|
|
|
30
|
-
@include e(image) {
|
|
40
|
+
@include bem.e(image) {
|
|
31
41
|
display: none;
|
|
32
42
|
|
|
33
|
-
@include bp-up(md) {
|
|
43
|
+
@include breakpoint.bp-up(md) {
|
|
34
44
|
display: block;
|
|
35
|
-
width:
|
|
36
|
-
height:
|
|
45
|
+
width: func.to_rem(170px);
|
|
46
|
+
height: func.to_rem(170px);
|
|
37
47
|
}
|
|
38
48
|
}
|
|
39
49
|
}
|
|
40
50
|
|
|
41
|
-
@include m(hero) {
|
|
51
|
+
@include bem.m(hero) {
|
|
42
52
|
padding-right: 0;
|
|
43
53
|
padding-left: 0;
|
|
44
54
|
border-radius: 0;
|
|
45
55
|
background-color: transparent;
|
|
46
56
|
|
|
47
|
-
@include bp-up(md) {
|
|
57
|
+
@include breakpoint.bp-up(md) {
|
|
48
58
|
flex-direction: row-reverse;
|
|
49
59
|
align-items: center;
|
|
50
60
|
}
|
|
51
61
|
|
|
52
|
-
@include e(image) {
|
|
53
|
-
width:
|
|
54
|
-
height:
|
|
62
|
+
@include bem.e(image) {
|
|
63
|
+
width: func.to_rem(310px);
|
|
64
|
+
height: func.to_rem(310px);
|
|
55
65
|
margin-right: 0;
|
|
56
|
-
margin-left: rhythm(4);
|
|
66
|
+
margin-left: func.rhythm(4);
|
|
57
67
|
}
|
|
58
68
|
|
|
59
|
-
@include e(info) {
|
|
69
|
+
@include bem.e(info) {
|
|
60
70
|
> p {
|
|
61
71
|
overflow: visible;
|
|
62
72
|
text-overflow: inherit;
|
|
@@ -64,45 +74,45 @@
|
|
|
64
74
|
}
|
|
65
75
|
}
|
|
66
76
|
|
|
67
|
-
@include e(link) {
|
|
77
|
+
@include bem.e(link) {
|
|
68
78
|
pointer-events: none;
|
|
69
79
|
}
|
|
70
80
|
}
|
|
71
81
|
|
|
72
|
-
@include e(image) {
|
|
73
|
-
margin-bottom: rhythm(2);
|
|
74
|
-
border-radius:
|
|
82
|
+
@include bem.e(image) {
|
|
83
|
+
margin-bottom: func.rhythm(2);
|
|
84
|
+
border-radius: var.$border-radius;
|
|
75
85
|
|
|
76
|
-
@include bp-down(sm) {
|
|
86
|
+
@include breakpoint.bp-down(sm) {
|
|
77
87
|
display: none;
|
|
78
88
|
}
|
|
79
89
|
|
|
80
|
-
@include bp-up(sm) {
|
|
90
|
+
@include breakpoint.bp-up(sm) {
|
|
81
91
|
display: block;
|
|
82
|
-
width:
|
|
83
|
-
height:
|
|
84
|
-
margin-right: rhythm(3);
|
|
92
|
+
width: func.to_rem(255px);
|
|
93
|
+
height: func.to_rem(255px);
|
|
94
|
+
margin-right: func.rhythm(3);
|
|
85
95
|
}
|
|
86
96
|
}
|
|
87
97
|
|
|
88
|
-
@include e(meta) {
|
|
98
|
+
@include bem.e(meta) {
|
|
89
99
|
display: flex;
|
|
90
|
-
margin-bottom: rhythm(1);
|
|
100
|
+
margin-bottom: func.rhythm(1);
|
|
91
101
|
}
|
|
92
102
|
|
|
93
|
-
@include e(info) {
|
|
103
|
+
@include bem.e(info) {
|
|
94
104
|
h1 span {
|
|
95
105
|
pointer-events: none;
|
|
96
106
|
}
|
|
97
107
|
|
|
98
108
|
h1 svg {
|
|
99
|
-
width:
|
|
100
|
-
height:
|
|
109
|
+
width: var.$icon-size-large * 1.5;
|
|
110
|
+
height: var.$icon-size-large * 1.5;
|
|
101
111
|
}
|
|
102
112
|
|
|
103
113
|
h2 svg {
|
|
104
|
-
width:
|
|
105
|
-
height:
|
|
114
|
+
width: var.$icon-size-large * 1.2;
|
|
115
|
+
height: var.$icon-size-large * 1.2;
|
|
106
116
|
}
|
|
107
117
|
|
|
108
118
|
> p {
|
|
@@ -110,7 +120,7 @@
|
|
|
110
120
|
text-overflow: ellipsis;
|
|
111
121
|
white-space: nowrap;
|
|
112
122
|
|
|
113
|
-
@include bp-up(sm-xs) {
|
|
123
|
+
@include breakpoint.bp-up(sm-xs) {
|
|
114
124
|
overflow: visible;
|
|
115
125
|
text-overflow: inherit;
|
|
116
126
|
white-space: normal;
|
|
@@ -118,8 +128,8 @@
|
|
|
118
128
|
}
|
|
119
129
|
}
|
|
120
130
|
|
|
121
|
-
@include e(link) {
|
|
122
|
-
color:
|
|
131
|
+
@include bem.e(link) {
|
|
132
|
+
color: colors.$color-cyberspace;
|
|
123
133
|
text-decoration: none;
|
|
124
134
|
|
|
125
135
|
&:hover,
|
|
@@ -128,17 +138,17 @@
|
|
|
128
138
|
}
|
|
129
139
|
}
|
|
130
140
|
|
|
131
|
-
@include e(button) {
|
|
141
|
+
@include bem.e(button) {
|
|
132
142
|
display: flex;
|
|
133
143
|
align-items: center;
|
|
134
|
-
margin: 0 rhythm(1);
|
|
144
|
+
margin: 0 func.rhythm(1);
|
|
135
145
|
padding: 0;
|
|
136
146
|
border: 0;
|
|
137
147
|
background-color: transparent;
|
|
138
148
|
|
|
139
149
|
&:hover {
|
|
140
150
|
> svg {
|
|
141
|
-
fill:
|
|
151
|
+
fill: colors.$color-ruby;
|
|
142
152
|
}
|
|
143
153
|
}
|
|
144
154
|
|
|
@@ -147,58 +157,58 @@
|
|
|
147
157
|
}
|
|
148
158
|
}
|
|
149
159
|
|
|
150
|
-
@include e(share) {
|
|
160
|
+
@include bem.e(share) {
|
|
151
161
|
display: flex;
|
|
152
162
|
flex-wrap: wrap;
|
|
153
163
|
align-items: center;
|
|
154
|
-
margin-top: rhythm(1);
|
|
164
|
+
margin-top: func.rhythm(1);
|
|
155
165
|
|
|
156
|
-
@include e(spacer) {
|
|
166
|
+
@include bem.e(spacer) {
|
|
157
167
|
display: none;
|
|
158
|
-
margin-bottom: rhythm(2);
|
|
168
|
+
margin-bottom: func.rhythm(2);
|
|
159
169
|
|
|
160
|
-
@include bp-up(lg) {
|
|
170
|
+
@include breakpoint.bp-up(lg) {
|
|
161
171
|
display: block;
|
|
162
|
-
margin-right: rhythm(2);
|
|
172
|
+
margin-right: func.rhythm(2);
|
|
163
173
|
margin-bottom: 0;
|
|
164
|
-
margin-left: rhythm(2);
|
|
174
|
+
margin-left: func.rhythm(2);
|
|
165
175
|
line-height: 1;
|
|
166
176
|
}
|
|
167
177
|
}
|
|
168
178
|
|
|
169
|
-
@include e(list) {
|
|
179
|
+
@include bem.e(list) {
|
|
170
180
|
display: flex;
|
|
171
181
|
flex-basis: 100%;
|
|
172
182
|
|
|
173
183
|
> dt {
|
|
174
|
-
margin-right: rhythm(2);
|
|
184
|
+
margin-right: func.rhythm(2);
|
|
175
185
|
}
|
|
176
186
|
|
|
177
187
|
> dd {
|
|
178
188
|
margin-left: 0;
|
|
179
189
|
}
|
|
180
190
|
|
|
181
|
-
@include bp-up(lg) {
|
|
191
|
+
@include breakpoint.bp-up(lg) {
|
|
182
192
|
flex-basis: auto;
|
|
183
193
|
}
|
|
184
194
|
}
|
|
185
195
|
}
|
|
186
196
|
|
|
187
|
-
@include e(listen-link) {
|
|
188
|
-
margin-right: rhythm(2);
|
|
189
|
-
color:
|
|
197
|
+
@include bem.e(listen-link) {
|
|
198
|
+
margin-right: func.rhythm(2);
|
|
199
|
+
color: colors.$color-cyberspace;
|
|
190
200
|
}
|
|
191
201
|
|
|
192
|
-
@include e(download-link) {
|
|
202
|
+
@include bem.e(download-link) {
|
|
193
203
|
display: flex;
|
|
194
204
|
flex-basis: 100%;
|
|
195
205
|
flex-grow: 1;
|
|
196
|
-
margin-bottom: rhythm(2);
|
|
197
|
-
color:
|
|
206
|
+
margin-bottom: func.rhythm(2);
|
|
207
|
+
color: colors.$color-cyberspace;
|
|
198
208
|
|
|
199
209
|
> span {
|
|
200
|
-
font-family:
|
|
201
|
-
font-size:
|
|
210
|
+
font-family: var.$font-family-base;
|
|
211
|
+
font-size: var.$size-base;
|
|
202
212
|
text-decoration: underline;
|
|
203
213
|
}
|
|
204
214
|
|
|
@@ -206,37 +216,37 @@
|
|
|
206
216
|
transform: translateY(3px);
|
|
207
217
|
}
|
|
208
218
|
|
|
209
|
-
@include bp-up(lg) {
|
|
219
|
+
@include breakpoint.bp-up(lg) {
|
|
210
220
|
margin-bottom: 0;
|
|
211
221
|
}
|
|
212
222
|
|
|
213
|
-
@include bp-up(md) {
|
|
223
|
+
@include breakpoint.bp-up(md) {
|
|
214
224
|
flex-basis: auto;
|
|
215
225
|
flex-grow: 0;
|
|
216
226
|
}
|
|
217
227
|
}
|
|
218
228
|
|
|
219
|
-
@include e(download-icon) {
|
|
220
|
-
width:
|
|
221
|
-
height:
|
|
222
|
-
margin-right: rhythm(1);
|
|
229
|
+
@include bem.e(download-icon) {
|
|
230
|
+
width: var.$icon-size;
|
|
231
|
+
height: var.$icon-size;
|
|
232
|
+
margin-right: func.rhythm(1);
|
|
223
233
|
padding: 3px;
|
|
224
|
-
border-radius:
|
|
234
|
+
border-radius: var.$border-radius;
|
|
225
235
|
}
|
|
226
236
|
}
|
|
227
237
|
}
|
|
228
238
|
|
|
229
239
|
// Track list (Prototype)
|
|
230
|
-
@include organism(podcast-track-list) {
|
|
240
|
+
@include mixin.organism(podcast-track-list) {
|
|
231
241
|
display: flex;
|
|
232
242
|
flex-direction: column;
|
|
233
243
|
|
|
234
244
|
> li {
|
|
235
245
|
display: flex;
|
|
236
|
-
padding: rhythm(1) rhythm(2);
|
|
246
|
+
padding: func.rhythm(1) func.rhythm(2);
|
|
237
247
|
|
|
238
248
|
+ li {
|
|
239
|
-
border-top: 1px solid
|
|
249
|
+
border-top: 1px solid colors.$color-concrete;
|
|
240
250
|
}
|
|
241
251
|
|
|
242
252
|
> button {
|
|
@@ -1,83 +1,92 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
@use "sass:color";
|
|
3
|
-
|
|
4
3
|
@use "sass:math";
|
|
5
|
-
|
|
6
|
-
@
|
|
4
|
+
@use '../../configurations/mixins' as mixin;
|
|
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;
|
|
14
|
+
|
|
15
|
+
@include mixin.organism(podcast-player) {
|
|
7
16
|
|
|
8
17
|
// Player
|
|
9
18
|
|
|
10
|
-
$time-left-width:
|
|
19
|
+
$time-left-width: func.to_rem(65px);
|
|
11
20
|
|
|
12
21
|
position: fixed;
|
|
13
|
-
z-index: z_index(middlegroundImportant);
|
|
22
|
+
z-index: func.z_index(middlegroundImportant);
|
|
14
23
|
right: 0;
|
|
15
24
|
bottom: 0;
|
|
16
25
|
left: 0;
|
|
17
|
-
padding: rhythm(1) 0 0 0;
|
|
26
|
+
padding: func.rhythm(1) 0 0 0;
|
|
18
27
|
transform: translateY(0);
|
|
19
28
|
transition: transform 0.25s ease-out;
|
|
20
|
-
background-color:
|
|
21
|
-
box-shadow: 0 -#{rhythm(1)} rhythm(3) color.adjust(
|
|
29
|
+
background-color: colors.$color-snow;
|
|
30
|
+
box-shadow: 0 -#{func.rhythm(1)} func.rhythm(3) color.adjust(colors.$color-cyberspace, $lightness: 70%);
|
|
22
31
|
|
|
23
|
-
@include m(hidden) {
|
|
32
|
+
@include bem.m(hidden) {
|
|
24
33
|
transform: translateY(100%);
|
|
25
34
|
box-shadow: none;
|
|
26
35
|
}
|
|
27
36
|
|
|
28
|
-
@include e(player) {
|
|
37
|
+
@include bem.e(player) {
|
|
29
38
|
display: flex;
|
|
30
39
|
flex-grow: 1;
|
|
31
40
|
align-items: center;
|
|
32
41
|
|
|
33
|
-
@include e(show-info) {
|
|
42
|
+
@include bem.e(show-info) {
|
|
34
43
|
display: none;
|
|
35
44
|
|
|
36
|
-
@include bp-up(sm) {
|
|
45
|
+
@include breakpoint.bp-up(sm) {
|
|
37
46
|
display: block;
|
|
38
47
|
}
|
|
39
48
|
}
|
|
40
49
|
|
|
41
|
-
@include e(image) {
|
|
50
|
+
@include bem.e(image) {
|
|
42
51
|
display: none;
|
|
43
52
|
|
|
44
|
-
@include bp-up(md) {
|
|
53
|
+
@include breakpoint.bp-up(md) {
|
|
45
54
|
display: flex;
|
|
46
55
|
flex-grow: 0;
|
|
47
|
-
width: rhythm(7);
|
|
48
|
-
height: rhythm(7);
|
|
49
|
-
margin-right: rhythm(2);
|
|
50
|
-
border-radius:
|
|
56
|
+
width: func.rhythm(7);
|
|
57
|
+
height: func.rhythm(7);
|
|
58
|
+
margin-right: func.rhythm(2);
|
|
59
|
+
border-radius: var.$border-radius;
|
|
51
60
|
}
|
|
52
61
|
}
|
|
53
62
|
}
|
|
54
63
|
|
|
55
|
-
@include e(show-info) {
|
|
64
|
+
@include bem.e(show-info) {
|
|
56
65
|
display: flex;
|
|
57
66
|
flex-direction: column;
|
|
58
67
|
}
|
|
59
68
|
|
|
60
|
-
@include e(title) {
|
|
69
|
+
@include bem.e(title) {
|
|
61
70
|
margin-bottom: 0;
|
|
62
|
-
color:
|
|
63
|
-
font-family:
|
|
71
|
+
color: colors.$color-ruby;
|
|
72
|
+
font-family: var.$font-family-headings;
|
|
64
73
|
overflow: hidden;
|
|
65
74
|
text-overflow: ellipsis;
|
|
66
75
|
white-space: nowrap;
|
|
67
|
-
max-width:
|
|
76
|
+
max-width: func.to_rem(200px);
|
|
68
77
|
|
|
69
|
-
@include bp-up(sm) {
|
|
70
|
-
max-width:
|
|
78
|
+
@include breakpoint.bp-up(sm) {
|
|
79
|
+
max-width: func.to_rem(250px);
|
|
71
80
|
}
|
|
72
81
|
|
|
73
|
-
@include bp-up(lg) {
|
|
74
|
-
max-width:
|
|
82
|
+
@include breakpoint.bp-up(lg) {
|
|
83
|
+
max-width: func.to_rem(500px);
|
|
75
84
|
}
|
|
76
85
|
}
|
|
77
86
|
|
|
78
|
-
@include e(description) {
|
|
87
|
+
@include bem.e(description) {
|
|
79
88
|
display: block;
|
|
80
|
-
max-width:
|
|
89
|
+
max-width: func.to_rem(200px);
|
|
81
90
|
overflow: hidden;
|
|
82
91
|
text-overflow: ellipsis;
|
|
83
92
|
white-space: nowrap;
|
|
@@ -86,95 +95,95 @@
|
|
|
86
95
|
display: none;
|
|
87
96
|
}
|
|
88
97
|
|
|
89
|
-
@include bp-up(sm) {
|
|
90
|
-
max-width:
|
|
98
|
+
@include breakpoint.bp-up(sm) {
|
|
99
|
+
max-width: func.to_rem(250px);
|
|
91
100
|
}
|
|
92
101
|
|
|
93
|
-
@include bp-up(lg) {
|
|
94
|
-
max-width:
|
|
102
|
+
@include breakpoint.bp-up(lg) {
|
|
103
|
+
max-width: func.to_rem(500px);
|
|
95
104
|
}
|
|
96
105
|
}
|
|
97
106
|
|
|
98
|
-
@include e(playtime) {
|
|
99
|
-
@include bp-between(sm, md) {
|
|
107
|
+
@include bem.e(playtime) {
|
|
108
|
+
@include breakpoint.bp-between(sm, md) {
|
|
100
109
|
display: none;
|
|
101
110
|
}
|
|
102
111
|
}
|
|
103
112
|
|
|
104
|
-
@include e(spacer) {
|
|
105
|
-
@include bp-between(sm, md) {
|
|
113
|
+
@include bem.e(spacer) {
|
|
114
|
+
@include breakpoint.bp-between(sm, md) {
|
|
106
115
|
display: none;
|
|
107
116
|
}
|
|
108
117
|
}
|
|
109
118
|
|
|
110
|
-
@include e(controls) {
|
|
119
|
+
@include bem.e(controls) {
|
|
111
120
|
display: flex;
|
|
112
121
|
flex-grow: 1;
|
|
113
122
|
align-items: center;
|
|
114
123
|
justify-content: center;
|
|
115
124
|
}
|
|
116
125
|
|
|
117
|
-
@include e(spacer) {
|
|
118
|
-
margin-right: rhythm(0.5);
|
|
119
|
-
margin-left: rhythm(0.5);
|
|
126
|
+
@include bem.e(spacer) {
|
|
127
|
+
margin-right: func.rhythm(0.5);
|
|
128
|
+
margin-left: func.rhythm(0.5);
|
|
120
129
|
}
|
|
121
130
|
|
|
122
|
-
@include e(button) {
|
|
131
|
+
@include bem.e(button) {
|
|
123
132
|
display: flex;
|
|
124
133
|
align-items: center;
|
|
125
|
-
margin: 0 rhythm(1);
|
|
134
|
+
margin: 0 func.rhythm(1);
|
|
126
135
|
padding: 0;
|
|
127
136
|
border: 0;
|
|
128
137
|
background-color: transparent;
|
|
129
138
|
|
|
130
139
|
&:hover {
|
|
131
140
|
> svg {
|
|
132
|
-
fill:
|
|
141
|
+
fill: colors.$color-ruby;
|
|
133
142
|
}
|
|
134
143
|
}
|
|
135
144
|
}
|
|
136
145
|
|
|
137
|
-
@include e(timeleft) {
|
|
146
|
+
@include bem.e(timeleft) {
|
|
138
147
|
min-width: $time-left-width;
|
|
139
148
|
}
|
|
140
149
|
|
|
141
|
-
@include e(rewind-icon) {
|
|
142
|
-
width:
|
|
143
|
-
height:
|
|
150
|
+
@include bem.e(rewind-icon) {
|
|
151
|
+
width: var.$icon-size-large * 1.2;
|
|
152
|
+
height: var.$icon-size-large * 1.2;
|
|
144
153
|
}
|
|
145
154
|
|
|
146
|
-
@include e(forward-icon) {
|
|
147
|
-
width:
|
|
148
|
-
height:
|
|
155
|
+
@include bem.e(forward-icon) {
|
|
156
|
+
width: var.$icon-size-large * 1.2;
|
|
157
|
+
height: var.$icon-size-large * 1.2;
|
|
149
158
|
}
|
|
150
159
|
|
|
151
|
-
@include e(play-icon) {
|
|
160
|
+
@include bem.e(play-icon) {
|
|
152
161
|
display: block;
|
|
153
|
-
width:
|
|
154
|
-
height:
|
|
162
|
+
width: var.$icon-size-large * 1.5;
|
|
163
|
+
height: var.$icon-size-large * 1.5;
|
|
155
164
|
}
|
|
156
165
|
|
|
157
|
-
@include e(progressbar) {
|
|
166
|
+
@include bem.e(progressbar) {
|
|
158
167
|
flex-wrap: wrap;
|
|
159
168
|
width: 100%;
|
|
160
|
-
height: rhythm(0.5);
|
|
161
|
-
margin-top: rhythm(1);
|
|
162
|
-
background-color:
|
|
169
|
+
height: func.rhythm(0.5);
|
|
170
|
+
margin-top: func.rhythm(1);
|
|
171
|
+
background-color: colors.$color-concrete;
|
|
163
172
|
|
|
164
|
-
@include e(progress) {
|
|
173
|
+
@include bem.e(progress) {
|
|
165
174
|
width: 0;
|
|
166
|
-
height: rhythm(1);
|
|
175
|
+
height: func.rhythm(1);
|
|
167
176
|
}
|
|
168
177
|
}
|
|
169
178
|
|
|
170
|
-
@include e(close) {
|
|
179
|
+
@include bem.e(close) {
|
|
171
180
|
position: absolute;
|
|
172
|
-
right: rhythm(0.5);
|
|
181
|
+
right: func.rhythm(0.5);
|
|
173
182
|
top: 50%;
|
|
174
183
|
transform: translateY(-50%);
|
|
175
184
|
|
|
176
|
-
@include bp-up(xxl) {
|
|
177
|
-
right: rhythm(2);
|
|
185
|
+
@include breakpoint.bp-up(xxl) {
|
|
186
|
+
right: func.rhythm(2);
|
|
178
187
|
}
|
|
179
188
|
}
|
|
180
189
|
}
|