@internetstiftelsen/styleguide 2.22.3-beta.0.7 → 2.22.4

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 (71) hide show
  1. package/dist/assets/js/objToQuery.js +2 -2
  2. package/dist/components.js +1 -9
  3. package/dist/molecules/glider/glider-course.js +7 -7
  4. package/package.json +3 -7
  5. package/src/app.scss +2 -6
  6. package/src/assets/css/footer/isolated-footer.css +7367 -0
  7. package/src/assets/css/footer/isolated-footer.css.map +1 -0
  8. package/src/assets/css/footer/isolated-footer.min.css +2 -0
  9. package/src/assets/js/objToQuery.js +2 -2
  10. package/src/atoms/button/_button.scss +9 -6
  11. package/src/atoms/icon/_all-icons.zip +0 -0
  12. package/src/atoms/icon/spinner-white.svg +9 -1
  13. package/src/atoms/icon/spinner.svg +9 -1
  14. package/src/atoms/icon/sprite.svg +0 -17
  15. package/src/atoms/meta/meta.config.js +1 -1
  16. package/src/base/_normalize.scss +1 -1
  17. package/src/base/fonts/_fonts.scss +8 -8
  18. package/src/brandbook/internetstiftelsen/bildman/303/251r/bildman/303/251r.config.js +5 -0
  19. package/src/brandbook/internetstiftelsen/tonalitet och spr/303/245kbruk/tonalitet och spr/303/245kbruk.config.js" +5 -0
  20. package/src/components.js +0 -4
  21. package/src/configurations/_extends.scss +1 -5
  22. package/src/configurations/_variables.scss +3 -3
  23. package/src/configurations/grid/_grid.scss +2 -17
  24. package/src/configurations/icons.json +1 -1
  25. package/src/configurations/typography/_typography.scss +4 -57
  26. package/src/molecules/glider/_glider.scss +116 -3
  27. package/src/molecules/glider/glider-course.js +7 -7
  28. package/src/molecules/glider/glider.config.js +0 -7
  29. package/src/organisms/hero/_hero.scss +0 -16
  30. package/src/organisms/hero/hero.config.js +1 -10
  31. package/src/pages/timeline/timeline.config.js +19 -0
  32. package/src/structures/_article.scss +3 -3
  33. package/dist/.DS_Store +0 -0
  34. package/dist/assets/js/anchorScroll.js +0 -16
  35. package/dist/assets/js/offset.js +0 -26
  36. package/dist/assets/js/parallax.js +0 -17
  37. package/dist/molecules/continue-video-guide/continue-video-guide.js +0 -91
  38. package/dist/molecules/glider/glider-hero.js +0 -23
  39. package/dist/organisms/timeline/timeline.js +0 -154
  40. package/dist/organisms/video-guide/video-guide.js +0 -298
  41. package/src/.DS_Store +0 -0
  42. package/src/assets/.DS_Store +0 -0
  43. package/src/assets/js/anchorScroll.js +0 -10
  44. package/src/assets/js/offset.js +0 -22
  45. package/src/assets/js/parallax.js +0 -15
  46. package/src/assets/video/.DS_Store +0 -0
  47. package/src/assets/video/Internets-Historia-HEVC-h265-HEVC-h265.mov +0 -0
  48. package/src/assets/video/Internets-Historia-HEVC-h265-vp9-chrome.webm +0 -0
  49. package/src/assets/video/chapters.vtt +0 -25
  50. package/src/assets/video/metadata.vtt +0 -25
  51. package/src/assets/video/movie-webm.webm +0 -0
  52. package/src/assets/video/videoplayer.vtt +0 -25
  53. package/src/atoms/.DS_Store +0 -0
  54. package/src/atoms/icon/step-backwards.svg +0 -1
  55. package/src/atoms/icon/step-forwards.svg +0 -1
  56. package/src/atoms/icon/subtitles.svg +0 -1
  57. package/src/molecules/.DS_Store +0 -0
  58. package/src/molecules/continue-video-guide/continue-video-guide.config.js +0 -7
  59. package/src/molecules/continue-video-guide/continue-video-guide.js +0 -84
  60. package/src/molecules/continue-video-guide/continue-video-guide.scss +0 -104
  61. package/src/molecules/continue-video-guide/readme.md +0 -3
  62. package/src/molecules/glider/_glider-course.scss +0 -121
  63. package/src/molecules/glider/_glider-hero.scss +0 -325
  64. package/src/molecules/glider/glider-hero.js +0 -17
  65. package/src/organisms/hero/_hero--dynamic-headline.scss +0 -161
  66. package/src/organisms/timeline/_timeline.scss +0 -292
  67. package/src/organisms/timeline/timeline.config.js +0 -7
  68. package/src/organisms/timeline/timeline.js +0 -146
  69. package/src/organisms/video-guide/_video-guide.scss +0 -337
  70. package/src/organisms/video-guide/video-guide.config.js +0 -17
  71. package/src/organisms/video-guide/video-guide.js +0 -293
@@ -1,121 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- // NOTE: this compnent is dependant on the glider.scss component
4
- // The Glider components is dependant on JS-classes and is therefore not namespaced
5
-
6
- .glider-contain-course {
7
- display: flex;
8
- position: relative;
9
- align-items: center;
10
- margin-top: 0;
11
- margin-bottom: rhythm(2);
12
- padding-left: 0;
13
- padding-right: 0;
14
- }
15
-
16
- .glider-slide {
17
- @include m(course) {
18
- margin-left: 0;
19
- padding-left: 0;
20
- padding-right: 0;
21
-
22
- &::after {
23
- display: none;
24
- }
25
-
26
- @include e(navigation) {
27
- display: flex;
28
- justify-content: space-between;
29
-
30
- @include bp-up(lg) {
31
- justify-content: flex-start;
32
- }
33
- }
34
-
35
- @include e(media) {
36
-
37
- &.zoom {
38
- pointer-events: none;
39
-
40
- @include bp-up(lg) {
41
- pointer-events: auto;
42
- cursor: zoom-in;
43
- transition: all 0.15s ease-out;
44
- position: relative;
45
-
46
- &::after {
47
- content: 'Förstora bilden';
48
- color: $color-snow;
49
- padding: rhythm(1) rhythm(2) rhythm(1) rhythm(4);
50
- display: block;
51
- position: absolute;
52
- top: 0;
53
- left: 0;
54
- border-top-left-radius: $border-radius;
55
- border-bottom-right-radius: $border-radius;
56
- width: auto;
57
- line-height: 1;
58
- height: $icon-size-large * 1.4;
59
- background-color: rgba($color-cyberspace, 0.8);
60
- background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' id='icon-search' viewbox='0 0 32 32' width='32' height='32' fill='%23ffffff'%3E%3Cpath d='M24,21.8l8,8L29.9,32l-8-8c-5.9,4.6-14.3,3.6-19-2.2S-0.7,7.6,5.1,2.9S19.3-0.7,24,5.1C27.9,10,27.9,16.9,24,21.8L24,21.8z M13.4,23.9c5.8,0,10.5-4.7,10.5-10.5S19.2,3,13.4,3S3,7.7,3,13.4S7.7,23.9,13.4,23.9z'/%3E%3C/svg%3E");
61
- background-position: rhythm(1) center;
62
- background-size: $icon-size-medium $icon-size-medium;
63
- background-repeat: no-repeat;
64
-
65
- }
66
-
67
- img {
68
- transition: all 0.25s ease-out;
69
- }
70
-
71
- // Image zooming
72
- &.is-zoomed {
73
- cursor: zoom-out !important;
74
- position: fixed;
75
- left: 0;
76
- right: 0;
77
- top: 0;
78
- bottom: 0;
79
- z-index: z_index(foreground);
80
- display: flex;
81
- align-items: center;
82
- justify-content: center;
83
- background-color: rgba($color-cyberspace, 0.8);
84
- flex-direction: column;
85
-
86
- &::after {
87
- display: none;
88
- }
89
-
90
- img {
91
- cursor: zoom-out;
92
- max-width: 100%;
93
- max-height: 100vh;
94
- padding: rhythm(1);
95
- height: auto;
96
- }
97
-
98
- figcaption {
99
- max-width: rem(612px);
100
- text-align: center;
101
- color: $color-snow;
102
- padding-left: rhythm(2);
103
- padding-right: rhythm(2);
104
- margin-bottom: 0 !important;
105
- padding-bottom: 0 !important;
106
- }
107
- }
108
- }
109
- }
110
-
111
- figcaption {
112
- margin-top: rhythm(1);
113
- }
114
- @include bp-up(lg) {
115
- display: flex;
116
- flex-direction: column-reverse;
117
- margin-top: 0;
118
- }
119
- }
120
- }
121
- }
@@ -1,325 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- // NOTE: this compnent is dependant on the glider.scss component
4
- // The Glider components is dependant on JS-classes and is therefore not namespaced
5
-
6
- .glider-hero-contain {
7
- display: flex;
8
- position: relative;
9
- align-items: center;
10
- margin: 0;
11
-
12
- @include e(text) {
13
- position: absolute;
14
- top: rhythm(2);
15
- left: rhythm(2);
16
- z-index: z_index(background);
17
- padding-right: rhythm(2);
18
- max-width: 95%;
19
-
20
- @include bp-up(sm-xs) {
21
- top: rhythm(3);
22
- left: rhythm(3);
23
- padding-right: rhythm(3);
24
- max-width: 90%;
25
- }
26
-
27
-
28
- @include bp-up(sm) {
29
- top: rhythm(4);
30
- left: rhythm(4);
31
- padding-right: rhythm(4);
32
- max-width: 80%;
33
- }
34
-
35
- @include bp-up(md) {
36
- top: rhythm(6);
37
- left: rhythm(6);
38
- padding-right: rhythm(6);
39
- max-width: 70%;
40
- }
41
-
42
- @include bp-up(lg) {
43
- top: rhythm(7);
44
- left: rhythm(7);
45
- padding-right: 0;
46
- max-width: 60%;
47
- }
48
-
49
- @include bp-up(xl) {
50
- top: rhythm(8);
51
- left: rhythm(8);
52
- }
53
-
54
- > h1 {
55
- color: $color-snow;
56
-
57
- > span {
58
- background-color: rgba(0,0,0,0.6);
59
- }
60
-
61
- @include plumber(
62
- $font-size: 2,
63
- $line-height: 3,
64
- $leading-bottom: 1
65
- );
66
-
67
- @include bp-up(sm) {
68
- @include plumber(
69
- $font-size: 2.3,
70
- $line-height: 3,
71
- $leading-bottom: 1
72
- );
73
- }
74
-
75
- @include bp-up(md) {
76
- @include plumber(
77
- $font-size: 3,
78
- $line-height: 4,
79
- $leading-bottom: 2
80
- );
81
- }
82
-
83
- @include bp-up(lg) {
84
- @include plumber(
85
- $font-size: 4,
86
- $line-height: 5,
87
- $leading-bottom: 2
88
- );
89
- }
90
-
91
- @include bp-up(xl) {
92
- @include plumber(
93
- $font-size: 5,
94
- $line-height: 6,
95
- $leading-bottom: 3
96
- );
97
- }
98
- }
99
-
100
- > p {
101
- color: $color-snow;
102
-
103
- > span {
104
- background-color: rgba(0,0,0,0.6);
105
- }
106
-
107
- @include plumber(
108
- $font-size: 1.5,
109
- $line-height: 2,
110
- );
111
-
112
- @include bp-up(sm) {
113
- @include plumber(
114
- $font-size: 2,
115
- $line-height: 3,
116
- );
117
- }
118
-
119
- @include bp-up(lg) {
120
- @include plumber(
121
- $font-size: 2.5,
122
- $line-height: 3,
123
- );
124
- }
125
-
126
- @include bp-up(xl) {
127
- @include plumber(
128
- $font-size: 3,
129
- $line-height: 4,
130
- );
131
- }
132
- }
133
- }
134
- }
135
-
136
- .glider-slide {
137
- @include m(hero) {
138
- margin: 0;
139
- padding: 0;
140
- position: relative;
141
-
142
- &::after {
143
- content: '';
144
- display: block;
145
- position: absolute;
146
- top: 0;
147
- right: 0;
148
- bottom: 0;
149
- left: 0;
150
- background-image: linear-gradient(to bottom, rgba(255, 255, 255, 0) 0%, rgba($color-black, 0) 35%, rgba($color-black, 1) 100%);
151
- }
152
-
153
- @include e(image) {
154
- display: block;
155
- object-fit: cover;
156
- object-position: 50% 50%;
157
- width: 100%;
158
- height: 100%;
159
-
160
- @include bp-up(sm) {
161
- min-height: rem(500px);
162
- max-height: 75vh;
163
- }
164
- }
165
-
166
- @include e(text) {
167
- position: absolute;
168
- z-index: 1;
169
- bottom: rhythm(2);
170
- left: rhythm(2);
171
- padding-right: rhythm(2);
172
- color: $color-snow;
173
- font-family: $font-family-bold;
174
- max-width: 95%;
175
-
176
- > span {
177
- //text-shadow: 0 0 20px rgba(0,0,0,0.8);
178
-
179
- > a {
180
- position: relative;
181
- z-index: 1;
182
-
183
- &:hover {
184
- text-decoration: none;
185
- color: $color-cyberspace !important;
186
- text-shadow: none;
187
- }
188
-
189
- &::before {
190
- content: '';
191
- position: absolute;
192
- z-index: -1;
193
- width: 100%;
194
- height: 100%;
195
- background-color: $color-snow;
196
- bottom: 0;
197
- left: 0;
198
- transform-origin: right;
199
- transform: scaleX(0);
200
- transition: transform .3s ease-in-out;
201
- }
202
-
203
- &:hover::before {
204
- transform-origin: left;
205
- transform: scaleX(1);
206
- }
207
- }
208
- }
209
-
210
- @include plumber(
211
- $font-size: 2.3,
212
- $line-height: 3,
213
- $leading-bottom: 0,
214
- $baseline: $headings-baseline
215
- );
216
-
217
- @include bp-up(sm-xs) {
218
- bottom: rhythm(3);
219
- left: rhythm(3);
220
- padding-right: rhythm(3);
221
- max-width: 90%;
222
-
223
- @include plumber(
224
- $font-size: 3,
225
- $line-height: 4,
226
- $leading-bottom: 0
227
- );
228
- }
229
-
230
-
231
- @include bp-up(sm) {
232
- bottom: rhythm(4);
233
- left: rhythm(4);
234
- padding-right: rhythm(4);
235
- max-width: 80%;
236
-
237
- @include plumber(
238
- $font-size: 4,
239
- $line-height: 5,
240
- $leading-bottom: 0
241
- );
242
- }
243
-
244
- @include bp-up(md) {
245
- bottom: rhythm(6);
246
- left: rhythm(6);
247
- padding-right: rhythm(6);
248
- max-width: 70%;
249
-
250
- @include plumber(
251
- $font-size: 5,
252
- $line-height: 6,
253
- $leading-bottom: 0
254
- );
255
- }
256
-
257
- @include bp-up(lg) {
258
- bottom: rhythm(7);
259
- left: rhythm(7);
260
- padding-right: 0;
261
- max-width: 60%;
262
-
263
- @include plumber(
264
- $font-size: 6,
265
- $line-height: 8,
266
- $leading-bottom: 0
267
- );
268
- }
269
-
270
- @include bp-up(xl) {
271
- bottom: rhythm(8);
272
- left: rhythm(8);
273
- max-width: 50%;
274
-
275
- @include plumber(
276
- $font-size: 7,
277
- $line-height: 9,
278
- $leading-bottom: 0
279
- );
280
- }
281
-
282
- @include bp-up(xxl) {
283
- max-width: 45%;
284
- }
285
- }
286
- }
287
- }
288
-
289
- .glider-nav {
290
- transform: scale(0.7) translateY(-100%);
291
-
292
- @include bp-up(md) {
293
- transform: scale(1) translateY(0);
294
- }
295
-
296
- @include m(hero) {
297
- &.disabled {
298
- display: none;
299
- }
300
-
301
- &.glider-prev {
302
- left: 0;
303
-
304
- @include bp-up(md) {
305
- left: rhythm(1);
306
- }
307
-
308
- @include bp-up(lg) {
309
- left: rhythm(2);
310
- }
311
- }
312
-
313
- &.glider-next {
314
- right: 0;
315
-
316
- @include bp-up(md) {
317
- right: rhythm(1);
318
- }
319
-
320
- @include bp-up(lg) {
321
- right: rhythm(2);
322
- }
323
- }
324
- }
325
- }
@@ -1,17 +0,0 @@
1
- import Glider from 'glider-js';
2
-
3
- const gliderElementHero = document.querySelector('.js-glider-hero');
4
-
5
- if (gliderElementHero) {
6
- const GliderHero = new Glider(gliderElementHero, {
7
- scrollLock: true,
8
- slidesToShow: 1,
9
- slidesToScroll: 1,
10
- arrows: {
11
- prev: '.js-glider-prev',
12
- next: '.js-glider-next',
13
- },
14
- });
15
-
16
- module.exports = GliderHero;
17
- }
@@ -1,161 +0,0 @@
1
- @charset "UTF-8";
2
-
3
- @include organism(hero) {
4
- @include m(dynamic-headline) {
5
- display: flex;
6
- flex-direction: column;
7
- justify-content: space-around;
8
- overflow: visible;
9
- border-radius: 0;
10
-
11
- @include e(image) {
12
- max-height: none;
13
- min-height: 0;
14
- height: 100%;
15
- position: absolute;
16
- top: 0;
17
- left: 0;
18
- right: 0;
19
- bottom: 0;
20
- z-index: -1;
21
-
22
- @include bp-up(xxl) {
23
- object-position: 50% 50%;
24
- }
25
- }
26
-
27
- @include e(caption) {
28
- display: flex;
29
- flex-direction: column;
30
- align-items: flex-start;
31
- padding: rhythm(3);
32
- background-image: none;
33
- position: static;
34
- z-index: auto;
35
- color: $color-snow;
36
-
37
- > h1 {
38
- --minFontSize: 22px;
39
- --maxFontSize: 200px;
40
- --scaler: 10vw;
41
-
42
- font-size: clamp( var(--minFontSize), var(--scaler), var(--maxFontSize) );
43
- font-family: $font-family-bold;
44
- margin: 0;
45
- padding: 0;
46
- line-height: 1.2;
47
- }
48
-
49
- @include bp-up(sm-xs) {
50
- padding: rhythm(4);
51
- }
52
-
53
- @include bp-up(sm) {
54
- padding: rhythm(5);
55
- }
56
-
57
- @include bp-up(md) {
58
- padding: rhythm(7);
59
- }
60
-
61
- @include bp-up(lg) {
62
- padding: rhythm(8);
63
- }
64
-
65
- @include bp-up(xl) {
66
- padding: rhythm(10);
67
- }
68
-
69
- &::before {
70
- display: block;
71
- content: attr(data-meta);
72
- font-family: $font-family-mono;
73
- font-size: 14px !important;
74
- text-transform: uppercase;
75
-
76
- @include bp-up(sm-xs) {
77
- margin-left: rhythm(0.5);
78
- }
79
-
80
- @include bp-up(md) {
81
- font-size: 18px !important;
82
- margin-left: rhythm(1);
83
- }
84
-
85
- @include bp-up(lg) {
86
- font-size: 20px !important;
87
- }
88
-
89
- @include bp-up(xl) {
90
- font-size: 22px !important;
91
- }
92
-
93
- @include bp-up(xxl) {
94
- font-size: 24px !important;
95
- margin-left: rhythm(2);
96
- }
97
- }
98
- }
99
-
100
- @include e(button-continue) {
101
- position: relative;
102
- z-index: z_index(middleground);
103
- align-self: center;
104
- transform: scale(1) translateY(0);
105
- animation: pulse infinite 1.5s ease;
106
- will-change: transform;
107
-
108
- @include bp-up(sm) {
109
- animation: pulse2 infinite 1.5s ease;
110
- }
111
-
112
- @include bp-up(xl) {
113
- animation: pulse3 infinite 1.5s ease;
114
- }
115
- }
116
-
117
- @keyframes pulse {
118
- 0% {
119
- transform: translateY(0);
120
- }
121
-
122
- 50% {
123
- transform: translateY(-25%);
124
- }
125
-
126
- 100% {
127
- transform: translateY(0);
128
- }
129
- }
130
-
131
- @keyframes pulse2 {
132
- 0% {
133
- transform: translateY(0) scale(2);
134
- }
135
-
136
- 50% {
137
- transform: translateY(-25%) scale(2);
138
- }
139
-
140
- 100% {
141
- transform: translateY(0) scale(2);
142
- }
143
- }
144
-
145
- @keyframes pulse3 {
146
- 0% {
147
- transform: translateY(0) scale(3);
148
- }
149
-
150
- 50% {
151
- transform: translateY(-25%) scale(3);
152
- }
153
-
154
- 100% {
155
- transform: translateY(0) scale(3);
156
- }
157
- }
158
-
159
-
160
- }
161
- }