antd
Version:
An enterprise-class UI design language and React-based implementation
248 lines (247 loc) • 5.07 kB
CSS
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
/* stylelint-disable declaration-bang-space-before */
/* stylelint-disable declaration-bang-space-before */
.ant-card {
background: #fff;
border-radius: 2px;
font-size: 12px;
position: relative;
transition: all .3s;
}
.ant-card-hovering {
cursor: pointer;
}
.ant-card-hovering:hover {
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
border-color: transparent;
}
.ant-card-bordered {
border: 1px solid #e9e9e9;
}
.ant-card-head {
background: #fff;
border-bottom: 1px solid #e9e9e9;
padding: 0 24px;
border-radius: 2px 2px 0 0;
zoom: 1;
margin-bottom: -1px;
}
.ant-card-head:before,
.ant-card-head:after {
content: " ";
display: table;
}
.ant-card-head:after {
clear: both;
visibility: hidden;
font-size: 0;
height: 0;
}
.ant-card-head-title {
font-size: 14px;
min-height: 48px;
padding: 16px 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
float: left;
}
.ant-card-head .ant-tabs {
margin-bottom: -17px;
margin-top: 4px;
clear: both;
}
.ant-card-head .ant-tabs-bar {
border-bottom: 1px solid #e9e9e9;
}
.ant-card-extra {
float: right;
padding: 17.5px 0;
}
.ant-card-body {
padding: 20px 24px;
zoom: 1;
}
.ant-card-body:before,
.ant-card-body:after {
content: " ";
display: table;
}
.ant-card-body:after {
clear: both;
visibility: hidden;
font-size: 0;
height: 0;
}
.ant-card-loading .ant-card-body {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
padding: 0;
}
.ant-card-loading-content {
padding: 24px;
}
.ant-card-loading-block {
display: inline-block;
margin: 5px 1% 0;
height: 14px;
border-radius: 2px;
background: linear-gradient(90deg, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2));
-webkit-animation: card-loading 1.4s ease infinite;
animation: card-loading 1.4s ease infinite;
background-size: 600% 600%;
}
.ant-card-contain-grid .ant-card-body {
margin: -1px 0 0 -1px;
padding: 0;
}
.ant-card-grid {
border-radius: 0;
border: 0;
box-shadow: 1px 0 0 0 #e9e9e9, 0 1px 0 0 #e9e9e9, 1px 1px 0 0 #e9e9e9, 1px 0 0 0 #e9e9e9 inset, 0 1px 0 0 #e9e9e9 inset;
width: 33.33%;
float: left;
padding: 24px;
transition: all .3s;
}
.ant-card-grid:hover {
position: relative;
z-index: 1;
box-shadow: 0 1px 6px rgba(0, 0, 0, 0.2);
}
.ant-card-contain-tabs .ant-card-head-title {
padding-bottom: 0;
min-height: 32px;
}
.ant-card-contain-tabs .ant-card-extra {
padding-bottom: 0;
}
.ant-card-cover > * {
width: 100%;
display: block;
}
.ant-card-actions {
border-top: 1px solid #e9e9e9;
background: #f7f7f7;
zoom: 1;
}
.ant-card-actions:before,
.ant-card-actions:after {
content: " ";
display: table;
}
.ant-card-actions:after {
clear: both;
visibility: hidden;
font-size: 0;
height: 0;
}
.ant-card-actions > li {
float: left;
text-align: center;
height: 16px;
margin: 12px 0;
color: rgba(0, 0, 0, 0.43);
}
.ant-card-actions > li > span {
display: inline-block;
font-size: 14px;
cursor: pointer;
height: 32px;
line-height: 32px;
min-width: 32px;
position: relative;
top: -8px;
}
.ant-card-actions > li > span:hover {
color: #108ee9;
transition: color .3s;
}
.ant-card-actions > li > span > .anticon {
font-size: 16px;
}
.ant-card-actions > li > span a {
color: rgba(0, 0, 0, 0.43);
}
.ant-card-actions > li > span a:hover {
color: #108ee9;
}
.ant-card-actions > li:not(:last-child) {
border-right: 1px solid #e9e9e9;
}
.ant-card-wider-padding .ant-card-head {
padding: 0 32px;
}
.ant-card-wider-padding .ant-card-body {
padding: 24px 32px;
}
.ant-card-padding-transition .ant-card-head,
.ant-card-padding-transition .ant-card-body {
transition: padding .3s;
}
.ant-card-padding-transition .ant-card-extra {
transition: right .3s;
}
.ant-card-type-inner .ant-card-head {
padding: 0 24px;
background: #f7f7f7;
}
.ant-card-type-inner .ant-card-head-title {
min-height: 46px;
padding: 12px 0;
}
.ant-card-type-inner .ant-card-body {
padding: 16px 24px;
}
.ant-card-type-inner .ant-card-extra {
padding: 13.5px 0;
}
.ant-card-meta-content {
display: table-row;
}
.ant-card-meta-avatar {
padding-right: 16px;
display: table-cell;
}
.ant-card-meta-detail {
display: table-cell;
vertical-align: top;
position: relative;
}
.ant-card-meta-detail > div:not(:last-child) {
margin-bottom: 8px;
}
.ant-card-meta-title {
font-size: 14px;
text-overflow: ellipsis;
width: 100%;
overflow: hidden;
white-space: nowrap;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
}
.ant-card-meta-desscription {
color: rgba(0, 0, 0, 0.43);
}
@-webkit-keyframes card-loading {
0%,
100% {
background-position: 0 50%;
}
50% {
background-position: 100% 50%;
}
}
@keyframes card-loading {
0%,
100% {
background-position: 0 50%;
}
50% {
background-position: 100% 50%;
}
}