summaryrefslogtreecommitdiff
path: root/sysret.org/themes/tabi-lean/sass/parts/_footer.scss
blob: 2b49c3df002d00423ce1c45bb934f02b57745a2a (plain)
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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
footer {
    margin-top: auto;
    margin-block-end: 1.4rem;
    color: var(--meta-color);
    font-size: 0.88rem;
    font-family: var(--post-font-family);
    text-align: center;

    .nav-links {
        color: var(--primary-color);
    }

    p {
        margin: 0;
    }
}

footer section {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0rem;
}

footer nav {
    display: flex;
    margin: 0 0rem;
}

.socials {
    display: flex;
    flex-grow: 0;
    flex-wrap: wrap;
    justify-content: center;
    align-items: flex-end;

    svg {
        max-height: 15px;
    }

    ul {
        gap: 5px;
    }
}

.social {
    display: flex;
    justify-content: center;
    align-items: center;
    background-image: unset;
    padding: 0.5vmin;
}

.social > img {
    aspect-ratio: 1/1;
    width: 1.5rem;
    height: auto;
    color: #000000;
}

.social {
    &:hover {
        & > img {
            filter: invert(1);
        }
    }
}

@mixin dark-theme-social {
    .social {
        &:hover {
            & > img {
                filter: invert(0);
            }
        }

        & > img {
            filter: invert(1);
        }
    }
}

[data-theme="dark"] {
    @include dark-theme-social;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        @include dark-theme-social;
    }
}