UNPKG

ten-design-vue

Version:

ten-vue

147 lines (146 loc) 3.01 kB
/* dependencies icon,progress */ /** * 文字部分 * size 大小,line 行高, color 颜色 */ /* button */ /* input */ /* transfer */ /* alert */ /* menu */ /* message */ /* modal */ /* badge */ /* tag */ /* progress */ /* popup */ /* tooltip */ /* loading */ /* tabs */ /* check */ /* mention */ /* popup */ /* steps */ /* tabs */ /* modal */ /* form */ /* table */ /* pagination */ /* upload */ /* collapse */ /* anchor */ /* list */ .ten-upload { display: inline-block; width: 100%; } .ten-upload__input { display: none; } .ten-upload__select-container { display: inline-block; cursor: pointer; transition: all 0.3s; } .ten-upload__trigger--picture-card { width: 120px; height: 120px; background: rgba(0, 0, 0, 0.02); border: 1px dashed rgba(0, 0, 0, 0.15); line-height: 120px; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; font-size: 28px; text-align: center; color: #999; } .ten-upload__trigger--picture-card:hover { border-color: #0052d9; } .ten-upload--disabled .ten-uplaod__select-container:hover, .ten-upload--disabled .ten-uplaod__select-container--dragover { border-color: none !important; } .ten-upload--drag .ten-upload__select-container { background: rgba(0, 0, 0, 0.02); border: 1px dashed rgba(0, 0, 0, 0.15); } .ten-upload--drag .ten-upload__select-container:hover, .ten-upload--drag .ten-upload__select-container--dragover { border-color: #0052d9; } .ten-upload--drag.ten-upload--disabled .ten-upload__select-container { border: #c0c0c0; cursor: not-allowed; } .ten-file-list { width: 100%; overflow: hidden; padding-top: 4px; } .ten-upload--disabled .ten-file-list { pointer-events: none; } .ten-file-item__info { width: 100%; min-width: 120px; height: 24px; line-height: 24px; cursor: pointer; transition: all 0.3s; position: relative; } .ten-file-item__info:hover { background-color: rgba(0, 0, 0, 0.1); } .ten-file-item__info:hover .ten-file-item__info-close-icon { opacity: 1; } .ten-file-item__info:hover .ten-file-item__info-status-icon { opacity: 0; } .ten-file-item__info-status-icon { font-size: 16px; position: absolute; top: 50%; right: 7px; -webkit-transform: translate(0, -50%); transform: translate(0, -50%); } .ten-file-item__info-status-icon--loading { color: #0052D9; margin-top: -8px; } .ten-file-item__info-status-icon--error { color: #ff3e00 !important; } .ten-file-item__info-status-icon--done { color: #3ecc36; } .ten-file-item__info-filename { width: 100%; font-size: 14px; padding: 0 30px 0 8px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; box-sizing: border-box; } .ten-file-item__info-close-icon { position: absolute; font-size: 16px; opacity: 0; right: 7px; top: 50%; -webkit-transform: translate(0, -50%); transform: translate(0, -50%); color: #c0c0c0; } .ten-file-item__progress { padding: 0 4px; } .ten-file-item + .ten-file-item { margin-top: 10px; }