UNPKG

choerodon-ui

Version:

An enterprise-class UI design language and React-based implementation

295 lines (294 loc) 6.64 kB
/* 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; margin: 0 auto; } .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 !important; } .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-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); }