|
|
|
@import '../../style/themes/index';
|
|
|
|
@import '../../style/mixins/index';
|
|
|
|
|
|
|
|
@card-prefix-cls: ~'@{ant-prefix}-card';
|
|
|
|
@card-hoverable-hover-border: transparent;
|
|
|
|
@card-action-icon-size: 16px;
|
|
|
|
|
|
|
|
@gradient-min: fade(@card-skeleton-bg, 20%);
|
|
|
|
@gradient-max: fade(@card-skeleton-bg, 40%);
|
|
|
|
|
|
|
|
.@{card-prefix-cls} {
|
|
|
|
.reset-component;
|
|
|
|
|
|
|
|
position: relative;
|
|
|
|
background: @card-background;
|
|
|
|
border-radius: @card-radius;
|
|
|
|
|
|
|
|
&-rtl {
|
|
|
|
direction: rtl;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-hoverable {
|
|
|
|
cursor: pointer;
|
|
|
|
transition: box-shadow 0.3s, border-color 0.3s;
|
|
|
|
|
|
|
|
&:hover {
|
|
|
|
border-color: @card-hoverable-hover-border;
|
|
|
|
box-shadow: @card-shadow;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
&-bordered {
|
|
|
|
border: @border-width-base @border-style-base @border-color-split;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-head {
|
|
|
|
min-height: @card-head-height;
|
|
|
|
margin-bottom: -1px; // Fix card grid overflow bug: https://gw.alipayobjects.com/zos/rmsportal/XonYxBikwpgbqIQBeuhk.png
|
|
|
|
padding: 0 @card-padding-base;
|
|
|
|
color: @card-head-color;
|
|
|
|
font-weight: 500;
|
|
|
|
font-size: @card-head-font-size;
|
|
|
|
background: @card-head-background;
|
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
|
|
border-radius: @card-radius @card-radius 0 0;
|
|
|
|
.clearfix;
|
|
|
|
|
|
|
|
&-wrapper {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
}
|
|
|
|
|
|
|
|
&-title {
|
|
|
|
display: inline-block;
|
|
|
|
flex: 1;
|
|
|
|
padding: @card-head-padding 0;
|
|
|
|
overflow: hidden;
|
|
|
|
white-space: nowrap;
|
|
|
|
text-overflow: ellipsis;
|
|
|
|
}
|
|
|
|
|
|
|
|
.@{ant-prefix}-tabs {
|
|
|
|
clear: both;
|
|
|
|
margin-bottom: @card-head-tabs-margin-bottom;
|
|
|
|
color: @text-color;
|
|
|
|
font-weight: normal;
|
|
|
|
font-size: @font-size-base;
|
|
|
|
|
|
|
|
&-bar {
|
|
|
|
border-bottom: @border-width-base @border-style-base @border-color-split;
|
|
|
|
}
|
|
|
|
}
|
|