@internetstiftelsen/styleguide 4.1.13 → 5.0.1
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/assets/js/iconToggle.js +1 -2
- package/dist/assets/js/parallax.js +0 -2
- package/dist/assets/js/textToggle.js +0 -1
- package/dist/assets/js/track.js +2 -2
- package/dist/assets/js/youtube.js +2 -1
- package/dist/components.js +0 -4
- package/dist/molecules/glider/glider-hero.js +1 -2
- package/dist/molecules/modal/modal.js +2 -2
- package/dist/molecules/overview-navigation/overview-navigation.js +1 -2
- package/dist/organisms/mailchimp/mailchimp.js +2 -1
- package/dist/organisms/tabs/tabs.js +3 -2
- package/dist/organisms/timeline/timeline.js +2 -4
- package/package.json +23 -18
- package/src/app.js +1 -15
- package/src/app.scss +85 -88
- package/src/assets/js/iconToggle.js +2 -2
- package/src/assets/js/parallax.js +0 -2
- package/src/assets/js/textToggle.js +1 -1
- package/src/assets/js/track.js +2 -2
- package/src/assets/js/youtube.js +2 -1
- package/src/atoms/archive-link/archive-link.config.js +1 -1
- package/src/atoms/archive-link/archive-link.scss +24 -17
- package/src/atoms/button/_button.scss +216 -210
- package/src/atoms/checkbox/_checkbox.scss +33 -26
- package/src/atoms/checkbox/checkbox.config.js +1 -1
- package/src/atoms/file/_file.scss +23 -13
- package/src/atoms/file/file.config.js +1 -1
- package/src/atoms/grid-toggle/_grid-toggle.scss +11 -6
- package/src/atoms/grid-toggle/grid-toggle.config.js +1 -1
- package/src/atoms/height-limiter/_height-limiter.scss +21 -14
- package/src/atoms/height-limiter/height-limiter.config.js +1 -1
- package/src/atoms/hr/hr.config.js +1 -1
- package/src/atoms/icon/icon.config.js +2 -2
- package/src/atoms/input/_input.scss +23 -16
- package/src/atoms/input/input.config.js +1 -1
- package/src/atoms/label/label.config.js +1 -1
- package/src/atoms/label/label.scss +11 -5
- package/src/atoms/logotype/_logotype.scss +3 -2
- package/src/atoms/logotype/logotype.config.js +3 -3
- package/src/atoms/main-menu/_main-menu.scss +67 -60
- package/src/atoms/main-menu/main-menu.config.js +1 -1
- package/src/atoms/meta/_meta.scss +44 -33
- package/src/atoms/meta/meta.config.js +2 -2
- package/src/atoms/paging/_paging.scss +27 -21
- package/src/atoms/paging/paging.config.js +1 -1
- package/src/atoms/password-toggle/_password-toggle.scss +9 -6
- package/src/atoms/password-toggle/password-toggle.config.js +1 -1
- package/src/atoms/progress/_progress.scss +19 -11
- package/src/atoms/progress/progress.config.js +1 -1
- package/src/atoms/quote/_quote.scss +17 -10
- package/src/atoms/quote/quote.config.js +1 -1
- package/src/atoms/radiobutton/_radiobutton.scss +33 -26
- package/src/atoms/radiobutton/radiobutton.config.js +1 -1
- package/src/atoms/range/_range.scss +46 -39
- package/src/atoms/range/range.config.js +1 -1
- package/src/atoms/rating/_rating.scss +11 -4
- package/src/atoms/rating/rating.config.js +1 -1
- package/src/atoms/ribbon/_ribbon.scss +17 -10
- package/src/atoms/ribbon/ribbon.config.js +1 -1
- package/src/atoms/select/_select.scss +18 -10
- package/src/atoms/select/select.config.js +1 -1
- package/src/atoms/skip/_skip.scss +9 -6
- package/src/atoms/skip/skip.config.js +1 -1
- package/src/atoms/spinner/_spinner.scss +4 -3
- package/src/atoms/spinner/spinner.config.js +1 -1
- package/src/atoms/tag/_tag.scss +26 -19
- package/src/atoms/tag/tag.config.js +1 -1
- package/src/atoms/textarea/_textarea.scss +22 -13
- package/src/atoms/textarea/textarea.config.js +1 -1
- package/src/atoms/toggle-button/toggle-button.config.js +1 -1
- package/src/atoms/tooltip/_tooltip.scss +28 -21
- package/src/atoms/tooltip/tooltip.config.js +1 -1
- package/src/base/_grid.scss +4 -4
- package/src/base/_normalize.scss +122 -120
- package/src/base/fonts/_fonts.scss +1 -1
- package/src/brandbook/goto10/goto10.config.js +1 -1
- package/src/brandbook/internetstiftelsen/bildman/303/251r/bildman/303/251r.config.js +1 -1
- package/src/brandbook/internetstiftelsen/identitet/identitet.config.js +1 -1
- package/src/brandbook/internetstiftelsen/tonalitet och spr/303/245kbruk/tonalitet och spr/303/245kbruk.config.js" +1 -1
- package/src/components.js +0 -2
- package/src/configurations/_bem.scss +30 -27
- package/src/configurations/_config.scss +24 -23
- package/src/configurations/_extends.scss +38 -34
- package/src/configurations/_functions.scss +25 -9
- package/src/configurations/_mixins.scss +23 -19
- package/src/configurations/_recaptcha.scss +2 -2
- package/src/configurations/_variables.scss +40 -46
- package/src/configurations/_wordpress.scss +69 -62
- package/src/configurations/colors/_background-colors.scss +3 -2
- package/src/configurations/colors/_colors-functions.scss +41 -39
- package/src/configurations/colors/_colors.scss +4 -4
- package/src/configurations/colors/_text-colors.scss +3 -2
- package/src/configurations/colors/_wordpress-colors.scss +3 -2
- package/src/configurations/colors/colors.config.js +1 -1
- package/src/configurations/favicon/favicon.config.js +1 -1
- package/src/configurations/forms/_fields.scss +28 -23
- package/src/configurations/grid/_grid.scss +33 -28
- package/src/configurations/grid/grid.config.js +1 -1
- package/src/configurations/icons.json +1 -1
- package/src/configurations/typography/_typography.scss +113 -105
- package/src/configurations/typography/readme.md +1 -1
- package/src/configurations/typography/typography.config.js +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/alert/alert.config.js +1 -1
- package/src/molecules/breadcrumb/_breadcrumb.scss +43 -35
- package/src/molecules/breadcrumb/breadcrumb.config.js +1 -1
- package/src/molecules/byline/_byline.scss +30 -21
- package/src/molecules/byline/byline.config.js +1 -1
- package/src/molecules/card/_card.scss +87 -77
- package/src/molecules/context-menu/_context-menu.scss +32 -15
- package/src/molecules/context-menu/context-menu.config.js +11 -11
- package/src/molecules/continue-video-guide/continue-video-guide.config.js +1 -1
- package/src/molecules/continue-video-guide/continue-video-guide.scss +37 -28
- package/src/molecules/cookie-disclaimer/cookie-disclaimer.config.js +1 -1
- package/src/molecules/cookie-disclaimer/cookie-disclaimer.scss +32 -23
- package/src/molecules/download/_download.scss +38 -30
- package/src/molecules/download/download.config.js +1 -1
- package/src/molecules/form/form.config.js +1 -1
- package/src/molecules/form-control/_form-control.scss +66 -58
- package/src/molecules/form-control/form-control.config.js +1 -1
- 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/glider/glider-hero.js +1 -3
- package/src/molecules/glider/glider.config.js +1 -1
- package/src/molecules/icon-overlay/_icon-overlay.scss +29 -20
- package/src/molecules/icon-overlay/icon-overlay.config.js +1 -1
- package/src/molecules/info-box/_info-box.scss +31 -22
- package/src/molecules/info-box/info-box.config.js +1 -1
- package/src/molecules/input-group/_input-group.scss +23 -13
- package/src/molecules/input-group/input-group.config.js +1 -1
- package/src/molecules/modal/_modal.scss +77 -65
- package/src/molecules/modal/modal.js +2 -2
- package/src/molecules/multi-select/_multi-select.scss +44 -33
- package/src/molecules/multi-select/multi-select.js +3 -3
- package/src/molecules/natural-language-form/_natural-language-form.scss +33 -23
- package/src/molecules/natural-language-form/natural-language-form.config.js +4 -4
- package/src/molecules/overview-navigation/_overview-navigation.scss +54 -45
- package/src/molecules/overview-navigation/overview-navigation.js +2 -2
- package/src/molecules/readspeaker/_readspeaker.scss +1 -1
- package/src/molecules/share/_share.scss +23 -15
- package/src/molecules/share/share.config.js +1 -1
- package/src/molecules/submenu/_submenu.scss +77 -69
- package/src/molecules/submenu/submenu.config.js +1 -1
- package/src/molecules/system-error/_system-error.scss +26 -17
- package/src/molecules/system-error/system-error.config.js +1 -1
- package/src/molecules/table/_table.scss +50 -42
- package/src/molecules/table/table.config.js +1 -1
- package/src/molecules/teaser-news-list/_teaser-news-list.scss +21 -12
- package/src/molecules/teaser-news-list/teaser-news-list.config.js +1 -1
- package/src/organisms/accordion/_accordion.scss +64 -54
- package/src/organisms/accordion/accordion.config.js +1 -1
- package/src/organisms/domain-search/_domain-search.scss +54 -45
- package/src/organisms/domain-search/domain-search.config.js +1 -1
- 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/filter/filter.config.js +1 -1
- package/src/organisms/footer/_footer.scss +121 -111
- package/src/organisms/footer/footer.config.js +1 -1
- package/src/organisms/header/_header.scss +24 -14
- package/src/organisms/header/header.config.js +1 -1
- 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 +37 -38
- package/src/organisms/mailchimp/_mailchimp.scss +53 -43
- package/src/organisms/mailchimp/mailchimp.config.js +1 -1
- package/src/organisms/mailchimp/mailchimp.js +2 -1
- package/src/organisms/mega-menu/_mega-menu.scss +55 -45
- package/src/organisms/mega-menu/mega-menu.config.js +1 -1
- package/src/organisms/members-service-product/_members-service-product.scss +29 -18
- package/src/organisms/members-service-product/members-service-product.config.js +6 -8
- package/src/organisms/podcast/_podcast-episodes.scss +85 -75
- package/src/organisms/podcast/_podcast-player.scss +73 -64
- package/src/organisms/podcast/podcast.config.js +1 -1
- 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/search-result/search-result.config.js +1 -1
- package/src/organisms/sections/_sections.scss +41 -31
- package/src/organisms/sections/sections.config.js +1 -1
- package/src/organisms/tabs/_tabs.scss +58 -46
- package/src/organisms/tabs/tabs.config.js +1 -1
- package/src/organisms/tabs/tabs.js +3 -2
- package/src/organisms/timeline/_timeline.scss +92 -81
- package/src/organisms/timeline/timeline.config.js +1 -1
- package/src/organisms/timeline/timeline.js +3 -2
- package/src/organisms/video-guide/VideoGuidePlayback.js +1 -1
- package/src/organisms/video-guide/_video-guide.scss +148 -138
- package/src/organisms/video-guide/video-guide.config.js +1 -1
- package/src/organisms/video-guide/video-guide.js +2 -2
- package/src/pages/animate-footer/animate-footer.config.js +181 -2
- package/src/pages/bredbandskollen/bredbandskollen.config.js +1 -1
- package/src/pages/conditional/conditional.config.js +1 -1
- package/src/pages/dark-mode/dark-mode.config.js +1 -1
- package/src/pages/internetguider/internetguider.config.js +1 -1
- package/src/pages/magazine/magazine.config.js +1 -1
- package/src/pages/mailchimp-newsletter/mailchimp-newsletter.config.js +1 -1
- package/src/pages/responsive-position/responsive-position.config.js +1 -1
- package/src/pages/search/search.config.js +1 -1
- package/src/pages/wordpress-blocks/wordpress-blocks.config.js +1 -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 +29 -26
- 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 +41 -37
- 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 +28 -25
- package/src/utilities/_misc.scss +3 -2
- package/src/utilities/_padding.scss +26 -23
- 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,20 +1,30 @@
|
|
|
1
|
-
@charset
|
|
2
|
-
|
|
3
|
-
@
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use "sass:meta";
|
|
3
|
+
@use '../../configurations/mixins' as mixin;
|
|
4
|
+
@use '../../configurations/bem' as bem;
|
|
5
|
+
@use '../../configurations/config' as config;
|
|
6
|
+
@use '../../configurations/variables' as var;
|
|
7
|
+
@use '../../configurations/functions' as func;
|
|
8
|
+
@use '../../configurations/colors/colors' as colors;
|
|
9
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
10
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
11
|
+
@use '../../vendor/grid/grid' as grid;
|
|
12
|
+
|
|
13
|
+
@include mixin.molecule(natural-language-form) {
|
|
4
14
|
display: inline-block;
|
|
5
15
|
position: relative;
|
|
6
16
|
|
|
7
|
-
@include m(arrow) {
|
|
8
|
-
@include e(label) {
|
|
9
|
-
padding-right: rhythm(4);
|
|
17
|
+
@include bem.m(arrow) {
|
|
18
|
+
@include bem.e(label) {
|
|
19
|
+
padding-right: func.rhythm(4);
|
|
10
20
|
border-bottom: 2px solid currentColor;
|
|
11
21
|
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' id='icon-arrow-down' viewBox='0 0 32 18.9' width='100%25' height='100%25'%3E%3Cpolygon points='32,2.9 16,18.9 0,2.9 2.9,0 16,13.1 29.1,0 '%3E%3C/polygon%3E%3C/svg%3E%0A");
|
|
12
22
|
background-repeat: no-repeat;
|
|
13
23
|
background-position: calc(95%) 60%;
|
|
14
|
-
background-size:
|
|
24
|
+
background-size: var.$icon-size-medium var.$icon-size-medium;
|
|
15
25
|
text-decoration: none;
|
|
16
26
|
|
|
17
|
-
@if variable-exists(cyberspace-color) {
|
|
27
|
+
@if meta.variable-exists(cyberspace-color) {
|
|
18
28
|
@media (prefers-color-scheme: dark) {
|
|
19
29
|
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' id='icon-arrow-down' fill='%23ffffff' viewBox='0 0 32 18.9' width='100%25' height='100%25'%3E%3Cpolygon points='32,2.9 16,18.9 0,2.9 2.9,0 16,13.1 29.1,0 '%3E%3C/polygon%3E%3C/svg%3E%0A");
|
|
20
30
|
}
|
|
@@ -36,29 +46,29 @@
|
|
|
36
46
|
background-image: url("data:image/svg+xml;charset=utf-8,%3Csvg xmlns='http://www.w3.org/2000/svg' id='icon-arrow-down' fill='%23f99963' viewBox='0 0 32 18.9' width='100%25' height='100%25'%3E%3Cpolygon points='32,2.9 16,18.9 0,2.9 2.9,0 16,13.1 29.1,0 '%3E%3C/polygon%3E%3C/svg%3E%0A");
|
|
37
47
|
}
|
|
38
48
|
|
|
39
|
-
@include bp-up(sm) {
|
|
49
|
+
@include breakpoint.bp-up(sm) {
|
|
40
50
|
border-bottom: 4px solid currentColor;
|
|
41
51
|
background-position: calc(100%) 60%;
|
|
42
52
|
}
|
|
43
53
|
|
|
44
|
-
@include bp-up(lg) {
|
|
54
|
+
@include breakpoint.bp-up(lg) {
|
|
45
55
|
border-bottom: 5px solid currentColor;
|
|
46
56
|
}
|
|
47
57
|
}
|
|
48
58
|
}
|
|
49
59
|
|
|
50
|
-
@include e(select) {
|
|
60
|
+
@include bem.e(select) {
|
|
51
61
|
position: absolute;
|
|
52
62
|
top: 0;
|
|
53
63
|
right: 0;
|
|
54
64
|
bottom: 0;
|
|
55
65
|
left: 0;
|
|
56
|
-
padding-right: rhythm(4);
|
|
66
|
+
padding-right: func.rhythm(4);
|
|
57
67
|
opacity: 0;
|
|
58
68
|
cursor: pointer;
|
|
59
69
|
}
|
|
60
70
|
|
|
61
|
-
@include e(label) {
|
|
71
|
+
@include bem.e(label) {
|
|
62
72
|
display: inline-block;
|
|
63
73
|
font-family: inherit;
|
|
64
74
|
font-size: inherit;
|
|
@@ -66,27 +76,27 @@
|
|
|
66
76
|
cursor: pointer;
|
|
67
77
|
|
|
68
78
|
option:not(:checked) {
|
|
69
|
-
color:
|
|
79
|
+
color: colors.$color-cyberspace;
|
|
70
80
|
}
|
|
71
81
|
|
|
72
82
|
&[data-color='ocean'] {
|
|
73
|
-
color:
|
|
83
|
+
color: colors.$color-ocean;
|
|
74
84
|
}
|
|
75
85
|
|
|
76
86
|
&[data-color='peacock'] {
|
|
77
|
-
color:
|
|
87
|
+
color: colors.$color-peacock;
|
|
78
88
|
}
|
|
79
89
|
|
|
80
90
|
&[data-color='jade'] {
|
|
81
|
-
color:
|
|
91
|
+
color: colors.$color-jade;
|
|
82
92
|
}
|
|
83
93
|
|
|
84
94
|
&[data-color='sandstone'] {
|
|
85
|
-
color:
|
|
95
|
+
color: colors.$color-sandstone;
|
|
86
96
|
}
|
|
87
97
|
}
|
|
88
98
|
|
|
89
|
-
@include e(input) {
|
|
99
|
+
@include bem.e(input) {
|
|
90
100
|
position: relative;
|
|
91
101
|
z-index: 1;
|
|
92
102
|
top: 0;
|
|
@@ -101,19 +111,19 @@
|
|
|
101
111
|
cursor: pointer;
|
|
102
112
|
|
|
103
113
|
&[data-color='ocean'] {
|
|
104
|
-
color:
|
|
114
|
+
color: colors.$color-ocean;
|
|
105
115
|
}
|
|
106
116
|
|
|
107
117
|
&[data-color='peacock'] {
|
|
108
|
-
color:
|
|
118
|
+
color: colors.$color-peacock;
|
|
109
119
|
}
|
|
110
120
|
|
|
111
121
|
&[data-color='jade'] {
|
|
112
|
-
color:
|
|
122
|
+
color: colors.$color-jade;
|
|
113
123
|
}
|
|
114
124
|
}
|
|
115
125
|
|
|
116
|
-
@include e(temp-text) {
|
|
126
|
+
@include bem.e(temp-text) {
|
|
117
127
|
position: absolute;
|
|
118
128
|
z-index: -1;
|
|
119
129
|
top: 0;
|
|
@@ -13,7 +13,7 @@ module.exports = {
|
|
|
13
13
|
|
|
14
14
|
variants: [
|
|
15
15
|
{
|
|
16
|
-
|
|
16
|
+
name: 'Select with arrow',
|
|
17
17
|
context: {
|
|
18
18
|
select: true,
|
|
19
19
|
textElement: 'h1',
|
|
@@ -22,7 +22,7 @@ module.exports = {
|
|
|
22
22
|
}
|
|
23
23
|
},
|
|
24
24
|
{
|
|
25
|
-
|
|
25
|
+
name: 'Other text element',
|
|
26
26
|
context: {
|
|
27
27
|
select: true,
|
|
28
28
|
textElement: 'h2',
|
|
@@ -31,7 +31,7 @@ module.exports = {
|
|
|
31
31
|
}
|
|
32
32
|
},
|
|
33
33
|
{
|
|
34
|
-
|
|
34
|
+
name: 'Input',
|
|
35
35
|
context: {
|
|
36
36
|
select: false,
|
|
37
37
|
textElement: 'h1',
|
|
@@ -40,4 +40,4 @@ module.exports = {
|
|
|
40
40
|
}
|
|
41
41
|
}
|
|
42
42
|
]
|
|
43
|
-
}
|
|
43
|
+
};
|
|
@@ -1,48 +1,57 @@
|
|
|
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
|
+
|
|
12
|
+
@include mixin.molecule(overview-navigation) {
|
|
4
13
|
overflow: visible;
|
|
5
14
|
min-width: 300px;
|
|
6
15
|
max-width: 453px;
|
|
7
16
|
display: flex;
|
|
8
17
|
flex-direction: column;
|
|
9
|
-
border-radius:
|
|
18
|
+
border-radius: var.$border-radius;
|
|
10
19
|
transition: left 0.25s ease-out, top 0.5s ease-out;
|
|
11
|
-
box-shadow: 0 0 0 1px
|
|
20
|
+
box-shadow: 0 0 0 1px colors.$color-ash;
|
|
12
21
|
|
|
13
|
-
@include e(list) {
|
|
22
|
+
@include bem.e(list) {
|
|
14
23
|
overflow: hidden;
|
|
15
|
-
border-radius:
|
|
16
|
-
background-color:
|
|
24
|
+
border-radius: var.$border-radius;
|
|
25
|
+
background-color: colors.$color-snow;
|
|
17
26
|
margin: 0;
|
|
18
27
|
padding: 0;
|
|
19
28
|
width: 100%;
|
|
20
|
-
max-height: calc(100dvh -
|
|
29
|
+
max-height: calc(100dvh - func.to_rem(130px));
|
|
21
30
|
overflow-y: auto;
|
|
22
31
|
}
|
|
23
32
|
|
|
24
|
-
@include e(title) {
|
|
25
|
-
margin-bottom: rhythm(2);
|
|
33
|
+
@include bem.e(title) {
|
|
34
|
+
margin-bottom: func.rhythm(2);
|
|
26
35
|
}
|
|
27
36
|
|
|
28
|
-
@include e(item) {
|
|
37
|
+
@include bem.e(item) {
|
|
29
38
|
display: flex;
|
|
30
39
|
align-items: center;
|
|
31
|
-
margin-top: rhythm(1);
|
|
32
|
-
margin-bottom: rhythm(1);
|
|
40
|
+
margin-top: func.rhythm(1);
|
|
41
|
+
margin-bottom: func.rhythm(1);
|
|
33
42
|
margin-left: 0;
|
|
34
43
|
|
|
35
44
|
&:last-child {
|
|
36
|
-
margin-bottom: rhythm(3);
|
|
45
|
+
margin-bottom: func.rhythm(3);
|
|
37
46
|
}
|
|
38
47
|
}
|
|
39
48
|
|
|
40
|
-
@include e(item__link) {
|
|
41
|
-
padding: 0 rhythm(2);
|
|
49
|
+
@include bem.e(item__link) {
|
|
50
|
+
padding: 0 func.rhythm(2);
|
|
42
51
|
border: none;
|
|
43
52
|
border-radius: 0;
|
|
44
53
|
background-color: initial;
|
|
45
|
-
color:
|
|
54
|
+
color: colors.$color-cyberspace;
|
|
46
55
|
display: flex;
|
|
47
56
|
align-items: center;
|
|
48
57
|
text-decoration: none;
|
|
@@ -56,14 +65,14 @@
|
|
|
56
65
|
}
|
|
57
66
|
|
|
58
67
|
> svg {
|
|
59
|
-
height:
|
|
60
|
-
width:
|
|
61
|
-
margin-right: rhythm(1);
|
|
68
|
+
height: var.$icon-size-small;
|
|
69
|
+
width: var.$icon-size-small;
|
|
70
|
+
margin-right: func.rhythm(1);
|
|
62
71
|
flex-shrink: 0;
|
|
63
72
|
}
|
|
64
73
|
}
|
|
65
74
|
|
|
66
|
-
@include e(button) {
|
|
75
|
+
@include bem.e(button) {
|
|
67
76
|
position: fixed;
|
|
68
77
|
bottom: auto;
|
|
69
78
|
right: auto;
|
|
@@ -72,15 +81,15 @@
|
|
|
72
81
|
pointer-events: none;
|
|
73
82
|
padding: 0;
|
|
74
83
|
border: 0;
|
|
75
|
-
width:
|
|
76
|
-
height:
|
|
84
|
+
width: func.to_rem(60px);
|
|
85
|
+
height: func.to_rem(60px);
|
|
77
86
|
flex-shrink: 0;
|
|
78
87
|
flex-grow: 0;
|
|
79
88
|
align-items: center;
|
|
80
89
|
justify-content: center;
|
|
81
90
|
border-radius: 50%;
|
|
82
|
-
background-color:
|
|
83
|
-
box-shadow: inset 0 0 0 4px currentColor, 0 0 0 1px
|
|
91
|
+
background-color: colors.$color-snow;
|
|
92
|
+
box-shadow: inset 0 0 0 4px currentColor, 0 0 0 1px colors.$color-snow, 0 0 6px rgba(colors.$color-cyberspace, 30%);
|
|
84
93
|
|
|
85
94
|
&:hover,
|
|
86
95
|
&:focus {
|
|
@@ -89,8 +98,8 @@
|
|
|
89
98
|
|
|
90
99
|
|
|
91
100
|
> svg {
|
|
92
|
-
width:
|
|
93
|
-
height:
|
|
101
|
+
width: var.$icon-size-large;
|
|
102
|
+
height: var.$icon-size-large;
|
|
94
103
|
flex-shrink: 0;
|
|
95
104
|
opacity: 1;
|
|
96
105
|
|
|
@@ -102,28 +111,28 @@
|
|
|
102
111
|
&::after {
|
|
103
112
|
content: attr(data-title);
|
|
104
113
|
position: absolute;
|
|
105
|
-
bottom: -#{rhythm(3)};
|
|
114
|
+
bottom: -#{func.rhythm(3)};
|
|
106
115
|
text-transform: uppercase;
|
|
107
116
|
text-align: center;
|
|
108
|
-
font-size:
|
|
109
|
-
font-family:
|
|
110
|
-
text-shadow: 0 1px 0
|
|
111
|
-
color:
|
|
112
|
-
background-color:
|
|
113
|
-
border-radius:
|
|
114
|
-
padding-left: rhythm(0.5);
|
|
115
|
-
padding-right: rhythm(0.5);
|
|
117
|
+
font-size: var.$size-small;
|
|
118
|
+
font-family: var.$font-family-mono;
|
|
119
|
+
text-shadow: 0 1px 0 colors.$color-snow;
|
|
120
|
+
color: colors.$color-cyberspace;
|
|
121
|
+
background-color: colors.$color-snow;
|
|
122
|
+
border-radius: var.$border-radius;
|
|
123
|
+
padding-left: func.rhythm(0.5);
|
|
124
|
+
padding-right: func.rhythm(0.5);
|
|
116
125
|
}
|
|
117
126
|
|
|
118
127
|
&.is-fixed {
|
|
119
|
-
//top: calc(100vh - rhythm(11)) !important;
|
|
128
|
+
//top: calc(100vh - func.rhythm(11)) !important;
|
|
120
129
|
//top: auto !important;
|
|
121
|
-
bottom: calc(env(safe-area-inset-bottom) + rhythm(5)) !important;
|
|
130
|
+
bottom: calc(env(safe-area-inset-bottom) + func.rhythm(5)) !important;
|
|
122
131
|
//left: auto !important;
|
|
123
|
-
right: rhythm(2) !important;
|
|
132
|
+
right: func.rhythm(2) !important;
|
|
124
133
|
pointer-events: auto;
|
|
125
134
|
|
|
126
|
-
@include bp-up(xxl) {
|
|
135
|
+
@include breakpoint.bp-up(xxl) {
|
|
127
136
|
//left: auto !important;
|
|
128
137
|
right: calc(50vw - 680px) !important;
|
|
129
138
|
}
|
|
@@ -160,14 +169,14 @@
|
|
|
160
169
|
|
|
161
170
|
&.is-minimized {
|
|
162
171
|
position: fixed;
|
|
163
|
-
right: rhythm(2);
|
|
164
|
-
bottom: rhythm(13);
|
|
165
|
-
z-index: z_index(foregroundMinus);
|
|
172
|
+
right: func.rhythm(2);
|
|
173
|
+
bottom: func.rhythm(13);
|
|
174
|
+
z-index: func.z_index(foregroundMinus);
|
|
166
175
|
margin-top: 0;
|
|
167
176
|
margin-bottom: 0;
|
|
168
|
-
margin-left: rhythm(2);
|
|
177
|
+
margin-left: func.rhythm(2);
|
|
169
178
|
|
|
170
|
-
@include bp-up(xxl) {
|
|
179
|
+
@include breakpoint.bp-up(xxl) {
|
|
171
180
|
right: calc(50vw - 680px) !important;
|
|
172
181
|
}
|
|
173
182
|
}
|
|
@@ -74,7 +74,7 @@ class OverviewNavigation {
|
|
|
74
74
|
|
|
75
75
|
this.button.style.transition = 'none';
|
|
76
76
|
this.updateButtonPosition();
|
|
77
|
-
|
|
77
|
+
|
|
78
78
|
this.element.offsetHeight; // force reflow
|
|
79
79
|
this.button.style.transition = 'right 0.25s ease-out, bottom 0.25s ease-out, opacity 0.25s ease-out';
|
|
80
80
|
|
|
@@ -96,7 +96,7 @@ class OverviewNavigation {
|
|
|
96
96
|
this.element.setAttribute('aria-hidden', 'false');
|
|
97
97
|
this.element.classList.remove('is-minimized');
|
|
98
98
|
|
|
99
|
-
|
|
99
|
+
|
|
100
100
|
this.element.offsetHeight; // force reflow
|
|
101
101
|
|
|
102
102
|
this.updateButtonPosition();
|
|
@@ -1 +1 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use 'https://static.internetstiftelsen.se/styles/readspeaker/skins/iisReadSpeakerSkin/iisReadSpeakerSkin.css?ver=1.0.0';
|
|
@@ -1,10 +1,18 @@
|
|
|
1
|
-
@charset
|
|
2
|
-
|
|
3
|
-
@
|
|
4
|
-
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/bem' as bem;
|
|
4
|
+
@use '../../configurations/config' as config;
|
|
5
|
+
@use '../../configurations/variables' as var;
|
|
6
|
+
@use '../../configurations/functions' as func;
|
|
7
|
+
@use '../../configurations/colors/colors' as colors;
|
|
8
|
+
@use '../../configurations/colors/colors-functions' as colorFunc;
|
|
9
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
10
|
+
|
|
11
|
+
@include mixin.molecule(share) {
|
|
12
|
+
@include bem.e(platforms) {
|
|
5
13
|
visibility: visible;
|
|
6
14
|
max-height: 80rem;
|
|
7
|
-
padding: rhythm(1) 0;
|
|
15
|
+
padding: func.rhythm(1) 0;
|
|
8
16
|
overflow: hidden;
|
|
9
17
|
transition:
|
|
10
18
|
visibility 0s ease-out,
|
|
@@ -21,33 +29,33 @@
|
|
|
21
29
|
}
|
|
22
30
|
}
|
|
23
31
|
|
|
24
|
-
@include e(button) {
|
|
32
|
+
@include bem.e(button) {
|
|
25
33
|
padding-left: 0;
|
|
26
34
|
}
|
|
27
35
|
|
|
28
|
-
@include e(icon) {
|
|
29
|
-
margin-right: rhythm(2);
|
|
36
|
+
@include bem.e(icon) {
|
|
37
|
+
margin-right: func.rhythm(2);
|
|
30
38
|
padding: 0;
|
|
31
39
|
|
|
32
|
-
@include b(icon) {
|
|
33
|
-
width:
|
|
34
|
-
height:
|
|
40
|
+
@include bem.b(icon) {
|
|
41
|
+
width: var.$icon-size * 1.5;
|
|
42
|
+
height: var.$icon-size * 1.5;
|
|
35
43
|
|
|
36
44
|
&.icon-facebook {
|
|
37
|
-
fill:
|
|
45
|
+
fill: colors.$color-facebook;
|
|
38
46
|
}
|
|
39
47
|
|
|
40
48
|
&.icon-twitter {
|
|
41
|
-
fill:
|
|
49
|
+
fill: colors.$color-twitter;
|
|
42
50
|
}
|
|
43
51
|
|
|
44
52
|
&.icon-linkedin {
|
|
45
|
-
fill:
|
|
53
|
+
fill: colors.$color-linkedin;
|
|
46
54
|
}
|
|
47
55
|
}
|
|
48
56
|
}
|
|
49
57
|
|
|
50
|
-
@include m(inline) {
|
|
58
|
+
@include bem.m(inline) {
|
|
51
59
|
display: inline-flex;
|
|
52
60
|
align-items: center;
|
|
53
61
|
}
|