aboutsummaryrefslogtreecommitdiff
path: root/src/components/mention_link/mention_link.scss
blob: 237d92052c36196897b8881072e8594790bd14e8 (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
.MentionLink {
  position: relative;
  white-space: normal;
  display: inline-block;

  & .new,
  & .original,
  & .full {
    padding: 0 2px;
    margin: 0 -2px;
    display: inline-block;
    border-radius: 2px;
  }

  .original {
    opacity: 0.5;
  }

  .full {
    pointer-events: none;
    position: absolute;
    opacity: 0;
    top: 0;
    bottom: 0;
    left: 0;
    word-wrap: normal;
    white-space: nowrap;
    transition: opacity 0.2s ease;
    background-color: var(--mention-bg, var(--popover));
    color: var(--mention-text, var(--link));
    z-index: 1;
  }

  .new {
    background-color: var(--mention-bg);
    color: var(--mention-text, var(--link));

    &.-you {
      & .shortName,
      & .full {
        font-weight: 600;
      }
    }
  }

  &:hover .new .full {
    opacity: 1;
  }
}