@internetstiftelsen/styleguide 2.22.4 → 2.23.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/dist/.DS_Store +0 -0
- package/dist/assets/js/anchorScroll.js +16 -0
- package/dist/assets/js/offset.js +26 -0
- package/dist/assets/js/parallax.js +17 -0
- package/dist/components.js +2 -0
- package/dist/molecules/continue-video-guide/continue-video-guide.js +91 -0
- package/dist/molecules/glider/glider-course.js +7 -7
- package/dist/molecules/glider/glider-hero.js +46 -0
- package/dist/organisms/timeline/timeline.js +155 -0
- package/dist/organisms/video-guide/video-guide.js +312 -0
- package/package.json +7 -3
- package/src/.DS_Store +0 -0
- package/src/app.scss +3 -2
- package/src/assets/.DS_Store +0 -0
- package/src/assets/js/anchorScroll.js +10 -0
- package/src/assets/js/offset.js +22 -0
- package/src/assets/js/parallax.js +15 -0
- package/src/assets/video/.DS_Store +0 -0
- package/src/assets/video/Internets-Historia-HEVC-h265-HEVC-h265.mov +0 -0
- package/src/assets/video/Internets-Historia-HEVC-h265-vp9-chrome.webm +0 -0
- package/src/assets/video/chapters.vtt +25 -0
- package/src/assets/video/metadata.vtt +28 -0
- package/src/assets/video/movie-webm.webm +0 -0
- package/src/assets/video/videoplayer.vtt +25 -0
- package/src/atoms/.DS_Store +0 -0
- package/src/atoms/button/_button.scss +6 -9
- package/src/atoms/icon/_all-icons.zip +0 -0
- package/src/atoms/icon/spinner-white.svg +1 -9
- package/src/atoms/icon/spinner.svg +1 -9
- package/src/atoms/icon/sprite.svg +17 -0
- package/src/atoms/icon/step-backwards.svg +1 -0
- package/src/atoms/icon/step-forwards.svg +1 -0
- package/src/atoms/icon/subtitles.svg +1 -0
- package/src/atoms/meta/meta.config.js +1 -1
- package/src/atoms/tag/_tag.scss +2 -2
- package/src/base/_normalize.scss +1 -1
- package/src/base/fonts/_fonts.scss +8 -8
- package/src/components.js +1 -0
- package/src/configurations/_extends.scss +5 -1
- package/src/configurations/_variables.scss +3 -3
- package/src/configurations/colors/_colors-functions.scss +2 -3
- package/src/configurations/grid/_grid.scss +26 -7
- package/src/configurations/icons.json +1 -1
- package/src/configurations/typography/_typography.scss +61 -7
- package/src/molecules/.DS_Store +0 -0
- package/src/molecules/glider/_glider-course.scss +121 -0
- package/src/molecules/glider/_glider-hero.scss +327 -0
- package/src/molecules/glider/_glider.scss +3 -116
- package/src/molecules/glider/glider-course.js +7 -7
- package/src/molecules/glider/glider-hero.js +40 -0
- package/src/molecules/glider/glider.config.js +7 -0
- package/src/organisms/hero/_hero--dynamic-headline.scss +168 -0
- package/src/organisms/hero/_hero.scss +16 -0
- package/src/organisms/hero/hero.config.js +10 -1
- package/src/structures/_article.scss +3 -3
- package/src/utilities/_hide.scss +4 -0
- package/src/utilities/_links.scss +11 -0
- package/src/assets/css/footer/isolated-footer.css +0 -7367
- package/src/assets/css/footer/isolated-footer.css.map +0 -1
- package/src/assets/css/footer/isolated-footer.min.css +0 -2
- package/src/brandbook/internetstiftelsen/bildman/303/251r/bildman/303/251r.config.js +0 -5
- package/src/brandbook/internetstiftelsen/tonalitet och spr/303/245kbruk/tonalitet och spr/303/245kbruk.config.js" +0 -5
- package/src/pages/timeline/timeline.config.js +0 -19
package/src/atoms/tag/_tag.scss
CHANGED
|
@@ -11,9 +11,9 @@
|
|
|
11
11
|
z-index: z_index(middleground);
|
|
12
12
|
margin-right: rhythm(1);
|
|
13
13
|
margin-bottom: rhythm(1);
|
|
14
|
-
padding: rhythm(
|
|
14
|
+
padding: rhythm(1) rhythm(2);
|
|
15
15
|
font-size: $small-text;
|
|
16
|
-
line-height: 1
|
|
16
|
+
line-height: 1;
|
|
17
17
|
text-decoration: none;
|
|
18
18
|
text-transform: uppercase;
|
|
19
19
|
|
package/src/base/_normalize.scss
CHANGED
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
font-style: normal;
|
|
7
7
|
font-weight: normal;
|
|
8
8
|
src:
|
|
9
|
-
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/
|
|
10
|
-
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/
|
|
9
|
+
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/HKGrotesk-Light.woff2') format('woff2'),
|
|
10
|
+
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/HKGrotesk-Light.woff') format('woff');
|
|
11
11
|
font-display: swap;
|
|
12
12
|
}
|
|
13
13
|
|
|
@@ -16,8 +16,8 @@
|
|
|
16
16
|
font-style: normal;
|
|
17
17
|
font-weight: normal;
|
|
18
18
|
src:
|
|
19
|
-
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/
|
|
20
|
-
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/
|
|
19
|
+
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/HKGrotesk-Medium.woff2') format('woff2'),
|
|
20
|
+
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/HKGrotesk-Medium.woff') format('woff');
|
|
21
21
|
font-display: swap;
|
|
22
22
|
}
|
|
23
23
|
|
|
@@ -26,8 +26,8 @@
|
|
|
26
26
|
font-style: normal;
|
|
27
27
|
font-weight: normal;
|
|
28
28
|
src:
|
|
29
|
-
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/
|
|
30
|
-
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/
|
|
29
|
+
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/HKGrotesk-SemiBold.woff2') format('woff2'),
|
|
30
|
+
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/HKGrotesk-SemiBold.woff') format('woff');
|
|
31
31
|
font-display: swap;
|
|
32
32
|
}
|
|
33
33
|
|
|
@@ -36,8 +36,8 @@
|
|
|
36
36
|
font-style: normal;
|
|
37
37
|
font-weight: normal;
|
|
38
38
|
src:
|
|
39
|
-
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/
|
|
40
|
-
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/
|
|
39
|
+
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/HKGrotesk-Bold.woff2') format('woff2'),
|
|
40
|
+
url('https://static.internetstiftelsen.se/internetstiftelsen/fonts/HKGrotesk-Bold.woff') format('woff');
|
|
41
41
|
font-display: swap;
|
|
42
42
|
}
|
|
43
43
|
|
package/src/components.js
CHANGED
|
@@ -21,5 +21,6 @@ import './assets/js/responsivePosition';
|
|
|
21
21
|
import './assets/js/youtube';
|
|
22
22
|
import './molecules/glider/glider';
|
|
23
23
|
import './molecules/glider/glider-course';
|
|
24
|
+
import './molecules/glider/glider-hero';
|
|
24
25
|
import './molecules/context-menu/context-menu';
|
|
25
26
|
import './molecules/alert/alert';
|
|
@@ -146,13 +146,17 @@
|
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
&:disabled {
|
|
149
|
-
background-color: $color-
|
|
149
|
+
background-color: $color-concrete !important;
|
|
150
150
|
box-shadow: none;
|
|
151
151
|
cursor: not-allowed;
|
|
152
152
|
|
|
153
153
|
[class*='text'] {
|
|
154
154
|
color: $color-snow !important;
|
|
155
155
|
}
|
|
156
|
+
|
|
157
|
+
svg {
|
|
158
|
+
fill: $color-granit;
|
|
159
|
+
}
|
|
156
160
|
}
|
|
157
161
|
|
|
158
162
|
svg {
|
|
@@ -11,9 +11,9 @@ $font-family-medium: 'HK Grotesk Medium', sans-serif !default;
|
|
|
11
11
|
$font-family-bold: 'HK Grotesk Bold', sans-serif !default;
|
|
12
12
|
$font-family-mono: 'Roboto Mono Regular', monospace !default;
|
|
13
13
|
|
|
14
|
-
$headings-baseline: 0.
|
|
15
|
-
$body-baseline: 0.
|
|
16
|
-
$mono-baseline: 0.
|
|
14
|
+
$headings-baseline: 0.150 !default; // HK Semibold
|
|
15
|
+
$body-baseline: 0.150 !default; // HK Regular
|
|
16
|
+
$mono-baseline: 0.110 !default; // Roboto Mono Regular
|
|
17
17
|
|
|
18
18
|
// Size base
|
|
19
19
|
$size-base: 18px !default;
|
|
@@ -76,7 +76,7 @@ $colors: (
|
|
|
76
76
|
@each $key, $value in $map {
|
|
77
77
|
&#{if($key != $base, #{$separator}#{$key}, '')} {
|
|
78
78
|
@if type-of($value) == 'map' {
|
|
79
|
-
@include color_classes($value, $attribute, $prefix, $separator: '-', $element: $element);
|
|
79
|
+
@include color_classes($value, $attribute, $prefix: '.', $separator: '-', $element: $element);
|
|
80
80
|
}
|
|
81
81
|
@else {
|
|
82
82
|
@if ($element != '') {
|
|
@@ -94,13 +94,12 @@ $colors: (
|
|
|
94
94
|
}
|
|
95
95
|
|
|
96
96
|
/// Generate wordpress color classes with attribute and value
|
|
97
|
-
/// Generates this: .has-color
|
|
97
|
+
/// Generates this: .has-colorname-color
|
|
98
98
|
/// @group Colors
|
|
99
99
|
@mixin wordpress_color_classes($map, $attribute, $separator: '-', $suffix: '', $base: 'base') {
|
|
100
100
|
@each $key, $value in $map {
|
|
101
101
|
@if type-of($value) == 'map' {
|
|
102
102
|
&#{if($key != $base, #{$separator}#{$key}, '')} {
|
|
103
|
-
content: str-replace($key, 'color-', '');
|
|
104
103
|
@include wordpress_color_classes($value, $attribute, $separator, '-color');
|
|
105
104
|
}
|
|
106
105
|
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
1
|
@charset 'UTF-8';
|
|
2
2
|
|
|
3
|
+
@use "sass:math";
|
|
4
|
+
|
|
3
5
|
// Grid only
|
|
4
6
|
//
|
|
5
7
|
// Includes relevant variables and mixins for the flexbox grid
|
|
@@ -18,7 +20,8 @@
|
|
|
18
20
|
// Set the container width, and override it for fixed navbars in media queries.
|
|
19
21
|
|
|
20
22
|
@if $enable-grid-classes {
|
|
21
|
-
.wrapper
|
|
23
|
+
.wrapper,
|
|
24
|
+
%wrapper {
|
|
22
25
|
@include make-container();
|
|
23
26
|
@include make-container-max-widths();
|
|
24
27
|
|
|
@@ -57,6 +60,12 @@
|
|
|
57
60
|
> [class*='grid-']:nth-child(#{$i}) {
|
|
58
61
|
transform: translateY(rhythm($col-gap));
|
|
59
62
|
}
|
|
63
|
+
|
|
64
|
+
@include bp-only(sm) {
|
|
65
|
+
> [class*='grid-']:last-child {
|
|
66
|
+
transform: translateY(rhythm($gap));
|
|
67
|
+
}
|
|
68
|
+
}
|
|
60
69
|
}
|
|
61
70
|
}
|
|
62
71
|
|
|
@@ -75,45 +84,55 @@
|
|
|
75
84
|
@include make-asymmetric-cols($bp-gap, true);
|
|
76
85
|
}
|
|
77
86
|
|
|
78
|
-
@include bp-up(
|
|
79
|
-
$bp-gap: $gap * 1.25;
|
|
80
|
-
|
|
87
|
+
@include bp-up(sm) {
|
|
81
88
|
margin: rhythm($margin * 1.25) 0 0;
|
|
82
89
|
|
|
83
90
|
&:not(.asymmetric-reversed) {
|
|
91
|
+
$bp-gap: $gap * 1.25;
|
|
84
92
|
@include make-asymmetric-cols($bp-gap);
|
|
85
93
|
}
|
|
86
94
|
|
|
87
95
|
&.asymmetric-reversed {
|
|
96
|
+
$bp-gap: math.div($gap, 2);
|
|
88
97
|
@include make-asymmetric-cols($bp-gap, true);
|
|
89
98
|
}
|
|
90
99
|
}
|
|
91
100
|
|
|
101
|
+
@include bp-up(md) {
|
|
102
|
+
&.asymmetric-reversed {
|
|
103
|
+
margin-bottom: calc(100px);
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
92
107
|
@include bp-up(lg) {
|
|
93
|
-
|
|
108
|
+
|
|
94
109
|
|
|
95
110
|
margin: rhythm($margin * 1.5) 0 0;
|
|
96
111
|
|
|
97
112
|
&:not(.asymmetric-reversed) {
|
|
113
|
+
$bp-gap: $gap * 1.5;
|
|
98
114
|
@include make-asymmetric-cols($bp-gap);
|
|
99
115
|
}
|
|
100
116
|
|
|
101
117
|
&.asymmetric-reversed {
|
|
118
|
+
$bp-gap: $gap;
|
|
102
119
|
@include make-asymmetric-cols($bp-gap, true);
|
|
120
|
+
margin-bottom: calc(180px);
|
|
103
121
|
}
|
|
104
122
|
}
|
|
105
123
|
|
|
106
124
|
@include bp-up(xl) {
|
|
107
|
-
$bp-gap: $gap * 2;
|
|
108
|
-
|
|
109
125
|
margin: rhythm($margin * 2) 0 0;
|
|
110
126
|
|
|
111
127
|
&:not(.asymmetric-reversed) {
|
|
128
|
+
$bp-gap: $gap * 2;
|
|
112
129
|
@include make-asymmetric-cols($bp-gap);
|
|
113
130
|
}
|
|
114
131
|
|
|
115
132
|
&.asymmetric-reversed {
|
|
133
|
+
$bp-gap: $gap;
|
|
116
134
|
@include make-asymmetric-cols($bp-gap, true);
|
|
135
|
+
margin-bottom: calc(216px);
|
|
117
136
|
}
|
|
118
137
|
}
|
|
119
138
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
[{"id":"search","name":"Search"},{"id":"arrow-forwards","name":"Arrow Forwards"},{"id":"arrow-backwards","name":"Arrow Backwards"},{"id":"arrow-down","name":"Arrow Down"},{"id":"arrow-variant","name":"Arrow Variant"},{"id":"hamburger","name":"Hamburger"},{"id":"close","name":"Close"},{"id":"check","name":"Check"},{"id":"quote","name":"Quote"},{"id":"file","name":"File"},{"id":"download","name":"Download"},{"id":"upload","name":"Upload"},{"id":"filter","name":"Filter"},{"id":"read","name":"Read"},{"id":"pin","name":"Pin"},{"id":"user","name":"User"},{"id":"language","name":"Language"},{"id":"linkedin","name":"Linkedin"},{"id":"facebook","name":"Facebook"},{"id":"instagram","name":"Instagram"},{"id":"twitter","name":"Twitter"},{"id":"external-link","name":"External Link"},{"id":"app-share","name":"App Share"},{"id":"print","name":"Print"},{"id":"chapters","name":"Chapters"},{"id":"article","name":"Article"},{"id":"padlock","name":"Padlock"},{"id":"trash","name":"Trash"},{"id":"link","name":"Link"},{"id":"share","name":"Share"},{"id":"questionmark","name":"Questionmark"},{"id":"info","name":"Info"},{"id":"contrast","name":"Contrast"},{"id":"gauge","name":"Gauge"},{"id":"backward-15","name":"Backward 15"},{"id":"play","name":"Play"},{"id":"forward-60","name":"Forward 60"},{"id":"pause","name":"Pause"},{"id":"author","name":"Author"},{"id":"speaker","name":"Speaker"},{"id":"mute","name":"Mute"},{"id":"settings","name":"Settings"},{"id":"lte","name":"Lte"},{"id":"wifi","name":"Wifi"},{"id":"reception","name":"Reception"},{"id":"2g","name":"2g"},{"id":"3g","name":"3g"},{"id":"4g","name":"4g"},{"id":"5g","name":"5g"},{"id":"latency","name":"Latency"},{"id":"spinner","name":"Spinner"},{"id":"spinner-white","name":"Spinner White"},{"id":"3d","name":"3d"},{"id":"accessibility","name":"Accessibility"},{"id":"cafe","name":"Cafe"},{"id":"capacity","name":"Capacity"},{"id":"display","name":"Display"},{"id":"email","name":"Email"},{"id":"headset","name":"Headset"},{"id":"phone","name":"Phone"},{"id":"plus","name":"Plus"},{"id":"podcast","name":"Podcast"},{"id":"richtext-bold","name":"Richtext Bold"},{"id":"richtext-bullet-list","name":"Richtext Bullet List"},{"id":"richtext-italic","name":"Richtext Italic"},{"id":"streaming","name":"Streaming"},{"id":"time","name":"Time"},{"id":"drag-item","name":"Drag Item"},{"id":"personal-data","name":"Personal Data"},{"id":"romance","name":"Romance"},{"id":"shopping","name":"Shopping"},{"id":"warning","name":"Warning"}]
|
|
1
|
+
[{"id":"search","name":"Search"},{"id":"arrow-forwards","name":"Arrow Forwards"},{"id":"arrow-backwards","name":"Arrow Backwards"},{"id":"arrow-down","name":"Arrow Down"},{"id":"arrow-variant","name":"Arrow Variant"},{"id":"hamburger","name":"Hamburger"},{"id":"close","name":"Close"},{"id":"check","name":"Check"},{"id":"quote","name":"Quote"},{"id":"file","name":"File"},{"id":"download","name":"Download"},{"id":"upload","name":"Upload"},{"id":"filter","name":"Filter"},{"id":"read","name":"Read"},{"id":"pin","name":"Pin"},{"id":"user","name":"User"},{"id":"language","name":"Language"},{"id":"linkedin","name":"Linkedin"},{"id":"facebook","name":"Facebook"},{"id":"instagram","name":"Instagram"},{"id":"twitter","name":"Twitter"},{"id":"external-link","name":"External Link"},{"id":"app-share","name":"App Share"},{"id":"print","name":"Print"},{"id":"chapters","name":"Chapters"},{"id":"article","name":"Article"},{"id":"padlock","name":"Padlock"},{"id":"trash","name":"Trash"},{"id":"link","name":"Link"},{"id":"share","name":"Share"},{"id":"questionmark","name":"Questionmark"},{"id":"info","name":"Info"},{"id":"contrast","name":"Contrast"},{"id":"gauge","name":"Gauge"},{"id":"backward-15","name":"Backward 15"},{"id":"step-backwards","name":"Step Backwards"},{"id":"play","name":"Play"},{"id":"step-forwards","name":"Step Forwards"},{"id":"forward-60","name":"Forward 60"},{"id":"pause","name":"Pause"},{"id":"subtitles","name":"Subtitles"},{"id":"author","name":"Author"},{"id":"speaker","name":"Speaker"},{"id":"mute","name":"Mute"},{"id":"settings","name":"Settings"},{"id":"lte","name":"Lte"},{"id":"wifi","name":"Wifi"},{"id":"reception","name":"Reception"},{"id":"2g","name":"2g"},{"id":"3g","name":"3g"},{"id":"4g","name":"4g"},{"id":"5g","name":"5g"},{"id":"latency","name":"Latency"},{"id":"spinner","name":"Spinner"},{"id":"spinner-white","name":"Spinner White"},{"id":"3d","name":"3d"},{"id":"accessibility","name":"Accessibility"},{"id":"cafe","name":"Cafe"},{"id":"capacity","name":"Capacity"},{"id":"display","name":"Display"},{"id":"email","name":"Email"},{"id":"headset","name":"Headset"},{"id":"phone","name":"Phone"},{"id":"plus","name":"Plus"},{"id":"podcast","name":"Podcast"},{"id":"richtext-bold","name":"Richtext Bold"},{"id":"richtext-bullet-list","name":"Richtext Bullet List"},{"id":"richtext-italic","name":"Richtext Italic"},{"id":"streaming","name":"Streaming"},{"id":"time","name":"Time"},{"id":"drag-item","name":"Drag Item"},{"id":"personal-data","name":"Personal Data"},{"id":"romance","name":"Romance"},{"id":"shopping","name":"Shopping"},{"id":"warning","name":"Warning"}]
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
@charset 'UTF-8';
|
|
2
2
|
|
|
3
3
|
h1,
|
|
4
|
-
.alpha
|
|
4
|
+
.alpha,
|
|
5
|
+
%alpha {
|
|
5
6
|
@include plumber(
|
|
6
7
|
$font-size: 3,
|
|
7
8
|
$line-height: 4,
|
|
@@ -22,7 +23,8 @@ h1,
|
|
|
22
23
|
}
|
|
23
24
|
|
|
24
25
|
h2,
|
|
25
|
-
.beta
|
|
26
|
+
.beta,
|
|
27
|
+
%beta {
|
|
26
28
|
@include plumber(
|
|
27
29
|
$font-size: 2.2,
|
|
28
30
|
$line-height: 3,
|
|
@@ -43,7 +45,8 @@ h2,
|
|
|
43
45
|
}
|
|
44
46
|
|
|
45
47
|
h3,
|
|
46
|
-
.gamma
|
|
48
|
+
.gamma,
|
|
49
|
+
%gamma {
|
|
47
50
|
@include plumber(
|
|
48
51
|
$font-size: 2.2,
|
|
49
52
|
$line-height: 3,
|
|
@@ -53,7 +56,8 @@ h3,
|
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
h4,
|
|
56
|
-
.delta
|
|
59
|
+
.delta,
|
|
60
|
+
%delta {
|
|
57
61
|
@include plumber(
|
|
58
62
|
$font-size: 2,
|
|
59
63
|
$line-height: 3,
|
|
@@ -141,7 +145,8 @@ small {
|
|
|
141
145
|
);
|
|
142
146
|
}
|
|
143
147
|
|
|
144
|
-
.supersize
|
|
148
|
+
.supersize,
|
|
149
|
+
%supersize {
|
|
145
150
|
@include plumber(
|
|
146
151
|
$font-size: 3,
|
|
147
152
|
$line-height: 4,
|
|
@@ -168,12 +173,61 @@ small {
|
|
|
168
173
|
}
|
|
169
174
|
}
|
|
170
175
|
|
|
176
|
+
.godzilla {
|
|
177
|
+
@include plumber(
|
|
178
|
+
$leading-top: 0,
|
|
179
|
+
$leading-bottom: 0
|
|
180
|
+
);
|
|
181
|
+
|
|
182
|
+
line-height: 79px;
|
|
183
|
+
font-size: 120px;
|
|
184
|
+
font-family: $font-family-bold;
|
|
185
|
+
letter-spacing: -#{rem(5px)};
|
|
186
|
+
|
|
187
|
+
@include bp-up(sm) {
|
|
188
|
+
line-height: 100px;
|
|
189
|
+
font-size: 150px;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
@include bp-up(md) {
|
|
193
|
+
line-height: 135px;
|
|
194
|
+
font-size: 200px;
|
|
195
|
+
letter-spacing: -#{rem(10px)};
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
@include bp-up(lg) {
|
|
199
|
+
line-height: 201px;
|
|
200
|
+
font-size: 295px;
|
|
201
|
+
letter-spacing: -#{rem(20px)};
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
@include bp-up(xl) {
|
|
205
|
+
line-height: 247px;
|
|
206
|
+
font-size: 360px;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
// Special rule for decade starting with 1
|
|
210
|
+
@include m(19) {
|
|
211
|
+
&::first-letter {
|
|
212
|
+
letter-spacing: -#{rem(20px)};
|
|
213
|
+
|
|
214
|
+
@include bp-up(lg) {
|
|
215
|
+
letter-spacing: -#{rem(40px)};
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
@include bp-up(xl) {
|
|
219
|
+
letter-spacing: -#{rem(45px)};
|
|
220
|
+
}
|
|
221
|
+
}
|
|
222
|
+
}
|
|
223
|
+
}
|
|
224
|
+
|
|
171
225
|
.preamble,
|
|
172
226
|
%preamble {
|
|
173
227
|
|
|
174
228
|
@include plumber(
|
|
175
|
-
$font-size: 2.
|
|
176
|
-
$line-height:
|
|
229
|
+
$font-size: 2.55555,
|
|
230
|
+
$line-height: 4,
|
|
177
231
|
$leading-bottom: 4
|
|
178
232
|
);
|
|
179
233
|
|
|
Binary file
|
|
@@ -0,0 +1,121 @@
|
|
|
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
|
+
}
|