.@{elNamespace}-upload{ &:focus{ color: unset; .@{elNamespace}-upload-dragger{ border-color: var(~'--@{elNamespace}-border-color'); } } &.is-drag{ flex: auto; } &__tip{ color: var(~'--@{elNamespace}-text-color-secondary'); margin: 0; line-height: 12px; } &-list{ flex-shrink: 0; width: 100%; &__item{ padding: 4px; margin-bottom: 4px; display: flex; justify-content: space-between; &:hover{ cursor: pointer; .upload--close{ display: block; } .upload--success{ display: none; } } &.is-ready{ .upload--close{ display: none; } .upload--success{ display: none; } } &.is-error{ .upload--close{ display: block; margin-left: 5px; } .upload--success{ display: none; } .@{elNamespace}-upload-list__item-name{ color:var(~'--@{elNamespace}-color-danger') !important; } } &-name{ overflow: hidden; padding-left: 0 !important; &:hover{ color: unset !important; } } &-actions{ display: none !important; } &-label{ display: flex; } .upload--close{ display: none; } .upload--success{ color: var(~'--@{elNamespace}-color-success'); } .@{elNamespace}-progress__text{ display: none; } } &--picture-card{ --@{elNamespace}-upload-list-picture-card-size: 80px; .@{elNamespace}-upload-list__item{ overflow: visible; border-radius: 2px; border: 0; background-color: var(~'--@{elNamespace}-fill-color'); img{ border-radius: inherit; width: 100%; height: 100%; } } .upload--close{ i{ font-size: 16px; color: var(~'--@{elNamespace}-color-danger'); position: relative; top: -1px; left: -1px; } position: absolute; right: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background-color: #fff; } } &--picture{ display: flex; flex-wrap: wrap; li{ display: flex; position: relative; margin: 0 8px 8px 0; padding: 8px; background-color: var(~'--@{elNamespace}-fill-color-light'); font-size: 12px; line-height: 18px; cursor: pointer; &:hover{ .upload--close{ display: block; } } i, img { width: 36px; height: 36px; display: inline-block; margin-right: 8px; } .item-name{ max-width: 120px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; } .item-size{ color: var( ~'--@{elNamespace}-text-color-secondary'); } .upload--close{ i{ font-size: 16px; color: var(~'--@{elNamespace}-color-danger'); position: relative; top: -1px; left: -1px; width: 16px; height: 16px; } position: absolute; right: -6px; top: -6px; width: 14px; height: 14px; border-radius: 50%; background-color: #fff; display: none; } } } } &--picture-card { --@{elNamespace}-upload-picture-card-size: 80px; flex-direction: column; margin: 0 8px 8px 0; line-height: 18px; font-size: 12px; border-radius: 2px; color: var(~'--@{elNamespace}-text-color-secondary'); background-color: #fff; &:hover{ color: var('--@{elNamespace}-text-color-secondary'); } i { font-size: 18px; } } } .@{elNamespace}-image__error{ background-color: var(~'--@{elNamespace}-fill-color'); }