diff options
Diffstat (limited to 'assets/css/scopes/_headlines.scss')
-rw-r--r-- | assets/css/scopes/_headlines.scss | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/assets/css/scopes/_headlines.scss b/assets/css/scopes/_headlines.scss new file mode 100644 index 0000000..6b28e9c --- /dev/null +++ b/assets/css/scopes/_headlines.scss | |||
@@ -0,0 +1,58 @@ | |||
1 | @include namespace('headlines') { | ||
2 | @include store(( | ||
3 | --colors: ( | ||
4 | --emph: ( | ||
5 | --bg: prop(--colors --bg-hi, $global: true), | ||
6 | ) | ||
7 | ) | ||
8 | )); | ||
9 | |||
10 | @include scope(namespace()) { | ||
11 | h1, | ||
12 | h2, | ||
13 | h3, | ||
14 | h4 { | ||
15 | transform: translateX(-.06em); | ||
16 | } | ||
17 | |||
18 | h1 { | ||
19 | @include iro-responsive-modular-scale(font-size, 3, $responsive-mod-scale); | ||
20 | } | ||
21 | |||
22 | h2 { | ||
23 | @include iro-responsive-modular-scale(font-size, 2, $responsive-mod-scale); | ||
24 | } | ||
25 | |||
26 | h3 { | ||
27 | @include iro-responsive-modular-scale(font-size, 1, $responsive-mod-scale); | ||
28 | |||
29 | letter-spacing: .05em; | ||
30 | text-transform: uppercase; | ||
31 | } | ||
32 | |||
33 | h4, | ||
34 | h5, | ||
35 | h6 { | ||
36 | @include iro-responsive-modular-scale(font-size, 0, $responsive-mod-scale); | ||
37 | |||
38 | letter-spacing: .1em; | ||
39 | text-transform: uppercase; | ||
40 | } | ||
41 | |||
42 | h5, | ||
43 | h6 { | ||
44 | color: currentColor; | ||
45 | font-weight: 400; | ||
46 | } | ||
47 | |||
48 | @include element('title-inner') { | ||
49 | background-image: linear-gradient( | ||
50 | to top, | ||
51 | transparent .15em, | ||
52 | #{prop(--colors --emph --bg)} .15em, | ||
53 | #{prop(--colors --emph --bg)} .6em, | ||
54 | transparent .6em | ||
55 | ); | ||
56 | } | ||
57 | } | ||
58 | } | ||