summaryrefslogtreecommitdiff
path: root/sysret.org/themes/tabi-lean/sass/parts/_aside.scss
blob: 4757524b9e0b80e3e7516aa5e8a69ad2c90b5010 (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
aside {
    margin-block-end: var(--paragraph-spacing);
    border-radius: 4px;
    background: var(--bg-0);
    padding-block: 0.8rem;
    padding-inline: 1rem;
    color: var(--meta-color);
    font-size: 0.9rem;

    article & p {
        margin: 0;
        font-family: var(--sans-serif-font);
    }

    @media only screen and (min-width: 1300px) {
        position: absolute;
        inset-inline-start: -14rem;
        margin-block: 0;
        border-radius: 0;
        background: none;
        padding: 0;
        width: 12rem;
        text-align: end;

        &[data-position="right"] {
            inset-inline-start: auto;
            inset-inline-end: -14rem;
            text-align: start;
        }
    }
}