File size: 1,008 Bytes
fca4ff8
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
51
52
53
54
#to-content {
    /* displayed to screen reader,
        but visually removed to oustide canvas */
    --tsf: translateY(-100vmax);
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    align-items: center;
    justify-content: center;
    z-index: 3;
    outline: none !important;
    background: var(--bg) !important;
    width: 100vw;
    height: var(--vhead);
    }

#to-content:focus {
    /* replace top nav on focus */
    --tsf: translate(0);
}

body > footer > nav {
    margin-left: auto;
}

#to-top {
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    border-radius: 2rem;
    background: var(--bg);
    width: 2.7rem;
    height: 2.7rem;
    color: var(--fg);
}

#to-top::before {
    --tsf: rotate(-45deg);
    display: inline-flex;
    transition: 0.2s;
    font-family: 'base-ui';
    content: '\e902';
}

#to-top:hover::before,
#to-top:focus::before {
    --tsf: unset;
}

.to-content-top#to-top::before {
    --tsf: rotate(180deg)
}