diff options
Diffstat (limited to 'src/scopes')
-rw-r--r-- | src/scopes/_body.scss | 6 | ||||
-rw-r--r-- | src/scopes/_body.vars.scss | 3 | ||||
-rw-r--r-- | src/scopes/_figures.scss | 21 | ||||
-rw-r--r-- | src/scopes/_implicit.scss | 21 | ||||
-rw-r--r-- | src/scopes/_links.vars.scss | 2 |
5 files changed, 51 insertions, 2 deletions
diff --git a/src/scopes/_body.scss b/src/scopes/_body.scss index c5f7128..6d32212 100644 --- a/src/scopes/_body.scss +++ b/src/scopes/_body.scss | |||
@@ -11,6 +11,7 @@ | |||
11 | 11 | ||
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 | line-height: props.get(vars.$line-height); | ||
14 | 15 | ||
15 | strong { | 16 | strong { |
16 | color: props.get(vars.$strong--text-color); | 17 | color: props.get(vars.$strong--text-color); |
@@ -23,6 +24,11 @@ | |||
23 | margin-block-start: props.get(vars.$paragraph--margin-bs); | 24 | margin-block-start: props.get(vars.$paragraph--margin-bs); |
24 | } | 25 | } |
25 | 26 | ||
27 | ul, | ||
28 | ol { | ||
29 | box-sizing: border-box; | ||
30 | } | ||
31 | |||
26 | img { | 32 | img { |
27 | display: block; | 33 | display: block; |
28 | inline-size: auto; | 34 | inline-size: auto; |
diff --git a/src/scopes/_body.vars.scss b/src/scopes/_body.vars.scss index 6c38c3f..1de2cfd 100644 --- a/src/scopes/_body.vars.scss +++ b/src/scopes/_body.vars.scss | |||
@@ -4,8 +4,9 @@ | |||
4 | @use '../layouts/container.vars' as container; | 4 | @use '../layouts/container.vars' as container; |
5 | 5 | ||
6 | $font-size: props.def(--s-body--font-size, props.get(core.$font-size--150)) !default; | 6 | $font-size: props.def(--s-body--font-size, props.get(core.$font-size--150)) !default; |
7 | $line-height: props.def(--s-body--line-height, calc(props.get(core.$font--standard--line-height) + .1)) !default; | ||
7 | $paragraph--margin-bs: props.def(--s-body--paragraph--margin-bs, props.get(core.$size--300)) !default; | 8 | $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 | $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; | 10 | $img--max-block-size: props.def(--s-body--img--max-block-size, none) !default; |
10 | 11 | ||
11 | $strong--text-color: props.def(--s-body--strong--text-color, props.get(core.$theme, --heading), 'color') !default; | 12 | $strong--text-color: props.def(--s-body--strong--text-color, props.get(core.$theme, --heading), 'color') !default; |
diff --git a/src/scopes/_figures.scss b/src/scopes/_figures.scss new file mode 100644 index 0000000..981a8b6 --- /dev/null +++ b/src/scopes/_figures.scss | |||
@@ -0,0 +1,21 @@ | |||
1 | @use 'sass:meta'; | ||
2 | @use 'iro-sass/src/bem'; | ||
3 | @use 'iro-sass/src/props'; | ||
4 | @use '../objects/figure.vars' as figure; | ||
5 | |||
6 | @mixin styles { | ||
7 | @include bem.scope('figures') { | ||
8 | figcaption { | ||
9 | padding-block: props.get(figure.$pad-b); | ||
10 | font-size: props.get(figure.$font-size); | ||
11 | color: props.get(figure.$text-color); | ||
12 | border-block-end: props.get(figure.$border-width) solid props.get(figure.$border-color); | ||
13 | |||
14 | &::before { | ||
15 | display: block; | ||
16 | margin-block: -100em 100em; | ||
17 | content: ''; | ||
18 | } | ||
19 | } | ||
20 | } | ||
21 | } | ||
diff --git a/src/scopes/_implicit.scss b/src/scopes/_implicit.scss index 020e311..78f06be 100644 --- a/src/scopes/_implicit.scss +++ b/src/scopes/_implicit.scss | |||
@@ -1,5 +1,7 @@ | |||
1 | @use 'sass:map'; | ||
1 | @use 'sass:math'; | 2 | @use 'sass:math'; |
2 | @use 'sass:meta'; | 3 | @use 'sass:meta'; |
4 | @use 'sass:string'; | ||
3 | @use 'iro-sass/src/bem'; | 5 | @use 'iro-sass/src/bem'; |
4 | @use 'iro-sass/src/props'; | 6 | @use 'iro-sass/src/props'; |
5 | @use '../props' as *; | 7 | @use '../props' as *; |
@@ -155,5 +157,24 @@ | |||
155 | padding: 0; | 157 | padding: 0; |
156 | margin: 0; | 158 | margin: 0; |
157 | } | 159 | } |
160 | |||
161 | @each $theme in map.keys(props.get(core.$transparent-colors)) { | ||
162 | .t-static-#{string.slice($theme, 3)} { | ||
163 | color: props.get(core.$transparent-colors, $theme, --800); | ||
164 | |||
165 | h1, | ||
166 | h2, | ||
167 | h3, | ||
168 | h4, | ||
169 | h5, | ||
170 | h6 { | ||
171 | color: props.get(core.$transparent-colors, $theme, --900); | ||
172 | } | ||
173 | |||
174 | hr { | ||
175 | color: props.get(core.$transparent-colors, $theme, --400); | ||
176 | } | ||
177 | } | ||
178 | } | ||
158 | } | 179 | } |
159 | } | 180 | } |
diff --git a/src/scopes/_links.vars.scss b/src/scopes/_links.vars.scss index 91a73ab..b9bf4d1 100644 --- a/src/scopes/_links.vars.scss +++ b/src/scopes/_links.vars.scss | |||
@@ -31,7 +31,7 @@ $static-themes: props.def(--s-links, (), 'color'); | |||
31 | 31 | ||
32 | $static-themes: props.merge($static-themes, ( | 32 | $static-themes: props.merge($static-themes, ( |
33 | $link-theme: ( | 33 | $link-theme: ( |
34 | --text-color: props.get(core.$transparent-colors, $theme, --800), | 34 | --text-color: currentColor, |
35 | --underline-color: props.get(core.$transparent-colors, $theme, --500), | 35 | --underline-color: props.get(core.$transparent-colors, $theme, --500), |
36 | 36 | ||
37 | --hover: ( | 37 | --hover: ( |