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

.list {
  max-height: 400px;
  overflow: auto;
  .item {
jim's avatar
jim committed
7
    transition: all 0.3s;
8 9
    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
    .meta {
      width: 100%;
    }

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

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

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

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

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