summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/_utils.scss12
-rw-r--r--src/objects/_badge.vars.scss2
-rw-r--r--src/objects/_button.vars.scss2
-rw-r--r--src/objects/_heading.vars.scss2
-rw-r--r--src/scopes/_body.scss14
-rw-r--r--src/scopes/_body.vars.scss2
-rw-r--r--src/scopes/_implicit.vars.scss2
7 files changed, 29 insertions, 7 deletions
diff --git a/src/_utils.scss b/src/_utils.scss
index 4fb122a..bd92454 100644
--- a/src/_utils.scss
+++ b/src/_utils.scss
@@ -305,4 +305,16 @@ $-sizes: (
305 content: ''; 305 content: '';
306 } 306 }
307 } 307 }
308
309 @include bem.utility('sr-only') {
310 position: absolute;
311 width: 1px;
312 height: 1px;
313 padding: 0;
314 margin: -1px;
315 overflow: hidden;
316 clip-path: inset(50%);
317 white-space: nowrap;
318 border: 0;
319 }
308} 320}
diff --git a/src/objects/_badge.vars.scss b/src/objects/_badge.vars.scss
index 6327e7b..ff07148 100644
--- a/src/objects/_badge.vars.scss
+++ b/src/objects/_badge.vars.scss
@@ -73,7 +73,7 @@ $default-theme: props.def(--o-badge, (
73 --label: props.get(core.$theme, --heading), 73 --label: props.get(core.$theme, --heading),
74 ), 74 ),
75 ) 75 )
76), 'color'); 76), 'color') !default;
77$default-theme: props.merge($default-theme, $default-theme-override); 77$default-theme: props.merge($default-theme, $default-theme-override);
78 78
79$static-themes: props.def(--o-badge, (), 'color'); 79$static-themes: props.def(--o-badge, (), 'color');
diff --git a/src/objects/_button.vars.scss b/src/objects/_button.vars.scss
index f70bde7..4f7b552 100644
--- a/src/objects/_button.vars.scss
+++ b/src/objects/_button.vars.scss
@@ -81,7 +81,7 @@ $default-theme: props.def(--o-button, (
81 --label: props.get(core.$theme, --base, --700-text), 81 --label: props.get(core.$theme, --base, --700-text),
82 ), 82 ),
83 ), 83 ),
84), 'color'); 84), 'color') !default;
85$default-theme: props.merge($default-theme, $default-theme-override); 85$default-theme: props.merge($default-theme, $default-theme-override);
86 86
87$static-themes: props.def(--o-button, (), 'color'); 87$static-themes: props.def(--o-button, (), 'color');
diff --git a/src/objects/_heading.vars.scss b/src/objects/_heading.vars.scss
index 5cd6767..90278c8 100644
--- a/src/objects/_heading.vars.scss
+++ b/src/objects/_heading.vars.scss
@@ -5,7 +5,7 @@ $offset: props.def(--o-heading--offset, -.02em) !default;
5$margin-bs: props.def(--o-heading--margin-bs, props.get(core.$size--700)) !default; 5$margin-bs: props.def(--o-heading--margin-bs, props.get(core.$size--700)) !default;
6$margin-bs-sibling: props.def(--o-heading--margin-bs-sibling, props.get(core.$size--325)) !default; 6$margin-bs-sibling: props.def(--o-heading--margin-bs-sibling, props.get(core.$size--325)) !default;
7 7
8$text-color: props.def(--o-heading--text-color, props.get(core.$theme, --heading), 'color'); 8$text-color: props.def(--o-heading--text-color, props.get(core.$theme, --heading), 'color') !default;
9$bg-color: props.def(--o-heading--bg-color, props.get(core.$theme, --base, --50), 'color') !default; 9$bg-color: props.def(--o-heading--bg-color, props.get(core.$theme, --base, --50), 'color') !default;
10 10
11$font-family: props.def(--o-heading--font-family, props.get(core.$font--standard--family)) !default; 11$font-family: props.def(--o-heading--font-family, props.get(core.$font--standard--family)) !default;
diff --git a/src/scopes/_body.scss b/src/scopes/_body.scss
index 9091117..65c6d2f 100644
--- a/src/scopes/_body.scss
+++ b/src/scopes/_body.scss
@@ -12,12 +12,22 @@
12 @include bem.scope('body') { 12 @include bem.scope('body') {
13 font-size: props.get(vars.$font-size); 13 font-size: props.get(vars.$font-size);
14 14
15 strong {
16 color: props.get(vars.$strong--text-color);
17 }
18
15 p, 19 p,
16 li { 20 ul,
21 ol {
17 max-inline-size: props.get(vars.$paragraph--max-inline-size); 22 max-inline-size: props.get(vars.$paragraph--max-inline-size);
18 margin-block-start: props.get(vars.$paragraph--margin-bs); 23 margin-block-start: props.get(vars.$paragraph--margin-bs);
19 } 24 }
20 25
26 ul,
27 ol {
28 box-sizing: border-box;
29 }
30
21 img { 31 img {
22 display: block; 32 display: block;
23 inline-size: auto; 33 inline-size: auto;
@@ -39,8 +49,6 @@
39 margin-block: calc(2 * props.get(vars.$paragraph--margin-bs)); 49 margin-block: calc(2 * props.get(vars.$paragraph--margin-bs));
40 } 50 }
41 51
42 ul,
43 ol,
44 table, 52 table,
45 pre, 53 pre,
46 blockquote { 54 blockquote {
diff --git a/src/scopes/_body.vars.scss b/src/scopes/_body.vars.scss
index 79556fa..6c38c3f 100644
--- a/src/scopes/_body.vars.scss
+++ b/src/scopes/_body.vars.scss
@@ -7,3 +7,5 @@ $font-size: props.def(--s-body--font-size, props.get(core.$font
7$paragraph--margin-bs: props.def(--s-body--paragraph--margin-bs, props.get(core.$size--300)) !default; 7$paragraph--margin-bs: props.def(--s-body--paragraph--margin-bs, props.get(core.$size--300)) !default;
8$paragraph--max-inline-size: props.def(--s-body--paragraph--max-inline-size, props.get(container.$fixed)) !default; 8$paragraph--max-inline-size: props.def(--s-body--paragraph--max-inline-size, props.get(container.$fixed)) !default;
9$img--max-block-size: props.def(--s-body--img--max-block-size, calc(100vh - props.get(core.$size--2400))) !default; 9$img--max-block-size: props.def(--s-body--img--max-block-size, calc(100vh - props.get(core.$size--2400))) !default;
10
11$strong--text-color: props.def(--s-body--strong--text-color, props.get(core.$theme, --heading), 'color') !default;
diff --git a/src/scopes/_implicit.vars.scss b/src/scopes/_implicit.vars.scss
index e809ac3..388f0af 100644
--- a/src/scopes/_implicit.vars.scss
+++ b/src/scopes/_implicit.vars.scss
@@ -23,4 +23,4 @@ $heading--font-weight: props.def(--s-implicit--heading--font-weight, bold)
23$heading--font-size: props.def(--s-implicit--heading--font-size, props.get(core.$font-size--100)); 23$heading--font-size: props.def(--s-implicit--heading--font-size, props.get(core.$font-size--100));
24$heading--feature-settings: props.def(--s-implicit--heading--feature-settings, props.get(core.$font--standard--feature-settings)) !default; 24$heading--feature-settings: props.def(--s-implicit--heading--feature-settings, props.get(core.$font--standard--feature-settings)) !default;
25 25
26$heading--color: props.def(--s-implicit--heading--color, props.get(core.$theme, --heading), 'color'); 26$heading--color: props.def(--s-implicit--heading--color, props.get(core.$theme, --heading), 'color') !default;