NoticeList.less 1.32 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 13 14 15

    &.read {
      opacity: .4;
    }
afc163's avatar
afc163 committed
16
    &:last-child {
17 18 19 20 21 22 23 24 25 26 27 28 29 30
      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
31
      line-height: @line-height-base;
32 33 34 35
    }
    .datetime {
      font-size: 12px;
      margin-top: 4px;
afc163's avatar
afc163 committed
36
      line-height: @line-height-base;
37 38
    }
    .extra {
afc163's avatar
afc163 committed
39
      float: right;
40
      color: @text-color-secondary;
afc163's avatar
afc163 committed
41 42
      font-weight: normal;
      margin-right: 0;
43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64
    }
  }
}

.notFound {
  text-align: center;
  height: 120px;
  line-height: 120px;
  font-size: 14px;
  color: @text-color-secondary;
  > i {
    font-size: 16px;
    margin-right: 8px;
    vertical-align: middle;
    margin-top: -1px;
  }
}

.clear {
  height: 46px;
  line-height: 46px;
  text-align: center;
afc163's avatar
afc163 committed
65
  color: @text-color;
66 67 68 69 70 71
  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
72
    color: @heading-color;
73 74
  }
}