antd
Version:
An enterprise-class UI design language and React-based implementation
276 lines (275 loc) • 6.43 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 declaration-bang-space-before,no-duplicate-selectors */
/* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */
.ant-card {
font-family: "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol";
font-size: 14px;
font-variant: tabular-nums;
line-height: 1.5;
color: rgba(0, 0, 0, 0.65);
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
background: #fff;
border-radius: 2px;
position: relative;
-webkit-transition: all .3s;
transition: all .3s;
}
.ant-card-hoverable {
cursor: pointer;
}
.ant-card-hoverable:hover {
-webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.09);
border-color: rgba(0, 0, 0, 0.09);
}
.ant-card-bordered {
border: 1px solid #e8e8e8;
}
.ant-card-head {
background: transparent;
border-bottom: 1px solid #e8e8e8;
padding: 0 24px;
border-radius: 2px 2px 0 0;
zoom: 1;
margin-bottom: -1px;
min-height: 48px;
}
.ant-card-head:before,
.ant-card-head:after {
content: "";
display: table;
}
.ant-card-head:after {
clear: both;
}
.ant-card-head-wrapper {
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: flex;
}
.ant-card-head-title {
font-size: 16px;
padding: 16px 0;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
display: inline-block;
-webkit-box-flex: 1;
-webkit-flex: 1;
-ms-flex: 1;
flex: 1;
}
.ant-card-head .ant-tabs {
margin-bottom: -17px;
clear: both;
}
.ant-card-head .ant-tabs-bar {
border-bottom: 1px solid #e8e8e8;
}
.ant-card-extra {
float: right;
padding: 17.5px 0;
text-align: right;
margin-left: auto;
}
.ant-card-body {
padding: 24px;
zoom: 1;
}
.ant-card-body:before,
.ant-card-body:after {
content: "";
display: table;
}
.ant-card-body:after {
clear: both;
}
.ant-card-contain-grid:not(.ant-card-loading) {
margin: -1px 0 0 -1px;
padding: 0;
}
.ant-card-grid {
border-radius: 0;
border: 0;
-webkit-box-shadow: 1px 0 0 0 #e8e8e8, 0 1px 0 0 #e8e8e8, 1px 1px 0 0 #e8e8e8, 1px 0 0 0 #e8e8e8 inset, 0 1px 0 0 #e8e8e8 inset;
box-shadow: 1px 0 0 0 #e8e8e8, 0 1px 0 0 #e8e8e8, 1px 1px 0 0 #e8e8e8, 1px 0 0 0 #e8e8e8 inset, 0 1px 0 0 #e8e8e8 inset;
width: 33.33%;
float: left;
padding: 24px;
-webkit-transition: all .3s;
transition: all .3s;
}
.ant-card-grid:hover {
position: relative;
z-index: 1;
-webkit-box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.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 #e8e8e8;
background: #fafafa;
zoom: 1;
list-style: none;
margin: 0;
padding: 0;
}
.ant-card-actions:before,
.ant-card-actions:after {
content: "";
display: table;
}
.ant-card-actions:after {
clear: both;
}
.ant-card-actions > li {
float: left;
text-align: center;
margin: 12px 0;
color: rgba(0, 0, 0, 0.45);
}
.ant-card-actions > li > span {
display: inline-block;
font-size: 14px;
cursor: pointer;
line-height: 22px;
min-width: 32px;
position: relative;
}
.ant-card-actions > li > span:hover {
color: #1890ff;
-webkit-transition: color .3s;
transition: color .3s;
}
.ant-card-actions > li > span > .anticon {
font-size: 16px;
line-height: 22px;
display: block;
width: 100%;
}
.ant-card-actions > li > span a {
color: rgba(0, 0, 0, 0.45);
line-height: 22px;
display: inline-block;
width: 100%;
}
.ant-card-actions > li > span a:hover {
color: #1890ff;
}
.ant-card-actions > li:not(:last-child) {
border-right: 1px solid #e8e8e8;
}
.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 {
-webkit-transition: padding .3s;
transition: padding .3s;
}
.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 {
margin: -4px 0;
zoom: 1;
}
.ant-card-meta:before,
.ant-card-meta:after {
content: "";
display: table;
}
.ant-card-meta:after {
clear: both;
}
.ant-card-meta-avatar {
padding-right: 16px;
float: left;
}
.ant-card-meta-detail {
overflow: hidden;
}
.ant-card-meta-detail > div:not(:last-child) {
margin-bottom: 8px;
}
.ant-card-meta-title {
font-size: 16px;
text-overflow: ellipsis;
overflow: hidden;
white-space: nowrap;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
}
.ant-card-meta-description {
color: rgba(0, 0, 0, 0.45);
}
.ant-card-loading .ant-card-body {
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.ant-card-loading-content p {
margin: 0;
}
.ant-card-loading-block {
height: 14px;
margin: 4px 0;
border-radius: 2px;
background: -webkit-gradient(linear, left top, right top, from(rgba(207, 216, 220, 0.2)), color-stop(rgba(207, 216, 220, 0.4)), to(rgba(207, 216, 220, 0.2)));
background: -webkit-linear-gradient(left, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2));
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%;
}
@-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%;
}
}