summaryrefslogtreecommitdiffstats
path: root/src/objects/_heading.scss
diff options
context:
space:
mode:
Diffstat (limited to 'src/objects/_heading.scss')
-rw-r--r--src/objects/_heading.scss29
1 files changed, 13 insertions, 16 deletions
diff --git a/src/objects/_heading.scss b/src/objects/_heading.scss
index 5d84e61..6dcf7e9 100644
--- a/src/objects/_heading.scss
+++ b/src/objects/_heading.scss
@@ -8,37 +8,34 @@
8 @include iro.props-store(( 8 @include iro.props-store((
9 --dims: ( 9 --dims: (
10 --offset: -.02em, 10 --offset: -.02em,
11 ) 11 ),
12 ), 'dims');
13
14 @include iro.props-store((
15 --colors: ( 12 --colors: (
16 --light: fn.global-color(--fg-hi), 13 --light: fn.global-color(--text-mute),
17 --strong: fn.global-color(--fg-lo), 14 --strong: fn.global-color(--heading),
18 --bg: fn.global-color(--bg-hi2), 15 --bg: fn.global-color(--bg-l2),
19 ), 16 ),
20 ), 'colors'); 17 ));
21 18
22 @include iro.bem-object(iro.props-namespace()) { 19 @include iro.bem-object(iro.props-namespace()) {
23 @include mx.set-font(--headline); 20 @include mx.set-font(--headline);
24 21
25 display: block; 22 display: block;
26 margin-top: fn.global-dim(--heading --margin-top); 23 margin-block-start: fn.global-dim(--heading --margin-bs);
27 transform: translateX(fn.dim(--offset)); 24 transform: translateX(fn.dim(--offset));
28 letter-spacing: normal; 25 letter-spacing: normal;
29 text-transform: none; 26 text-transform: none;
30 27
31 & + & { 28 & + & {
32 margin-top: fn.global-dim(--heading --margin-top-sibling); 29 margin-block-start: fn.global-dim(--heading --margin-bs-sibling);
33 } 30 }
34 31
35 @include iro.bem-elem('highlight') { 32 @include iro.bem-elem('highlight') {
36 background-image: linear-gradient( 33 background-image: linear-gradient(
37 to top, 34 to top,
38 transparent .05em, 35 transparent .05em,
39 fn.color(--bg) .05em, 36 fn.color(--bg) .05em,
40 fn.color(--bg) .5em, 37 fn.color(--bg) .5em,
41 transparent .5em 38 transparent .5em
42 ); 39 );
43 } 40 }
44 41