mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [upload] Invalid CSS variable (#22366)
* fix: upload css var * fix: inject the scss variables in the component level * fix: Excess modifications * fix: Keep the name consistent with the original * fix: Keep the name consistent with the original
This commit is contained in:
@@ -1565,6 +1565,10 @@ $upload: map.merge(
|
||||
(
|
||||
'dragger-padding-horizontal': 40px,
|
||||
'dragger-padding-vertical': 10px,
|
||||
'list-picture-card-size': var(
|
||||
#{getCssVarName('upload', 'picture-card-size')}
|
||||
),
|
||||
'picture-card-size': 148px,
|
||||
),
|
||||
$upload
|
||||
);
|
||||
|
||||
@@ -77,8 +77,6 @@
|
||||
|
||||
/* Picture Card for Wall */
|
||||
@include m(picture-card) {
|
||||
@include set-css-var-value(('upload', 'picture-card', 'size'), 148px);
|
||||
|
||||
background-color: getCssVar('fill-color', 'lighter');
|
||||
border: 1px dashed getCssVar('border-color', 'darker');
|
||||
border-radius: 6px;
|
||||
@@ -167,6 +165,10 @@
|
||||
}
|
||||
}
|
||||
|
||||
@include b(upload-list) {
|
||||
@include set-component-css-var('upload', $upload);
|
||||
}
|
||||
|
||||
@include b(upload-list) {
|
||||
margin: 10px 0 0;
|
||||
padding: 0;
|
||||
@@ -343,8 +345,6 @@
|
||||
|
||||
// upload-list
|
||||
@include m(picture-card) {
|
||||
@include set-css-var-value(('upload-list', 'picture-card', 'size'), 148px);
|
||||
|
||||
display: inline-flex;
|
||||
flex-wrap: wrap;
|
||||
margin: 0;
|
||||
|
||||
Reference in New Issue
Block a user