diff options
Diffstat (limited to 'assets/css/scopes/_body.scss')
-rw-r--r-- | assets/css/scopes/_body.scss | 74 |
1 files changed, 6 insertions, 68 deletions
diff --git a/assets/css/scopes/_body.scss b/assets/css/scopes/_body.scss index b4d0a3c..8e5f876 100644 --- a/assets/css/scopes/_body.scss +++ b/assets/css/scopes/_body.scss | |||
@@ -1,10 +1,6 @@ | |||
1 | @include namespace('body') { | 1 | @include namespace('body') { |
2 | @include store(( | 2 | @include store(( |
3 | --colors: ( | 3 | --colors: ( |
4 | --emph: ( | ||
5 | --fg: prop(--colors --accent --color, $global: true), | ||
6 | --bg: prop(--colors --bg-hi, $global: true), | ||
7 | ), | ||
8 | --meta: ( | 4 | --meta: ( |
9 | --fg: prop(--colors --fg-hi, $global: true), | 5 | --fg: prop(--colors --fg-hi, $global: true), |
10 | ) | 6 | ) |
@@ -12,73 +8,15 @@ | |||
12 | )); | 8 | )); |
13 | 9 | ||
14 | @include scope(namespace()) { | 10 | @include scope(namespace()) { |
15 | font-size: 1 / 16 * 18em; | 11 | font-size: 1 / 16 * 19em; |
16 | |||
17 | > :first-child { | ||
18 | margin-top: 0; | ||
19 | } | ||
20 | |||
21 | :link { | ||
22 | color: prop(--colors --link --idle-body, $global: true); | ||
23 | } | ||
24 | |||
25 | :visited { | ||
26 | color: prop(--colors --link --visited-body, $global: true); | ||
27 | } | ||
28 | |||
29 | h1, | ||
30 | h2, | ||
31 | h3, | ||
32 | h4 { | ||
33 | transform: translateX(-.06em); | ||
34 | } | ||
35 | |||
36 | h1 { | ||
37 | @include iro-responsive-modular-scale(font-size, 3, $responsive-mod-scale); | ||
38 | } | ||
39 | |||
40 | h2 { | ||
41 | @include iro-responsive-modular-scale(font-size, 2, $responsive-mod-scale); | ||
42 | } | ||
43 | |||
44 | h3 { | ||
45 | @include iro-responsive-modular-scale(font-size, 1, $responsive-mod-scale); | ||
46 | |||
47 | letter-spacing: .05em; | ||
48 | text-transform: uppercase; | ||
49 | } | ||
50 | |||
51 | h4, | ||
52 | h5, | ||
53 | h6 { | ||
54 | @include iro-responsive-modular-scale(font-size, 0, $responsive-mod-scale); | ||
55 | |||
56 | letter-spacing: .1em; | ||
57 | text-transform: uppercase; | ||
58 | } | ||
59 | |||
60 | h5, | ||
61 | h6 { | ||
62 | color: currentColor; | ||
63 | font-weight: 400; | ||
64 | } | ||
65 | |||
66 | @include element('title-inner') { | ||
67 | background-image: linear-gradient( | ||
68 | to top, | ||
69 | transparent .15em, | ||
70 | #{prop(--colors --emph --bg)} .15em, | ||
71 | #{prop(--colors --emph --bg)} .6em, | ||
72 | transparent .6em | ||
73 | ); | ||
74 | } | ||
75 | 12 | ||
76 | @include element('meta') { | 13 | @include element('meta') { |
77 | color: prop(--colors --meta --fg); | 14 | margin-top: $line-height * 1rem; |
78 | font-size: 1 / 18 * 16em; | 15 | color: prop(--colors --meta --fg); |
16 | font-size: 1 / 16 * 15rem; | ||
79 | 17 | ||
80 | + h1 { | 18 | + * { |
81 | margin-top: $line-height * 1rem; | 19 | margin-top: $line-height * 1.5rem; |
82 | } | 20 | } |
83 | } | 21 | } |
84 | 22 | ||