index.less 2.43 KB
Newer Older
1 2 3 4 5 6 7 8 9 10 11 12 13
:global(.ant-upload-select-picture-card i) {
  color: #999;
  font-size: 14px;
}

:global(.ant-upload-select-picture-card .ant-upload-text) {
  margin-top: 8px;
  color: #666;
}

.avatarUploader {
  display: inline-block;
  text-align: left;
张烨's avatar
张烨 committed
14 15 16 17 18
  .ant-upload-list-item-thumbnail>img{
    background: #aaa;
    background-image: linear-gradient(white 0px, transparent 0), linear-gradient(hsla(0,0%,100%,.3) 1px, transparent 0), linear-gradient(90deg, hsla(0,0%,100%,.3) 1px, transparent 0);
    background-size: 75px 75px, 75px 75px, 15px 15px, 15px 15px;
  }
19
}
张烨's avatar
张烨 committed
20 21 22 23 24 25 26 27
.modal {
  .ant-tabs-content{
    height: 100%;
      .ant-tabs-tabpane{
        padding-left: 0 !important;
      }
  }
  .ant-tabs-content-holder{
Maofei94's avatar
Maofei94 committed
28
    // padding: 5px 0;
张烨's avatar
张烨 committed
29 30 31 32 33 34
  }
  .ant-modal-body{
    padding-top: 0;
    padding-bottom: 0;
  }
}
35 36 37 38 39 40 41 42 43
.wallBtn {
  position: absolute;
  left: 140px;
  bottom: 56px;
  display: inline-block;
  color: #2f54eb;
  cursor: pointer;
  border-bottom: 1px solid #2f54eb;
}
张烨's avatar
张烨 committed
44 45 46 47 48 49
.search{
  width: 50%;
}
.hide{
  display: none !important;
}
张烨's avatar
张烨 committed
50 51 52 53 54 55
.svgBg{
  background: #aaa;
  background-image: linear-gradient(white 0px, transparent 0), linear-gradient(hsla(0,0%,100%,.3) 1px, transparent 0), linear-gradient(90deg, hsla(0,0%,100%,.3) 1px, transparent 0);
  background-size: 75px 75px, 75px 75px, 15px 15px, 15px 15px;
}

56 57 58
.imgBox {
  display: flex;
  flex-wrap: wrap;
Maofei94's avatar
Maofei94 committed
59
  max-height: calc(100% - 10px);
60
  overflow: auto;
张烨's avatar
张烨 committed
61 62 63 64 65 66 67
  .ant-collapse-content-box{
    display: flex;
    flex-wrap: wrap;
  }
  .ant-collapse{
    width: 100%;
  }
68
  .imgItem {
张烨's avatar
张烨 committed
69
    flex: 0 0 75px;
70
    position: relative;
张烨's avatar
张烨 committed
71 72
    flex-direction: column;
    max-width: 75px;
Maofei94's avatar
Maofei94 committed
73 74 75
    // margin-right: 16px;
    // margin-bottom: 16px;
    margin: 10px;
张烨's avatar
张烨 committed
76 77
    max-height: 100px;
    // overflow: hidden;
78
    cursor: pointer;
张烨's avatar
张烨 committed
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93
    display: flex;
    >div{
      flex: 1;
      display: flex;
      max-height: 78px;
    }
    >span{
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    &:hover>span{
      color: #2f54eb;
    }
张烨's avatar
张烨 committed
94

95
    img {
张烨's avatar
张烨 committed
96
      margin: auto;
97
      width: 100%;
张烨's avatar
张烨 committed
98 99 100 101
      object-fit: contain;
      max-height: 100%;
    }
    .svgGray{
Maofei94's avatar
Maofei94 committed
102 103
      // background-color: rgba(238,238,238,1);
      background-color:#2881a1;
104 105
    }
    &:hover,
张烨's avatar
张烨 committed
106
    &>.seleted {
107 108 109 110 111 112 113 114
      .iconBtn {
        visibility: visible;
      }
    }

    .iconBtn {
      position: absolute;
      visibility: hidden;
Maofei94's avatar
Maofei94 committed
115 116
      top: -10px;
      right: 0px;
117 118 119 120 121
      font-size: 18px;
      color: rgb(8, 156, 8);
    }
  }
}