summaryrefslogtreecommitdiffstats
path: root/assets/css/components/_footer.scss
blob: 2cc63f56d6c7ee293852a990ef08d75ebb816622 (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
@use 'iro-sass/src/index' as iro;
@use 'iro-design/src/functions' as fn;
@use 'iro-design/src/mixins' as mx;
@use '../functions' as fn2;

@include iro.props-namespace('footer') {
    @include iro.props-store((
        --colors: (
            --fg:     fn.global-color(--obj-lo),
            --ground: fn.global-color(--obj),
        )
    ), 'colors');

    @include iro.bem-component(iro.props-namespace()) {
        @include mx.set-font(--mono);

        position: sticky;
        top:      100vh;
        overflow: hidden;
        color:    fn.color(--fg);

        &::after {
            content:     fn2.str-repeat('░', 400);
            display:     block;
            margin-top:  2px;
            padding-top: 2px;
            overflow:    hidden;
            border-top:  1px solid fn.color(--ground);
            color:       fn.color(--ground);
        }

        @include iro.bem-elem('ascii') {
            display:   inline-block;
            position:  relative;
            left:      50%;
            overflow:  visible;
            transform: translateX(-50%);
        }

        @media print {
            display: none;
        }
    }
}