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

.list {
  max-height: 400px;
  overflow: auto;
何乐's avatar
何乐 committed
6 7 8
  &::-webkit-scrollbar {
    display: none;
  }
9
  .item {
jim's avatar
jim committed
10
    transition: all 0.3s;
11 12
    overflow: hidden;
    cursor: pointer;
afc163's avatar
afc163 committed
13 14
    padding-left: 24px;
    padding-right: 24px;
15

afc163's avatar
afc163 committed
16 17 18 19 20 21
    .meta {
      width: 100%;
    }

    .avatar {
      background: #fff;
afc163's avatar
afc163 committed
22
      margin-top: 4px;
afc163's avatar
afc163 committed
23
    }
24 25 26
    .iconElement {
      font-size: 32px;
    }
afc163's avatar
afc163 committed
27

28
    &.read {
jim's avatar
jim committed
29
      opacity: 0.4;
30
    }
afc163's avatar
afc163 committed
31
    &:last-child {
32 33 34 35 36 37 38
      border-bottom: 0;
    }
    &:hover {
      background: @primary-1;
    }
    .title {
      font-weight: normal;
afc163's avatar
afc163 committed
39
      margin-bottom: 8px;
40 41 42
    }
    .description {
      font-size: 12px;
afc163's avatar
afc163 committed
43
      line-height: @line-height-base;
44 45 46 47
    }
    .datetime {
      font-size: 12px;
      margin-top: 4px;
afc163's avatar
afc163 committed
48
      line-height: @line-height-base;
49 50
    }
    .extra {
afc163's avatar
afc163 committed
51
      float: right;
52
      color: @text-color-secondary;
afc163's avatar
afc163 committed
53 54
      font-weight: normal;
      margin-right: 0;
afc163's avatar
afc163 committed
55
      margin-top: -1.5px;
56 57
    }
  }
何乐's avatar
何乐 committed
58 59 60 61 62 63 64 65 66 67
  .loadMore {
    padding: 8px 0;
    cursor: pointer;
    color: @primary-6;
    text-align: center;
    &.loadedAll {
      cursor: unset;
      color: rgba(0, 0, 0, 0.25);
    }
  }
68 69 70 71
}

.notFound {
  text-align: center;
afc163's avatar
afc163 committed
72
  padding: 73px 0 88px 0;
73
  color: @text-color-secondary;
afc163's avatar
afc163 committed
74 75 76 77
  img {
    display: inline-block;
    margin-bottom: 16px;
    height: 76px;
78 79 80 81 82 83 84
  }
}

.clear {
  height: 46px;
  line-height: 46px;
  text-align: center;
afc163's avatar
afc163 committed
85
  color: @text-color;
86 87
  border-radius: 0 0 @border-radius-base @border-radius-base;
  border-top: 1px solid @border-color-split;
jim's avatar
jim committed
88
  transition: all 0.3s;
89 90 91
  cursor: pointer;

  &:hover {
afc163's avatar
afc163 committed
92
    color: @heading-color;
93 94
  }
}