choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
434 lines (433 loc) • 10 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 */
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */
.c7n-card {
-webkit-box-sizing: border-box;
box-sizing: border-box;
margin: 0;
padding: 0;
list-style: none;
position: relative;
margin: 0rem;
padding: 0rem;
background: #fff;
border-radius: 0.02rem;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.c7n-card-hoverable {
cursor: pointer;
}
.c7n-card-hoverable:hover {
border-color: rgba(0, 0, 0, 0.09);
-webkit-box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.09);
box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.09);
}
.c7n-card-bordered {
border: 0.01rem solid #e8e8e8;
}
.c7n-card-head {
min-height: 0.48rem;
margin: 0 0 -0.01rem 0;
padding: 0 0.24rem;
background: #fff;
border-bottom: 0.01rem solid #e8e8e8;
border-radius: 0.02rem 0.02rem 0 0;
zoom: 1;
}
.c7n-card-head::before,
.c7n-card-head::after {
display: table;
white-space: initial;
content: ' ';
}
.c7n-card-head::after {
clear: both;
height: 0;
font-size: 0;
visibility: hidden;
}
.c7n-card-head-wrapper {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
}
.c7n-card-head-title {
display: inline-block;
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
padding: 0.16rem 0;
overflow: hidden;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
font-size: 0.16rem;
white-space: nowrap;
text-overflow: ellipsis;
}
.c7n-card-head .c7n-tabs {
clear: both;
margin-bottom: -0.17rem;
}
.c7n-card-head .c7n-tabs-bar {
border-bottom: 0.01rem solid #e8e8e8;
}
.c7n-card-extra {
float: right;
margin-left: auto;
padding: calc(0.16rem + 0.015rem) 0;
text-align: right;
}
.c7n-card-body {
padding: 0.24rem;
color: unset;
zoom: 1;
}
.c7n-card-body::before,
.c7n-card-body::after {
display: table;
white-space: initial;
content: ' ';
}
.c7n-card-body::after {
clear: both;
height: 0;
font-size: 0;
visibility: hidden;
}
.c7n-card-contain-grid .c7n-card-body {
margin: -0.01rem 0 0 -0.01rem;
padding: 0rem;
}
.c7n-card-grid {
float: left;
width: 33.33%;
padding: 0.24rem;
border: 0;
border-radius: 0;
-webkit-box-shadow: 0.01rem 0 0 0 #e8e8e8, 0 0.01rem 0 0 #e8e8e8, 0.01rem 0.01rem 0 0 #e8e8e8, 0.01rem 0 0 0 #e8e8e8 inset, 0 0.01rem 0 0 #e8e8e8 inset;
box-shadow: 0.01rem 0 0 0 #e8e8e8, 0 0.01rem 0 0 #e8e8e8, 0.01rem 0.01rem 0 0 #e8e8e8, 0.01rem 0 0 0 #e8e8e8 inset, 0 0.01rem 0 0 #e8e8e8 inset;
-webkit-transition: all 0.3s;
transition: all 0.3s;
}
.c7n-card-grid:hover {
position: relative;
z-index: 1;
-webkit-box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.12);
box-shadow: 0 0.02rem 0.08rem rgba(0, 0, 0, 0.12);
}
.c7n-card-grid-selected {
position: relative;
-webkit-box-shadow: 0.01rem 0 0 0 #3f51b5, 0 0.01rem 0 0 #3f51b5, 0.01rem 0.01rem 0 0 #3f51b5, 0.01rem 0 0 0 #3f51b5 inset, 0 0.01rem 0 0 #3f51b5 inset;
box-shadow: 0.01rem 0 0 0 #3f51b5, 0 0.01rem 0 0 #3f51b5, 0.01rem 0.01rem 0 0 #3f51b5, 0.01rem 0 0 0 #3f51b5 inset, 0 0.01rem 0 0 #3f51b5 inset;
}
.c7n-card-grid-selected:hover {
-webkit-box-shadow: 0 0 0.01rem 0.01rem #3f51b5;
box-shadow: 0 0 0.01rem 0.01rem #3f51b5;
}
.c7n-card-grid-selected {
border-color: #3f51b5;
}
.c7n-card-grid-selected-xl::after {
border-width: 0.12rem;
}
.c7n-card-grid-selected-xs::after {
border-width: 0.06rem;
}
.c7n-card-grid-selected-topLeft::after {
top: 0;
left: 0;
position: absolute;
width: 0;
height: 0;
border-color: #3f51b5;
border-style: solid;
content: "";
border-right-color: transparent;
border-right-style: solid;
border-bottom-color: transparent;
border-bottom-style: solid;
}
.c7n-card-grid-selected-topRight::after {
top: 0;
right: 0;
position: absolute;
width: 0;
height: 0;
border-color: #3f51b5;
border-style: solid;
content: "";
border-bottom-color: transparent;
border-bottom-style: solid;
border-left-color: transparent;
border-left-style: solid;
}
.c7n-card-grid-selected-bottomLeft::after {
bottom: 0;
left: 0;
position: absolute;
width: 0;
height: 0;
border-color: #3f51b5;
border-style: solid;
content: "";
border-top-color: transparent;
border-top-style: solid;
border-right-color: transparent;
border-right-style: solid;
}
.c7n-card-grid-selected-bottomRight::after {
right: 0;
bottom: 0;
position: absolute;
width: 0;
height: 0;
border-color: #3f51b5;
border-style: solid;
content: "";
border-top-color: transparent;
border-top-style: solid;
border-left-color: transparent;
border-left-style: solid;
}
.c7n-card-contain-tabs .c7n-card-head-title {
min-height: calc(0.48rem - 0.16rem);
padding-bottom: 0;
}
.c7n-card-contain-tabs .c7n-card-extra {
padding-bottom: 0;
}
.c7n-card-cover {
margin: unset;
}
.c7n-card-cover > * {
display: block;
width: 100%;
}
.c7n-card-actions {
margin: 0;
padding: 0;
list-style: none;
background: rgba(0, 0, 0, 0.04);
border-top: 0.01rem solid #e8e8e8;
zoom: 1;
}
.c7n-card-actions::before,
.c7n-card-actions::after {
display: table;
white-space: initial;
content: ' ';
}
.c7n-card-actions::after {
clear: both;
height: 0;
font-size: 0;
visibility: hidden;
}
.c7n-card-actions > li {
float: left;
margin: 0.12rem 0;
padding: unset;
color: rgba(0, 0, 0, 0.45);
text-align: center;
}
.c7n-card-actions > li > span {
position: relative;
display: inline-block;
min-width: 0.32rem;
font-size: 0.14rem;
line-height: 0.22rem;
cursor: pointer;
}
.c7n-card-actions > li > span:hover {
color: #3f51b5;
-webkit-transition: color 0.3s;
transition: color 0.3s;
}
.c7n-card-actions > li > span > .anticon {
font-size: 0.16rem;
}
.c7n-card-actions > li > span a {
color: rgba(0, 0, 0, 0.45);
}
.c7n-card-actions > li > span a:hover {
color: #3f51b5;
}
.c7n-card-actions > li:not(:last-child) {
border-right: 0.01rem solid #e8e8e8;
}
.c7n-card-wider-padding .c7n-card-head {
padding: 0 0.32rem;
}
.c7n-card-wider-padding .c7n-card-body {
padding: 0.24rem 0.32rem;
}
.c7n-card-padding-transition .c7n-card-head,
.c7n-card-padding-transition .c7n-card-body {
-webkit-transition: padding 0.3s;
transition: padding 0.3s;
}
.c7n-card-padding-transition .c7n-card-extra {
-webkit-transition: right 0.3s;
transition: right 0.3s;
}
.c7n-card-type-inner .c7n-card-head {
padding: 0 0.24rem;
background: rgba(0, 0, 0, 0.04);
}
.c7n-card-type-inner .c7n-card-head-title {
padding: 0.12rem 0;
font-size: 0.13rem;
}
.c7n-card-type-inner .c7n-card-body {
padding: 0.16rem 0.24rem;
}
.c7n-card-type-inner .c7n-card-extra {
padding: calc(0.12rem + 0.015rem) 0;
}
.c7n-card-meta {
margin: -0.04rem 0;
zoom: 1;
}
.c7n-card-meta::before,
.c7n-card-meta::after {
display: table;
white-space: initial;
content: ' ';
}
.c7n-card-meta::after {
clear: both;
height: 0;
font-size: 0;
visibility: hidden;
}
.c7n-card-meta-avatar {
float: left;
padding-right: 0.16rem;
}
.c7n-card-meta-detail {
overflow: hidden;
}
.c7n-card-meta-detail > div:not(:last-child) {
margin-bottom: 0.08rem;
}
.c7n-card-meta-title {
overflow: hidden;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
font-size: 0.16rem;
white-space: nowrap;
text-overflow: ellipsis;
}
.c7n-card-meta-description {
color: rgba(0, 0, 0, 0.45);
}
.c7n-card-loading .c7n-card-body {
padding: 0rem;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.c7n-card-loading-content {
padding: 0.24rem;
}
.c7n-card-loading-content p {
margin: 0;
}
.c7n-card-loading-block {
display: inline-block;
height: 0.14rem;
margin: 0.05rem 2% 0 0;
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: linear-gradient(90deg, rgba(207, 216, 220, 0.2), rgba(207, 216, 220, 0.4), rgba(207, 216, 220, 0.2));
background-size: 600% 600%;
border-radius: 0.02rem;
-webkit-animation: card-loading 1.4s ease infinite;
animation: card-loading 1.4s ease infinite;
}
.c7n-card-selected {
border-color: #3f51b5;
}
.c7n-card-selected-xl::after {
border-width: 0.12rem;
}
.c7n-card-selected-xs::after {
border-width: 0.06rem;
}
.c7n-card-selected-topLeft::after {
top: 0;
left: 0;
position: absolute;
width: 0;
height: 0;
border-color: #3f51b5;
border-style: solid;
content: "";
border-right-color: transparent;
border-right-style: solid;
border-bottom-color: transparent;
border-bottom-style: solid;
}
.c7n-card-selected-topRight::after {
top: 0;
right: 0;
position: absolute;
width: 0;
height: 0;
border-color: #3f51b5;
border-style: solid;
content: "";
border-bottom-color: transparent;
border-bottom-style: solid;
border-left-color: transparent;
border-left-style: solid;
}
.c7n-card-selected-bottomLeft::after {
bottom: 0;
left: 0;
position: absolute;
width: 0;
height: 0;
border-color: #3f51b5;
border-style: solid;
content: "";
border-top-color: transparent;
border-top-style: solid;
border-right-color: transparent;
border-right-style: solid;
}
.c7n-card-selected-bottomRight::after {
right: 0;
bottom: 0;
position: absolute;
width: 0;
height: 0;
border-color: #3f51b5;
border-style: solid;
content: "";
border-top-color: transparent;
border-top-style: solid;
border-left-color: transparent;
border-left-style: solid;
}
@-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%;
}
}