index.less 2.72 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;
14
  .ant-upload-list-item-thumbnail > img {
张烨's avatar
张烨 committed
15
    background: #aaa;
16 17 18
    background-image: linear-gradient(white 0px, transparent 0),
      linear-gradient(hsla(0, 0%, 100%, 0.3) 1px, transparent 0),
      linear-gradient(90deg, hsla(0, 0%, 100%, 0.3) 1px, transparent 0);
张烨's avatar
张烨 committed
19 20
    background-size: 75px 75px, 75px 75px, 15px 15px, 15px 15px;
  }
21
}
张烨's avatar
张烨 committed
22
.modal {
23
  .ant-tabs-content {
24
    // height: 100%;
邓超's avatar
邓超 committed
25
    
26
    .ant-tabs-tabpane {
邓超's avatar
邓超 committed
27 28 29
      // padding-left: 0 !important;
      height: 500px;
      overflow-y: scroll !important;
30
    }
张烨's avatar
张烨 committed
31
  }
32
  .ant-tabs-content-holder {
Maofei94's avatar
Maofei94 committed
33
    // padding: 5px 0;
张烨's avatar
张烨 committed
34
  }
35
  .ant-modal-body {
张烨's avatar
张烨 committed
36 37 38 39
    padding-top: 0;
    padding-bottom: 0;
  }
}
40 41 42 43 44 45 46 47 48
.wallBtn {
  position: absolute;
  left: 140px;
  bottom: 56px;
  display: inline-block;
  color: #2f54eb;
  cursor: pointer;
  border-bottom: 1px solid #2f54eb;
}
49 50 51 52 53 54 55
.picTic {
  position: absolute;
  left: 0;
  bottom: -12px;
  display: inline-block;
  color: red;
}
56
.search {
张烨's avatar
张烨 committed
57
  width: 50%;
58
  margin: 10px 20px;
张烨's avatar
张烨 committed
59
}
60
.hide {
张烨's avatar
张烨 committed
61 62
  display: none !important;
}
63
.svgBg {
张烨's avatar
张烨 committed
64
  background: #aaa;
65 66 67
  background-image: linear-gradient(white 0px, transparent 0),
    linear-gradient(hsla(0, 0%, 100%, 0.3) 1px, transparent 0),
    linear-gradient(90deg, hsla(0, 0%, 100%, 0.3) 1px, transparent 0);
张烨's avatar
张烨 committed
68 69
  background-size: 75px 75px, 75px 75px, 15px 15px, 15px 15px;
}
70 71 72
.imgBox {
  display: flex;
  flex-wrap: wrap;
Maofei94's avatar
Maofei94 committed
73
  max-height: calc(100% - 10px);
74
  // overflow: scroll;
75
  .ant-collapse-content-box {
张烨's avatar
张烨 committed
76 77 78
    display: flex;
    flex-wrap: wrap;
  }
79
  .ant-collapse {
张烨's avatar
张烨 committed
80 81
    width: 100%;
  }
82
  .imgItem {
张烨's avatar
张烨 committed
83
    flex: 0 0 75px;
84
    position: relative;
张烨's avatar
张烨 committed
85 86
    flex-direction: column;
    max-width: 75px;
Maofei94's avatar
Maofei94 committed
87 88 89
    // margin-right: 16px;
    // margin-bottom: 16px;
    margin: 10px;
张烨's avatar
张烨 committed
90 91
    max-height: 100px;
    // overflow: hidden;
92
    cursor: pointer;
张烨's avatar
张烨 committed
93
    display: flex;
94
    > div {
张烨's avatar
张烨 committed
95 96 97
      flex: 1;
      display: flex;
      max-height: 78px;
98
      background-color: rgba(204, 204, 204, 0.5);
张烨's avatar
张烨 committed
99
    }
100
    > span {
张烨's avatar
张烨 committed
101 102 103 104 105
      text-align: center;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
106
    &:hover > span {
张烨's avatar
张烨 committed
107 108
      color: #2f54eb;
    }
张烨's avatar
张烨 committed
109

110
    img {
张烨's avatar
张烨 committed
111
      margin: auto;
112
      width: 100%;
张烨's avatar
张烨 committed
113 114 115
      object-fit: contain;
      max-height: 100%;
    }
116
    .svgGray {
Maofei94's avatar
Maofei94 committed
117
      // background-color: rgba(238,238,238,1);
118
      background-color: #2881a1;
119 120
    }
    &:hover,
121
    & > .seleted {
122 123 124 125 126 127 128 129
      .iconBtn {
        visibility: visible;
      }
    }

    .iconBtn {
      position: absolute;
      visibility: hidden;
Maofei94's avatar
Maofei94 committed
130 131
      top: -10px;
      right: 0px;
132 133 134 135 136
      font-size: 18px;
      color: rgb(8, 156, 8);
    }
  }
}