summaryrefslogtreecommitdiff
path: root/assets/css/utils/_utility.scss
blob: 9b857fdbcbc34673114a2c1b00d5e72df52e0c4a (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
.dark {
    .invert-if-dark {
        filter: invert(1)
    }
}

@media (prefers-color-scheme: dark) {
    .invert-if-dark {
        filter: invert(1)
    }
}

figure {
    &.small {
        width: 300px;
    }
    &.card {
        width: fit-content;
        img {
            height: 18rem;
        }
    }
    &.center {
        margin: 0 auto;
        figcaption {
            text-align: center
        }
    }
}

.outbox {
  display: flex;
  justify-content: center;
  width: 100%;

  @media screen and (min-width: 768px) {
    width: calc(var(--page-width) + 10rem);
    margin: 0 -5rem;
  }

  @media screen and (min-width: 1200px) {
    width: calc(var(--page-width) + 20rem);
    margin: 0 -10rem;
  }

  &.small {
    @media screen and (min-width: 768px) {
      width: calc(var(--page-width) + 4rem);
      margin: 0 -2rem;
    }

    @media screen and (min-width: 1200px) {
      width: calc(var(--page-width) + 10rem);
      margin: 0 -5rem;
    }
  }
}

.font-mono {
    font-family: var(--mono-font-family);
}