summaryrefslogtreecommitdiff
path: root/assets/css/utils/_utility.scss
blob: e33697eebe2e22d6516c6c9df2b3224a2e2380c5 (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
/* container that extends the page width */
.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;
    }
  }
}

/* FAQ block */
.faq-group {
  details {
    border-bottom: 1px dashed var(--border-color);
    summary {
      padding: 0.5rem 0;
    }
  }
}

/* filter that gives element a printed look */
.xerox {
    filter: url(#x);
}

.writing-vertical {
  writing-mode: vertical-lr;
}

@media (min-width: 768px) {
  .md\:writing-vertical {
    writing-mode: vertical-lr;
  }
}

details.no-mark summary::marker { content: "" }

.lazy-render {
  content-visibility: auto;
  contain-intrinsic-size: auto 500px;
}

/* Dynamic rotation for webmention avatars */
.group:hover img[style*="--rotate-amount"] {
  transform: rotate(var(--rotate-amount));
}

/* Dynamic rotation for fiction section items */
div[style*="--rotation-deg"]:hover {
  transform: rotate(0deg) scale(1.1) !important;
}