app-file-upload.less 1.5 KB
Newer Older
ibizdev's avatar
ibizdev committed
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
.app-file-upload{
  .upload-col{
    text-align: center;
    .button-preview{
      padding: 8px 15px 8.5px 15px;
      .ivu-badge{
          margin-left: 2px;
          .ivu-badge-count{
            height: auto;
            min-width: auto;
            line-height: unset;
            padding: 0 4px;
          }
      }
    }
  }
}
.upload-preview-modal{
  .ivu-modal{
    height: 86%;
    .ivu-modal-content{
      height: 100%;
      overflow-y: scroll;
      .preview-file-list-item{
          margin: 0 8px 8px 0;
          display: inline-block;
          position: relative;
      }
      .preview-file-list-img{
          display: inline-block;
          position: relative;
      }
      .file-name{
        text-align: center;
      }
      .preview-file-list-actions{
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        font-size: 20px;
        text-align: center;
        color: #fff;
        opacity: 0;
        transition: opacity .3s;
      }
      .preview-file-list-actions:hover{
        position: absolute;
        width: 100%;
        height: 100%;
        left: 0;
        top: 0;
        font-size: 20px;
        text-align: center;
        color: #fff;
        opacity: 1;
        background-color: rgba(0,0,0,.5);
      }
      .preview-file-list-actions::after{
          display: inline-block;
          content: "";
          height: 100%;
          vertical-align: middle;
      }
      .action-delete{
        margin-left:15px;
      }
    }
  }
}