NoticeList.less 1.84 KB
Newer Older
陈帅's avatar
陈帅 committed
1
@import '~antd/es/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 {
10 11
    padding-right: 24px;
    padding-left: 24px;
12 13
    overflow: hidden;
    cursor: pointer;
14
    transition: all 0.3s;
15

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

    .avatar {
afc163's avatar
afc163 committed
21
      margin-top: 4px;
22
      background: #fff;
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
      border-bottom: 0;
    }
    &:hover {
      background: @primary-1;
    }
    .title {
afc163's avatar
afc163 committed
38
      margin-bottom: 8px;
39
      font-weight: normal;
40 41 42
    }
    .description {
      font-size: 12px;
afc163's avatar
afc163 committed
43
      line-height: @line-height-base;
44 45 46
    }
    .datetime {
      margin-top: 4px;
47
      font-size: 12px;
afc163's avatar
afc163 committed
48
      line-height: @line-height-base;
49 50
    }
    .extra {
afc163's avatar
afc163 committed
51
      float: right;
52 53
      margin-top: -1.5px;
      margin-right: 0;
54
      color: @text-color-secondary;
afc163's avatar
afc163 committed
55
      font-weight: normal;
56 57
    }
  }
何乐's avatar
何乐 committed
58 59 60 61
  .loadMore {
    padding: 8px 0;
    color: @primary-6;
    text-align: center;
62
    cursor: pointer;
何乐's avatar
何乐 committed
63 64
    &.loadedAll {
      color: rgba(0, 0, 0, 0.25);
65
      cursor: unset;
何乐's avatar
何乐 committed
66 67
    }
  }
68 69 70
}

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

81
.bottomBar {
82
  height: 46px;
83
  color: @text-color;
84 85 86
  line-height: 46px;
  text-align: center;
  border-top: 1px solid @border-color-split;
87 88
  border-radius: 0 0 @border-radius-base @border-radius-base;
  transition: all 0.3s;
89 90 91 92 93 94 95 96 97 98 99 100 101 102 103
  div {
    display: inline-block;
    width: 50%;
    cursor: pointer;
    transition: all 0.3s;
    user-select: none;
    &:hover {
      color: @heading-color;
    }
    &:only-child {
      width: 100%;
    }
    &:not(:only-child):last-child {
      border-left: 1px solid @border-color-split;
    }
104 105
  }
}