summaryrefslogtreecommitdiffstats
path: root/asset/css/list/list-item.less
blob: 56a43a3992babf6c407909d9b963c739c5b9767f (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
// Style

.list-item {
  color: @default-text-color-light;

  &:not(:first-child) > .main {
    border-top: 1px solid @list-item-separation-bg;
  }

  &:not(:first-child) .visual {
    margin-top: 1px;
  }

  .caption {
    i {
      opacity: 0.8;
    }

    a {
      color: @default-text-color;
    }
  }

  .title {
    .subject {
      color: @default-text-color;
    }

    a {
      color: @default-text-color;
      font-weight: bold;

      &:hover {
        color: @list-item-title-hover-color;
        text-decoration: none;
      }
    }
  }

  footer {
    padding-top: .5em;
  }
}

@media print {
  .list-item.page-break-follows + .list-item {
    .main {
      border-top: 1px solid transparent;
    }
  }
}

// Layout

.list-item {
  .visual {
    padding: .5em 0;
    width: 2.5em;
  }

  .caption {
    p {
      display: inline-block;
    }
  }

  .title {
    margin-right: 1em;

    p {
      margin: 0;
    }
  }

  time {
    white-space: nowrap;
  }

  footer {
    > * {
      font-size: .857em;
      line-height: 1.5*.857em;
    }
  }
}