aboutsummaryrefslogtreecommitdiff
path: root/src/components/notification/notification.scss
blob: 86d3e31dff4a2e42dfb14d0be8dffe186c1bf358 (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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
@import "../../variables";

// TODO Copypaste from Status, should unify it somehow
.Notification {
  border-bottom: 1px solid;
  border-color: var(--border);
  word-wrap: break-word;
  word-break: break-word;

  --emoji-size: 14px;

  &:hover {
    --_still-image-img-visibility: visible;
    --_still-image-canvas-visibility: hidden;
    --_still-image-label-visibility: hidden;
  }

  &.-muted {
    padding: 0.25em 0.6em;
    height: 1.2em;
    line-height: 1.2em;
    text-overflow: ellipsis;
    overflow: hidden;
    display: flex;
    flex-wrap: nowrap;

    & .status-username,
    & .mute-thread,
    & .mute-words {
      word-wrap: normal;
      word-break: normal;
      white-space: nowrap;
    }

    & .status-username,
    & .mute-words {
      text-overflow: ellipsis;
      overflow: hidden;
    }

    .status-username {
      font-weight: normal;
      flex: 0 1 auto;
      margin-right: 0.2em;
      font-size: smaller;
    }

    .mute-thread {
      flex: 0 0 auto;
    }

    .mute-words {
      flex: 1 0 5em;
      margin-left: 0.2em;

      &::before {
        content: " ";
      }
    }

    .unmute {
      flex: 0 0 auto;
      margin-left: auto;
      display: block;
    }
  }

  .type-icon {
    margin: 0 0.1em;
  }

  &.-type--repeat .type-icon {
    color: $fallback--cGreen;
    color: var(--cGreen, $fallback--cGreen);
  }

  &.-type--follow .type-icon {
    color: $fallback--cBlue;
    color: var(--cBlue, $fallback--cBlue);
  }

  &.-type--follow-request .type-icon {
    color: $fallback--cBlue;
    color: var(--cBlue, $fallback--cBlue);
  }

  &.-type--like .type-icon {
    color: orange;
    color: $fallback--cOrange;
    color: var(--cOrange, $fallback--cOrange);
  }

  &.-type--move .type-icon {
    color: $fallback--cBlue;
    color: var(--cBlue, $fallback--cBlue);
  }
}