choerodon-ui
Version:
An enterprise-class UI design language and React-based implementation
462 lines (461 loc) • 11.5 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-pro-modal {
position: fixed;
top: 1rem;
width: 5.2rem;
max-width: 100%;
max-height: 100%;
margin: 0 auto;
}
.c7n-pro-modal:active {
-webkit-transition: none;
transition: none;
}
.c7n-pro-modal-center {
right: 0;
left: 0;
}
.c7n-pro-modal-content {
position: relative;
height: 100%;
min-height: inherit;
background-color: #fff;
background-clip: padding-box;
border: 0;
border-radius: 0.02rem;
-webkit-box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.12);
box-shadow: 0 0.04rem 0.12rem rgba(0, 0, 0, 0.12);
}
.c7n-pro-modal-title {
margin: 0;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
font-size: 0.18rem;
line-height: 0.24rem;
}
.c7n-pro-modal-header {
position: relative;
padding: 0.15rem 0.24rem;
color: #000000;
background: #fff;
border-radius: 0.02rem 0.02rem 0 0;
}
.c7n-pro-modal-body {
max-height: calc(100vh - 1.2rem);
padding: 0.24rem;
overflow: auto;
font-size: 0.13rem;
line-height: 1.5;
}
.c7n-pro-modal-footer {
padding: 0.12rem 0.24rem;
text-align: right;
border-radius: 0 0 0.02rem 0.02rem;
}
.c7n-pro-modal-footer button + button {
margin-bottom: 0;
margin-left: 0.08rem;
}
.c7n-pro-modal-footer-without-border {
padding-top: 0;
border-top: none;
}
.c7n-pro-modal-container {
position: absolute;
top: 0;
left: 0;
z-index: 1000;
}
.c7n-pro-modal-container-embedded .c7n-pro-modal {
position: absolute;
}
.c7n-pro-modal-active {
z-index: 2;
}
.c7n-pro-modal-border .c7n-pro-modal-header {
border-bottom: 0.01rem solid #e0e0e0;
}
.c7n-pro-modal-border .c7n-pro-modal-footer {
border-top: 0.01rem solid #e0e0e0;
}
.c7n-pro-modal-title-none {
border-bottom: none ;
}
.c7n-pro-modal-header-buttons {
position: absolute;
top: 0;
right: 0;
bottom: 0;
}
.c7n-pro-modal-header-button {
width: 0.55rem;
height: 100%;
padding: 0;
color: rgba(0, 0, 0, 0.45);
font-weight: 700;
font-size: 0.16rem;
line-height: 1;
text-decoration: none;
background: transparent;
border: 0;
outline: 0;
cursor: pointer;
-webkit-transition: color 0.3s;
transition: color 0.3s;
}
.c7n-pro-modal-header-button:focus,
.c7n-pro-modal-header-button:hover {
color: #444;
}
.c7n-pro-modal-movable {
cursor: move;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.c7n-pro-modal-fullscreen {
top: 0;
right: 0;
bottom: 0;
left: 0;
width: auto;
}
.c7n-pro-modal-fullscreen .c7n-pro-modal-content {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
border-radius: 0.02rem;
}
.c7n-pro-modal-fullscreen .c7n-pro-modal-body {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-height: none;
}
.c7n-pro-modal-fullscreen .c7n-pro-modal-footer {
-ms-flex-negative: 0;
flex-shrink: 0;
}
.c7n-pro-modal-drawer {
top: 0;
margin: 0;
-webkit-transition: margin-right 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
transition: margin-right 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}
.c7n-pro-modal-drawer-slide-right,
.c7n-pro-modal-drawer-slide-left {
width: 5.2rem;
height: 100vh;
}
.c7n-pro-modal-drawer-slide-right.c7n-pro-modal-large,
.c7n-pro-modal-drawer-slide-left.c7n-pro-modal-large {
width: calc(100% - 3.5rem);
}
.c7n-pro-modal-drawer-slide-right.c7n-pro-modal-small,
.c7n-pro-modal-drawer-slide-left.c7n-pro-modal-small {
width: 3.8rem;
}
.c7n-pro-modal-drawer-slide-up,
.c7n-pro-modal-drawer-slide-down {
width: 100%;
height: 60%;
}
.c7n-pro-modal-drawer-slide-up.c7n-pro-modal-large,
.c7n-pro-modal-drawer-slide-down.c7n-pro-modal-large {
height: 80%;
}
.c7n-pro-modal-drawer-slide-up.c7n-pro-modal-small,
.c7n-pro-modal-drawer-slide-down.c7n-pro-modal-small {
height: 30%;
}
.c7n-pro-modal-drawer-slide-up {
top: 0;
bottom: unset;
}
.c7n-pro-modal-drawer-slide-right {
right: 0;
left: unset;
}
.c7n-pro-modal-drawer-slide-down {
top: unset;
bottom: 0;
}
.c7n-pro-modal-drawer-slide-left {
right: unset;
left: 0;
}
.c7n-pro-modal-drawer-content {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
-ms-flex-wrap: nowrap;
flex-wrap: nowrap;
border-radius: 0.02rem;
}
.c7n-pro-modal-drawer-header {
padding: 0.15rem 0.24rem;
}
.c7n-pro-modal-drawer-body {
-webkit-box-flex: 1;
-ms-flex-positive: 1;
flex-grow: 1;
max-height: none;
padding: 0.24rem;
}
.c7n-pro-modal-drawer-footer {
-ms-flex-negative: 0;
flex-shrink: 0;
padding: 0.12rem 0.24rem;
text-align: left;
}
.c7n-pro-modal-container-embedded .c7n-pro-modal-drawer-slide-right,
.c7n-pro-modal-container-embedded .c7n-pro-modal-drawer-slide-left {
top: 0;
bottom: 0;
height: auto;
}
.c7n-pro-modal-container-embedded .c7n-pro-modal-drawer-slide-up,
.c7n-pro-modal-container-embedded .c7n-pro-modal-drawer-slide-down {
right: 0;
left: 0;
width: auto;
}
.c7n-pro-modal-auto-center {
top: 0;
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-align: center;
-ms-flex-align: center;
align-items: center;
-webkit-box-pack: center;
-ms-flex-pack: center;
justify-content: center;
height: 100%;
}
.c7n-pro-modal-auto-center .c7n-pro-modal-content {
width: 100%;
min-width: 5.2rem;
height: -webkit-min-content;
height: -moz-min-content;
height: min-content;
}
.c7n-pro-modal-resizer-mask {
position: absolute;
top: 0;
left: 0;
z-index: 20;
width: 100%;
height: 100%;
}
.c7n-pro-modal-resizer-content {
display: -webkit-box;
display: -ms-flexbox;
display: flex;
-webkit-box-orient: vertical;
-webkit-box-direction: normal;
-ms-flex-direction: column;
flex-direction: column;
}
.c7n-pro-modal-resizer-content .c7n-pro-modal-body {
-webkit-box-flex: 1;
-ms-flex: 1;
flex: 1;
}
.c7n-pro-modal-resizer-cursor {
position: absolute;
z-index: 21;
-webkit-user-select: none;
-moz-user-select: none;
-ms-user-select: none;
user-select: none;
}
.c7n-pro-modal-resizer-cursor-modal {
right: 0;
bottom: 0;
width: 0.14rem;
height: 0.1rem;
-webkit-transform: rotate(-45deg);
-ms-transform: rotate(-45deg);
transform: rotate(-45deg);
cursor: se-resize;
}
.c7n-pro-modal-resizer-cursor-icon {
position: relative;
display: block;
width: 0.14rem;
height: 0.05rem;
}
.c7n-pro-modal-resizer-cursor-icon::before,
.c7n-pro-modal-resizer-cursor-icon::after {
position: absolute;
height: 0.01rem;
background: rgba(0, 0, 0, 0.45);
content: '';
}
.c7n-pro-modal-resizer-cursor-icon::before {
top: 0;
width: 100%;
}
.c7n-pro-modal-resizer-cursor-icon::after {
bottom: 0;
left: 25%;
width: 50%;
}
.c7n-pro-modal-resizer-cursor-icon:focus::before,
.c7n-pro-modal-resizer-cursor-icon:hover::before,
.c7n-pro-modal-resizer-cursor-icon:focus::after,
.c7n-pro-modal-resizer-cursor-icon:hover::after {
color: #444;
}
.c7n-pro-modal-resizer-cursor-drawer-right,
.c7n-pro-modal-resizer-cursor-drawer-left,
.c7n-pro-modal-resizer-cursor-drawer-up,
.c7n-pro-modal-resizer-cursor-drawer-down {
position: absolute;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.c7n-pro-modal-resizer-cursor-drawer-right::before,
.c7n-pro-modal-resizer-cursor-drawer-left::before,
.c7n-pro-modal-resizer-cursor-drawer-up::before,
.c7n-pro-modal-resizer-cursor-drawer-down::before,
.c7n-pro-modal-resizer-cursor-drawer-right::after,
.c7n-pro-modal-resizer-cursor-drawer-left::after,
.c7n-pro-modal-resizer-cursor-drawer-up::after,
.c7n-pro-modal-resizer-cursor-drawer-down::after {
position: absolute;
display: block;
content: "";
}
.c7n-pro-modal-resizer-cursor-drawer-right::before,
.c7n-pro-modal-resizer-cursor-drawer-left::before,
.c7n-pro-modal-resizer-cursor-drawer-up::before,
.c7n-pro-modal-resizer-cursor-drawer-down::before {
top: calc(50% - 0.13rem);
left: -0.01rem;
width: 0.03rem;
height: 0.26rem;
margin-top: 0.07rem;
margin-bottom: 0.07rem;
background: #fff;
}
.c7n-pro-modal-resizer-cursor-drawer-right::after,
.c7n-pro-modal-resizer-cursor-drawer-left::after,
.c7n-pro-modal-resizer-cursor-drawer-up::after,
.c7n-pro-modal-resizer-cursor-drawer-down::after {
top: calc(50% - 0.06rem);
left: 0;
width: 0.02rem;
height: 0.12rem;
margin-top: 0.07rem;
margin-bottom: 0.07rem;
border-right: 0.01rem solid #7a869a;
border-left: 0.01rem solid #7a869a;
}
.c7n-pro-modal-resizer-cursor-drawer-right:hover .c7n-pro-modal-resizer-cursor-line,
.c7n-pro-modal-resizer-cursor-drawer-left:hover .c7n-pro-modal-resizer-cursor-line,
.c7n-pro-modal-resizer-cursor-drawer-up:hover .c7n-pro-modal-resizer-cursor-line,
.c7n-pro-modal-resizer-cursor-drawer-down:hover .c7n-pro-modal-resizer-cursor-line {
background-color: #6374c2;
}
.c7n-pro-modal-resizer-cursor-drawer-right:active .c7n-pro-modal-resizer-cursor-line,
.c7n-pro-modal-resizer-cursor-drawer-left:active .c7n-pro-modal-resizer-cursor-line,
.c7n-pro-modal-resizer-cursor-drawer-up:active .c7n-pro-modal-resizer-cursor-line,
.c7n-pro-modal-resizer-cursor-drawer-down:active .c7n-pro-modal-resizer-cursor-line {
background-color: #2b378f;
}
.c7n-pro-modal-resizer-cursor-drawer-right,
.c7n-pro-modal-resizer-cursor-drawer-left {
top: 0;
width: 0.1rem;
height: 100%;
border-right: 0.04rem solid rgba(255, 255, 255, 0);
border-left: 0.04rem solid rgba(255, 255, 255, 0);
cursor: col-resize;
}
.c7n-pro-modal-resizer-cursor-drawer-right {
left: -0.05rem;
}
.c7n-pro-modal-resizer-cursor-drawer-left {
right: -0.05rem;
}
.c7n-pro-modal-resizer-cursor-drawer-up,
.c7n-pro-modal-resizer-cursor-drawer-down {
left: 0;
width: 100%;
height: 0.1rem;
border-top: 0.04rem solid rgba(255, 255, 255, 0);
border-bottom: 0.04rem solid rgba(255, 255, 255, 0);
cursor: row-resize;
}
.c7n-pro-modal-resizer-cursor-drawer-up {
bottom: -0.05rem;
}
.c7n-pro-modal-resizer-cursor-drawer-down {
top: -0.05rem;
}
.c7n-pro-modal-resizer-cursor .c7n-pro-modal-resizer-cursor-line {
width: 100%;
height: 100%;
-webkit-transition: all 0.1s;
transition: all 0.1s;
}
.c7n-pro-confirm-icon {
padding-right: 0.16rem;
vertical-align: top;
}
.c7n-pro-confirm-icon .icon {
font-size: 0.24rem;
line-height: 1.5;
}
.c7n-pro-confirm-info {
color: #3f51b5;
}
.c7n-pro-confirm-confirm,
.c7n-pro-confirm-warning {
color: #faad14;
}
.c7n-pro-confirm-success {
color: #00bf96;
}
.c7n-pro-confirm-error {
color: #d50000;
}
.c7n-pro-confirm-title {
overflow: auto;
color: rgba(0, 0, 0, 0.85);
font-weight: 500;
font-size: 0.2rem;
line-height: 0.32rem;
}
.c7n-pro-confirm-content {
color: #000000;
font-size: 0.13rem;
}
.c7n-pro-confirm-title + .c7n-pro-confirm-content {
margin-top: 0.08rem;
}
.c7n-pro-mask {
position: fixed;
top: 0;
right: 0;
bottom: 0;
left: 0;
z-index: 2;
background-color: rgba(0, 0, 0, 0.288);
}