fix(card): card size selector shadowed

This commit is contained in:
07akioni 2020-03-02 12:09:48 +08:00
parent 3e763bbbf3
commit bd8397364f
2 changed files with 27 additions and 18 deletions

View File

@ -46,11 +46,12 @@
}
}
}
& > {
@include b(card-header) {
padding: 0px map-get($--n-card-margin-left, $size);
margin: map-get($--n-card-margin-top, $size) 0 map-get($--n-card-margin-bottom, $size) 0;
@include e(main) {
font-size: 18px;
font-size: map-get($--n-card-font-size, $size);
}
@include e(extra) {
font-size: 14px;
@ -68,6 +69,7 @@
}
}
}
}
@include themes-mixin {
@include b(card) {

View File

@ -80,6 +80,13 @@ $--n-base-select-menu-border-radius: $--n-border-radius;
/** card */
$--n-card-border-radius: $--n-border-radius;
$--n-card-font-size: (
'small': 16px,
'medium': 18px,
'large': 18px,
'huge': 18px
);
$--n-card-margin-left: (
'small': 16px,
'medium': 24px,
@ -97,8 +104,8 @@ $--n-card-margin-top: (
$--n-card-margin-bottom: (
'small': 12px,
'medium': 16px,
'large': 16px,
'huge': 20px
'large': 20px,
'huge': 24px
);
/** cascader */