summaryrefslogtreecommitdiffstats
path: root/public/css/list/comment-list.less
blob: 46b194de2e4a308deb70f9a7597005b3e2ee4d36 (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
// Style

// Layout

.comment-list:not(.detailed) .list-item {
  .title > i:first-child {
    margin-right: 0;
  }

  .title > .subject + .badge,
  .title > .badge + .subject,
  .title > .badge:last-of-type {
    margin-left: 0;
  }

  .title a {
    &:not(.subject) {
      .text-ellipsis();
    }
  }

  .title .subject:not(:last-child) {
    margin-left: 0;
  }

  .title .subject:nth-child(3):last-child {
    margin-left: 0;
  }
}

.comment-list.minimal .list-item {
  .user-ball {
    font-size: .857em;
    height: 1.75em;
    line-height: 1.5em;
    width: 1.75em;
  }
}

.comment-list.detailed .list-item {
  .title > .subject:nth-child(3),
  .title > .badge + .subject:last-child {
    margin-left: .3em;
  }

  .caption {
    max-height: 4.5em;
    white-space: normal;
  }
}