choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
1,146 lines (1,145 loc) • 37.3 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 */
.c7n-btn-raised .c7n-ripple {
background-color: rgba(0, 0, 0, 0.1);
}
.c7n-btn-raised.c7n-btn-primary .c7n-ripple,
.c7n-btn-raised.c7n-btn-dashed .c7n-ripple,
.c7n-btn-raised.c7n-btn-danger .c7n-ripple {
background-color: rgba(255, 255, 255, 0.3);
}
.c7n-btn-raised-loading .c7n-ripple-wrapper {
background-color: rgba(255, 255, 255, 0.15);
}
.c7n-btn-raised.ripple-primary .c7n-ripple {
background-color: rgba(51, 103, 214, 0.1);
}
.c7n-btn {
line-height: 0.3rem;
position: relative;
display: inline-block;
-webkit-box-sizing: border-box;
box-sizing: border-box;
font-weight: 400;
letter-spacing: 0.01em;
white-space: nowrap;
text-align: center;
text-transform: uppercase;
background-image: none;
border: none;
cursor: pointer;
-webkit-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
-ms-touch-action: manipulation;
touch-action: manipulation;
height: 0.3rem;
padding: 0 0.12rem;
font-size: 0.13rem;
border-radius: 0.02rem;
color: #000000;
background-color: transparent;
border-color: #e0e0e0;
}
.c7n-btn > .icon {
margin-right: 0.0375rem;
font-size: 0.18rem;
}
.c7n-btn,
.c7n-btn:active,
.c7n-btn:focus {
outline: 0;
}
.c7n-btn:not([disabled]):hover {
text-decoration: none;
}
.c7n-btn:not([disabled]):active {
outline: 0;
-webkit-transition: none;
transition: none;
}
.c7n-btn.disabled,
.c7n-btn[disabled] {
cursor: not-allowed;
}
.c7n-btn.disabled > *,
.c7n-btn[disabled] > * {
pointer-events: none;
}
.c7n-btn.c7n-btn-lg {
height: 0.4rem;
padding: 0 0.12rem;
font-size: 0.16rem;
border-radius: 0.02rem;
line-height: 0.4rem;
}
.c7n-btn.c7n-btn-lg > .icon {
margin-right: 0.05rem;
font-size: 0.2rem;
}
.c7n-btn.c7n-btn-lg.c7n-btn-dashed {
line-height: 0.36rem;
}
.c7n-btn.c7n-btn-lg.c7n-btn-dashed > .icon {
line-height: 0.36rem;
}
.c7n-btn.c7n-btn-sm {
height: 0.24rem;
padding: 0.01rem 0.06rem;
font-size: 0.12rem;
border-radius: 0.02rem;
line-height: 0.24rem;
}
.c7n-btn.c7n-btn-sm > .icon {
margin-right: 0.03rem;
font-size: 0.16rem;
}
.c7n-btn.c7n-btn-sm.c7n-btn-dashed {
line-height: 0.2rem;
}
.c7n-btn.c7n-btn-sm.c7n-btn-dashed > .icon {
line-height: 0.2rem;
}
.c7n-btn > a:only-child {
color: currentColor;
}
.c7n-btn > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn > i.icon {
color: currentColor;
}
.c7n-btn div.btn-loading > span {
background: #000000;
}
.c7n-btn.disabled,
.c7n-btn[disabled],
.c7n-btn.disabled:hover,
.c7n-btn[disabled]:hover,
.c7n-btn.disabled:focus,
.c7n-btn[disabled]:focus,
.c7n-btn.disabled:active,
.c7n-btn[disabled]:active,
.c7n-btn.disabled.active,
.c7n-btn[disabled].active {
color: rgba(0, 0, 0, 0.25);
background-color: transparent;
border-color: #e0e0e0;
}
.c7n-btn.disabled > a:only-child,
.c7n-btn[disabled] > a:only-child,
.c7n-btn.disabled:hover > a:only-child,
.c7n-btn[disabled]:hover > a:only-child,
.c7n-btn.disabled:focus > a:only-child,
.c7n-btn[disabled]:focus > a:only-child,
.c7n-btn.disabled:active > a:only-child,
.c7n-btn[disabled]:active > a:only-child,
.c7n-btn.disabled.active > a:only-child,
.c7n-btn[disabled].active > a:only-child {
color: currentColor;
}
.c7n-btn.disabled > a:only-child::after,
.c7n-btn[disabled] > a:only-child::after,
.c7n-btn.disabled:hover > a:only-child::after,
.c7n-btn[disabled]:hover > a:only-child::after,
.c7n-btn.disabled:focus > a:only-child::after,
.c7n-btn[disabled]:focus > a:only-child::after,
.c7n-btn.disabled:active > a:only-child::after,
.c7n-btn[disabled]:active > a:only-child::after,
.c7n-btn.disabled.active > a:only-child::after,
.c7n-btn[disabled].active > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn.disabled > i.icon,
.c7n-btn[disabled] > i.icon,
.c7n-btn.disabled:hover > i.icon,
.c7n-btn[disabled]:hover > i.icon,
.c7n-btn.disabled:focus > i.icon,
.c7n-btn[disabled]:focus > i.icon,
.c7n-btn.disabled:active > i.icon,
.c7n-btn[disabled]:active > i.icon,
.c7n-btn.disabled.active > i.icon,
.c7n-btn[disabled].active > i.icon {
color: currentColor;
}
.c7n-btn:hover,
.c7n-btn:focus,
.c7n-btn:active,
.c7n-btn.active {
text-decoration: none;
}
.c7n-btn-disabled-wrapper > button {
height: 100%;
margin: 0;
padding: 0;
text-align: inherit;
background-color: transparent;
border: none;
cursor: inherit;
pointer-events: none;
}
.c7n-btn-disabled-wrapper > button:focus > span,
.c7n-btn-disabled-wrapper > button:active > span {
position: relative;
}
.c7n-btn-disabled-wrapper > button > i.icon,
.c7n-btn > i.icon {
display: inline-block;
line-height: inherit;
vertical-align: top;
pointer-events: none;
}
.c7n-btn-disabled-wrapper > button > span,
.c7n-btn > span {
display: inline-block;
}
.c7n-btn-disabled-wrapper > button > i.icon + span,
.c7n-btn > i.icon + span,
.c7n-btn-disabled-wrapper > button > span + i.icon,
.c7n-btn > span + i.icon {
margin-left: 0.04rem;
}
.c7n-btn-disabled-wrapper > button > div.btn-loading,
.c7n-btn > div.btn-loading {
display: inline-block;
width: 0.32rem;
margin-right: 0.04rem;
}
.c7n-btn-disabled-wrapper > button > div.btn-loading > span,
.c7n-btn > div.btn-loading > span {
display: inline-block;
width: 0.07rem;
height: 0.07rem;
background: #000;
border-color: #000;
border-radius: 50%;
}
.c7n-btn-disabled-wrapper > button > div.btn-loading .dot1,
.c7n-btn > div.btn-loading .dot1 {
-webkit-transform: scale(1);
-ms-transform: scale(1);
transform: scale(1);
opacity: 1;
-webkit-animation: btn-loading 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.07s infinite normal;
animation: btn-loading 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.07s infinite normal;
}
.c7n-btn-disabled-wrapper > button > div.btn-loading .dot2,
.c7n-btn > div.btn-loading .dot2 {
margin: 0 0.03rem;
-webkit-transform: scale(0.7);
-ms-transform: scale(0.7);
transform: scale(0.7);
opacity: 0.9;
-webkit-animation: btn-loading 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.17s infinite normal;
animation: btn-loading 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.17s infinite normal;
}
.c7n-btn-disabled-wrapper > button > div.btn-loading .dot3,
.c7n-btn > div.btn-loading .dot3 {
-webkit-transform: scale(0.7);
-ms-transform: scale(0.7);
transform: scale(0.7);
opacity: 0.9;
-webkit-animation: btn-loading 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.27s infinite normal;
animation: btn-loading 0.4s cubic-bezier(0.4, 0, 0.2, 1) 0.27s infinite normal;
}
.c7n-btn .c7n-progress.c7n-progress-loading {
margin-right: 0.01rem;
line-height: 1;
}
.c7n-btn .c7n-progress.c7n-progress-loading + span {
margin-left: 0.05rem;
}
.c7n-btn .c7n-progress.c7n-progress-loading .c7n-progress-inner {
width: 0.15rem;
height: 0.15rem;
}
.c7n-btn .c7n-progress.c7n-progress-loading .c7n-progress-inner circle {
stroke: currentColor;
}
.c7n-btn-flat.c7n-btn-primary {
color: #3f51b5;
background-color: transparent;
border-color: transparent;
}
.c7n-btn-flat.c7n-btn-primary > a:only-child {
color: currentColor;
}
.c7n-btn-flat.c7n-btn-primary > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-flat.c7n-btn-primary > i.icon {
color: currentColor;
}
.c7n-btn-flat.c7n-btn-primary.disabled,
.c7n-btn-flat.c7n-btn-primary[disabled],
.c7n-btn-flat.c7n-btn-primary.disabled:hover,
.c7n-btn-flat.c7n-btn-primary[disabled]:hover,
.c7n-btn-flat.c7n-btn-primary.disabled:focus,
.c7n-btn-flat.c7n-btn-primary[disabled]:focus,
.c7n-btn-flat.c7n-btn-primary.disabled:active,
.c7n-btn-flat.c7n-btn-primary[disabled]:active,
.c7n-btn-flat.c7n-btn-primary.disabled.active,
.c7n-btn-flat.c7n-btn-primary[disabled].active {
color: rgba(0, 0, 0, 0.25);
background-color: transparent;
border-color: #e0e0e0;
}
.c7n-btn-flat.c7n-btn-primary.disabled > a:only-child,
.c7n-btn-flat.c7n-btn-primary[disabled] > a:only-child,
.c7n-btn-flat.c7n-btn-primary.disabled:hover > a:only-child,
.c7n-btn-flat.c7n-btn-primary[disabled]:hover > a:only-child,
.c7n-btn-flat.c7n-btn-primary.disabled:focus > a:only-child,
.c7n-btn-flat.c7n-btn-primary[disabled]:focus > a:only-child,
.c7n-btn-flat.c7n-btn-primary.disabled:active > a:only-child,
.c7n-btn-flat.c7n-btn-primary[disabled]:active > a:only-child,
.c7n-btn-flat.c7n-btn-primary.disabled.active > a:only-child,
.c7n-btn-flat.c7n-btn-primary[disabled].active > a:only-child {
color: currentColor;
}
.c7n-btn-flat.c7n-btn-primary.disabled > a:only-child::after,
.c7n-btn-flat.c7n-btn-primary[disabled] > a:only-child::after,
.c7n-btn-flat.c7n-btn-primary.disabled:hover > a:only-child::after,
.c7n-btn-flat.c7n-btn-primary[disabled]:hover > a:only-child::after,
.c7n-btn-flat.c7n-btn-primary.disabled:focus > a:only-child::after,
.c7n-btn-flat.c7n-btn-primary[disabled]:focus > a:only-child::after,
.c7n-btn-flat.c7n-btn-primary.disabled:active > a:only-child::after,
.c7n-btn-flat.c7n-btn-primary[disabled]:active > a:only-child::after,
.c7n-btn-flat.c7n-btn-primary.disabled.active > a:only-child::after,
.c7n-btn-flat.c7n-btn-primary[disabled].active > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-flat.c7n-btn-primary.disabled > i.icon,
.c7n-btn-flat.c7n-btn-primary[disabled] > i.icon,
.c7n-btn-flat.c7n-btn-primary.disabled:hover > i.icon,
.c7n-btn-flat.c7n-btn-primary[disabled]:hover > i.icon,
.c7n-btn-flat.c7n-btn-primary.disabled:focus > i.icon,
.c7n-btn-flat.c7n-btn-primary[disabled]:focus > i.icon,
.c7n-btn-flat.c7n-btn-primary.disabled:active > i.icon,
.c7n-btn-flat.c7n-btn-primary[disabled]:active > i.icon,
.c7n-btn-flat.c7n-btn-primary.disabled.active > i.icon,
.c7n-btn-flat.c7n-btn-primary[disabled].active > i.icon {
color: currentColor;
}
.c7n-btn-flat.c7n-btn-primary div.btn-loading > span {
background: #3f51b5;
}
.c7n-btn-group .c7n-btn-flat.c7n-btn-primary:not(:first-child):not(:last-child) {
border-right-color: #6374c2;
border-left-color: #6374c2;
}
.c7n-btn-group .c7n-btn-flat.c7n-btn-primary:not(:first-child):not(:last-child):disabled {
border-color: #e0e0e0;
}
.c7n-btn-group .c7n-btn-flat.c7n-btn-primary:first-child:not(:last-child) {
border-right-color: #6374c2;
}
.c7n-btn-group .c7n-btn-flat.c7n-btn-primary:first-child:not(:last-child)[disabled] {
border-right-color: #e0e0e0;
}
.c7n-btn-group .c7n-btn-flat.c7n-btn-primary:last-child:not(:first-child),
.c7n-btn-group .c7n-btn-flat.c7n-btn-primary + .c7n-btn-flat.c7n-btn-primary {
border-left-color: #6374c2;
}
.c7n-btn-group .c7n-btn-flat.c7n-btn-primary:last-child:not(:first-child)[disabled],
.c7n-btn-group .c7n-btn-flat.c7n-btn-primary + .c7n-btn-flat.c7n-btn-primary[disabled] {
border-left-color: #e0e0e0;
}
.c7n-btn-raised.c7n-btn-primary {
color: #ffffff;
background-color: #3f51b5;
border-color: #3f51b5;
}
.c7n-btn-raised.c7n-btn-primary > a:only-child {
color: currentColor;
}
.c7n-btn-raised.c7n-btn-primary > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-raised.c7n-btn-primary > i.icon {
color: currentColor;
}
.c7n-btn-raised.c7n-btn-primary.disabled,
.c7n-btn-raised.c7n-btn-primary[disabled],
.c7n-btn-raised.c7n-btn-primary.disabled:hover,
.c7n-btn-raised.c7n-btn-primary[disabled]:hover,
.c7n-btn-raised.c7n-btn-primary.disabled:focus,
.c7n-btn-raised.c7n-btn-primary[disabled]:focus,
.c7n-btn-raised.c7n-btn-primary.disabled:active,
.c7n-btn-raised.c7n-btn-primary[disabled]:active,
.c7n-btn-raised.c7n-btn-primary.disabled.active,
.c7n-btn-raised.c7n-btn-primary[disabled].active {
color: rgba(0, 0, 0, 0.25);
background-color: transparent;
border-color: #e0e0e0;
}
.c7n-btn-raised.c7n-btn-primary.disabled > a:only-child,
.c7n-btn-raised.c7n-btn-primary[disabled] > a:only-child,
.c7n-btn-raised.c7n-btn-primary.disabled:hover > a:only-child,
.c7n-btn-raised.c7n-btn-primary[disabled]:hover > a:only-child,
.c7n-btn-raised.c7n-btn-primary.disabled:focus > a:only-child,
.c7n-btn-raised.c7n-btn-primary[disabled]:focus > a:only-child,
.c7n-btn-raised.c7n-btn-primary.disabled:active > a:only-child,
.c7n-btn-raised.c7n-btn-primary[disabled]:active > a:only-child,
.c7n-btn-raised.c7n-btn-primary.disabled.active > a:only-child,
.c7n-btn-raised.c7n-btn-primary[disabled].active > a:only-child {
color: currentColor;
}
.c7n-btn-raised.c7n-btn-primary.disabled > a:only-child::after,
.c7n-btn-raised.c7n-btn-primary[disabled] > a:only-child::after,
.c7n-btn-raised.c7n-btn-primary.disabled:hover > a:only-child::after,
.c7n-btn-raised.c7n-btn-primary[disabled]:hover > a:only-child::after,
.c7n-btn-raised.c7n-btn-primary.disabled:focus > a:only-child::after,
.c7n-btn-raised.c7n-btn-primary[disabled]:focus > a:only-child::after,
.c7n-btn-raised.c7n-btn-primary.disabled:active > a:only-child::after,
.c7n-btn-raised.c7n-btn-primary[disabled]:active > a:only-child::after,
.c7n-btn-raised.c7n-btn-primary.disabled.active > a:only-child::after,
.c7n-btn-raised.c7n-btn-primary[disabled].active > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-raised.c7n-btn-primary.disabled > i.icon,
.c7n-btn-raised.c7n-btn-primary[disabled] > i.icon,
.c7n-btn-raised.c7n-btn-primary.disabled:hover > i.icon,
.c7n-btn-raised.c7n-btn-primary[disabled]:hover > i.icon,
.c7n-btn-raised.c7n-btn-primary.disabled:focus > i.icon,
.c7n-btn-raised.c7n-btn-primary[disabled]:focus > i.icon,
.c7n-btn-raised.c7n-btn-primary.disabled:active > i.icon,
.c7n-btn-raised.c7n-btn-primary[disabled]:active > i.icon,
.c7n-btn-raised.c7n-btn-primary.disabled.active > i.icon,
.c7n-btn-raised.c7n-btn-primary[disabled].active > i.icon {
color: currentColor;
}
.c7n-btn-raised.c7n-btn-primary div.btn-loading > span {
background: #ffffff;
}
.c7n-btn-group .c7n-btn-raised.c7n-btn-primary:not(:first-child):not(:last-child) {
border-right-color: #6374c2;
border-left-color: #6374c2;
}
.c7n-btn-group .c7n-btn-raised.c7n-btn-primary:not(:first-child):not(:last-child):disabled {
border-color: #e0e0e0;
}
.c7n-btn-group .c7n-btn-raised.c7n-btn-primary:first-child:not(:last-child) {
border-right-color: #6374c2;
}
.c7n-btn-group .c7n-btn-raised.c7n-btn-primary:first-child:not(:last-child)[disabled] {
border-right-color: #e0e0e0;
}
.c7n-btn-group .c7n-btn-raised.c7n-btn-primary:last-child:not(:first-child),
.c7n-btn-group .c7n-btn-raised.c7n-btn-primary + .c7n-btn-raised.c7n-btn-primary {
border-left-color: #6374c2;
}
.c7n-btn-group .c7n-btn-raised.c7n-btn-primary:last-child:not(:first-child)[disabled],
.c7n-btn-group .c7n-btn-raised.c7n-btn-primary + .c7n-btn-raised.c7n-btn-primary[disabled] {
border-left-color: #e0e0e0;
}
.c7n-btn-ghost {
color: #000000;
background-color: transparent;
border-color: #e0e0e0;
}
.c7n-btn-ghost > a:only-child {
color: currentColor;
}
.c7n-btn-ghost > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-ghost > i.icon {
color: currentColor;
}
.c7n-btn-ghost div.btn-loading > span {
background: #000000;
}
.c7n-btn-ghost.disabled,
.c7n-btn-ghost[disabled],
.c7n-btn-ghost.disabled:hover,
.c7n-btn-ghost[disabled]:hover,
.c7n-btn-ghost.disabled:focus,
.c7n-btn-ghost[disabled]:focus,
.c7n-btn-ghost.disabled:active,
.c7n-btn-ghost[disabled]:active,
.c7n-btn-ghost.disabled.active,
.c7n-btn-ghost[disabled].active {
color: rgba(0, 0, 0, 0.25);
background-color: transparent;
border-color: #e0e0e0;
}
.c7n-btn-ghost.disabled > a:only-child,
.c7n-btn-ghost[disabled] > a:only-child,
.c7n-btn-ghost.disabled:hover > a:only-child,
.c7n-btn-ghost[disabled]:hover > a:only-child,
.c7n-btn-ghost.disabled:focus > a:only-child,
.c7n-btn-ghost[disabled]:focus > a:only-child,
.c7n-btn-ghost.disabled:active > a:only-child,
.c7n-btn-ghost[disabled]:active > a:only-child,
.c7n-btn-ghost.disabled.active > a:only-child,
.c7n-btn-ghost[disabled].active > a:only-child {
color: currentColor;
}
.c7n-btn-ghost.disabled > a:only-child::after,
.c7n-btn-ghost[disabled] > a:only-child::after,
.c7n-btn-ghost.disabled:hover > a:only-child::after,
.c7n-btn-ghost[disabled]:hover > a:only-child::after,
.c7n-btn-ghost.disabled:focus > a:only-child::after,
.c7n-btn-ghost[disabled]:focus > a:only-child::after,
.c7n-btn-ghost.disabled:active > a:only-child::after,
.c7n-btn-ghost[disabled]:active > a:only-child::after,
.c7n-btn-ghost.disabled.active > a:only-child::after,
.c7n-btn-ghost[disabled].active > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-ghost.disabled > i.icon,
.c7n-btn-ghost[disabled] > i.icon,
.c7n-btn-ghost.disabled:hover > i.icon,
.c7n-btn-ghost[disabled]:hover > i.icon,
.c7n-btn-ghost.disabled:focus > i.icon,
.c7n-btn-ghost[disabled]:focus > i.icon,
.c7n-btn-ghost.disabled:active > i.icon,
.c7n-btn-ghost[disabled]:active > i.icon,
.c7n-btn-ghost.disabled.active > i.icon,
.c7n-btn-ghost[disabled].active > i.icon {
color: currentColor;
}
.c7n-btn-dashed {
color: #000000;
background-color: transparent;
border-color: #e0e0e0;
border-style: dashed;
line-height: 0.26rem;
}
.c7n-btn-dashed > a:only-child {
color: currentColor;
}
.c7n-btn-dashed > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-dashed > i.icon {
color: currentColor;
}
.c7n-btn-dashed div.btn-loading > span {
background: #000000;
}
.c7n-btn-dashed.disabled,
.c7n-btn-dashed[disabled],
.c7n-btn-dashed.disabled:hover,
.c7n-btn-dashed[disabled]:hover,
.c7n-btn-dashed.disabled:focus,
.c7n-btn-dashed[disabled]:focus,
.c7n-btn-dashed.disabled:active,
.c7n-btn-dashed[disabled]:active,
.c7n-btn-dashed.disabled.active,
.c7n-btn-dashed[disabled].active {
color: rgba(0, 0, 0, 0.25);
background-color: transparent;
border-color: #e0e0e0;
}
.c7n-btn-dashed.disabled > a:only-child,
.c7n-btn-dashed[disabled] > a:only-child,
.c7n-btn-dashed.disabled:hover > a:only-child,
.c7n-btn-dashed[disabled]:hover > a:only-child,
.c7n-btn-dashed.disabled:focus > a:only-child,
.c7n-btn-dashed[disabled]:focus > a:only-child,
.c7n-btn-dashed.disabled:active > a:only-child,
.c7n-btn-dashed[disabled]:active > a:only-child,
.c7n-btn-dashed.disabled.active > a:only-child,
.c7n-btn-dashed[disabled].active > a:only-child {
color: currentColor;
}
.c7n-btn-dashed.disabled > a:only-child::after,
.c7n-btn-dashed[disabled] > a:only-child::after,
.c7n-btn-dashed.disabled:hover > a:only-child::after,
.c7n-btn-dashed[disabled]:hover > a:only-child::after,
.c7n-btn-dashed.disabled:focus > a:only-child::after,
.c7n-btn-dashed[disabled]:focus > a:only-child::after,
.c7n-btn-dashed.disabled:active > a:only-child::after,
.c7n-btn-dashed[disabled]:active > a:only-child::after,
.c7n-btn-dashed.disabled.active > a:only-child::after,
.c7n-btn-dashed[disabled].active > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-dashed.disabled > i.icon,
.c7n-btn-dashed[disabled] > i.icon,
.c7n-btn-dashed.disabled:hover > i.icon,
.c7n-btn-dashed[disabled]:hover > i.icon,
.c7n-btn-dashed.disabled:focus > i.icon,
.c7n-btn-dashed[disabled]:focus > i.icon,
.c7n-btn-dashed.disabled:active > i.icon,
.c7n-btn-dashed[disabled]:active > i.icon,
.c7n-btn-dashed.disabled.active > i.icon,
.c7n-btn-dashed[disabled].active > i.icon {
color: currentColor;
}
.c7n-btn-danger {
color: #d50000;
background-color: rgba(0, 0, 0, 0);
border-color: #e0e0e0;
}
.c7n-btn-danger > a:only-child {
color: currentColor;
}
.c7n-btn-danger > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-danger > i.icon {
color: currentColor;
}
.c7n-btn-danger div.btn-loading > span {
background: #d50000;
}
.c7n-btn-danger.disabled,
.c7n-btn-danger[disabled],
.c7n-btn-danger.disabled:hover,
.c7n-btn-danger[disabled]:hover,
.c7n-btn-danger.disabled:focus,
.c7n-btn-danger[disabled]:focus,
.c7n-btn-danger.disabled:active,
.c7n-btn-danger[disabled]:active,
.c7n-btn-danger.disabled.active,
.c7n-btn-danger[disabled].active {
color: rgba(0, 0, 0, 0.25);
background-color: transparent;
border-color: #e0e0e0;
}
.c7n-btn-danger.disabled > a:only-child,
.c7n-btn-danger[disabled] > a:only-child,
.c7n-btn-danger.disabled:hover > a:only-child,
.c7n-btn-danger[disabled]:hover > a:only-child,
.c7n-btn-danger.disabled:focus > a:only-child,
.c7n-btn-danger[disabled]:focus > a:only-child,
.c7n-btn-danger.disabled:active > a:only-child,
.c7n-btn-danger[disabled]:active > a:only-child,
.c7n-btn-danger.disabled.active > a:only-child,
.c7n-btn-danger[disabled].active > a:only-child {
color: currentColor;
}
.c7n-btn-danger.disabled > a:only-child::after,
.c7n-btn-danger[disabled] > a:only-child::after,
.c7n-btn-danger.disabled:hover > a:only-child::after,
.c7n-btn-danger[disabled]:hover > a:only-child::after,
.c7n-btn-danger.disabled:focus > a:only-child::after,
.c7n-btn-danger[disabled]:focus > a:only-child::after,
.c7n-btn-danger.disabled:active > a:only-child::after,
.c7n-btn-danger[disabled]:active > a:only-child::after,
.c7n-btn-danger.disabled.active > a:only-child::after,
.c7n-btn-danger[disabled].active > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-danger.disabled > i.icon,
.c7n-btn-danger[disabled] > i.icon,
.c7n-btn-danger.disabled:hover > i.icon,
.c7n-btn-danger[disabled]:hover > i.icon,
.c7n-btn-danger.disabled:focus > i.icon,
.c7n-btn-danger[disabled]:focus > i.icon,
.c7n-btn-danger.disabled:active > i.icon,
.c7n-btn-danger[disabled]:active > i.icon,
.c7n-btn-danger.disabled.active > i.icon,
.c7n-btn-danger[disabled].active > i.icon {
color: currentColor;
}
.c7n-btn-circle,
.c7n-btn-circle-outline {
width: 0.3rem;
height: 0.3rem;
padding: 0;
font-size: 0.15rem;
border-radius: 50%;
}
.c7n-btn-circle.c7n-btn-lg,
.c7n-btn-circle-outline.c7n-btn-lg {
width: 0.4rem;
height: 0.4rem;
padding: 0;
font-size: 0.18rem;
border-radius: 50%;
}
.c7n-btn-circle.c7n-btn-lg > .icon,
.c7n-btn-circle-outline.c7n-btn-lg > .icon {
margin-right: 0;
font-size: 0.2rem;
}
.c7n-btn-circle.c7n-btn-sm,
.c7n-btn-circle-outline.c7n-btn-sm {
width: 0.24rem;
height: 0.24rem;
padding: 0;
font-size: 0.13rem;
border-radius: 50%;
}
.c7n-btn-circle.c7n-btn-sm > .icon,
.c7n-btn-circle-outline.c7n-btn-sm > .icon {
margin-right: 0;
font-size: 0.16rem;
}
.c7n-btn-circle > .icon,
.c7n-btn-circle-outline > .icon {
line-height: 1.5;
}
.c7n-btn-circle > i.icon,
.c7n-btn-circle-outline > i.icon {
margin: 0;
}
.c7n-btn::before {
position: absolute;
top: -0.01rem;
right: -0.01rem;
bottom: -0.01rem;
left: -0.01rem;
z-index: 1;
display: none;
background: #fff;
border-radius: inherit;
opacity: 0.35;
-webkit-transition: opacity 0.2s;
transition: opacity 0.2s;
content: '';
pointer-events: none;
}
.c7n-btn .icon {
-webkit-transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: margin-left 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.c7n-btn.c7n-btn-loading:not(.c7n-btn-circle):not(.c7n-btn-circle-outline):not(.c7n-btn-icon-only) {
pointer-events: none;
}
.c7n-btn-group {
position: relative;
display: inline-block;
}
.c7n-btn-group > .c7n-btn {
position: relative;
line-height: 0.3rem;
}
.c7n-btn-group > .c7n-btn:hover,
.c7n-btn-group > .c7n-btn:focus,
.c7n-btn-group > .c7n-btn:active,
.c7n-btn-group > .c7n-btn.active {
z-index: 2;
}
.c7n-btn-group > .c7n-btn:disabled {
z-index: 0;
}
.c7n-btn-group-lg > .c7n-btn {
height: 0.4rem;
padding: 0 0.12rem;
font-size: 0.16rem;
border-radius: 0.02rem;
line-height: 0.4rem;
}
.c7n-btn-group-lg > .c7n-btn > .icon {
margin-right: 0.05rem;
font-size: 0.2rem;
line-height: 0.4rem;
}
.c7n-btn-group-sm > .c7n-btn {
height: 0.24rem;
padding: 0.01rem 0.06rem;
font-size: 0.13rem;
border-radius: 0.02rem;
line-height: 0.24rem;
}
.c7n-btn-group-sm > .c7n-btn > .icon {
margin-right: 0.03rem;
font-size: 0.16rem;
line-height: 0.24rem;
}
.c7n-btn-group .c7n-btn + .c7n-btn,
.c7n-btn + .c7n-btn-group,
.c7n-btn-group span + .c7n-btn,
.c7n-btn-group .c7n-btn + span,
.c7n-btn-group + .c7n-btn,
.c7n-btn-group + .c7n-btn-group {
margin-left: -0.01rem;
}
.c7n-btn-group .c7n-btn:not(:first-child):not(:last-child) {
border-radius: 0;
}
.c7n-btn-group > .c7n-btn:first-child,
.c7n-btn-group > span:first-child > .c7n-btn {
margin-left: 0;
}
.c7n-btn-group > .c7n-btn:first-child:not(:last-child),
.c7n-btn-group > span:first-child:not(:last-child) > .c7n-btn {
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.c7n-btn-group > .c7n-btn:last-child:not(:first-child),
.c7n-btn-group > span:last-child:not(:first-child) > .c7n-btn {
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.c7n-btn-group > .c7n-btn-group {
float: left;
}
.c7n-btn-group > .c7n-btn-group:not(:first-child):not(:last-child) > .c7n-btn {
border-radius: 0;
}
.c7n-btn-group > .c7n-btn-group:first-child:not(:last-child) > .c7n-btn:last-child {
padding-right: 0.08rem;
border-top-right-radius: 0;
border-bottom-right-radius: 0;
}
.c7n-btn-group > .c7n-btn-group:last-child:not(:first-child) > .c7n-btn:first-child {
padding-left: 0.08rem;
border-top-left-radius: 0;
border-bottom-left-radius: 0;
}
.c7n-btn-icon-only:not(.c7n-btn-circle):not(.c7n-btn-circle-outline) {
padding-right: 0.08rem;
padding-left: 0.08rem;
}
.c7n-btn:focus > span,
.c7n-btn:active > span {
position: relative;
}
.c7n-btn-clicked::after {
position: absolute;
top: -0.01rem;
right: -0.01rem;
bottom: -0.01rem;
left: -0.01rem;
display: block;
border: 0 solid #3f51b5;
border-radius: inherit;
opacity: 0.4;
content: '';
}
.c7n-btn-danger.c7n-btn-clicked::after {
border-color: #d50000;
}
.c7n-btn-background-ghost {
color: #fff;
background: transparent ;
border-color: #fff;
}
.c7n-btn-background-ghost.c7n-btn-primary {
color: #3f51b5;
background-color: transparent;
border-color: #3f51b5;
}
.c7n-btn-background-ghost.c7n-btn-primary > a:only-child {
color: currentColor;
}
.c7n-btn-background-ghost.c7n-btn-primary > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-background-ghost.c7n-btn-primary > i.icon {
color: currentColor;
}
.c7n-btn-background-ghost.c7n-btn-primary.disabled,
.c7n-btn-background-ghost.c7n-btn-primary[disabled],
.c7n-btn-background-ghost.c7n-btn-primary.disabled:hover,
.c7n-btn-background-ghost.c7n-btn-primary[disabled]:hover,
.c7n-btn-background-ghost.c7n-btn-primary.disabled:focus,
.c7n-btn-background-ghost.c7n-btn-primary[disabled]:focus,
.c7n-btn-background-ghost.c7n-btn-primary.disabled:active,
.c7n-btn-background-ghost.c7n-btn-primary[disabled]:active,
.c7n-btn-background-ghost.c7n-btn-primary.disabled.active,
.c7n-btn-background-ghost.c7n-btn-primary[disabled].active {
color: rgba(0, 0, 0, 0.25);
background-color: transparent;
border-color: #e0e0e0;
}
.c7n-btn-background-ghost.c7n-btn-primary.disabled > a:only-child,
.c7n-btn-background-ghost.c7n-btn-primary[disabled] > a:only-child,
.c7n-btn-background-ghost.c7n-btn-primary.disabled:hover > a:only-child,
.c7n-btn-background-ghost.c7n-btn-primary[disabled]:hover > a:only-child,
.c7n-btn-background-ghost.c7n-btn-primary.disabled:focus > a:only-child,
.c7n-btn-background-ghost.c7n-btn-primary[disabled]:focus > a:only-child,
.c7n-btn-background-ghost.c7n-btn-primary.disabled:active > a:only-child,
.c7n-btn-background-ghost.c7n-btn-primary[disabled]:active > a:only-child,
.c7n-btn-background-ghost.c7n-btn-primary.disabled.active > a:only-child,
.c7n-btn-background-ghost.c7n-btn-primary[disabled].active > a:only-child {
color: currentColor;
}
.c7n-btn-background-ghost.c7n-btn-primary.disabled > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-primary[disabled] > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-primary.disabled:hover > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-primary[disabled]:hover > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-primary.disabled:focus > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-primary[disabled]:focus > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-primary.disabled:active > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-primary[disabled]:active > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-primary.disabled.active > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-primary[disabled].active > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-background-ghost.c7n-btn-primary.disabled > i.icon,
.c7n-btn-background-ghost.c7n-btn-primary[disabled] > i.icon,
.c7n-btn-background-ghost.c7n-btn-primary.disabled:hover > i.icon,
.c7n-btn-background-ghost.c7n-btn-primary[disabled]:hover > i.icon,
.c7n-btn-background-ghost.c7n-btn-primary.disabled:focus > i.icon,
.c7n-btn-background-ghost.c7n-btn-primary[disabled]:focus > i.icon,
.c7n-btn-background-ghost.c7n-btn-primary.disabled:active > i.icon,
.c7n-btn-background-ghost.c7n-btn-primary[disabled]:active > i.icon,
.c7n-btn-background-ghost.c7n-btn-primary.disabled.active > i.icon,
.c7n-btn-background-ghost.c7n-btn-primary[disabled].active > i.icon {
color: currentColor;
}
.c7n-btn-background-ghost.c7n-btn-danger {
color: #d50000;
background-color: transparent;
border-color: #d50000;
}
.c7n-btn-background-ghost.c7n-btn-danger > a:only-child {
color: currentColor;
}
.c7n-btn-background-ghost.c7n-btn-danger > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-background-ghost.c7n-btn-danger > i.icon {
color: currentColor;
}
.c7n-btn-background-ghost.c7n-btn-danger.disabled,
.c7n-btn-background-ghost.c7n-btn-danger[disabled],
.c7n-btn-background-ghost.c7n-btn-danger.disabled:hover,
.c7n-btn-background-ghost.c7n-btn-danger[disabled]:hover,
.c7n-btn-background-ghost.c7n-btn-danger.disabled:focus,
.c7n-btn-background-ghost.c7n-btn-danger[disabled]:focus,
.c7n-btn-background-ghost.c7n-btn-danger.disabled:active,
.c7n-btn-background-ghost.c7n-btn-danger[disabled]:active,
.c7n-btn-background-ghost.c7n-btn-danger.disabled.active,
.c7n-btn-background-ghost.c7n-btn-danger[disabled].active {
color: rgba(0, 0, 0, 0.25);
background-color: transparent;
border-color: #e0e0e0;
}
.c7n-btn-background-ghost.c7n-btn-danger.disabled > a:only-child,
.c7n-btn-background-ghost.c7n-btn-danger[disabled] > a:only-child,
.c7n-btn-background-ghost.c7n-btn-danger.disabled:hover > a:only-child,
.c7n-btn-background-ghost.c7n-btn-danger[disabled]:hover > a:only-child,
.c7n-btn-background-ghost.c7n-btn-danger.disabled:focus > a:only-child,
.c7n-btn-background-ghost.c7n-btn-danger[disabled]:focus > a:only-child,
.c7n-btn-background-ghost.c7n-btn-danger.disabled:active > a:only-child,
.c7n-btn-background-ghost.c7n-btn-danger[disabled]:active > a:only-child,
.c7n-btn-background-ghost.c7n-btn-danger.disabled.active > a:only-child,
.c7n-btn-background-ghost.c7n-btn-danger[disabled].active > a:only-child {
color: currentColor;
}
.c7n-btn-background-ghost.c7n-btn-danger.disabled > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-danger[disabled] > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-danger.disabled:hover > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-danger[disabled]:hover > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-danger.disabled:focus > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-danger[disabled]:focus > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-danger.disabled:active > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-danger[disabled]:active > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-danger.disabled.active > a:only-child::after,
.c7n-btn-background-ghost.c7n-btn-danger[disabled].active > a:only-child::after {
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
background: transparent;
content: '';
}
.c7n-btn-background-ghost.c7n-btn-danger.disabled > i.icon,
.c7n-btn-background-ghost.c7n-btn-danger[disabled] > i.icon,
.c7n-btn-background-ghost.c7n-btn-danger.disabled:hover > i.icon,
.c7n-btn-background-ghost.c7n-btn-danger[disabled]:hover > i.icon,
.c7n-btn-background-ghost.c7n-btn-danger.disabled:focus > i.icon,
.c7n-btn-background-ghost.c7n-btn-danger[disabled]:focus > i.icon,
.c7n-btn-background-ghost.c7n-btn-danger.disabled:active > i.icon,
.c7n-btn-background-ghost.c7n-btn-danger[disabled]:active > i.icon,
.c7n-btn-background-ghost.c7n-btn-danger.disabled.active > i.icon,
.c7n-btn-background-ghost.c7n-btn-danger[disabled].active > i.icon {
color: currentColor;
}
.c7n-btn-two-chinese-chars::first-letter {
letter-spacing: 0.34em;
}
.c7n-btn-two-chinese-chars > * {
margin-right: -0.34em;
letter-spacing: 0.34em;
}
.c7n-btn-raised {
-webkit-box-shadow: 0 0.03rem 0.01rem -0.02rem rgba(0, 0, 0, 0.2), 0 0.02rem 0.02rem 0 rgba(0, 0, 0, 0.14), 0 0.01rem 0.05rem 0 rgba(0, 0, 0, 0.12);
box-shadow: 0 0.03rem 0.01rem -0.02rem rgba(0, 0, 0, 0.2), 0 0.02rem 0.02rem 0 rgba(0, 0, 0, 0.14), 0 0.01rem 0.05rem 0 rgba(0, 0, 0, 0.12);
-webkit-transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1) ;
transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1) ;
transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1) ;
transition: background 0.4s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1), -webkit-box-shadow 0.28s cubic-bezier(0.4, 0, 0.2, 1) ;
}
.c7n-btn-raised:not([disabled]):active {
-webkit-box-shadow: 0 0.05rem 0.05rem -0.03rem rgba(0, 0, 0, 0.2), 0 0.08rem 0.1rem 0.01rem rgba(0, 0, 0, 0.14), 0 0.03rem 0.14rem 0.02rem rgba(0, 0, 0, 0.12);
box-shadow: 0 0.05rem 0.05rem -0.03rem rgba(0, 0, 0, 0.2), 0 0.08rem 0.1rem 0.01rem rgba(0, 0, 0, 0.14), 0 0.03rem 0.14rem 0.02rem rgba(0, 0, 0, 0.12);
}
.c7n-btn-flat.c7n-btn-loading {
background: rgba(0, 0, 0, 0.04);
-webkit-box-shadow: 0 0.05rem 0.05rem -0.03rem rgba(0, 0, 0, 0.2), 0 0.08rem 0.1rem 0.01rem rgba(0, 0, 0, 0.14), 0 0.03rem 0.14rem 0.02rem rgba(0, 0, 0, 0.12);
box-shadow: 0 0.05rem 0.05rem -0.03rem rgba(0, 0, 0, 0.2), 0 0.08rem 0.1rem 0.01rem rgba(0, 0, 0, 0.14), 0 0.03rem 0.14rem 0.02rem rgba(0, 0, 0, 0.12);
}
.c7n-btn-raised.c7n-btn-loading {
-webkit-box-shadow: 0 0.05rem 0.05rem -0.03rem rgba(0, 0, 0, 0.2), 0 0.08rem 0.1rem 0.01rem rgba(0, 0, 0, 0.14), 0 0.03rem 0.14rem 0.02rem rgba(0, 0, 0, 0.12);
box-shadow: 0 0.05rem 0.05rem -0.03rem rgba(0, 0, 0, 0.2), 0 0.08rem 0.1rem 0.01rem rgba(0, 0, 0, 0.14), 0 0.03rem 0.14rem 0.02rem rgba(0, 0, 0, 0.12);
}
.c7n-btn-flat:hover {
background: rgba(0, 0, 0, 0.08);
}
@-webkit-keyframes buttonEffect {
to {
top: -0.06rem;
right: -0.06rem;
bottom: -0.06rem;
left: -0.06rem;
border-width: 0.06rem;
opacity: 0;
}
}
@keyframes buttonEffect {
to {
top: -0.06rem;
right: -0.06rem;
bottom: -0.06rem;
left: -0.06rem;
border-width: 0.06rem;
opacity: 0;
}
}
a.c7n-btn {
line-height: 0.28rem;
}
a.c7n-btn-lg {
line-height: 0.38rem;
}
a.c7n-btn-sm {
line-height: 0.22rem;
}
@-webkit-keyframes btn-loading {
0% {
-webkit-transform: scale(0.7);
transform: scale(0.7);
opacity: 0.9;
}
33.3% {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 1;
}
66.6% {
-webkit-transform: scale(0.7);
transform: scale(0.7);
opacity: 0.9;
}
100% {
-webkit-transform: scale(0.7);
transform: scale(0.7);
opacity: 0.9;
}
}
@keyframes btn-loading {
0% {
-webkit-transform: scale(0.7);
transform: scale(0.7);
opacity: 0.9;
}
33.3% {
-webkit-transform: scale(1);
transform: scale(1);
opacity: 1;
}
66.6% {
-webkit-transform: scale(0.7);
transform: scale(0.7);
opacity: 0.9;
}
100% {
-webkit-transform: scale(0.7);
transform: scale(0.7);
opacity: 0.9;
}
}