Emile Bangma
2024-09-23 7d7e3349763b0c1ade94b8a6d13986e171861bc1
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
@use "../../styles/variables.scss" as *;
 
.backlinks {
  @media all and not ($desktop) {
    overflow-y: auto;
    display: initial;
    &:after {
      pointer-events: none;
      content: "";
      width: 100%;
      height: 50px;
      position: absolute;
      left: 0;
      bottom: 0;
      opacity: 1;
      transition: opacity 0.3s ease;
      background: linear-gradient(transparent 0px, var(--light));
    }
 
    &:has(> .overflow) {
      position: unset;
    }
 
    & > h3 {
      font-size: 1rem;
      margin: 0;
    }
 
    & > ul {
      list-style: none;
      padding: 0;
      margin: 0.5rem 0;
 
      & > li {
        & > a {
          background-color: transparent;
        }
      }
    }
 
    & > .overflow {
      max-height: unset;
      & > li:last-of-type {
        margin-bottom: 0;
      }
      &:after {
        display: none;
      }
    }
  }
}