summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_ascii.scss
blob: 7b5d269bed02f0076b31eca6a33b41e2982bc77a (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
@include namespace('ascii') {
    @include store((
        --colors: (
            --fg:     prop(--colors --fg-hi, $global: true),
            --border: prop(--colors --fg-hi, $global: true),
        )
    ));

    @include component(namespace()) {
        overflow:     hidden;
        color:        prop(--colors --fg);
        font-family:  $font-fam--mono;
        font-size:    1rem;
        line-height:  1.4;

        &::after {
            content:     str-repeat('░', 500);
            display:     block;
            margin-top:  1 / 16 * 2em;
            padding-top: 1 / 16 * 2em;
            border-top:  1px solid prop(--colors --border);
            color:       prop(--colors --fg);
        }

        @include element('fixed-content') {
            display:   inline-block;
            position:  relative;
            left:      50%;
            overflow:  visible;
            transform: translateX(-50%);
        }
    }
}