NoticeList.less 1.32 KB
Newer Older
jim's avatar
jim committed
1
@import '~antd/lib/style/themes/default.less';
2 3 4 5 6

.list {
  max-height: 400px;
  overflow: auto;
  .item {
jim's avatar
jim committed
7
    transition: all 0.3s;
8 9
    overflow: hidden;
    cursor: pointer;
afc163's avatar
afc163 committed
10 11
    padding-left: 24px;
    padding-right: 24px;
12

afc163's avatar
afc163 committed
13 14 15 16 17 18
    .meta {
      width: 100%;
    }

    .avatar {
      background: #fff;
afc163's avatar
afc163 committed
19
      margin-top: 4px;
afc163's avatar
afc163 committed
20 21
    }

22
    &.read {
jim's avatar
jim committed
23
      opacity: 0.4;
24
    }
afc163's avatar
afc163 committed
25
    &:last-child {
26 27 28 29 30 31 32
      border-bottom: 0;
    }
    &:hover {
      background: @primary-1;
    }
    .title {
      font-weight: normal;
afc163's avatar
afc163 committed
33
      margin-bottom: 8px;
34 35 36
    }
    .description {
      font-size: 12px;
afc163's avatar
afc163 committed
37
      line-height: @line-height-base;
38 39 40 41
    }
    .datetime {
      font-size: 12px;
      margin-top: 4px;
afc163's avatar
afc163 committed
42
      line-height: @line-height-base;
43 44
    }
    .extra {
afc163's avatar
afc163 committed
45
      float: right;
46
      color: @text-color-secondary;
afc163's avatar
afc163 committed
47 48
      font-weight: normal;
      margin-right: 0;
afc163's avatar
afc163 committed
49
      margin-top: -1.5px;
50 51 52 53 54 55
    }
  }
}

.notFound {
  text-align: center;
afc163's avatar
afc163 committed
56
  padding: 73px 0 88px 0;
57
  color: @text-color-secondary;
afc163's avatar
afc163 committed
58 59 60 61
  img {
    display: inline-block;
    margin-bottom: 16px;
    height: 76px;
62 63 64 65 66 67 68
  }
}

.clear {
  height: 46px;
  line-height: 46px;
  text-align: center;
afc163's avatar
afc163 committed
69
  color: @text-color;
70 71
  border-radius: 0 0 @border-radius-base @border-radius-base;
  border-top: 1px solid @border-color-split;
jim's avatar
jim committed
72
  transition: all 0.3s;
73 74 75
  cursor: pointer;

  &:hover {
afc163's avatar
afc163 committed
76
    color: @heading-color;
77 78
  }
}