summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_hero.scss
diff options
context:
space:
mode:
Diffstat (limited to 'assets/css/components/_hero.scss')
-rw-r--r--assets/css/components/_hero.scss71
1 files changed, 43 insertions, 28 deletions
diff --git a/assets/css/components/_hero.scss b/assets/css/components/_hero.scss
index bfcdc16..6c497a1 100644
--- a/assets/css/components/_hero.scss
+++ b/assets/css/components/_hero.scss
@@ -1,35 +1,50 @@
1.c-hero { 1@include namespace('hero') {
2 margin-bottom: $line-height * 2em; 2 @include store((
3 margin-left: -1 * $page--item-prefix--width; 3 --colors: (
4 padding-left: $page--item-prefix--width; 4 --back-fg: prop(--colors --bg-hi, $global: true)
5 overflow: hidden; 5 )
6 font-family: $font-fam--mono; 6 ));
7 7
8 &::after { 8 @include component(namespace()) {
9 content: str-repeat('░', 120); 9 display: flex;
10 display: block; 10 position: relative;
11 position: relative; 11 flex-direction: column;
12 z-index: -10; 12 align-items: center;
13 height: $line-height; 13 justify-content: center;
14 margin-top: px-to-em(2px); 14 text-align: center;
15 margin-left: -1 * $page--item-prefix--width;
16 padding-top: px-to-em(2px);
17 border-top: 1px solid var(--fg-hi);
18 color: var(--fg-hi);
19 line-height: $code-block--line-height;
20 }
21 15
22 &__pre { 16 @include element('title', 'backtitle') {
23 margin-top: 0; 17 margin: 0 auto;
24 overflow: hidden; 18 font-family: $font-fam--large;
25 } 19 text-transform: none;
20 }
21
22 @include element('emph') {
23 color: prop(--colors --accent, $global: true);
24 font-weight: 500;
25 }
26
27 @include element('title') {
28 max-width: 11em;
29 font-weight: 200;
30 }
31
32 @include element('backtitle') {
33 position: absolute;
34 z-index: -10;
35 transform: translateY(-.08em);
36 color: prop(--colors --back-fg);
37 }
26 38
27 @media (max-width: map-get($breakpoints, 'sm')) { 39 @include iro-responsive-env(('xs', 'sm', 'md')) {
28 margin-left: 0; 40 @include element('title') {
29 padding-left: 0; 41 padding: iro-responsive-set((7rem, 7rem, 10rem)) 0;
42 font-size: iro-responsive-set((1.8rem, 2.8rem, 3.3rem));
43 }
30 44
31 &::after { 45 @include element('backtitle') {
32 margin-left: 0; 46 font-size: iro-responsive-set((12rem, 14rem, 16rem));
47 }
33 } 48 }
34 } 49 }
35} 50}