summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_hero.scss
blob: 6c497a19474fde0131d6001962f7b3eeaa25f87c (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
@include namespace('hero') {
    @include store((
        --colors: (
            --back-fg: prop(--colors --bg-hi, $global: true)
        )
    ));

    @include component(namespace()) {
        display:         flex;
        position:        relative;
        flex-direction:  column;
        align-items:     center;
        justify-content: center;
        text-align:      center;

        @include element('title', 'backtitle') {
            margin:         0 auto;
            font-family:    $font-fam--large;
            text-transform: none;
        }

        @include element('emph') {
            color:       prop(--colors --accent, $global: true);
            font-weight: 500;
        }

        @include element('title') {
            max-width:   11em;
            font-weight: 200;
        }

        @include element('backtitle') {
            position:  absolute;
            z-index:   -10;
            transform: translateY(-.08em);
            color:     prop(--colors --back-fg);
        }

        @include iro-responsive-env(('xs', 'sm', 'md')) {
            @include element('title') {
                padding:   iro-responsive-set((7rem, 7rem, 10rem)) 0;
                font-size: iro-responsive-set((1.8rem, 2.8rem, 3.3rem));
            }

            @include element('backtitle') {
                font-size: iro-responsive-set((12rem, 14rem, 16rem));
            }
        }
    }
}