@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,50 +1,59 @@
|
|
|
1
|
-
@charset
|
|
2
|
-
|
|
3
|
-
@
|
|
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
|
+
@use '../../vendor/grid/grid' as grid;
|
|
11
|
+
|
|
12
|
+
@include mixin.molecule(cookie-disclaimer) {
|
|
4
13
|
display: none;
|
|
5
14
|
position: relative;
|
|
6
|
-
z-index: z_index(foreground);
|
|
15
|
+
z-index: func.z_index(foreground);
|
|
7
16
|
|
|
8
17
|
&.is-visible {
|
|
9
18
|
display: block;
|
|
10
19
|
}
|
|
11
20
|
|
|
12
|
-
@include bp-up(lg) {
|
|
21
|
+
@include breakpoint.bp-up(lg) {
|
|
13
22
|
position: fixed;
|
|
14
23
|
right: 0;
|
|
15
24
|
bottom: 0;
|
|
16
25
|
left: 0;
|
|
17
26
|
}
|
|
18
27
|
|
|
19
|
-
@include e(wrapper) {
|
|
28
|
+
@include bem.e(wrapper) {
|
|
20
29
|
width: 100%;
|
|
21
30
|
margin-bottom: 0 !important;
|
|
22
|
-
padding: rhythm(2) 0;
|
|
31
|
+
padding: func.rhythm(2) 0;
|
|
23
32
|
}
|
|
24
33
|
|
|
25
|
-
@include e(inner) {
|
|
34
|
+
@include bem.e(inner) {
|
|
26
35
|
display: flex;
|
|
27
36
|
flex-wrap: wrap;
|
|
28
37
|
margin-right: auto;
|
|
29
38
|
margin-left: auto;
|
|
30
39
|
|
|
31
|
-
@include make-container-max-widths();
|
|
40
|
+
@include grid.make-container-max-widths();
|
|
32
41
|
|
|
33
|
-
@include bp-down(xl) {
|
|
34
|
-
padding-right:
|
|
35
|
-
padding-left:
|
|
42
|
+
@include breakpoint.bp-down(xl) {
|
|
43
|
+
padding-right: var.$grid-gutter-width;
|
|
44
|
+
padding-left: var.$grid-gutter-width;
|
|
36
45
|
}
|
|
37
46
|
}
|
|
38
47
|
|
|
39
|
-
@include e(inner-first) {
|
|
48
|
+
@include bem.e(inner-first) {
|
|
40
49
|
display: flex;
|
|
41
50
|
align-items: center;
|
|
42
51
|
width: 100%;
|
|
43
52
|
|
|
44
53
|
a {
|
|
45
54
|
padding: 0 0.25rem;
|
|
46
|
-
border-bottom: 0.11111rem solid
|
|
47
|
-
color:
|
|
55
|
+
border-bottom: 0.11111rem solid colors.$color-peacock;
|
|
56
|
+
color: colors.$color-black;
|
|
48
57
|
text-decoration: none;
|
|
49
58
|
|
|
50
59
|
&:hover,
|
|
@@ -53,32 +62,32 @@
|
|
|
53
62
|
}
|
|
54
63
|
}
|
|
55
64
|
|
|
56
|
-
@include bp-up(md) {
|
|
57
|
-
@include make-col(12);
|
|
65
|
+
@include breakpoint.bp-up(md) {
|
|
66
|
+
@include grid.make-col(12);
|
|
58
67
|
|
|
59
|
-
padding-right: rhythm(3);
|
|
68
|
+
padding-right: func.rhythm(3);
|
|
60
69
|
}
|
|
61
70
|
}
|
|
62
71
|
|
|
63
|
-
@include e(inner-second) {
|
|
72
|
+
@include bem.e(inner-second) {
|
|
64
73
|
display: flex;
|
|
65
74
|
align-items: center;
|
|
66
75
|
justify-content: flex-end;
|
|
67
76
|
width: 100%;
|
|
68
|
-
padding-top: rhythm(2);
|
|
77
|
+
padding-top: func.rhythm(2);
|
|
69
78
|
|
|
70
79
|
button {
|
|
71
80
|
font-size: 18px;
|
|
72
81
|
}
|
|
73
82
|
|
|
74
|
-
@include bp-up(md) {
|
|
75
|
-
@include make-col(6);
|
|
83
|
+
@include breakpoint.bp-up(md) {
|
|
84
|
+
@include grid.make-col(6);
|
|
76
85
|
|
|
77
86
|
padding-top: 0;
|
|
78
87
|
}
|
|
79
88
|
}
|
|
80
89
|
|
|
81
|
-
@include e(text) {
|
|
90
|
+
@include bem.e(text) {
|
|
82
91
|
margin-bottom: 0;
|
|
83
92
|
}
|
|
84
93
|
}
|
|
@@ -1,21 +1,29 @@
|
|
|
1
|
-
@charset
|
|
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;
|
|
2
10
|
|
|
3
|
-
@include molecule(download) {
|
|
11
|
+
@include mixin.molecule(download) {
|
|
4
12
|
position: relative;
|
|
5
|
-
padding: rhythm(2.5);
|
|
6
|
-
border: 1px solid
|
|
7
|
-
border-radius:
|
|
13
|
+
padding: func.rhythm(2.5);
|
|
14
|
+
border: 1px solid colors.$color-peacock;
|
|
15
|
+
border-radius: var.$border-radius;
|
|
8
16
|
background-color: var(--snow-color);
|
|
9
17
|
|
|
10
|
-
@include e(link) {
|
|
18
|
+
@include bem.e(link) {
|
|
11
19
|
display: block;
|
|
12
|
-
margin-bottom: rhythm(1);
|
|
20
|
+
margin-bottom: func.rhythm(1);
|
|
13
21
|
color: currentcolor;
|
|
14
22
|
text-decoration: none;
|
|
15
23
|
|
|
16
24
|
&:hover,
|
|
17
25
|
&:focus {
|
|
18
|
-
color:
|
|
26
|
+
color: colors.$color-peacock;
|
|
19
27
|
text-decoration: underline;
|
|
20
28
|
}
|
|
21
29
|
|
|
@@ -23,7 +31,7 @@
|
|
|
23
31
|
content: '';
|
|
24
32
|
display: block;
|
|
25
33
|
position: absolute;
|
|
26
|
-
z-index: z_index(background);
|
|
34
|
+
z-index: func.z_index(background);
|
|
27
35
|
top: 0;
|
|
28
36
|
right: 0;
|
|
29
37
|
bottom: 0;
|
|
@@ -31,52 +39,52 @@
|
|
|
31
39
|
}
|
|
32
40
|
}
|
|
33
41
|
|
|
34
|
-
@include e(icon-file) {
|
|
35
|
-
margin-bottom: rhythm(1);
|
|
42
|
+
@include bem.e(icon-file) {
|
|
43
|
+
margin-bottom: func.rhythm(1);
|
|
36
44
|
line-height: 0;
|
|
37
45
|
|
|
38
|
-
@include bp-up(sm) {
|
|
39
|
-
margin-right: rhythm(0.5);
|
|
46
|
+
@include breakpoint.bp-up(sm) {
|
|
47
|
+
margin-right: func.rhythm(0.5);
|
|
40
48
|
margin-bottom: 0;
|
|
41
49
|
}
|
|
42
50
|
}
|
|
43
51
|
|
|
44
|
-
@include e(icon-download) {
|
|
52
|
+
@include bem.e(icon-download) {
|
|
45
53
|
display: flex;
|
|
46
54
|
align-items: center;
|
|
47
55
|
justify-content: center;
|
|
48
|
-
width: rhythm(3.5);
|
|
49
|
-
height: rhythm(3.5);
|
|
50
|
-
margin-left: rhythm(1);
|
|
51
|
-
border-radius:
|
|
52
|
-
background-color:
|
|
56
|
+
width: func.rhythm(3.5);
|
|
57
|
+
height: func.rhythm(3.5);
|
|
58
|
+
margin-left: func.rhythm(1);
|
|
59
|
+
border-radius: var.$border-radius;
|
|
60
|
+
background-color: colors.$color-peacock-light;
|
|
53
61
|
}
|
|
54
62
|
|
|
55
|
-
@include e(text) {
|
|
63
|
+
@include bem.e(text) {
|
|
56
64
|
white-space: nowrap;
|
|
57
65
|
}
|
|
58
66
|
|
|
59
|
-
@include b(icon) {
|
|
60
|
-
width:
|
|
61
|
-
height:
|
|
67
|
+
@include bem.b(icon) {
|
|
68
|
+
width: func.to_rem(57px);
|
|
69
|
+
height: func.to_rem(78px);
|
|
62
70
|
color: var(--cyberspace-color);
|
|
63
71
|
fill: currentColor;
|
|
64
72
|
}
|
|
65
73
|
|
|
66
|
-
@include e(trigger) {
|
|
67
|
-
margin-top: rhythm(1);
|
|
74
|
+
@include bem.e(trigger) {
|
|
75
|
+
margin-top: func.rhythm(1);
|
|
68
76
|
margin-left: 0;
|
|
69
77
|
|
|
70
|
-
@include b(icon) {
|
|
71
|
-
width:
|
|
72
|
-
height:
|
|
78
|
+
@include bem.b(icon) {
|
|
79
|
+
width: var.$icon-size-medium;
|
|
80
|
+
height: var.$icon-size-medium;
|
|
73
81
|
color: var(--dark-color);
|
|
74
82
|
fill: currentColor;
|
|
75
83
|
}
|
|
76
84
|
|
|
77
|
-
@include bp-up(sm) {
|
|
85
|
+
@include breakpoint.bp-up(sm) {
|
|
78
86
|
margin-top: 0;
|
|
79
|
-
margin-left: rhythm(1);
|
|
87
|
+
margin-left: func.rhythm(1);
|
|
80
88
|
}
|
|
81
89
|
}
|
|
82
90
|
}
|
|
@@ -1,56 +1,64 @@
|
|
|
1
|
-
@charset
|
|
2
|
-
|
|
3
|
-
@
|
|
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(form-control) {
|
|
4
12
|
|
|
5
13
|
// Modifier for large form fields
|
|
6
|
-
@include m(large) {
|
|
14
|
+
@include bem.m(large) {
|
|
7
15
|
// Inputs
|
|
8
|
-
@include atom(input) {
|
|
9
|
-
padding-top: rhythm(1.85);
|
|
10
|
-
padding-bottom: rhythm(1.85);
|
|
11
|
-
padding-left: rhythm(2);
|
|
12
|
-
font-size:
|
|
16
|
+
@include mixin.atom(input) {
|
|
17
|
+
padding-top: func.rhythm(1.85);
|
|
18
|
+
padding-bottom: func.rhythm(1.85);
|
|
19
|
+
padding-left: func.rhythm(2);
|
|
20
|
+
font-size: func.to_rem(20px);
|
|
13
21
|
|
|
14
22
|
&.has-icon {
|
|
15
|
-
padding-right: rhythm(6);
|
|
23
|
+
padding-right: func.rhythm(6);
|
|
16
24
|
}
|
|
17
25
|
}
|
|
18
26
|
|
|
19
27
|
// Input icon
|
|
20
|
-
@include b(input-icon) {
|
|
28
|
+
@include bem.b(input-icon) {
|
|
21
29
|
> svg {
|
|
22
|
-
transform: translateY(-#{rhythm(4.6)}) translateX(-#{rhythm(2)});
|
|
30
|
+
transform: translateY(-#{func.rhythm(4.6)}) translateX(-#{func.rhythm(2)});
|
|
23
31
|
}
|
|
24
32
|
}
|
|
25
33
|
|
|
26
34
|
// Buttons
|
|
27
|
-
@include atom(button) {
|
|
28
|
-
padding: rhythm(1.6) rhythm(4);
|
|
35
|
+
@include mixin.atom(button) {
|
|
36
|
+
padding: func.rhythm(1.6) func.rhythm(4);
|
|
29
37
|
|
|
30
|
-
@include b(a-button__text) {
|
|
31
|
-
font-size:
|
|
38
|
+
@include bem.b(a-button__text) {
|
|
39
|
+
font-size: func.to_rem(24px);
|
|
32
40
|
}
|
|
33
41
|
}
|
|
34
42
|
|
|
35
43
|
// Checkbox
|
|
36
|
-
@include atom(checkbox) {
|
|
44
|
+
@include mixin.atom(checkbox) {
|
|
37
45
|
+ label {
|
|
38
|
-
font-size:
|
|
46
|
+
font-size: func.to_rem(20px);
|
|
39
47
|
|
|
40
48
|
&::before {
|
|
41
|
-
width:
|
|
42
|
-
height:
|
|
43
|
-
margin-top:
|
|
49
|
+
width: var.$icon-size;
|
|
50
|
+
height: var.$icon-size;
|
|
51
|
+
margin-top: func.to_rem(3px);
|
|
44
52
|
}
|
|
45
53
|
}
|
|
46
54
|
|
|
47
55
|
&:checked {
|
|
48
56
|
+ label {
|
|
49
57
|
&::after {
|
|
50
|
-
top:
|
|
51
|
-
left:
|
|
52
|
-
width:
|
|
53
|
-
height:
|
|
58
|
+
top: func.to_rem(10px);
|
|
59
|
+
left: func.to_rem(8px);
|
|
60
|
+
width: func.to_rem(8px);
|
|
61
|
+
height: func.to_rem(15px);
|
|
54
62
|
border-width: 0 4px 4px 0;
|
|
55
63
|
}
|
|
56
64
|
}
|
|
@@ -58,14 +66,14 @@
|
|
|
58
66
|
}
|
|
59
67
|
|
|
60
68
|
// Radiobutton
|
|
61
|
-
@include atom(radio) {
|
|
69
|
+
@include mixin.atom(radio) {
|
|
62
70
|
&[type='radio'] {
|
|
63
71
|
+ label {
|
|
64
|
-
font-size:
|
|
72
|
+
font-size: func.to_rem(20px);
|
|
65
73
|
|
|
66
74
|
&::before {
|
|
67
|
-
width:
|
|
68
|
-
height:
|
|
75
|
+
width: var.$icon-size;
|
|
76
|
+
height: var.$icon-size;
|
|
69
77
|
border-width: 3px;
|
|
70
78
|
}
|
|
71
79
|
}
|
|
@@ -73,57 +81,57 @@
|
|
|
73
81
|
}
|
|
74
82
|
|
|
75
83
|
// Select
|
|
76
|
-
@include atom(select) {
|
|
77
|
-
padding-top: rhythm(1.85);
|
|
78
|
-
padding-bottom: rhythm(1.85);
|
|
79
|
-
padding-left: rhythm(2);
|
|
80
|
-
background-position: calc(100% - #{rhythm(2)}) 50%;
|
|
81
|
-
background-size:
|
|
82
|
-
font-size:
|
|
84
|
+
@include mixin.atom(select) {
|
|
85
|
+
padding-top: func.rhythm(1.85);
|
|
86
|
+
padding-bottom: func.rhythm(1.85);
|
|
87
|
+
padding-left: func.rhythm(2);
|
|
88
|
+
background-position: calc(100% - #{func.rhythm(2)}) 50%;
|
|
89
|
+
background-size: var.$icon-size var.$icon-size;
|
|
90
|
+
font-size: func.to_rem(20px);
|
|
83
91
|
}
|
|
84
92
|
|
|
85
93
|
// Textarea
|
|
86
|
-
@include atom(textarea) {
|
|
87
|
-
height: rhythm(15);
|
|
88
|
-
font-size:
|
|
94
|
+
@include mixin.atom(textarea) {
|
|
95
|
+
height: func.rhythm(15);
|
|
96
|
+
font-size: func.to_rem(20px);
|
|
89
97
|
}
|
|
90
98
|
}
|
|
91
99
|
|
|
92
100
|
// Modifier for small form fields
|
|
93
|
-
@include m(small) {
|
|
101
|
+
@include bem.m(small) {
|
|
94
102
|
// Inputs
|
|
95
|
-
@include b(a-input) {
|
|
96
|
-
padding-top: rhythm(0.5);
|
|
97
|
-
padding-bottom: rhythm(0.8);
|
|
98
|
-
font-size:
|
|
103
|
+
@include bem.b(a-input) {
|
|
104
|
+
padding-top: func.rhythm(0.5);
|
|
105
|
+
padding-bottom: func.rhythm(0.8);
|
|
106
|
+
font-size: func.to_rem(16px);
|
|
99
107
|
}
|
|
100
108
|
|
|
101
109
|
// Input icon
|
|
102
|
-
@include b(input-icon) {
|
|
110
|
+
@include bem.b(input-icon) {
|
|
103
111
|
> svg {
|
|
104
|
-
width:
|
|
105
|
-
height:
|
|
106
|
-
transform: translateY(-#{rhythm(3.1)}) translateX(-#{rhythm(1)});
|
|
112
|
+
width: var.$icon-size-medium;
|
|
113
|
+
height: var.$icon-size-medium;
|
|
114
|
+
transform: translateY(-#{func.rhythm(3.1)}) translateX(-#{func.rhythm(1)});
|
|
107
115
|
}
|
|
108
116
|
}
|
|
109
117
|
|
|
110
118
|
// Buttons
|
|
111
|
-
@include atom(button) {
|
|
112
|
-
padding: rhythm(0.6) rhythm(1.5);
|
|
119
|
+
@include mixin.atom(button) {
|
|
120
|
+
padding: func.rhythm(0.6) func.rhythm(1.5);
|
|
113
121
|
}
|
|
114
122
|
|
|
115
123
|
// Select
|
|
116
|
-
@include atom(select) {
|
|
117
|
-
padding-top: rhythm(0.5);
|
|
118
|
-
padding-bottom: rhythm(0.8);
|
|
119
|
-
background-size:
|
|
120
|
-
font-size:
|
|
124
|
+
@include mixin.atom(select) {
|
|
125
|
+
padding-top: func.rhythm(0.5);
|
|
126
|
+
padding-bottom: func.rhythm(0.8);
|
|
127
|
+
background-size: var.$icon-size-small var.$icon-size-small;
|
|
128
|
+
font-size: func.to_rem(16px);
|
|
121
129
|
}
|
|
122
130
|
|
|
123
131
|
// Textarea
|
|
124
|
-
@include atom(textarea) {
|
|
125
|
-
height: rhythm(12);
|
|
126
|
-
font-size:
|
|
132
|
+
@include mixin.atom(textarea) {
|
|
133
|
+
height: func.rhythm(12);
|
|
134
|
+
font-size: func.to_rem(16px);
|
|
127
135
|
}
|
|
128
136
|
}
|
|
129
137
|
}
|
|
@@ -1,4 +1,10 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/mixins' as mixin;
|
|
3
|
+
@use '../../configurations/bem' as bem;
|
|
4
|
+
@use '../../configurations/variables' as var;
|
|
5
|
+
@use '../../configurations/functions' as func;
|
|
6
|
+
@use '../../configurations/colors/colors' as colors;
|
|
7
|
+
@use '../../vendor/grid/breakpoints' as breakpoint;
|
|
2
8
|
|
|
3
9
|
// NOTE: this compnent is dependant on the glider.scss component
|
|
4
10
|
// The Glider components is dependant on JS-classes and is therefore not namespaced
|
|
@@ -8,13 +14,13 @@
|
|
|
8
14
|
position: relative;
|
|
9
15
|
align-items: center;
|
|
10
16
|
margin-top: 0;
|
|
11
|
-
margin-bottom: rhythm(2);
|
|
17
|
+
margin-bottom: func.rhythm(2);
|
|
12
18
|
padding-left: 0;
|
|
13
19
|
padding-right: 0;
|
|
14
20
|
}
|
|
15
21
|
|
|
16
22
|
.glider-slide {
|
|
17
|
-
@include m(course) {
|
|
23
|
+
@include bem.m(course) {
|
|
18
24
|
margin-left: 0;
|
|
19
25
|
padding-left: 0;
|
|
20
26
|
padding-right: 0;
|
|
@@ -23,21 +29,21 @@
|
|
|
23
29
|
display: none;
|
|
24
30
|
}
|
|
25
31
|
|
|
26
|
-
@include e(navigation) {
|
|
32
|
+
@include bem.e(navigation) {
|
|
27
33
|
display: flex;
|
|
28
34
|
justify-content: space-between;
|
|
29
35
|
|
|
30
|
-
@include bp-up(lg) {
|
|
36
|
+
@include breakpoint.bp-up(lg) {
|
|
31
37
|
justify-content: flex-start;
|
|
32
38
|
}
|
|
33
39
|
}
|
|
34
40
|
|
|
35
|
-
@include e(media) {
|
|
41
|
+
@include bem.e(media) {
|
|
36
42
|
|
|
37
43
|
&.zoom {
|
|
38
44
|
pointer-events: none;
|
|
39
45
|
|
|
40
|
-
@include bp-up(lg) {
|
|
46
|
+
@include breakpoint.bp-up(lg) {
|
|
41
47
|
pointer-events: auto;
|
|
42
48
|
cursor: zoom-in;
|
|
43
49
|
transition: all 0.15s ease-out;
|
|
@@ -45,21 +51,21 @@
|
|
|
45
51
|
|
|
46
52
|
&::after {
|
|
47
53
|
content: 'Förstora bilden';
|
|
48
|
-
color:
|
|
49
|
-
padding: rhythm(1) rhythm(2) rhythm(1) rhythm(4);
|
|
54
|
+
color: colors.$color-snow;
|
|
55
|
+
padding: func.rhythm(1) func.rhythm(2) func.rhythm(1) func.rhythm(4);
|
|
50
56
|
display: block;
|
|
51
57
|
position: absolute;
|
|
52
58
|
top: 0;
|
|
53
59
|
left: 0;
|
|
54
|
-
border-top-left-radius:
|
|
55
|
-
border-bottom-right-radius:
|
|
60
|
+
border-top-left-radius: var.$border-radius;
|
|
61
|
+
border-bottom-right-radius: var.$border-radius;
|
|
56
62
|
width: auto;
|
|
57
63
|
line-height: 1;
|
|
58
|
-
height:
|
|
59
|
-
background-color: rgba(
|
|
64
|
+
height: var.$icon-size-large * 1.4;
|
|
65
|
+
background-color: rgba(colors.$color-cyberspace, 0.8);
|
|
60
66
|
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:
|
|
67
|
+
background-position: func.rhythm(1) center;
|
|
68
|
+
background-size: var.$icon-size-medium var.$icon-size-medium;
|
|
63
69
|
background-repeat: no-repeat;
|
|
64
70
|
|
|
65
71
|
}
|
|
@@ -76,11 +82,11 @@
|
|
|
76
82
|
right: 0;
|
|
77
83
|
top: 0;
|
|
78
84
|
bottom: 0;
|
|
79
|
-
z-index: z_index(foreground);
|
|
85
|
+
z-index: func.z_index(foreground);
|
|
80
86
|
display: flex;
|
|
81
87
|
align-items: center;
|
|
82
88
|
justify-content: center;
|
|
83
|
-
background-color: rgba(
|
|
89
|
+
background-color: rgba(colors.$color-cyberspace, 0.8);
|
|
84
90
|
flex-direction: column;
|
|
85
91
|
|
|
86
92
|
&::after {
|
|
@@ -91,16 +97,16 @@
|
|
|
91
97
|
cursor: zoom-out;
|
|
92
98
|
max-width: 100%;
|
|
93
99
|
max-height: 100vh;
|
|
94
|
-
padding: rhythm(1);
|
|
100
|
+
padding: func.rhythm(1);
|
|
95
101
|
height: auto;
|
|
96
102
|
}
|
|
97
103
|
|
|
98
104
|
figcaption {
|
|
99
|
-
max-width:
|
|
105
|
+
max-width: func.to_rem(612px);
|
|
100
106
|
text-align: center;
|
|
101
|
-
color:
|
|
102
|
-
padding-left: rhythm(2);
|
|
103
|
-
padding-right: rhythm(2);
|
|
107
|
+
color: colors.$color-snow;
|
|
108
|
+
padding-left: func.rhythm(2);
|
|
109
|
+
padding-right: func.rhythm(2);
|
|
104
110
|
margin-bottom: 0 !important;
|
|
105
111
|
padding-bottom: 0 !important;
|
|
106
112
|
}
|
|
@@ -109,9 +115,9 @@
|
|
|
109
115
|
}
|
|
110
116
|
|
|
111
117
|
figcaption {
|
|
112
|
-
margin-top: rhythm(1);
|
|
118
|
+
margin-top: func.rhythm(1);
|
|
113
119
|
}
|
|
114
|
-
@include bp-up(lg) {
|
|
120
|
+
@include breakpoint.bp-up(lg) {
|
|
115
121
|
display: flex;
|
|
116
122
|
flex-direction: column-reverse;
|
|
117
123
|
margin-top: 0;
|