@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,29 +1,29 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
2
|
|
|
3
|
-
@
|
|
4
|
-
@
|
|
5
|
-
@
|
|
6
|
-
@
|
|
7
|
-
@
|
|
8
|
-
@
|
|
9
|
-
@
|
|
10
|
-
@
|
|
11
|
-
@
|
|
12
|
-
@
|
|
13
|
-
@
|
|
14
|
-
@
|
|
15
|
-
@
|
|
16
|
-
@
|
|
17
|
-
@
|
|
18
|
-
@
|
|
19
|
-
@
|
|
20
|
-
@
|
|
21
|
-
@
|
|
22
|
-
@
|
|
23
|
-
@
|
|
24
|
-
@
|
|
25
|
-
@
|
|
26
|
-
@
|
|
27
|
-
@
|
|
28
|
-
@
|
|
29
|
-
@
|
|
3
|
+
@use 'margin';
|
|
4
|
+
@use 'padding';
|
|
5
|
+
@use 'hide';
|
|
6
|
+
@use 'show';
|
|
7
|
+
@use 'lists';
|
|
8
|
+
@use 'position';
|
|
9
|
+
@use 'fonts';
|
|
10
|
+
@use 'tab-highlighting/tab-highlighting';
|
|
11
|
+
@use 'border';
|
|
12
|
+
@use 'align';
|
|
13
|
+
@use 'vertical-align';
|
|
14
|
+
@use 'icons';
|
|
15
|
+
@use 'wrap';
|
|
16
|
+
@use 'links';
|
|
17
|
+
@use 'z-index';
|
|
18
|
+
@use 'box-shadow';
|
|
19
|
+
@use 'flex';
|
|
20
|
+
@use 'display';
|
|
21
|
+
@use 'misc';
|
|
22
|
+
@use 'gutter';
|
|
23
|
+
@use 'text';
|
|
24
|
+
@use 'pointer-events';
|
|
25
|
+
@use 'clear';
|
|
26
|
+
@use 'fill';
|
|
27
|
+
@use 'indent';
|
|
28
|
+
@use 'font-size';
|
|
29
|
+
@use 'cursor';
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../configurations/config' as config;
|
|
3
|
+
@use '../configurations/variables' as var;
|
|
4
|
+
@use '../configurations/functions' as func;
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
/* @group Utilities */
|
|
4
7
|
$class-m: u-m !default;
|
|
5
8
|
$class-m-t: u-m-t !default;
|
|
6
9
|
$class-m-r: u-m-r !default;
|
|
@@ -10,62 +13,62 @@ $class-m-x: u-m-x !default;
|
|
|
10
13
|
$class-m-y: u-m-y !default;
|
|
11
14
|
|
|
12
15
|
@for $i from 0 through 8 {
|
|
13
|
-
|
|
16
|
+
/* Margin all */
|
|
14
17
|
.#{$class-m}-#{$i} {
|
|
15
|
-
margin: rhythm($i) !important;
|
|
18
|
+
margin: func.rhythm($i) !important;
|
|
16
19
|
}
|
|
17
20
|
|
|
18
|
-
|
|
21
|
+
/* Margin top */
|
|
19
22
|
.#{$class-m-t}-#{$i} {
|
|
20
|
-
margin-top: rhythm($i) !important;
|
|
23
|
+
margin-top: func.rhythm($i) !important;
|
|
21
24
|
}
|
|
22
25
|
|
|
23
|
-
|
|
26
|
+
/* Margin right */
|
|
24
27
|
.#{$class-m-r}-#{$i} {
|
|
25
|
-
margin-right: rhythm($i) !important;
|
|
28
|
+
margin-right: func.rhythm($i) !important;
|
|
26
29
|
}
|
|
27
30
|
|
|
28
|
-
|
|
31
|
+
/* Margin bottom */
|
|
29
32
|
.#{$class-m-b}-#{$i} {
|
|
30
|
-
margin-bottom: rhythm($i) !important;
|
|
33
|
+
margin-bottom: func.rhythm($i) !important;
|
|
31
34
|
}
|
|
32
35
|
|
|
33
|
-
|
|
36
|
+
/* Margin left */
|
|
34
37
|
.#{$class-m-l}-#{$i} {
|
|
35
|
-
margin-left: rhythm($i) !important;
|
|
38
|
+
margin-left: func.rhythm($i) !important;
|
|
36
39
|
}
|
|
37
40
|
|
|
38
|
-
|
|
41
|
+
/* Margin x (left and right) */
|
|
39
42
|
.#{$class-m-x}-#{$i} {
|
|
40
|
-
margin-right: rhythm($i) !important;
|
|
41
|
-
margin-left: rhythm($i) !important;
|
|
43
|
+
margin-right: func.rhythm($i) !important;
|
|
44
|
+
margin-left: func.rhythm($i) !important;
|
|
42
45
|
}
|
|
43
46
|
|
|
44
|
-
|
|
47
|
+
/* Margin y (top and bottom) */
|
|
45
48
|
.#{$class-m-y}-#{$i} {
|
|
46
|
-
margin-top: rhythm($i) !important;
|
|
47
|
-
margin-bottom: rhythm($i) !important;
|
|
49
|
+
margin-top: func.rhythm($i) !important;
|
|
50
|
+
margin-bottom: func.rhythm($i) !important;
|
|
48
51
|
}
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
.u-m-default {
|
|
52
|
-
margin:
|
|
55
|
+
margin: config.$default-margin !important;
|
|
53
56
|
}
|
|
54
57
|
|
|
55
58
|
.u-m-t-default {
|
|
56
|
-
margin-top:
|
|
59
|
+
margin-top: config.$default-margin !important;
|
|
57
60
|
}
|
|
58
61
|
|
|
59
62
|
.u-m-b-default {
|
|
60
|
-
margin-bottom:
|
|
63
|
+
margin-bottom: config.$default-margin !important;
|
|
61
64
|
}
|
|
62
65
|
|
|
63
66
|
.u-m-l-default {
|
|
64
|
-
margin-left:
|
|
67
|
+
margin-left: config.$default-margin !important;
|
|
65
68
|
}
|
|
66
69
|
|
|
67
70
|
.u-m-r-default {
|
|
68
|
-
margin-right:
|
|
71
|
+
margin-right: config.$default-margin !important;
|
|
69
72
|
}
|
|
70
73
|
|
|
71
74
|
.u-m-offset-0 {
|
|
@@ -73,11 +76,11 @@ $class-m-y: u-m-y !default;
|
|
|
73
76
|
}
|
|
74
77
|
|
|
75
78
|
.u-m-offset-1 {
|
|
76
|
-
margin-left:
|
|
79
|
+
margin-left: var.$indent !important;
|
|
77
80
|
}
|
|
78
81
|
|
|
79
82
|
.u-m-offset-2 {
|
|
80
|
-
margin-left:
|
|
83
|
+
margin-left: var.$indent * 2 !important;
|
|
81
84
|
}
|
|
82
85
|
|
|
83
86
|
.u-m-l-auto {
|
package/src/utilities/_misc.scss
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../configurations/colors/colors' as colors;
|
|
2
3
|
|
|
3
4
|
// Adds a divider between two words, like a pipe (|) character.
|
|
4
5
|
// Example usage:
|
|
@@ -12,7 +13,7 @@
|
|
|
12
13
|
height: 1em;
|
|
13
14
|
margin: 0 0.5em;
|
|
14
15
|
padding: 0.7em 0;
|
|
15
|
-
background:
|
|
16
|
+
background: colors.$color-black;
|
|
16
17
|
vertical-align: sub;
|
|
17
18
|
}
|
|
18
19
|
|
|
@@ -1,6 +1,9 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../configurations/config' as config;
|
|
3
|
+
@use '../configurations/variables' as var;
|
|
4
|
+
@use '../configurations/functions' as func;
|
|
2
5
|
|
|
3
|
-
|
|
6
|
+
/* @group Utilities */
|
|
4
7
|
$class-p: u-p !default;
|
|
5
8
|
$class-p-t: u-p-t !default;
|
|
6
9
|
$class-p-r: u-p-r !default;
|
|
@@ -11,60 +14,60 @@ $class-p-y: u-p-y !default;
|
|
|
11
14
|
|
|
12
15
|
/* stylelint-disable */
|
|
13
16
|
@for $i from 0 through 8 {
|
|
14
|
-
|
|
17
|
+
/* Padding all */
|
|
15
18
|
.#{$class-p}-#{$i} {
|
|
16
|
-
padding: rhythm($i) !important;
|
|
19
|
+
padding: func.rhythm($i) !important;
|
|
17
20
|
}
|
|
18
21
|
|
|
19
|
-
|
|
22
|
+
/* Padding top */
|
|
20
23
|
.#{$class-p-t}-#{$i} {
|
|
21
|
-
padding-top: rhythm($i) !important;
|
|
24
|
+
padding-top: func.rhythm($i) !important;
|
|
22
25
|
}
|
|
23
26
|
|
|
24
|
-
|
|
27
|
+
/* Padding right */
|
|
25
28
|
.#{$class-p-r}-#{$i} {
|
|
26
|
-
padding-right: rhythm($i) !important;
|
|
29
|
+
padding-right: func.rhythm($i) !important;
|
|
27
30
|
}
|
|
28
31
|
|
|
29
|
-
|
|
32
|
+
/* Padding bottom */
|
|
30
33
|
.#{$class-p-b}-#{$i} {
|
|
31
|
-
padding-bottom: rhythm($i) !important;
|
|
34
|
+
padding-bottom: func.rhythm($i) !important;
|
|
32
35
|
}
|
|
33
36
|
|
|
34
|
-
|
|
37
|
+
/* Padding left */
|
|
35
38
|
.#{$class-p-l}-#{$i} {
|
|
36
|
-
padding-left: rhythm($i) !important;
|
|
39
|
+
padding-left: func.rhythm($i) !important;
|
|
37
40
|
}
|
|
38
41
|
|
|
39
|
-
|
|
42
|
+
/* Padding x (left and right) */
|
|
40
43
|
.#{$class-p-x}-#{$i} {
|
|
41
|
-
padding-right: rhythm($i) !important;
|
|
42
|
-
padding-left: rhythm($i) !important;
|
|
44
|
+
padding-right: func.rhythm($i) !important;
|
|
45
|
+
padding-left: func.rhythm($i) !important;
|
|
43
46
|
}
|
|
44
47
|
|
|
45
|
-
|
|
48
|
+
/* Padding x (left and right) */
|
|
46
49
|
.#{$class-p-y}-#{$i} {
|
|
47
|
-
padding-top: rhythm($i) !important;
|
|
48
|
-
padding-bottom: rhythm($i) !important;
|
|
50
|
+
padding-top: func.rhythm($i) !important;
|
|
51
|
+
padding-bottom: func.rhythm($i) !important;
|
|
49
52
|
}
|
|
50
53
|
}
|
|
51
54
|
|
|
52
55
|
.u-p-default {
|
|
53
|
-
padding:
|
|
56
|
+
padding: config.$default-padding !important;
|
|
54
57
|
}
|
|
55
58
|
|
|
56
59
|
.u-p-t-default {
|
|
57
|
-
padding-top:
|
|
60
|
+
padding-top: config.$default-padding !important;
|
|
58
61
|
}
|
|
59
62
|
|
|
60
63
|
.u-p-b-default {
|
|
61
|
-
padding-bottom:
|
|
64
|
+
padding-bottom: config.$default-padding !important;
|
|
62
65
|
}
|
|
63
66
|
|
|
64
67
|
.u-p-l-default {
|
|
65
|
-
padding-left:
|
|
68
|
+
padding-left: config.$default-padding !important;
|
|
66
69
|
}
|
|
67
70
|
|
|
68
71
|
.u-p-r-default {
|
|
69
|
-
padding-right:
|
|
72
|
+
padding-right: config.$default-padding !important;
|
|
70
73
|
}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../configurations/functions' as func;
|
|
2
3
|
|
|
3
4
|
.u-position-absolute {
|
|
4
5
|
position: absolute !important;
|
|
@@ -23,5 +24,5 @@
|
|
|
23
24
|
|
|
24
25
|
.u-position-sticky-top-4 {
|
|
25
26
|
position: sticky !important;
|
|
26
|
-
top: rhythm(4) !important;
|
|
27
|
+
top: func.rhythm(4) !important;
|
|
27
28
|
}
|
package/src/utilities/_show.scss
CHANGED
|
@@ -1,31 +1,32 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../vendor/grid/breakpoints' as breakpoint;
|
|
2
3
|
|
|
3
4
|
.u-show-xs {
|
|
4
|
-
@include bp-down(xs) {
|
|
5
|
+
@include breakpoint.bp-down(xs) {
|
|
5
6
|
display: initial !important;
|
|
6
7
|
}
|
|
7
8
|
}
|
|
8
9
|
|
|
9
10
|
.u-show-sm-xs {
|
|
10
|
-
@include bp-down(sm-xs) {
|
|
11
|
+
@include breakpoint.bp-down(sm-xs) {
|
|
11
12
|
display: initial !important;
|
|
12
13
|
}
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.u-show-sm {
|
|
16
|
-
@include bp-down(sm) {
|
|
17
|
+
@include breakpoint.bp-down(sm) {
|
|
17
18
|
display: initial !important;
|
|
18
19
|
}
|
|
19
20
|
}
|
|
20
21
|
|
|
21
22
|
.u-show-md {
|
|
22
|
-
@include bp-down(md) {
|
|
23
|
+
@include breakpoint.bp-down(md) {
|
|
23
24
|
display: initial !important;
|
|
24
25
|
}
|
|
25
26
|
}
|
|
26
27
|
|
|
27
28
|
.u-show-lg {
|
|
28
|
-
@include bp-down(lg) {
|
|
29
|
+
@include breakpoint.bp-down(lg) {
|
|
29
30
|
display: initial !important;
|
|
30
31
|
}
|
|
31
32
|
}
|
package/src/utilities/_text.scss
CHANGED
package/src/utilities/_wrap.scss
CHANGED
|
@@ -1,21 +1,22 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../configurations/functions' as func;
|
|
2
3
|
|
|
3
4
|
.u-z-index-background {
|
|
4
|
-
z-index: z_index(background) !important;
|
|
5
|
+
z-index: func.z_index(background) !important;
|
|
5
6
|
}
|
|
6
7
|
|
|
7
8
|
.u-z-index-foreground {
|
|
8
|
-
z-index: z_index(foreground) !important;
|
|
9
|
+
z-index: func.z_index(foreground) !important;
|
|
9
10
|
}
|
|
10
11
|
|
|
11
12
|
.u-z-index-foreground-minus {
|
|
12
|
-
z-index: z_index(foregroundMinus) !important;
|
|
13
|
+
z-index: func.z_index(foregroundMinus) !important;
|
|
13
14
|
}
|
|
14
15
|
|
|
15
16
|
.u-z-index-middleground {
|
|
16
|
-
z-index: z_index(middleground) !important;
|
|
17
|
+
z-index: func.z_index(middleground) !important;
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
.u-z-index-middleground-important {
|
|
20
|
-
z-index: z_index(middlegroundImportant) !important;
|
|
21
|
+
z-index: func.z_index(middlegroundImportant) !important;
|
|
21
22
|
}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use '../../configurations/colors/colors' as colors;
|
|
2
3
|
|
|
3
|
-
$color-tab-highlight:
|
|
4
|
+
$color-tab-highlight: colors.$color-ruby !default;
|
|
4
5
|
|
|
5
6
|
// Remove focus styling only when JS is active
|
|
6
7
|
.js {
|
|
@@ -24,11 +25,11 @@ $color-tab-highlight: $color-ruby !default;
|
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
&::-webkit-slider-thumb {
|
|
27
|
-
box-shadow: 0 0 0 inset rgba(
|
|
28
|
+
box-shadow: 0 0 0 inset rgba(colors.$color-cyberspace, 0.2), 0 1px 2px rgba(colors.$color-cyberspace, 0.2), 0 0 0 3px inset $color-tab-highlight !important;
|
|
28
29
|
}
|
|
29
30
|
|
|
30
31
|
&::-moz-range-thumb {
|
|
31
|
-
box-shadow: 0 0 0 inset rgba(
|
|
32
|
+
box-shadow: 0 0 0 inset rgba(colors.$color-cyberspace, 0.2), 0 1px 2px rgba(colors.$color-cyberspace, 0.2), 0 0 0 3px inset $color-tab-highlight !important;
|
|
32
33
|
}
|
|
33
34
|
}
|
|
34
35
|
|
|
@@ -38,6 +39,6 @@ $color-tab-highlight: $color-ruby !default;
|
|
|
38
39
|
.tab-highlight .color-inverse .has-focus {
|
|
39
40
|
&,
|
|
40
41
|
+ label {
|
|
41
|
-
box-shadow: 0 0 0 2px inset
|
|
42
|
+
box-shadow: 0 0 0 2px inset colors.$color-snow !important;
|
|
42
43
|
}
|
|
43
44
|
}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
@charset "UTF-8";
|
|
2
|
+
@use "sass:math";
|
|
3
|
+
@use "sass:meta";
|
|
4
|
+
@use "sass:map";
|
|
2
5
|
|
|
3
6
|
// PLUMBER - Easy baseline grids with SASS
|
|
4
7
|
// https://jamonserrano.github.io/plumber-sass
|
|
5
8
|
// Copyright 2016 Viktor Honti
|
|
6
9
|
// MIT License
|
|
7
10
|
|
|
8
|
-
@use "sass:math";
|
|
9
|
-
|
|
10
11
|
@mixin plumber(
|
|
11
12
|
$font-size: null,
|
|
12
13
|
$line-height: null,
|
|
@@ -21,7 +22,7 @@
|
|
|
21
22
|
@if not $font-size {
|
|
22
23
|
$font-size: -plumber-get-default(font-size);
|
|
23
24
|
}
|
|
24
|
-
@if not unitless($font-size) or $font-size <= 0 {
|
|
25
|
+
@if not math.is-unitless($font-size) or $font-size <= 0 {
|
|
25
26
|
@error '$font-size parameter must be a positive unitless number, got #{$font-size} instead';
|
|
26
27
|
}
|
|
27
28
|
|
|
@@ -29,7 +30,7 @@
|
|
|
29
30
|
@if not $line-height {
|
|
30
31
|
$line-height: -plumber-get-default(line-height);
|
|
31
32
|
}
|
|
32
|
-
@if not unitless($line-height) or $line-height != round($line-height) or $line-height < 1 {
|
|
33
|
+
@if not math.is-unitless($line-height) or $line-height != math.round($line-height) or $line-height < 1 {
|
|
33
34
|
@error '$line-height parameter must be a positive unitless integer, got #{$line-height} instead';
|
|
34
35
|
}
|
|
35
36
|
|
|
@@ -53,7 +54,7 @@
|
|
|
53
54
|
@if not $grid-height {
|
|
54
55
|
$grid-height: -plumber-get-default(grid-height);
|
|
55
56
|
}
|
|
56
|
-
@if unitless($grid-height) or $grid-height < 0 {
|
|
57
|
+
@if math.is-unitless($grid-height) or $grid-height < 0 {
|
|
57
58
|
@error '$grid-height parameter must be a positive unit, got #{$grid-height} instead';
|
|
58
59
|
}
|
|
59
60
|
|
|
@@ -63,7 +64,7 @@
|
|
|
63
64
|
}
|
|
64
65
|
@if not $baseline {
|
|
65
66
|
@error '$baseline must be passed as a parameter or defined in defaults';
|
|
66
|
-
} @else if not (unitless($baseline) and $baseline >= 0 and $baseline < 1) {
|
|
67
|
+
} @else if not (math.is-unitless($baseline) and $baseline >= 0 and $baseline < 1) {
|
|
67
68
|
@error '$baseline parameter must be a unitless fraction between 0 and 1, got #{$baseline} instead';
|
|
68
69
|
}
|
|
69
70
|
|
|
@@ -71,7 +72,7 @@
|
|
|
71
72
|
@if not $use-baseline-origin {
|
|
72
73
|
$use-baseline-origin: -plumber-get-default(use-baseline-origin);
|
|
73
74
|
}
|
|
74
|
-
@if type-of($use-baseline-origin) != bool {
|
|
75
|
+
@if meta.type-of($use-baseline-origin) != bool {
|
|
75
76
|
@error '$use-baseline-origin parameter must be Boolean, got #{$use-baseline-origin} instead';
|
|
76
77
|
}
|
|
77
78
|
|
|
@@ -79,7 +80,7 @@
|
|
|
79
80
|
// the distance of the original baseline from the bottom
|
|
80
81
|
$baseline-from-bottom: math.div($line-height - $font-size, 2) + ($font-size * $baseline);
|
|
81
82
|
// the corrected baseline will be on the nearest gridline
|
|
82
|
-
$corrected-baseline: round($baseline-from-bottom);
|
|
83
|
+
$corrected-baseline: math.round($baseline-from-bottom);
|
|
83
84
|
// the difference between the original and the corrected baseline
|
|
84
85
|
$baseline-difference: $corrected-baseline - $baseline-from-bottom;
|
|
85
86
|
|
|
@@ -120,7 +121,7 @@
|
|
|
120
121
|
}
|
|
121
122
|
|
|
122
123
|
// round pixel values to decrease browser inconsistencies
|
|
123
|
-
@if unit($grid-height) == 'px' {
|
|
124
|
+
@if math.unit($grid-height) == 'px' {
|
|
124
125
|
$line-height: -plumber-round($line-height);
|
|
125
126
|
$margin-top: -plumber-round($margin-top);
|
|
126
127
|
$padding-top: -plumber-round($padding-top);
|
|
@@ -151,21 +152,21 @@ $-plumber-defaults: (
|
|
|
151
152
|
|
|
152
153
|
// Merge provided settings into the defaults map
|
|
153
154
|
@mixin plumber-set-defaults($defaults...) {
|
|
154
|
-
$-plumber-defaults: map
|
|
155
|
+
$-plumber-defaults: map.merge($-plumber-defaults, meta.keywords($defaults)) !global;
|
|
155
156
|
}
|
|
156
157
|
|
|
157
158
|
// Get a default value
|
|
158
159
|
@function -plumber-get-default($key) {
|
|
159
|
-
@return map
|
|
160
|
+
@return map.get($-plumber-defaults, $key);
|
|
160
161
|
}
|
|
161
162
|
|
|
162
163
|
// Check if a value is a non-negative integer
|
|
163
164
|
@function -plumber-is-integer($value) {
|
|
164
|
-
@return (unitless($value) and $value == round($value));
|
|
165
|
+
@return (math.is-unitless($value) and $value == math.round($value));
|
|
165
166
|
}
|
|
166
167
|
|
|
167
168
|
// Round value to the nearest quarter pixel
|
|
168
169
|
// This provides reasonable precision and prevents grid creep (by fractions adding up) in most browsers
|
|
169
170
|
@function -plumber-round($value) {
|
|
170
|
-
@return math.div(round($value * 4), 4);
|
|
171
|
+
@return math.div(math.round($value * 4), 4);
|
|
171
172
|
}
|
|
@@ -1,4 +1,8 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use "sass:list";
|
|
3
|
+
@use "sass:map";
|
|
4
|
+
@use '../../configurations/variables' as var;
|
|
5
|
+
@use '../../configurations/functions' as func;
|
|
2
6
|
|
|
3
7
|
// Breakpoint viewport sizes and media queries.
|
|
4
8
|
//
|
|
@@ -6,7 +10,7 @@
|
|
|
6
10
|
//
|
|
7
11
|
// (xs: 0, sm: 576px, md: 769px, lg: 992px, xl: 1200px, xxl: 1400)
|
|
8
12
|
//
|
|
9
|
-
// The map defined in the
|
|
13
|
+
// The map defined in the `var.$grid-breakpoints` global variable is used as the `$breakpoints` argument by default.
|
|
10
14
|
|
|
11
15
|
// Name of the next breakpoint, or null for the last breakpoint.
|
|
12
16
|
//
|
|
@@ -16,17 +20,17 @@
|
|
|
16
20
|
// md
|
|
17
21
|
// >> breakpoint-next(sm, $breakpoint-names: (xs sm md lg xl))
|
|
18
22
|
// md
|
|
19
|
-
@function breakpoint-next($name, $breakpoints:
|
|
20
|
-
$n: index($breakpoint-names, $name);
|
|
21
|
-
@return if($n < length($breakpoint-names), nth($breakpoint-names, $n + 1), null);
|
|
23
|
+
@function breakpoint-next($name, $breakpoints: var.$grid-breakpoints, $breakpoint-names: map.keys($breakpoints)) {
|
|
24
|
+
$n: list.index($breakpoint-names, $name);
|
|
25
|
+
@return if($n < list.length($breakpoint-names), list.nth($breakpoint-names, $n + 1), null);
|
|
22
26
|
}
|
|
23
27
|
|
|
24
28
|
// Minimum breakpoint width. Null for the smallest (first) breakpoint.
|
|
25
29
|
//
|
|
26
30
|
// >> breakpoint-min(sm, (xs: 0, sm: 576px, md: 769px, lg: 992px, xl: 1200px, xxl: 1400))
|
|
27
31
|
// 576px
|
|
28
|
-
@function breakpoint-min($name, $breakpoints:
|
|
29
|
-
$min: map
|
|
32
|
+
@function breakpoint-min($name, $breakpoints: var.$grid-breakpoints) {
|
|
33
|
+
$min: map.get($breakpoints, $name);
|
|
30
34
|
@return if($min != 0, $min, null);
|
|
31
35
|
}
|
|
32
36
|
|
|
@@ -35,7 +39,7 @@
|
|
|
35
39
|
//
|
|
36
40
|
// >> breakpoint-max(sm, (xs: 0, sm: 576px, md: 769px, lg: 992px, xl: 1200px, xxl: 1400))
|
|
37
41
|
// 767px
|
|
38
|
-
@function breakpoint-max($name, $breakpoints:
|
|
42
|
+
@function breakpoint-max($name, $breakpoints: var.$grid-breakpoints) {
|
|
39
43
|
$next: breakpoint-next($name, $breakpoints);
|
|
40
44
|
@return if($next, breakpoint-min($next, $breakpoints) - 1px, null);
|
|
41
45
|
}
|
|
@@ -47,13 +51,13 @@
|
|
|
47
51
|
// "" (Returns a blank string)
|
|
48
52
|
// >> breakpoint-infix(sm, (xs: 0, sm: 576px, md: 769px, lg: 992px, xl: 1200px, xxl: 1400))
|
|
49
53
|
// "-sm"
|
|
50
|
-
@function breakpoint-infix($name, $breakpoints:
|
|
54
|
+
@function breakpoint-infix($name, $breakpoints: var.$grid-breakpoints) {
|
|
51
55
|
@return if(breakpoint-min($name, $breakpoints) == null, '', '-#{$name}');
|
|
52
56
|
}
|
|
53
57
|
|
|
54
58
|
// Media of at least the minimum breakpoint width. No query for the smallest breakpoint.
|
|
55
59
|
// Makes the @content apply to the given breakpoint and wider.
|
|
56
|
-
@mixin bp-up($name, $breakpoints:
|
|
60
|
+
@mixin bp-up($name, $breakpoints: var.$grid-breakpoints) {
|
|
57
61
|
$min: breakpoint-min($name, $breakpoints);
|
|
58
62
|
@if $min {
|
|
59
63
|
@media (min-width: $min) {
|
|
@@ -66,7 +70,7 @@
|
|
|
66
70
|
|
|
67
71
|
// Media of at most the maximum breakpoint width. No query for the largest breakpoint.
|
|
68
72
|
// Makes the @content apply to the given breakpoint and narrower.
|
|
69
|
-
@mixin bp-down($name, $breakpoints:
|
|
73
|
+
@mixin bp-down($name, $breakpoints: var.$grid-breakpoints) {
|
|
70
74
|
$max: breakpoint-max($name, $breakpoints);
|
|
71
75
|
@if $max {
|
|
72
76
|
@media (max-width: $max) {
|
|
@@ -79,7 +83,7 @@
|
|
|
79
83
|
|
|
80
84
|
// Media that spans multiple breakpoint widths.
|
|
81
85
|
// Makes the @content apply between the min and max breakpoints
|
|
82
|
-
@mixin bp-between($lower, $upper, $breakpoints:
|
|
86
|
+
@mixin bp-between($lower, $upper, $breakpoints: var.$grid-breakpoints) {
|
|
83
87
|
$min: breakpoint-min($lower, $breakpoints);
|
|
84
88
|
$max: breakpoint-max($upper, $breakpoints);
|
|
85
89
|
|
|
@@ -91,7 +95,7 @@
|
|
|
91
95
|
// Media between the breakpoint's minimum and maximum widths.
|
|
92
96
|
// No minimum for the smallest breakpoint, and no maximum for the largest one.
|
|
93
97
|
// Makes the @content apply only to the given breakpoint, not viewports any wider or narrower.
|
|
94
|
-
@mixin bp-only($name, $breakpoints:
|
|
98
|
+
@mixin bp-only($name, $breakpoints: var.$grid-breakpoints) {
|
|
95
99
|
$min: breakpoint-min($name, $breakpoints);
|
|
96
100
|
$max: breakpoint-max($name, $breakpoints);
|
|
97
101
|
|
|
@@ -1,12 +1,16 @@
|
|
|
1
|
-
@charset
|
|
1
|
+
@charset "UTF-8";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use '../../configurations/variables' as var;
|
|
4
|
+
@use '../../configurations/functions' as func;
|
|
5
|
+
@use 'breakpoints' as breakpoint;
|
|
2
6
|
|
|
3
7
|
// Flex variation
|
|
4
8
|
//
|
|
5
9
|
// Custom styles for additional flex alignment options.
|
|
6
10
|
|
|
7
|
-
@each $breakpoint in map
|
|
8
|
-
@include bp-up($breakpoint) {
|
|
9
|
-
$infix: breakpoint-infix($breakpoint,
|
|
11
|
+
@each $breakpoint in map.keys(var.$grid-breakpoints) {
|
|
12
|
+
@include breakpoint.bp-up($breakpoint) {
|
|
13
|
+
$infix: breakpoint.breakpoint-infix($breakpoint, var.$grid-breakpoints);
|
|
10
14
|
|
|
11
15
|
.display-flex { display: flex !important; }
|
|
12
16
|
|
|
@@ -1,14 +1,17 @@
|
|
|
1
|
-
@
|
|
1
|
+
@use "sass:list";
|
|
2
|
+
@use "sass:map";
|
|
3
|
+
@use "sass:math";
|
|
4
|
+
@charset "UTF-8";
|
|
2
5
|
|
|
3
6
|
// Ascending
|
|
4
7
|
// Used to evaluate Sass maps like our grid breakpoints.
|
|
5
|
-
@mixin
|
|
8
|
+
@mixin assert-ascending($map, $map-name) {
|
|
6
9
|
$prev-key: null;
|
|
7
10
|
$prev-num: null;
|
|
8
11
|
@each $key, $num in $map {
|
|
9
12
|
@if $prev-num == null {
|
|
10
13
|
// Do nothing
|
|
11
|
-
} @else if not
|
|
14
|
+
} @else if not math.compatible($prev-num, $num) {
|
|
12
15
|
@warn "Potentially invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} whose unit makes it incomparable to #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
|
13
16
|
} @else if $prev-num >= $num {
|
|
14
17
|
@warn "Invalid value for #{$map-name}: This map must be in ascending order, but key '#{$key}' has value #{$num} which isn't greater than #{$prev-num}, the value of the previous key '#{$prev-key}' !";
|
|
@@ -20,9 +23,9 @@
|
|
|
20
23
|
|
|
21
24
|
// Starts at zero
|
|
22
25
|
// Another grid mixin that ensures the min-width of the lowest breakpoint starts at 0.
|
|
23
|
-
@mixin
|
|
24
|
-
$values: map
|
|
25
|
-
$first-value: nth($values, 1);
|
|
26
|
+
@mixin assert-starts-at-zero($map) {
|
|
27
|
+
$values: map.values($map);
|
|
28
|
+
$first-value: list.nth($values, 1);
|
|
26
29
|
@if $first-value != 0 {
|
|
27
30
|
@warn 'First breakpoint in `$grid-breakpoints` must start at 0, but starts at #{$first-value}.';
|
|
28
31
|
}
|