123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179 |
- .@{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');
- }
|