@internetstiftelsen/styleguide 2.17.16 → 2.18.0-beta.0.2
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 +1 -2
- package/src/_layout-logotypes.hbs +0 -1
- package/src/_logotype-sprite.hbs +1 -2
- package/src/app.scss +2 -0
- package/src/assets/images/bluffmejl.png +0 -0
- package/src/assets/js/youtube.js +1 -1
- package/src/atoms/button/_button.scss +25 -4
- package/src/atoms/button/button.config.js +1 -0
- package/src/atoms/button/button.hbs +1 -1
- package/src/atoms/file/file.hbs +1 -1
- package/src/atoms/file/filePreview.js +1 -1
- package/src/atoms/main-menu/_main-menu.scss +61 -0
- package/src/atoms/main-menu/main-menu.config.js +7 -4
- package/src/atoms/main-menu/main-menu.hbs +32 -0
- package/src/atoms/meta/_meta.scss +4 -0
- package/src/atoms/meta/meta.config.js +1 -0
- package/src/atoms/meta/meta.hbs +1 -1
- package/src/atoms/rating/_rating.scss +25 -0
- package/src/atoms/rating/rating.config.js +7 -0
- package/src/atoms/rating/rating.hbs +15 -0
- package/src/atoms/timeline/_timeline.scss +77 -0
- package/src/components.js +1 -0
- package/src/configurations/_wordpress.scss +1 -1
- package/src/globals.scss +1 -0
- package/src/molecules/card/_card.scss +10 -0
- package/src/molecules/card/card.config.js +1 -0
- package/src/molecules/card/card.hbs +1 -1
- package/src/molecules/glider/_glider.scss +32 -0
- package/src/molecules/glider/glider--single.hbs +122 -0
- package/src/molecules/glider/glider-single.js +40 -0
- package/src/molecules/glider/glider.config.js +8 -1
- package/src/organisms/hero/_hero.scss +9 -0
- package/src/pages/internetguider/internetguider.hbs +2 -2
- package/src/pages/timeline/timeline.config.js +19 -0
- package/src/pages/timeline/timeline.hbs +24 -0
- package/src/utilities/_font-size.scss +17 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@internetstiftelsen/styleguide",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.18.0-beta.0.2",
|
|
4
4
|
"main": "dist/components.js",
|
|
5
5
|
"ports": {
|
|
6
6
|
"fractal": "3000"
|
|
@@ -63,7 +63,6 @@
|
|
|
63
63
|
"onchange": "^6.1.0",
|
|
64
64
|
"postcss-cli": "^8.3.1",
|
|
65
65
|
"sass": "^1.35.1",
|
|
66
|
-
"sass-extract": "^2.1.0",
|
|
67
66
|
"stylelint": "^13.13.1",
|
|
68
67
|
"uglify-es": "^3.3.9",
|
|
69
68
|
"postcss-class-prefix": "^0.3.0"
|
package/src/_logotype-sprite.hbs
CHANGED
|
@@ -15,8 +15,7 @@
|
|
|
15
15
|
<symbol id="logotype-vertical" viewbox="0 0 34 324">
|
|
16
16
|
<path fill="#ff4069" d="M34 4.1v8.1h-3.8v4.1h-3.8v4.1h-3.8v4H19v4.1h-4.1v-4.1h-3.7v-4H7.5v-4.1H3.8v-4.1H0V4.1h3.8V0H15v4.1h4V0h11.3v4.1H34z"/><path fill="#ffffff" d="M28.6 6.8v2.7h-5.2V4.1H26v2.7h2.6z"/><path d="M12.6 184c-3.2 0-5.6-3-5.6-7.1 0-4.3 2.3-7.1 6.1-7.4h.2v3h-.2c-2.8.3-3.5 2.5-3.5 4.4 0 1.9.7 4.2 2.8 4.2 1.4 0 2.2-.8 2.8-2.7l1-3.6c.9-3.1 2.6-4.6 5.5-4.6 3 0 5.2 2.7 5.2 6.5 0 4-2.1 6.5-5.7 6.8H21v-3h.2c2-.2 3-1.5 3-3.9 0-2.2-.9-3.6-2.4-3.6s-2.2.7-2.8 2.8l-.8 3c-.3 1.3-.8 2.6-1.6 3.5-1 1-2.2 1.7-4 1.7zm14 15h-2.7v-5.5H7.4v-3h16.4V185h2.7v14zm-2.7 22h-5.3v8.1h-2.7V221H7.4v-3h19.2v11.8h-2.7V221zm2.7 25.3h-2.7v-5.5H7.4v-3h16.4v-5.5h2.7v14zm-2.7 5.5h-5.3v8.4h-2.7v-8.4h-5.7v9.6H7.4v-12.6h19.2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14zM23.9 46H10.3v4.8H7.5V38.2h2.7V43h13.6v-4.8h2.7v12.6h-2.7V46z"/>
|
|
17
17
|
</symbol>
|
|
18
|
-
<symbol id="logotype-goto10" viewbox="0 0
|
|
19
|
-
<path d="M29.5 14.5V31h-4.3l-.5-4.3c-1.6 2.9-4.9 4.7-9 4.7C5.7 31.4 1 24.1 1 15.7S5.6 0 15.7 0C21.5-.2 26.8 3.3 29 8.8l-4.8 2c-1.1-3.7-4.6-6.2-8.5-6-6.4 0-9.2 5.1-9.2 10.7 0 6.1 2.8 11 9.3 11 4.8 0 8.1-2.6 8.3-7.6h-6.7v-4.4h12.1zm3.4 5.6c-.2-6 4.5-10.9 10.4-11.1h.6c6-.1 10.9 4.6 11 10.6v.5c0 6.1-4.4 11.3-11 11.3s-11-5.2-11-11.3zm16.5 0c0-3.5-1.6-6.6-5.5-6.6s-5.5 3.1-5.5 6.6 1.6 6.7 5.6 6.7 5.4-3.1 5.4-6.7zm9.8 4.9V13.8h-3.5V9.4h3.5V4.1L64.4.3v9.1h5.4v4.4h-5.4v10.3c0 2.1 1 2.7 2.4 2.7 1 0 2.1-.3 3-.8v4.8c-1.3.4-2.6.6-3.9.6-4.2 0-6.7-2.5-6.7-6.4zm13.3-4.9c0-6.1 4.9-11 11-11s11 4.9 11 11-4.4 11.3-11 11.3-11-5.2-11-11.3zm16.5 0c0-3.5-1.6-6.6-5.5-6.6-4 0-5.5 3.1-5.5 6.6s1.6 6.7 5.5 6.7c3.9.1 5.5-3.1 5.5-6.7zM113.4.5V31H108V9.4h-7.1V5.3h4.1c2.1 0 3.2-.9 3.2-2.9V.5h5.2zm5.3 15.2c0-6.5 1-15.7 10.3-15.7 8.4 0 10.5 8.2 10.5 15.8s-2.1 15.6-10.2 15.6c-9.4 0-10.6-9.2-10.6-15.7zm15.2 0c0-4.9-.1-10.4-4.9-10.4-4.8 0-4.9 5.6-4.9 10.5s.1 10.5 5.1 10.5c4.6-.1 4.7-5.8 4.7-10.6z"/><path fill="#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1.7H168zm17.7-1.7v12.1h-2.5l-4.6-9.3-.2-.4v9.6h-1.8v-12h2.5l4.8 9.6v-9.6h1.8zm-74.2 1.7v8.7h3.1v1.7h-8v-1.7h3.1v-8.7h-3.1v-1.7h8v1.7h-3.1zm-90.6-1.7v12.1h-2.5l-4.6-9.3-.2-.4v9.6h-1.8v-12h2.5L19 55v-9.6h1.9zm10.6 0v1.7H28v10.4h-1.9V47.2h-3.5v-1.7h8.9zm3.6 1.7v3.3h5.4v1.7h-5.4v3.6h6.2v1.7h-8.1v-12h8.1v1.7h-6.2zm14 5.3h.1c.7-.1 1.3-.4 1.7-.9.7-.7 1-1.7.9-2.6.1-1-.3-1.9-1-2.6-.8-.7-1.9-1-2.9-.9h-4.5v12.1h1.9v-5H47l2.7 5H52l-2.9-5.1zm-3.7-1.6v-3.7h3.3c.6-.1 1.2.3 1.2.9v1.5c0 .6-.4 1.2-1.1 1.2H45.4zm18-5.4v12.1h-2.5l-4.6-9.3-.2-.4v9.6h-1.9v-12h2.5l4.7 9.6v-9.6h2zm4.6 1.7v3.3h5.4v1.7H68v3.6h6.2v1.7h-8.1v-12h8.1v1.7H68zm16.9-1.7v1.7h-3.5v10.4h-1.9V47.2H76v-1.7h8.9zM6.3 47.2v8.6h3.1v1.7h-8v-1.7h3.1v-8.6H1.3v-1.7h8v1.7h-3z"/>
|
|
18
|
+
<symbol id="logotype-goto10" viewbox="0 0 237.43 60"><circle fill="#fecd2e" cx="59.36" cy="19.79" r="19.79"/><circle fill="#fecd2e" cx="138.5" cy="19.79" r="19.79"/><circle fill="#fecd2e" cx="217.64" cy="19.79" r="19.79"/><path fill="#fecd2e" d="M79.14 0v19.79h9.89v19.78h19.79V19.79h9.89V0zM178.07 0h-7.42v19.79h7.42v19.78h19.79V0zM19.79 0C8.86 0 0 8.86 0 19.79s8.86 19.79 19.79 19.79 19.79-8.86 19.79-19.79H19.79V0z"/><path d="M70.97 55.69c0 1.55-1.44 2.67-3.44 2.67-2.08 0-3.46-1.11-3.6-2.9v-.1h1.44v.08c.15 1.34 1.23 1.63 2.12 1.63s2.02-.35 2.02-1.36c0-.69-.38-1.09-1.3-1.35l-1.75-.49c-1.53-.43-2.23-1.25-2.23-2.61 0-1.44 1.33-2.48 3.17-2.48 1.97 0 3.18 1 3.33 2.73v.1H69.3v-.09c-.09-.96-.72-1.45-1.89-1.45-1.08 0-1.75.45-1.75 1.18s.35 1.08 1.38 1.36l1.44.41c.63.14 1.22.41 1.73.8.52.49.8 1.17.76 1.87zM78.31 48.99v1.31h-2.68v7.87h-1.45V50.3H71.5v-1.31zM89.01 50.3v2.53h3.94v1.32h-3.94v4.02h-1.45v-9.18h5.71v1.31zM101.27 48.99v1.31H98.6v7.87h-1.45V50.3h-2.68v-1.31zM103.94 50.3v2.53h4.09v1.32h-4.09v2.7h4.7v1.32h-6.15v-9.18h6.15v1.31zM115.64 56.85v1.32h-5.51v-9.18h1.44v7.86zM123.07 55.69c0 1.55-1.45 2.67-3.44 2.67-2.08 0-3.46-1.11-3.6-2.9v-.1h1.44v.08c.15 1.34 1.24 1.63 2.13 1.63s2.02-.35 2.02-1.36c0-.69-.37-1.09-1.29-1.35l-1.76-.49c-1.52-.43-2.23-1.25-2.23-2.61 0-1.44 1.34-2.48 3.17-2.48 1.97 0 3.19 1 3.34 2.73v.1h-1.44v-.09c-.08-.96-.72-1.45-1.89-1.45-1.08 0-1.75.45-1.75 1.18s.35 1.08 1.38 1.36l1.42.41c1.24.34 2.5.91 2.5 2.67zM125.94 50.3v2.53h4.1v1.32h-4.1v2.7h4.71v1.32h-6.16v-9.18h6.16v1.31zM139.05 48.99v9.18h-1.93l-3.48-7.04-.14-.27v7.31h-1.39v-9.18h1.91l3.62 7.26v-7.26zM83.58 50.3v6.55h2.32v1.32h-6.12v-1.32h2.35V50.3h-2.35v-1.31h6.12v1.31zM14.96 48.99v9.17h-1.92l-3.48-7.03-.13-.27v7.3H8.02v-9.17h1.93l3.61 7.26v-7.26zM23.07 48.99v1.31h-2.69v7.86h-1.45V50.3h-2.67v-1.31zM25.8 50.3v2.53h4.1v1.31h-4.1v2.71h4.7v1.31h-6.14v-9.17h6.14v1.31zM36.47 54.31l.09-.02c.49-.07.96-.31 1.31-.67.49-.53.73-1.25.68-1.97 0-.91-.23-1.57-.69-2-.46-.44-1.22-.67-2.2-.67H32.2v9.18h1.44v-3.81h1.33v.03l2.08 3.77h1.66l-2.24-3.84zM33.6 53.1v-2.8h2.52c.46-.06.88.28.93.74.01.05.01.1.01.15v.98c.03.49-.34.9-.83.94H33.6zM47.34 48.99v9.17h-1.92l-3.48-7.03-.13-.27v7.3H40.4v-9.17h1.93l3.6 7.26v-7.26zM50.53 50.3v2.53h4.09v1.31h-4.09v2.71h4.7v1.31h-6.15v-9.17h6.15v1.31zM63.38 48.99v1.31H60.7v7.87h-1.45V50.3h-2.68v-1.31zM3.91 50.3v6.53h2.32v1.31H.12v-1.31h2.34V50.3H.12v-1.31h6.11v1.31z"/><path d="M156.62 48.99v-1.83h-4.98v1.83h-1.8v-1.83h-4.98v1.83h-1.66v3.67h1.66v1.83h1.65v1.83h1.66v1.84h1.66V60h1.8v-1.83h1.66v-1.84h1.67V54.5h1.66v-1.83h1.67V49h-1.67zm-.48 2.43h-2.31v-2.44h1.18v1.23h1.13v1.21z" style="fill:#ff4069"/><path style="fill:#fff" d="M153.83 48.99v2.43h2.31v-1.2h-1.13v-1.23z"/>
|
|
20
19
|
</symbol>
|
|
21
20
|
<symbol id="logotype-bredbandskollen" viewbox="0 0 315 60">
|
|
22
21
|
<path d="M.8 0h10.6c4.6 0 9.8 2.1 9.8 8.3 0 2.5-1.3 4.8-3.4 6.1 2.9 1.4 4.8 4.3 4.9 7.5 0 5.7-4.8 8.9-10 8.9H.8V0zm11.1 12.4c2.1 0 4.2-.8 4.2-3.8 0-2.4-2-3.6-4.6-3.6H6.3v7.4h5.6zm.9 13.1c2.8 0 4.5-1.4 4.5-4.3 0-2.2-1.8-4-4.7-4H6.3v8.3h6.5zM26.5 9h5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"/>
|
package/src/app.scss
CHANGED
|
Binary file
|
package/src/assets/js/youtube.js
CHANGED
|
@@ -16,7 +16,7 @@ function onPlayerReady(el, e) {
|
|
|
16
16
|
function onPlayerStateChange(el, e) {
|
|
17
17
|
if (e.data === YT.PlayerState.PLAYING) {
|
|
18
18
|
el.getElementsByTagName('img')[0].style.zIndex = '-1';
|
|
19
|
-
el.getElementsByTagName('
|
|
19
|
+
el.getElementsByTagName('button')[0].style.display = 'none';
|
|
20
20
|
}
|
|
21
21
|
}
|
|
22
22
|
|
|
@@ -219,6 +219,13 @@
|
|
|
219
219
|
height: $icon-size;
|
|
220
220
|
fill: $color-cyberspace;
|
|
221
221
|
}
|
|
222
|
+
|
|
223
|
+
@include m(small-icon) {
|
|
224
|
+
@include e(icon) {
|
|
225
|
+
width: $icon-size-small;
|
|
226
|
+
height: $icon-size-small;
|
|
227
|
+
}
|
|
228
|
+
}
|
|
222
229
|
}
|
|
223
230
|
|
|
224
231
|
@include m(cyberspace) {
|
|
@@ -364,11 +371,18 @@
|
|
|
364
371
|
@include m(peacock) {
|
|
365
372
|
color: $color-peacock;
|
|
366
373
|
|
|
367
|
-
&:hover
|
|
368
|
-
&:focus {
|
|
374
|
+
&:hover {
|
|
369
375
|
color: $color-peacock-light;
|
|
370
376
|
}
|
|
371
377
|
|
|
378
|
+
&:focus {
|
|
379
|
+
color: $color-peacock;
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
&:hover:focus {
|
|
383
|
+
color: $color-peacock;
|
|
384
|
+
}
|
|
385
|
+
|
|
372
386
|
@include e(text) {
|
|
373
387
|
color: $color-cyberspace;
|
|
374
388
|
}
|
|
@@ -382,9 +396,16 @@
|
|
|
382
396
|
box-shadow: 0 0 0 1px inset $color-peacock;
|
|
383
397
|
color: $color-peacock-light;
|
|
384
398
|
|
|
385
|
-
&:hover
|
|
399
|
+
&:hover {
|
|
400
|
+
color: $color-peacock;
|
|
401
|
+
}
|
|
402
|
+
|
|
386
403
|
&:focus {
|
|
387
|
-
|
|
404
|
+
color: $color-peacock-light;
|
|
405
|
+
}
|
|
406
|
+
|
|
407
|
+
&:hover:focus {
|
|
408
|
+
color: $color-peacock-light;
|
|
388
409
|
}
|
|
389
410
|
|
|
390
411
|
@include e(text) {
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
{{{attr attributes}}}
|
|
7
7
|
{{#if aria_controls}}aria-controls="{{ aria_controls }}"{{/if}}
|
|
8
8
|
>
|
|
9
|
-
<span class="a-button__text">{{ text }}</span>
|
|
9
|
+
<span class="a-button__text"{{#if alternative_text}} data-alternative-text="{{alternative_text}}{{/if}}">{{ text }}</span>
|
|
10
10
|
{{#if icon}}
|
|
11
11
|
{{> @icon id=icon additional_classes="a-button__icon"}}
|
|
12
12
|
{{/if}}
|
package/src/atoms/file/file.hbs
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<div class="field-group{{#unless has_preview}} align-items-center{{/unless}}">
|
|
2
2
|
{{#if has_preview}}
|
|
3
3
|
<div class="a-file-preview" data-label="Förhandsvisning">
|
|
4
|
-
<img data-id="filePreview" alt="Förhandsvisning" src="
|
|
4
|
+
<img data-id="filePreview" alt="Förhandsvisning" src="">
|
|
5
5
|
</div>
|
|
6
6
|
{{/if}}
|
|
7
7
|
<input type="{{type}}" id="{{id}}" {{#if is_invalid}}aria-invalid="true"{{/if}} class="a-file {{#if modifier}} {{modifier}}{{/if}}" data-multiple-caption="{count} filer valda" {{#if is_multiple}} multiple{{/if}} {{#if has_preview}}accept=".jpg, .jpeg, .png, .gif" data-id="fileInput"{{/if}}>
|
|
@@ -15,6 +15,7 @@
|
|
|
15
15
|
li {
|
|
16
16
|
display: flex;
|
|
17
17
|
align-items: center;
|
|
18
|
+
position: relative;
|
|
18
19
|
|
|
19
20
|
&:last-child {
|
|
20
21
|
#{$root}#{$element-separator}link {
|
|
@@ -193,4 +194,64 @@
|
|
|
193
194
|
pointer-events: none;
|
|
194
195
|
}
|
|
195
196
|
}
|
|
197
|
+
|
|
198
|
+
@include e(subnav) {
|
|
199
|
+
position: absolute;
|
|
200
|
+
left: 0;
|
|
201
|
+
top: calc(100% - #{rhythm(1)});
|
|
202
|
+
margin: 0;
|
|
203
|
+
padding: 0;
|
|
204
|
+
background-color: $color-snow;
|
|
205
|
+
border: 1px solid $color-ash;
|
|
206
|
+
|
|
207
|
+
&::after,
|
|
208
|
+
&:before {
|
|
209
|
+
bottom: 100%;
|
|
210
|
+
left: rhythm(4);
|
|
211
|
+
border: solid transparent;
|
|
212
|
+
content: '';
|
|
213
|
+
height: 0;
|
|
214
|
+
width: 0;
|
|
215
|
+
position: absolute;
|
|
216
|
+
pointer-events: none;
|
|
217
|
+
}
|
|
218
|
+
|
|
219
|
+
&::after {
|
|
220
|
+
border-color: rgba(255, 255, 255, 0);
|
|
221
|
+
border-bottom-color: $color-snow;
|
|
222
|
+
border-width: 15px;
|
|
223
|
+
margin-left: -15px;
|
|
224
|
+
}
|
|
225
|
+
&::before {
|
|
226
|
+
border-color: rgba(238, 238, 238, 0);
|
|
227
|
+
border-bottom-color: $color-ash;
|
|
228
|
+
border-width: 16px;
|
|
229
|
+
margin-left: -16px;
|
|
230
|
+
}
|
|
231
|
+
|
|
232
|
+
&[aria-hidden='true'] {
|
|
233
|
+
display: none;
|
|
234
|
+
}
|
|
235
|
+
|
|
236
|
+
@include e(item) {
|
|
237
|
+
width: 100%;
|
|
238
|
+
|
|
239
|
+
& + & {
|
|
240
|
+
border-top: 1px solid $color-ash;
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
a {
|
|
244
|
+
color: $color-cyberspace;
|
|
245
|
+
display: block;
|
|
246
|
+
width: 100%;
|
|
247
|
+
padding: rhythm(0.5) rhythm(2);
|
|
248
|
+
text-decoration: none;
|
|
249
|
+
white-space: nowrap;
|
|
250
|
+
|
|
251
|
+
&:hover {
|
|
252
|
+
text-decoration: underline;
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
}
|
|
256
|
+
}
|
|
196
257
|
}
|
|
@@ -25,11 +25,14 @@ module.exports = {
|
|
|
25
25
|
hide_mobile: true
|
|
26
26
|
},
|
|
27
27
|
{
|
|
28
|
-
text: '
|
|
29
|
-
url:
|
|
28
|
+
text: 'Ämnen',
|
|
29
|
+
url: false,
|
|
30
30
|
is_current: false,
|
|
31
|
-
icon:
|
|
32
|
-
hide_mobile: true
|
|
31
|
+
icon: 'icon-arrow-down',
|
|
32
|
+
hide_mobile: true,
|
|
33
|
+
has_dropdown: true,
|
|
34
|
+
has_expandable: true,
|
|
35
|
+
controls: 'dropdown'
|
|
33
36
|
},
|
|
34
37
|
{
|
|
35
38
|
text: 'Bli medlem',
|
|
@@ -37,6 +37,38 @@
|
|
|
37
37
|
{{/if}}
|
|
38
38
|
{{#if url}}</a>{{else}}</button>{{/if}}
|
|
39
39
|
{{/if}}
|
|
40
|
+
|
|
41
|
+
{{#if has_dropdown}}
|
|
42
|
+
<ul id="dropdown" class="a-main-menu__subnav u-box-shadow-card">
|
|
43
|
+
<li class="a-main-menu__subnav__item">
|
|
44
|
+
<a href="#">Desinformation</a>
|
|
45
|
+
</li>
|
|
46
|
+
<li class="a-main-menu__subnav__item">
|
|
47
|
+
<a href="#">Föräldraskap</a>
|
|
48
|
+
</li>
|
|
49
|
+
<li class="a-main-menu__subnav__item">
|
|
50
|
+
<a href="#">Integritet</a>
|
|
51
|
+
</li>
|
|
52
|
+
<li class="a-main-menu__subnav__item">
|
|
53
|
+
<a href="#">Källkritik</a>
|
|
54
|
+
</li>
|
|
55
|
+
<li class="a-main-menu__subnav__item">
|
|
56
|
+
<a href="#">Ordlista</a>
|
|
57
|
+
</li>
|
|
58
|
+
<li class="a-main-menu__subnav__item">
|
|
59
|
+
<a href="#">Så funkar internet</a>
|
|
60
|
+
</li>
|
|
61
|
+
<li class="a-main-menu__subnav__item">
|
|
62
|
+
<a href="#">Sökkritik</a>
|
|
63
|
+
</li>
|
|
64
|
+
<li class="a-main-menu__subnav__item">
|
|
65
|
+
<a href="#">Vanliga IT-brott</a>
|
|
66
|
+
</li>
|
|
67
|
+
<li class="a-main-menu__subnav__item">
|
|
68
|
+
<a href="#">Yttrandefrihet</a>
|
|
69
|
+
</li>
|
|
70
|
+
</ul>
|
|
71
|
+
{{/if}}
|
|
40
72
|
</li>
|
|
41
73
|
{{/each}}
|
|
42
74
|
</ul>
|
package/src/atoms/meta/meta.hbs
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
<div class="a-meta{{#if is_light}} a-meta--light{{/if}}{{#if color}} a-meta--{{color}}{{/if}}{{#if lowercase}} a-meta--lowercase{{/if}}">{{#if icon}}{{>@icon id=this.icon}} {{/if}}{{{text}}}</div>
|
|
1
|
+
<div class="a-meta{{#if is_light}} a-meta--light{{/if}}{{#if color}} a-meta--{{color}}{{/if}}{{#if lowercase}} a-meta--lowercase{{/if}}{{#if additional_classes}} {{additional_classes}}{{/if}}">{{#if icon}}{{>@icon id=this.icon}} {{/if}}{{{text}}}</div>
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
@include atom(rating) {
|
|
4
|
+
display: inline-flex;
|
|
5
|
+
flex-direction: row-reverse;
|
|
6
|
+
|
|
7
|
+
> label {
|
|
8
|
+
width: $icon-size-large * 1.5;
|
|
9
|
+
height: $icon-size-large * 1.5;
|
|
10
|
+
display: inline-flex;
|
|
11
|
+
background-position: center center;
|
|
12
|
+
background-repeat: no-repeat;
|
|
13
|
+
background-size: 36px 36px;
|
|
14
|
+
background-image: url("data:image/svg+xml,%3C%3Fxml version='1.0' encoding='utf-8'%3F%3E%3C!-- Generator: Adobe Illustrator 25.4.1, SVG Export Plug-In . SVG Version: 6.00 Build 0) --%3E%3Csvg version='1.1' id='Layer_1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' x='0px' y='0px' viewBox='0 0 300 255' style='enable-background:new 0 0 300 255;' xml:space='preserve'%3E%3Cstyle type='text/css'%3E .st0%7Bfill:%238E9297;%7D%0A%3C/style%3E%3Cpath class='st0' d='M266.9,36.7V0.4h-99v36.3h-35.8V0.4h-99v36.3h-33v72.8h33.2v36.3h32.9v36.3h33.2v36.6h32.9V255h35.8v-36.3H201 v-36.6h33v-36.3h32.9v-36.3h33.2V36.7H266.9z M257.5,85h-45.7V36.7H235v24.5h22.5V85z'/%3E%3C/svg%3E%0A");
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
@include e(radio) {
|
|
18
|
+
&:hover,
|
|
19
|
+
&:checked {
|
|
20
|
+
~ label {
|
|
21
|
+
background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 300 255'%3E%3Cpath d='M266.9 36.7V.4h-99v36.3h-35.8V.4h-99v36.3H.1v72.8h33.2v36.3h32.9v36.3h33.2v36.6h32.9V255h35.8v-36.3H201v-36.6h33v-36.3h32.9v-36.3h33.2V36.7h-33.2zM257.5 85h-45.7V36.7H235v24.5h22.5V85z' fill='%23ff4069'/%3E%3C/svg%3E");
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
}
|
|
25
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
<form>
|
|
2
|
+
<fieldset class="a-rating{{#if additional_classes}} {{additional_classes}}{{/if}}">
|
|
3
|
+
<legend>Vad tyckte du om kursen?</legend>
|
|
4
|
+
<input type="radio" name="rating" value="5" class="a-rating__radio" id="rating-5">
|
|
5
|
+
<label for="rating-5" class="a-rating__label"><span class="u-visuallyhidden">betyg 5 av 5</span></label>
|
|
6
|
+
<input type="radio" name="rating" value="4" class="a-rating__radio" id="rating-4">
|
|
7
|
+
<label for="rating-4" class="a-rating__label "><span class="u-visuallyhidden">betyg 4 av 5</span></label>
|
|
8
|
+
<input type="radio" name="rating" value="3" class="a-rating__radio" id="rating-3">
|
|
9
|
+
<label for="rating-3" class="a-rating__label "><span class="u-visuallyhidden">betyg 3 av 5</span></label>
|
|
10
|
+
<input type="radio" name="rating" value="2" class="a-rating__radio" id="rating-2">
|
|
11
|
+
<label for="rating-2" class="a-rating__label "><span class="u-visuallyhidden">betyg 2 av 5</span></label>
|
|
12
|
+
<input type="radio" name="rating" value="1" class="a-rating__radio" id="rating-1">
|
|
13
|
+
<label for="rating-1" class="a-rating__label "><span class="u-visuallyhidden">betyg 1 av 5</span></label>
|
|
14
|
+
</fieldset>
|
|
15
|
+
</form>
|
|
@@ -0,0 +1,77 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
@include atom(timeline) {
|
|
4
|
+
position: relative;
|
|
5
|
+
align-items: center;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
font-family: $font-family-headings;
|
|
9
|
+
width: 50px;
|
|
10
|
+
flex-grow: 0;
|
|
11
|
+
flex-shrink: 0;
|
|
12
|
+
|
|
13
|
+
@include bp-up(lg) {
|
|
14
|
+
font-size: 170%;
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
&::after {
|
|
18
|
+
content: '';
|
|
19
|
+
display: flex;
|
|
20
|
+
background-color: $color-cyberspace;
|
|
21
|
+
height: 100%;
|
|
22
|
+
width: 3px;
|
|
23
|
+
order: 3;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
@include m(first) {
|
|
27
|
+
&::before {
|
|
28
|
+
content: '';
|
|
29
|
+
display: flex;
|
|
30
|
+
border: 3px solid $color-cyberspace;
|
|
31
|
+
width: 50px;
|
|
32
|
+
height: 50px;
|
|
33
|
+
border-radius: 50%;
|
|
34
|
+
background-color: $color-snow;
|
|
35
|
+
order: 2;
|
|
36
|
+
flex-grow: 0;
|
|
37
|
+
flex-shrink: 0;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
@include atom(timeline-item) {
|
|
43
|
+
position: relative !important;
|
|
44
|
+
overflow: visible !important;
|
|
45
|
+
|
|
46
|
+
@include card-shadow($color-cyberspace, 0.2);
|
|
47
|
+
|
|
48
|
+
&::before {
|
|
49
|
+
content: '';
|
|
50
|
+
display: flex;
|
|
51
|
+
height: 24px;
|
|
52
|
+
width: 24px;
|
|
53
|
+
border-radius: 50%;
|
|
54
|
+
background-color: $color-snow;
|
|
55
|
+
border: 3px solid $color-cyberspace;
|
|
56
|
+
position: absolute;
|
|
57
|
+
z-index: 1;
|
|
58
|
+
left: -48px;
|
|
59
|
+
top: 50%;
|
|
60
|
+
transform: translateY(-50%);
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
&::after {
|
|
64
|
+
content: '';
|
|
65
|
+
display: flex;
|
|
66
|
+
position: absolute;
|
|
67
|
+
width: 0;
|
|
68
|
+
height: 0;
|
|
69
|
+
border-style: solid;
|
|
70
|
+
left: -15px;
|
|
71
|
+
top: 50%;
|
|
72
|
+
transform: translateY(-50%);
|
|
73
|
+
border-width: 30px 15px 30px 0;
|
|
74
|
+
border-color: transparent $color-snow transparent transparent;
|
|
75
|
+
|
|
76
|
+
}
|
|
77
|
+
}
|
package/src/components.js
CHANGED
package/src/globals.scss
CHANGED
|
@@ -178,6 +178,16 @@
|
|
|
178
178
|
@include e(bottom) {
|
|
179
179
|
margin-top: 0;
|
|
180
180
|
}
|
|
181
|
+
|
|
182
|
+
@include m(flipped) {
|
|
183
|
+
flex-direction: row-reverse;
|
|
184
|
+
|
|
185
|
+
@include e(media) {
|
|
186
|
+
border-top-right-radius: $border-radius;
|
|
187
|
+
border-top-left-radius: 0;
|
|
188
|
+
border-bottom-right-radius: $border-radius;
|
|
189
|
+
}
|
|
190
|
+
}
|
|
181
191
|
}
|
|
182
192
|
}
|
|
183
193
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<{{#if top_level}}article{{else}}div{{/if}} class="m-card{{#if is_padded}} m-card--padded{{/if}}{{#if is_wide}} m-card--wide{{/if}}{{#if has_shadow}} m-card--shadow{{/if}}{{#if has_border}} m-card--bordered{{/if}}{{#if teaser}} m-card--teaser{{/if}}">
|
|
1
|
+
<{{#if top_level}}article{{else}}div{{/if}} class="m-card{{#if is_padded}} m-card--padded{{/if}}{{#if is_wide}} m-card--wide{{/if}}{{#if has_shadow}} m-card--shadow{{/if}}{{#if has_border}} m-card--bordered{{/if}}{{#if teaser}} m-card--teaser{{/if}}{{#if modifier}} {{modifier}}{{/if}}">
|
|
2
2
|
{{#if has_icon_overlay}}
|
|
3
3
|
{{>@icon-overlay overlay_icon="play" additional_classes="m-card__image m-card__media"}}
|
|
4
4
|
{{/if}}
|
|
@@ -10,6 +10,12 @@
|
|
|
10
10
|
margin-bottom: rhythm(2);
|
|
11
11
|
padding-right: rhythm(8);
|
|
12
12
|
padding-left: rhythm(8);
|
|
13
|
+
|
|
14
|
+
@include m(single) {
|
|
15
|
+
padding-left: 0;
|
|
16
|
+
padding-right: 0;
|
|
17
|
+
margin-top: 0;
|
|
18
|
+
}
|
|
13
19
|
}
|
|
14
20
|
|
|
15
21
|
.glider {
|
|
@@ -57,6 +63,7 @@
|
|
|
57
63
|
margin-left: 1px;
|
|
58
64
|
padding: rhythm(2) 0;
|
|
59
65
|
user-select: none;
|
|
66
|
+
overflow: hidden;
|
|
60
67
|
|
|
61
68
|
img {
|
|
62
69
|
display: block;
|
|
@@ -91,6 +98,16 @@
|
|
|
91
98
|
}
|
|
92
99
|
}
|
|
93
100
|
}
|
|
101
|
+
|
|
102
|
+
@include m(single) {
|
|
103
|
+
margin-left: 0;
|
|
104
|
+
padding-left: $grid-gutter-width;
|
|
105
|
+
padding-right: $grid-gutter-width;
|
|
106
|
+
|
|
107
|
+
&::after {
|
|
108
|
+
display: none;
|
|
109
|
+
}
|
|
110
|
+
}
|
|
94
111
|
}
|
|
95
112
|
|
|
96
113
|
.glider-nav {
|
|
@@ -135,6 +152,21 @@
|
|
|
135
152
|
}
|
|
136
153
|
}
|
|
137
154
|
|
|
155
|
+
.glider-single-prev,
|
|
156
|
+
.glider-single-next {
|
|
157
|
+
&.disabled {
|
|
158
|
+
display: none;
|
|
159
|
+
|
|
160
|
+
+ .glider-single-finish {
|
|
161
|
+
display: inline-flex;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.glider-single-finish {
|
|
167
|
+
display: none;
|
|
168
|
+
}
|
|
169
|
+
|
|
138
170
|
.glider-hide {
|
|
139
171
|
opacity: 0;
|
|
140
172
|
}
|
|
@@ -0,0 +1,122 @@
|
|
|
1
|
+
<div class="wrapper u-p-x-0">
|
|
2
|
+
<div class="glider-contain glider-contain--single">
|
|
3
|
+
<div class="glider{{#if single}} js-glider-single{{else}} js-glider{{/if}}">
|
|
4
|
+
<div class="glider-slide glider-slide--single">
|
|
5
|
+
<div class="row flex-column-reverse flex-lg-row">
|
|
6
|
+
<div class="grid-18 grid-lg-8">
|
|
7
|
+
<div class="u-m-b-2">
|
|
8
|
+
{{>@meta text="Introduktion"}}
|
|
9
|
+
<h1>Känn igen ett bluffmejl</h1>
|
|
10
|
+
<div class="a-meta a-meta--lowercase">
|
|
11
|
+
<svg class="icon">
|
|
12
|
+
<use xlink:href="#icon-read"></use>
|
|
13
|
+
</svg>
|
|
14
|
+
3 min läsning
|
|
15
|
+
</div>
|
|
16
|
+
</div>
|
|
17
|
+
<p>Bluffmejl ser oftast ut som vanliga mejl. Avsändaren vill att du ska klicka på länkar och lämna privat information utan att tänka. Du kan uppmanas uppge ditt lösenord, dina kontokortsuppgifter eller annan personlig information.</p>
|
|
18
|
+
<div id="slide-1-ImageContainerMobile"></div>
|
|
19
|
+
<nav>
|
|
20
|
+
{{> @button el="button" button_type="button" icon="arrow-forwards" additional_classes="a-button--jade-light glider-single-next js-glider-next" text="Starta kursen"}}
|
|
21
|
+
</nav>
|
|
22
|
+
</div>
|
|
23
|
+
<div class="grid-18 grid-lg-9 offset-lg-1 u-hide-md" id="slide-1-ImageContainer">
|
|
24
|
+
<div class="wp-block-image" data-responsive="xs:slide-1-ImageContainerMobile,lg:slide-1-ImageContainer">
|
|
25
|
+
<figure class="size-large">
|
|
26
|
+
<img src="/assets/images/hero.jpg" alt="kursbild" class="u-border-radius">
|
|
27
|
+
</figure>
|
|
28
|
+
</div>
|
|
29
|
+
</div>
|
|
30
|
+
</div>
|
|
31
|
+
</div>
|
|
32
|
+
<div class="glider-slide glider-slide--single">
|
|
33
|
+
<div class="row flex-column-reverse flex-lg-row">
|
|
34
|
+
<div class="grid-18 grid-lg-8">
|
|
35
|
+
<div class="u-m-b-2">
|
|
36
|
+
<div class="a-meta a-meta--wrap">
|
|
37
|
+
Känn igen ett bluffmejl - Steg 1 av 3
|
|
38
|
+
</div>
|
|
39
|
+
<h2 class="alpha">Varför får man bluffmelj?</h2>
|
|
40
|
+
</div>
|
|
41
|
+
<p>Bluffmejl ser oftast ut som vanliga mejl. Avsändaren vill att du ska klicka på länkar och lämna privat information utan att tänka. Du kan uppmanas uppge ditt lösenord, dina kontokortsuppgifter eller annan personlig information.</p>
|
|
42
|
+
<p>Bluffmejl ser oftast ut som vanliga mejl. Avsändaren vill att du ska klicka på länkar och lämna privat information utan att tänka. Du kan uppmanas uppge ditt lösenord, dina kontokortsuppgifter eller annan personlig information.</p>
|
|
43
|
+
<div id="slide-2-ImageContainerMobile"></div>
|
|
44
|
+
<nav>
|
|
45
|
+
{{> @button el="button" button_type="button" icon="arrow-backwards" additional_classes="a-button--icon-left a-button--transparent a-button--transparent--small-icon glider-single-prev js-glider-prev" text="Gå bakåt"}}
|
|
46
|
+
{{> @button el="button" button_type="button" icon="arrow-forwards" additional_classes="a-button--peacock-light glider-single-next js-glider-next" text="Gå framåt" }}
|
|
47
|
+
</nav>
|
|
48
|
+
</div>
|
|
49
|
+
<div class="grid-18 grid-lg-9 offset-lg-1 u-hide-md" id="slide-2-ImageContainer">
|
|
50
|
+
<div class="wp-block-image" data-responsive="xs:slide-2-ImageContainerMobile,lg:slide-2-ImageContainer">
|
|
51
|
+
<figure class="size-large">
|
|
52
|
+
<figcaption class="u-m-b-1">Exempel på bluffmejl</figcaption>
|
|
53
|
+
<img src="/assets/images/bluffmejl.png" alt="kursbild" class="u-border-radius">
|
|
54
|
+
</figure>
|
|
55
|
+
</div>
|
|
56
|
+
</div>
|
|
57
|
+
</div>
|
|
58
|
+
</div>
|
|
59
|
+
<div class="glider-slide glider-slide--single">
|
|
60
|
+
<div class="row flex-column-reverse flex-lg-row">
|
|
61
|
+
<div class="grid-18 grid-lg-8">
|
|
62
|
+
<div class="u-m-b-2">
|
|
63
|
+
<div class="a-meta a-meta--wrap">
|
|
64
|
+
Känn igen ett bluffmejl - Steg 2 av 3
|
|
65
|
+
</div>
|
|
66
|
+
<h2 class="alpha">Hur känner man igen ett bluffmejl?</h2>
|
|
67
|
+
</div>
|
|
68
|
+
<p>Bluffmejl ser oftast ut som vanliga mejl. Avsändaren vill att du ska klicka på länkar och lämna privat information utan att tänka. Du kan uppmanas uppge ditt lösenord, dina kontokortsuppgifter eller annan personlig information.</p>
|
|
69
|
+
<div id="slide-3-ImageContainerMobile"></div>
|
|
70
|
+
<nav>
|
|
71
|
+
{{> @button el="button" button_type="button" icon="arrow-backwards" additional_classes="a-button--icon-left a-button--transparent a-button--transparent--small-icon glider-single-prev js-glider-prev" text="Gå bakåt"}}
|
|
72
|
+
{{> @button el="button" button_type="button" icon="arrow-forwards" additional_classes="a-button--peacock-light glider-single-next js-glider-next" text="Gå framåt"}}
|
|
73
|
+
</nav>
|
|
74
|
+
</div>
|
|
75
|
+
<div class="grid-18 grid-lg-9 offset-lg-1 u-hide-md" id="slide-3-ImageContainer">
|
|
76
|
+
<div class="wp-block-image" data-responsive="xs:slide-3-ImageContainerMobile,lg:slide-3-ImageContainer">
|
|
77
|
+
<figure>
|
|
78
|
+
<figcaption class="u-m-b-1">Se filmen om bluffmejl</figcaption>
|
|
79
|
+
<div class="m-icon-overlay m-card__image m-card__media" data-youtube="n8hPhZwV8a0">
|
|
80
|
+
<button type="button" class="m-icon-overlay__button" aria-label="play">
|
|
81
|
+
<svg class="icon m-icon-overlay__icon">
|
|
82
|
+
<use xlink:href="#icon-play"></use>
|
|
83
|
+
</svg>
|
|
84
|
+
</button>
|
|
85
|
+
<img src="https://i3.ytimg.com/vi/n8hPhZwV8a0/maxresdefault.jpg" alt="video"><iframe frameborder="0" allowfullscreen="1" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" title="YouTube video player" width="100%" height="100%" src="https://www.youtube.com/embed/n8hPhZwV8a0?playsinline=1&rel=0&widget_referrer=http%3A%2F%2Flocalhost%3A3000%2Fcomponents%2Fdetail%2Fcard--with-youtube-video&enablejsapi=1&origin=http%3A%2F%2Flocalhost%3A3000&widgetid=1" id="widget2"></iframe>
|
|
86
|
+
</div>
|
|
87
|
+
</figure>
|
|
88
|
+
</div>
|
|
89
|
+
</div>
|
|
90
|
+
</div>
|
|
91
|
+
</div>
|
|
92
|
+
<div class="glider-slide glider-slide--single">
|
|
93
|
+
<div class="row flex-column-reverse flex-lg-row">
|
|
94
|
+
<div class="grid-18 grid-lg-8">
|
|
95
|
+
<div class="u-m-b-2">
|
|
96
|
+
<div class="a-meta a-meta--wrap">
|
|
97
|
+
Känn igen ett bluffmejl - Steg 3 av 3
|
|
98
|
+
</div>
|
|
99
|
+
<h2 class="alpha">Bra, nu kan du känna igen ett bluffmejl!</h2>
|
|
100
|
+
</div>
|
|
101
|
+
<p>Bluffmejl ser oftast ut som vanliga mejl. Avsändaren vill att du ska klicka på länkar och lämna privat information utan att tänka. Du kan uppmanas uppge ditt lösenord, dina kontokortsuppgifter eller annan personlig information.</p>
|
|
102
|
+
<div id="slide-4-ImageContainerMobile"></div>
|
|
103
|
+
|
|
104
|
+
{{> @rating additional_classes='u-m-b-2'}}
|
|
105
|
+
<nav>
|
|
106
|
+
{{> @button el="button" button_type="button" icon="arrow-backwards" additional_classes="a-button--icon-left a-button--transparent a-button--transparent--small-icon glider-single-prev js-glider-prev" text="Gå bakåt"}}
|
|
107
|
+
{{> @button el="a" url="#" additional_classes="a-button--jade-light" icon="check" text="Avsluta kursen"}}
|
|
108
|
+
</nav>
|
|
109
|
+
</div>
|
|
110
|
+
<div class="grid-18 grid-lg-9 offset-lg-1 u-hide-md" id="slide-4-ImageContainer">
|
|
111
|
+
<div class="wp-block-image" data-responsive="xs:slide-4-ImageContainerMobile,lg:slide-4-ImageContainer">
|
|
112
|
+
<figure class="size-large">
|
|
113
|
+
<img src="/assets/images/ALX_0876.jpg" alt="kursbild" class="u-border-radius">
|
|
114
|
+
</figure>
|
|
115
|
+
</div>
|
|
116
|
+
</div>
|
|
117
|
+
</div>
|
|
118
|
+
</div>
|
|
119
|
+
</div>
|
|
120
|
+
</div>
|
|
121
|
+
|
|
122
|
+
</div>
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import Glider from 'glider-js';
|
|
2
|
+
|
|
3
|
+
const gliderElementSingle = document.querySelector('.js-glider-single');
|
|
4
|
+
|
|
5
|
+
if (gliderElementSingle) {
|
|
6
|
+
const GliderSingle = new Glider(gliderElementSingle, {
|
|
7
|
+
scrollLock: true,
|
|
8
|
+
slidesToShow: 1,
|
|
9
|
+
slidesToScroll: 1,
|
|
10
|
+
});
|
|
11
|
+
|
|
12
|
+
const nextBtns = document.querySelectorAll('.js-glider-next');
|
|
13
|
+
const prevBtns = document.querySelectorAll('.js-glider-prev');
|
|
14
|
+
let slideIndex = 0;
|
|
15
|
+
const scrollTop = () => {
|
|
16
|
+
gliderElementSingle.scrollIntoView();
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
if (nextBtns) {
|
|
20
|
+
[].forEach.call(nextBtns, (nextBtn) => {
|
|
21
|
+
nextBtn.addEventListener('click', () => {
|
|
22
|
+
slideIndex += 1;
|
|
23
|
+
GliderSingle.scrollItem(slideIndex, true);
|
|
24
|
+
scrollTop();
|
|
25
|
+
});
|
|
26
|
+
});
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
if (prevBtns) {
|
|
30
|
+
[].forEach.call(prevBtns, (prevBtn) => {
|
|
31
|
+
prevBtn.addEventListener('click', () => {
|
|
32
|
+
slideIndex -= 1;
|
|
33
|
+
GliderSingle.scrollItem(slideIndex, true);
|
|
34
|
+
scrollTop();
|
|
35
|
+
});
|
|
36
|
+
});
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
module.exports = GliderSingle;
|
|
40
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
module.exports = {
|
|
2
|
-
status: '
|
|
2
|
+
status: 'ready',
|
|
3
3
|
|
|
4
4
|
context: {
|
|
5
5
|
dots: false,
|
|
@@ -10,6 +10,13 @@ module.exports = {
|
|
|
10
10
|
context: {
|
|
11
11
|
dots: true
|
|
12
12
|
}
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
name: 'Single',
|
|
16
|
+
status: 'wip',
|
|
17
|
+
context: {
|
|
18
|
+
single: true
|
|
19
|
+
}
|
|
13
20
|
}
|
|
14
21
|
]
|
|
15
22
|
}
|
|
@@ -47,10 +47,10 @@
|
|
|
47
47
|
</div>
|
|
48
48
|
<div class="row justify-content-between u-m-b-4 u-m-t-2">
|
|
49
49
|
<div class="grid-auto">
|
|
50
|
-
{{> @button
|
|
50
|
+
{{> @button url="#" text="Föregående kapitel" modifiers="lemon a-button--icon-left" icon="arrow-backwards"}}
|
|
51
51
|
</div>
|
|
52
52
|
<div class="grid-auto">
|
|
53
|
-
{{> @button
|
|
53
|
+
{{> @button url="#" text="Nästa kapitel" modifiers="lemon" icon="arrow-forwards"}}
|
|
54
54
|
</div>
|
|
55
55
|
</div>
|
|
56
56
|
</main>
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
status: 'prototype',
|
|
3
|
+
|
|
4
|
+
context: {
|
|
5
|
+
alt: 'Hands typing on laptop',
|
|
6
|
+
img_url: '/assets/images/ALX_0876.jpg',
|
|
7
|
+
title: 'Gymnasieskolor med hög bandbredd har bättre skolresultat',
|
|
8
|
+
url: 'http://www.google.se',
|
|
9
|
+
exerpt: 'Eget nulla <strong>facilisi etiam</strong> dignissim diam quis enim lobortis scelerisque. Faucibus a pellentesque sit amet porttitor.',
|
|
10
|
+
is_padded: true,
|
|
11
|
+
is_wide: true,
|
|
12
|
+
has_shadow: false,
|
|
13
|
+
has_button: false,
|
|
14
|
+
read_time: true,
|
|
15
|
+
has_border: false,
|
|
16
|
+
has_image: true,
|
|
17
|
+
has_radius: true
|
|
18
|
+
}
|
|
19
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
<div class="wrapper">
|
|
2
|
+
<div class="row align-items-stretch">
|
|
3
|
+
<div class="a-timeline a-timeline--first">
|
|
4
|
+
<span>1960</span>
|
|
5
|
+
</div>
|
|
6
|
+
</div>
|
|
7
|
+
<div class="row align-items-stretch">
|
|
8
|
+
<div class="a-timeline"></div>
|
|
9
|
+
<div class="grid-15 grid-sm-16 grid-lg-17 offset-xs-1 u-m-b-2">
|
|
10
|
+
|
|
11
|
+
{{> @card modifier="m-card--wide--flipped u-m-b-8 a-timeline-item" title="1963 Här kläcks idén om ett ”intergalaktiskt nätverk”" excerpt="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed odio urna, pulvinar et eleifend id, mattis a nunc. Fusce porttitor sed dolor et fermentum."}}
|
|
12
|
+
|
|
13
|
+
{{> @card modifier="u-m-b-8 a-timeline-item" title="1969 Starten på internet heter Arpanet" excerpt="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed odio urna, pulvinar et eleifend id, mattis a nunc. Fusce porttitor sed dolor et fermentum."}}
|
|
14
|
+
|
|
15
|
+
{{> @card modifier="m-card--wide--flipped u-m-b-8 a-timeline-item" title="1973 Svensk uppfinning byggs in i Arpanet" excerpt="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed odio urna, pulvinar et eleifend id, mattis a nunc. Fusce porttitor sed dolor et fermentum."}}
|
|
16
|
+
|
|
17
|
+
{{> @card modifier="u-m-b-8 a-timeline-item" title="1982 Datavidion är ett ”text-tv-indenter”" excerpt="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed odio urna, pulvinar et eleifend id, mattis a nunc. Fusce porttitor sed dolor et fermentum."}}
|
|
18
|
+
|
|
19
|
+
{{> @card modifier="m-card--wide--flipped u-m-b-8 a-timeline-item" title="1986 Björn Eriksen kniper toppdomänen – så blir Sverige .se på internet" excerpt="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed odio urna, pulvinar et eleifend id, mattis a nunc. Fusce porttitor sed dolor et fermentum."}}
|
|
20
|
+
|
|
21
|
+
{{> @card modifier="u-m-b-8 a-timeline-item" title="1989 World wide web skapas – nu kan internet bli en publiksuccé" excerpt="Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed odio urna, pulvinar et eleifend id, mattis a nunc. Fusce porttitor sed dolor et fermentum."}}
|
|
22
|
+
</div>
|
|
23
|
+
</div>
|
|
24
|
+
</div>
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
|
|
3
|
+
.u-font-size-small {
|
|
4
|
+
font-size: $size-small !important;
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
.u-font-size-medium {
|
|
8
|
+
font-size: $size-medium !important;
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
.u-font-size-medium-plus {
|
|
12
|
+
font-size: $size-medium-plus !important;
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
.u-font-size-base {
|
|
16
|
+
font-size: $size-base !important;
|
|
17
|
+
}
|