style: update descriptions style

feat-css-var
tangjinzhou 2022-02-27 15:19:26 +08:00
parent 27e7ed68fb
commit 0283a4c2be
3 changed files with 7 additions and 2 deletions

View File

@ -29,8 +29,8 @@
&-view {
width: 100%;
overflow: hidden;
border-radius: @border-radius-base;
table {
width: 100%;
table-layout: fixed;
@ -42,6 +42,7 @@
> td {
padding-bottom: @descriptions-item-padding-bottom;
}
&:last-child {
border-bottom: none;
}
@ -126,8 +127,10 @@
&-bordered {
.@{descriptions-prefix-cls}-view {
border: 1px solid @border-color-split;
> table {
table-layout: auto;
border-collapse: collapse;
}
}
@ -143,6 +146,7 @@
.@{descriptions-prefix-cls}-item-label {
background-color: @descriptions-bg;
&::after {
display: none;
}
@ -150,6 +154,7 @@
.@{descriptions-prefix-cls}-row {
border-bottom: 1px solid @border-color-split;
&:last-child {
border-bottom: none;
}

View File

@ -1,4 +1,4 @@
@import '../../style/themes/default';
@import '../../style/themes/index';
@import '../../style/mixins/index';
@descriptions-prefix-cls: ~'@{ant-prefix}-descriptions';