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

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

figure {
    &.card {
        width: fit-content;
        img {
            height: 18rem;
        }
    }
}

.outbox {
  display: flex;
  justify-content: center;
  width: 100%;
  z-index: 10;
  position: relative;

  @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);
}

.font-secondary {
    color: var(--secondary-text-color)!important;
}

.xerox {
    filter: url(#x);
}

.round-sticker {
    @include roundSticker;
}