diff options
Diffstat (limited to 'src/scopes')
-rw-r--r-- | src/scopes/_body.scss | 36 | ||||
-rw-r--r-- | src/scopes/_body.vars.scss | 10 | ||||
-rw-r--r-- | src/scopes/_code.vars.scss | 4 | ||||
-rw-r--r-- | src/scopes/_implicit.vars.scss | 2 |
4 files changed, 34 insertions, 18 deletions
diff --git a/src/scopes/_body.scss b/src/scopes/_body.scss index 6742a2a..65c6d2f 100644 --- a/src/scopes/_body.scss +++ b/src/scopes/_body.scss | |||
@@ -12,33 +12,47 @@ | |||
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 | p { | 15 | strong { |
16 | color: props.get(vars.$strong--text-color); | ||
17 | } | ||
18 | |||
19 | p, | ||
20 | ul, | ||
21 | ol { | ||
22 | max-inline-size: props.get(vars.$paragraph--max-inline-size); | ||
16 | margin-block-start: props.get(vars.$paragraph--margin-bs); | 23 | margin-block-start: props.get(vars.$paragraph--margin-bs); |
17 | } | 24 | } |
18 | 25 | ||
26 | ul, | ||
27 | ol { | ||
28 | box-sizing: border-box; | ||
29 | } | ||
30 | |||
19 | img { | 31 | img { |
20 | display: block; | 32 | display: block; |
21 | inline-size: auto; | 33 | inline-size: auto; |
22 | max-inline-size: 100%; | 34 | max-inline-size: 100%; |
23 | block-size: auto; | 35 | block-size: auto; |
24 | max-block-size: props.get(vars.$img--max-block-size); | 36 | max-block-size: props.get(vars.$img--max-block-size); |
25 | margin-block: props.get(vars.$block--margin-b); | 37 | margin-block-start: props.get(vars.$paragraph--margin-bs); |
26 | } | 38 | } |
27 | 39 | ||
28 | figure { | 40 | figure { |
29 | margin-block: props.get(vars.$block--margin-b); | 41 | margin-block-start: props.get(vars.$paragraph--margin-bs); |
30 | 42 | ||
31 | img { | 43 | img { |
32 | margin-block: 0; | 44 | margin-block: 0; |
33 | } | 45 | } |
34 | } | 46 | } |
35 | 47 | ||
36 | ul, | 48 | hr { |
37 | ol, | 49 | margin-block: calc(2 * props.get(vars.$paragraph--margin-bs)); |
50 | } | ||
51 | |||
38 | table, | 52 | table, |
39 | pre, | 53 | pre, |
40 | blockquote { | 54 | blockquote { |
41 | margin-block: props.get(vars.$block--margin-b); | 55 | margin-block-start: props.get(vars.$paragraph--margin-bs); |
42 | } | 56 | } |
43 | } | 57 | } |
44 | } | 58 | } |
diff --git a/src/scopes/_body.vars.scss b/src/scopes/_body.vars.scss index 98f23bd..6c38c3f 100644 --- a/src/scopes/_body.vars.scss +++ b/src/scopes/_body.vars.scss | |||
@@ -1,9 +1,11 @@ | |||
1 | @use 'iro-sass/src/props'; | 1 | @use 'iro-sass/src/props'; |
2 | @use '../core.vars' as core; | 2 | @use '../core.vars' as core; |
3 | 3 | ||
4 | $font-size: props.def(--s-body--font-size, props.get(core.$font-size--150)) !default; | 4 | @use '../layouts/container.vars' as container; |
5 | 5 | ||
6 | $paragraph--margin-bs: props.def(--s-body--paragraph--margin-bs, props.get(core.$size--300)) !default; | 6 | $font-size: props.def(--s-body--font-size, props.get(core.$font-size--150)) !default; |
7 | $block--margin-b: props.def(--s-body--block--margin-b, calc(2 * props.get($paragraph--margin-bs))) !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; | ||
9 | $img--max-block-size: props.def(--s-body--img--max-block-size, calc(100vh - props.get(core.$size--2400))) !default; | ||
8 | 10 | ||
9 | $img--max-block-size: props.def(--s-body--img--max-block-size, calc(100vh - props.get(core.$size--2400))) !default; | 11 | $strong--text-color: props.def(--s-body--strong--text-color, props.get(core.$theme, --heading), 'color') !default; |
diff --git a/src/scopes/_code.vars.scss b/src/scopes/_code.vars.scss index e06971b..8a040c2 100644 --- a/src/scopes/_code.vars.scss +++ b/src/scopes/_code.vars.scss | |||
@@ -11,8 +11,8 @@ $block--pad-b: props.def(--s-code--block--pad-b, props.get(core.$size--85)) | |||
11 | $block--margin-bs: props.def(--s-code--block--margin-bs, props.get(implicit.$paragraph--margin-bs)) !default; | 11 | $block--margin-bs: props.def(--s-code--block--margin-bs, props.get(implicit.$paragraph--margin-bs)) !default; |
12 | $block--rounding: props.def(--s-code--block--rounding, props.get(core.$rounding)) !default; | 12 | $block--rounding: props.def(--s-code--block--rounding, props.get(core.$rounding)) !default; |
13 | 13 | ||
14 | $inline--fg: props.def(--s-code--inline--fg, props.get(core.$theme, --red, --1200), 'color') !default; | 14 | $inline--fg: props.def(--s-code--inline--fg, props.get(core.$theme, --heading), 'color') !default; |
15 | $inline--bg: props.def(--s-code--inline--bg, props.get(core.$theme, --red, --200), 'color') !default; | 15 | $inline--bg: props.def(--s-code--inline--bg, props.get(core.$theme, --base, --200), 'color') !default; |
16 | 16 | ||
17 | $block--fg: props.def(--s-code--block--fg, props.get(core.$theme, --text), 'color') !default; | 17 | $block--fg: props.def(--s-code--block--fg, props.get(core.$theme, --text), 'color') !default; |
18 | $block--bg: props.def(--s-code--block--bg, props.get(core.$theme, --base, --50), 'color') !default; | 18 | $block--bg: props.def(--s-code--block--bg, props.get(core.$theme, --base, --50), '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; |