aboutsummaryrefslogtreecommitdiff
path: root/src/components/chat_list_item/chat_list_item.scss
blob: 9711b41d62e2212c4999fa166de503f0c69355a8 (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
.chat-list-item {
  display: flex;
  flex-direction: row;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;

  :focus {
    outline: none;
  }

  .chat-list-item-left {
    margin-right: 1em;
  }

  .chat-list-item-center {
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    word-wrap: break-word;
  }

  .heading {
    width: 100%;
    display: flex;
    justify-content: space-between;
    line-height: 1em;
  }

  .heading-right {
    white-space: nowrap;
  }

  .name-and-account-name {
    text-overflow: ellipsis;
    white-space: nowrap;
    overflow: hidden;
    flex-shrink: 1;
    line-height: var(--post-line-height);
  }

  .chat-preview {
    display: flex;
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin: 0.35em 0;
    color: var(--textFaint);
    width: 100%;
  }

  a {
    color: var(--linkFaint);
    text-decoration: none;
    pointer-events: none;
  }

  &:hover .animated.avatar {
    canvas {
      display: none;
    }

    img {
      visibility: visible;
    }
  }

  .chat-preview-body {
    --emoji-size: 1.4em;

    padding-right: 1em;
  }

  .time-wrapper {
    line-height: var(--post-line-height);
  }
}