blob: 7cfd9af1d0527c03f4d0c88eaf833b860f51bdd6 (
plain) (
blame)
1
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
@use 'iro-sass/src/index' as iro;
@use '../functions' as fn;
@use '../mixins' as mx;
@use '../config';
@include iro.props-namespace('heading') {
@include iro.props-store((
--colors: (
--light: fn.global-color(--fg-hi),
--strong: fn.global-color(--fg-lo),
--bg: fn.global-color(--bg-hi2),
),
), 'colors');
@include iro.bem-object(iro.props-namespace()) {
@include mx.set-font(--headline);
display: block;
margin-top: fn.global-dim(--heading --margin-top);
transform: translateX(-.06em);
letter-spacing: normal;
text-transform: none;
& + & {
margin-top: fn.global-dim(--heading --margin-top-sibling);
}
@include iro.bem-elem('highlight') {
background-image: linear-gradient(
to top,
transparent .15em,
fn.color(--bg) .15em,
fn.color(--bg) .6em,
transparent .6em
);
}
@include iro.bem-modifier('xxl') {
@include mx.heading-strong(fn.global-dim(--heading --lg));
}
@include iro.bem-modifier('xl') {
@include mx.heading-medium(fn.global-dim(--heading --md));
}
@include iro.bem-modifier('lg', 'md', 'sm', 'xs') {
@include mx.heading-faint(fn.global-dim(--heading --sm));
}
@include iro.bem-modifier('display') {
@include mx.set-font(--headline);
@include iro.bem-modifier('xxl') {
@include mx.heading-strong(fn.global-dim(--heading --display --xxl));
}
@include iro.bem-modifier('xl') {
@include mx.heading-strong(fn.global-dim(--heading --display --xl));
}
@include iro.bem-modifier('lg') {
@include mx.heading-strong(fn.global-dim(--heading --display --lg));
}
@include iro.bem-modifier('md') {
@include mx.heading-strong(fn.global-dim(--heading --display --md));
}
@include iro.bem-modifier('sm') {
@include mx.heading-medium(fn.global-dim(--heading --display --sm));
}
@include iro.bem-modifier('xs') {
@include mx.heading-faint(fn.global-dim(--heading --display --xs));
}
}
}
}
|