summaryrefslogtreecommitdiff
path: root/sysret.org/themes/tabi-lean/sass/parts/_image.scss
blob: e8bae011ae405fadd73c64a4b9a6216788f88c5c (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
figure {
    display: inline-block;
    box-sizing: border-box;
    margin: 0;
    max-width: 100%;
    height: auto;
}

figcaption {
    color: var(--meta-color);
    font-size: 0.72rem;
    font-family: var(--serif-font);
    text-align: center;
}

img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    height: auto;
}

img.inline {
    display: inline;
    vertical-align: middle;
}

figure h4 {
    margin: 0;
    margin-block-end: 1em;
    font-size: 1rem;
}

figure h4::before {
    content: "↳ ";
}

.img-dark {
    display: none;
    &.inline{
        display: none;
    }
}

.img-light.inline {
    display: inline;
}

[data-theme="dark"] {
    .img-dark {
        display: block;
        &.inline {
            display: inline;
        }
    }

    .img-light {
        display: none;
    }
}