NoticeList.less 1.61 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89
@import "~antd/lib/style/themes/default.less";

.list {
  max-height: 400px;
  overflow: auto;
  .item {
    transition: all .3s;
    overflow: hidden;
    cursor: pointer;

    .wrapper {
      margin: 0 32px;
      padding: 12px 0;
      border-bottom: 1px solid @border-color-split;
    }
    &.read {
      opacity: .4;
    }
    &:last-child .wrapper {
      border-bottom: 0;
    }
    &:hover {
      background: @primary-1;
    }
    .content {
      position: relative;
      overflow: hidden;
    }
    .avatar {
      margin-right: 16px;
      float: left;
      margin-top: 4px;
      background: #fff;
    }
    .title {
      font-weight: normal;
      color: @text-color;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }
    .description {
      color: @text-color-secondary;
      font-size: 12px;
      margin-top: 8px;
    }
    .datetime {
      color: @text-color-secondary;
      font-size: 12px;
      margin-top: 4px;
    }
    .extra {
      position: absolute;
      right: 0;
      top: 0;
      color: @text-color-secondary;
      font-size: 12px;
    }
  }
}

.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;
  color: @text-color-secondary;
  border-radius: 0 0 @border-radius-base @border-radius-base;
  border-top: 1px solid @border-color-split;
  transition: all .3s;
  cursor: pointer;

  &:hover {
    color: @text-color;
  }
}