aboutsummaryrefslogtreecommitdiffhomepage
path: root/static/notifications.css
blob: 98a8fbb50869d3c02159a78cc0c59957cac78fed (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
#notificationsPanel {
  border: var(--border);
  border-radius: var(--border-radius);
  background: var(--clr-panel-background);
  margin: var(--spacing-double);
  height: calc(100vh - 64px - (2 * var(--spacing-double)));
  display: grid;
  grid-template-rows: max-content 1fr;

  h2 {
    margin: 0;
    padding: var(--spacing-double);
    font-size: var(--font-big-size);
    font-weight: bold;
    border-bottom: var(--border);
  }

  .items {
    overflow-y: scroll;
    height: 100%;
    box-sizing: border-box;
  }

  .notification {
    padding: var(--spacing-single);
    border-bottom: var(--border);
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: var(--spacing-single);
    background: var(--clr-note-background);
    overflow: hidden;
    filter: linear-gradient(
      to bottom,
      black 50%,
      var(--clr-note-background) 100%
    );

    img {
      width: var(--avatar-size);
      border-radius: var(--border-radius);
      aspect-ratio: 1;
    }
    .notifContent {
      display: grid;
      grid-template-rows: max-content 1fr;
      align-content: start;
    }
    .title {
      font-weight: bold;
      a:has(&) {
        color: inherit;
        text-decoration: none;
        &:hover {
          text-decoration: underline;
        }
      }
    }
    .body {
      overflow: hidden;
      min-height: 100%;
      max-height: 4lh;
      mask-image: linear-gradient(to bottom, black 50%, transparent 100%);
      &:active {
        max-height: unset;
        mask-image: none;
      }
    }
  }
}