NoticeList.less 1.35 KB
Newer Older
1 2 3 4 5 6 7 8 9
@import "~antd/lib/style/themes/default.less";

.list {
  max-height: 400px;
  overflow: auto;
  .item {
    transition: all .3s;
    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 19 20
    .meta {
      width: 100%;
    }

    .avatar {
      background: #fff;
    }

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

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

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

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