UNPKG

tzcloud-best-ui

Version:

A super practical component library that developed by vue2.x and element-ui

88 lines (78 loc) 1.55 kB
.best-uploader { display: inline-block; vertical-align: top; position: relative; } .best-uploader+.best-uploader { margin-left: 20px; } .best-uploader__inner { display: flex; justify-content: center; align-items: center; flex-direction: column; width: 150px; height: 150px; border: 1px dashed #c0ccda; text-align: center; background-color: #fbfdff; border-radius: 6px; box-sizing: border-box; cursor: pointer; overflow: hidden; position: relative; } .best-uploader__inner:hover { border-color: #409eff; } .best-uploader__inner .best-uploader__icon { font-size: 28px; color: #8c939d; } .best-uploader__inner .best-uploader__text { display: inline-block; width: 100%; padding: 0 10px; margin-top: 10px; font-size: 14px; color: #909399; line-height: normal; } .best-uploader__modal { position: absolute; top: 0; right: 0; bottom: 0; left: 0; width: 100%; height: 100%; z-index: 10; } .best-uploader__modal > img { width: 100%; height: 100%; } .best-uploader__mask { position: absolute; top: 0; left: 0; width: 100%; height: 100%; cursor: default; text-align: center; color: #fff; opacity: 0; font-size: 20px; background-color: rgba(0, 0, 0, .5); transition: opacity .3s; } .best-uploader__mask:hover { opacity: 1; } .best-uploader__action-remove { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); cursor: pointer; }