antd
Version:
An enterprise-class UI design language and React components implementation
277 lines (276 loc) • 5.99 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable no-duplicate-selectors */
/* stylelint-disable */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.ant-card {
box-sizing: border-box;
margin: 0;
padding: 0;
color: rgba(0, 0, 0, 0.85);
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5715;
list-style: none;
font-feature-settings: 'tnum';
position: relative;
background: #fff;
border-radius: 2px;
}
.ant-card-rtl {
direction: rtl;
}
.ant-card-hoverable {
cursor: pointer;
transition: box-shadow 0.3s, border-color 0.3s;
}
.ant-card-hoverable:hover {
border-color: transparent;
box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
}
.ant-card-bordered {
border: 1px solid #f0f0f0;
}
.ant-card-head {
min-height: 48px;
margin-bottom: -1px;
padding: 0 24px;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
font-size: 16px;
background: transparent;
border-bottom: 1px solid #f0f0f0;
border-radius: 2px 2px 0 0;
}
.ant-card-head::before {
display: table;
content: '';
}
.ant-card-head::after {
display: table;
clear: both;
content: '';
}
.ant-card-head-wrapper {
display: flex;
align-items: center;
}
.ant-card-head-title {
display: inline-block;
flex: 1;
padding: 16px 0;
overflow: hidden;
white-space: nowrap;
text-overflow: ellipsis;
}
.ant-card-head-title > .ant-typography,
.ant-card-head-title > .ant-typography-edit-content {
left: 0;
margin-top: 0;
margin-bottom: 0;
}
.ant-card-head .ant-tabs-top {
clear: both;
margin-bottom: -17px;
color: rgba(0, 0, 0, 0.85);
font-weight: normal;
font-size: 14px;
}
.ant-card-head .ant-tabs-top-bar {
border-bottom: 1px solid #f0f0f0;
}
.ant-card-extra {
margin-left: auto;
padding: 16px 0;
color: rgba(0, 0, 0, 0.85);
font-weight: normal;
font-size: 14px;
}
.ant-card-rtl .ant-card-extra {
margin-right: auto;
margin-left: 0;
}
.ant-card-body {
padding: 24px;
}
.ant-card-body::before {
display: table;
content: '';
}
.ant-card-body::after {
display: table;
clear: both;
content: '';
}
.ant-card-contain-grid .ant-card-body {
display: flex;
flex-wrap: wrap;
}
.ant-card-contain-grid:not(.ant-card-loading) .ant-card-body {
margin: -1px 0 0 -1px;
padding: 0;
}
.ant-card-grid {
width: 33.33%;
padding: 24px;
border: 0;
border-radius: 0;
box-shadow: 1px 0 0 0 #f0f0f0, 0 1px 0 0 #f0f0f0, 1px 1px 0 0 #f0f0f0, 1px 0 0 0 #f0f0f0 inset, 0 1px 0 0 #f0f0f0 inset;
transition: all 0.3s;
}
.ant-card-grid-hoverable:hover {
position: relative;
z-index: 1;
box-shadow: 0 1px 2px -2px rgba(0, 0, 0, 0.16), 0 3px 6px 0 rgba(0, 0, 0, 0.12), 0 5px 12px 4px rgba(0, 0, 0, 0.09);
}
.ant-card-contain-tabs > .ant-card-head .ant-card-head-title {
min-height: 32px;
padding-bottom: 0;
}
.ant-card-contain-tabs > .ant-card-head .ant-card-extra {
padding-bottom: 0;
}
.ant-card-bordered .ant-card-cover {
margin-top: -1px;
margin-right: -1px;
margin-left: -1px;
}
.ant-card-cover > * {
display: block;
width: 100%;
}
.ant-card-cover img {
border-radius: 2px 2px 0 0;
}
.ant-card-actions {
display: flex;
margin: 0;
padding: 0;
list-style: none;
background: #fff;
border-top: 1px solid #f0f0f0;
}
.ant-card-actions::before {
display: table;
content: '';
}
.ant-card-actions::after {
display: table;
clear: both;
content: '';
}
.ant-card-actions > li {
margin: 12px 0;
color: rgba(0, 0, 0, 0.45);
text-align: center;
}
.ant-card-actions > li > span {
position: relative;
display: block;
min-width: 32px;
font-size: 14px;
line-height: 1.5715;
cursor: pointer;
}
.ant-card-actions > li > span:hover {
color: #1890ff;
transition: color 0.3s;
}
.ant-card-actions > li > span a:not(.ant-btn),
.ant-card-actions > li > span > .anticon {
display: inline-block;
width: 100%;
color: rgba(0, 0, 0, 0.45);
line-height: 22px;
transition: color 0.3s;
}
.ant-card-actions > li > span a:not(.ant-btn):hover,
.ant-card-actions > li > span > .anticon:hover {
color: #1890ff;
}
.ant-card-actions > li > span > .anticon {
font-size: 16px;
line-height: 22px;
}
.ant-card-actions > li:not(:last-child) {
border-right: 1px solid #f0f0f0;
}
.ant-card-rtl .ant-card-actions > li:not(:last-child) {
border-right: none;
border-left: 1px solid #f0f0f0;
}
.ant-card-type-inner .ant-card-head {
padding: 0 24px;
background: #fafafa;
}
.ant-card-type-inner .ant-card-head-title {
padding: 12px 0;
font-size: 14px;
}
.ant-card-type-inner .ant-card-body {
padding: 16px 24px;
}
.ant-card-type-inner .ant-card-extra {
padding: 13.5px 0;
}
.ant-card-meta {
display: flex;
margin: -4px 0;
}
.ant-card-meta::before {
display: table;
content: '';
}
.ant-card-meta::after {
display: table;
clear: both;
content: '';
}
.ant-card-meta-avatar {
padding-right: 16px;
}
.ant-card-rtl .ant-card-meta-avatar {
padding-right: 0;
padding-left: 16px;
}
.ant-card-meta-detail {
flex: 1;
overflow: hidden;
}
.ant-card-meta-detail > div:not(:last-child) {
margin-bottom: 8px;
}
.ant-card-meta-title {
overflow: hidden;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
font-size: 16px;
white-space: nowrap;
text-overflow: ellipsis;
}
.ant-card-meta-description {
color: rgba(0, 0, 0, 0.45);
}
.ant-card-loading {
overflow: hidden;
}
.ant-card-loading .ant-card-body {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ant-card-small > .ant-card-head {
min-height: 36px;
padding: 0 12px;
font-size: 14px;
}
.ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-head-title {
padding: 8px 0;
}
.ant-card-small > .ant-card-head > .ant-card-head-wrapper > .ant-card-extra {
padding: 8px 0;
font-size: 14px;
}
.ant-card-small > .ant-card-body {
padding: 12px;
}