UNPKG

choerodon-ui

Version:

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

577 lines (576 loc) 17.2 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-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-tabs.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-nav-container { height: 0.4rem; } .c7n-tabs.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-ink-bar { visibility: hidden; } .c7n-tabs.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-tab { margin: 0; margin-right: 0.02rem; padding: 0 0.16rem; line-height: 0.38rem; background: rgba(0, 0, 0, 0.04); border: 0.01rem solid #e8e8e8; border-bottom: 0; border-radius: 0.02rem 0.02rem 0 0; -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); } .c7n-tabs.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-tab-active { padding-bottom: 0.01rem; color: #3f51b5; background: #fff; border-color: #e8e8e8; } .c7n-tabs.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-tab-inactive { padding: 0; } .c7n-tabs.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-nav-wrap { margin-bottom: 0; } .c7n-tabs.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-tab .icon-close { width: 0.16rem; height: 0.16rem; height: 0.13rem; margin-right: -0.05rem; margin-left: 0.03rem; overflow: hidden; color: rgba(0, 0, 0, 0.45); font-size: 0.12rem; vertical-align: middle; -webkit-transition: all 0.3s; transition: all 0.3s; } .c7n-tabs.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-tab .icon-close:hover { color: rgba(0, 0, 0, 0.85); } .c7n-tabs.c7n-tabs-card .c7n-tabs-content > .c7n-tabs-tabpane, .c7n-tabs.c7n-tabs-editable-card .c7n-tabs-content > .c7n-tabs-tabpane { -webkit-transition: none !important; transition: none !important; } .c7n-tabs.c7n-tabs-card .c7n-tabs-content > .c7n-tabs-tabpane-inactive, .c7n-tabs.c7n-tabs-editable-card .c7n-tabs-content > .c7n-tabs-tabpane-inactive { overflow: hidden; } .c7n-tabs.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-tab:hover .icon-close { opacity: 1; } .c7n-tabs-extra-content { line-height: 0.4rem; } .c7n-tabs-extra-content .c7n-tabs-new-tab { width: 0.2rem; height: 0.2rem; color: #000000; font-size: 0.12rem; line-height: 0.2rem; text-align: center; border: 0.01rem solid #e8e8e8; border-radius: 0.02rem; cursor: pointer; -webkit-transition: all 0.3s; transition: all 0.3s; } .c7n-tabs-extra-content .c7n-tabs-new-tab:hover { color: #3f51b5; border-color: #3f51b5; } .c7n-tabs-vertical.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-nav-container { height: auto; } .c7n-tabs-vertical.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-tab { margin-bottom: 0.08rem; border-bottom: 0.01rem solid #e8e8e8; } .c7n-tabs-vertical.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-tab-active { padding-bottom: 0.04rem; } .c7n-tabs-vertical.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-tab:last-child { margin-bottom: 0.08rem; } .c7n-tabs-vertical.c7n-tabs-card > .c7n-tabs-bar .c7n-tabs-new-tab { width: 90%; } .c7n-tabs-vertical.c7n-tabs-card.c7n-tabs-left > .c7n-tabs-bar .c7n-tabs-nav-wrap { margin-right: 0; } .c7n-tabs-vertical.c7n-tabs-card.c7n-tabs-left > .c7n-tabs-bar .c7n-tabs-tab { margin-right: 0.01rem; border-right: 0; border-radius: 0.02rem 0 0 0.02rem; } .c7n-tabs-vertical.c7n-tabs-card.c7n-tabs-left > .c7n-tabs-bar .c7n-tabs-tab-active { margin-right: -0.01rem; padding-right: 0.18rem; } .c7n-tabs-vertical.c7n-tabs-card.c7n-tabs-right > .c7n-tabs-bar .c7n-tabs-nav-wrap { margin-left: 0; } .c7n-tabs-vertical.c7n-tabs-card.c7n-tabs-right > .c7n-tabs-bar .c7n-tabs-tab { margin-left: 0.01rem; border-left: 0; border-radius: 0 0.02rem 0.02rem 0; } .c7n-tabs-vertical.c7n-tabs-card.c7n-tabs-right > .c7n-tabs-bar .c7n-tabs-tab-active { margin-left: -0.01rem; padding-left: 0.18rem; } .c7n-tabs.c7n-tabs-card.c7n-tabs-bottom > .c7n-tabs-bar .c7n-tabs-tab { border-top: 0; border-bottom: 0.01rem solid #e8e8e8; border-radius: 0 0 0.02rem 0.02rem; } .c7n-tabs.c7n-tabs-card.c7n-tabs-bottom > .c7n-tabs-bar .c7n-tabs-tab-active { padding-top: 0.01rem; padding-bottom: 0; color: #3f51b5; } .c7n-tabs { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; color: #000000; font-size: 0.13rem; font-family: 'Monospaced Number', 'Chinese Quote', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif; line-height: 1.5; list-style: none; position: relative; overflow: hidden; zoom: 1; } .c7n-tabs::before, .c7n-tabs::after { display: table; content: ' '; } .c7n-tabs::after { clear: both; height: 0; font-size: 0; visibility: hidden; } .c7n-tabs-ink-bar { position: absolute; bottom: 0.01rem; left: 0; z-index: 1; -webkit-box-sizing: border-box; box-sizing: border-box; height: 0.02rem; background-color: #3f51b5; -webkit-transform-origin: 0 0; -ms-transform-origin: 0 0; transform-origin: 0 0; } .c7n-tabs-bar { margin: 0 0 0.16rem 0; border-bottom: 0.01rem solid #e8e8e8; outline: none; -webkit-transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .c7n-tabs-nav-container { position: relative; -webkit-box-sizing: border-box; box-sizing: border-box; margin-bottom: -0.01rem; overflow: hidden; font-size: 0.13rem; line-height: 1.5; white-space: nowrap; -webkit-transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: padding 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); zoom: 1; } .c7n-tabs-nav-container::before, .c7n-tabs-nav-container::after { display: table; content: ' '; } .c7n-tabs-nav-container::after { clear: both; height: 0; font-size: 0; visibility: hidden; } .c7n-tabs-nav-container-scrolling { padding-right: 0.32rem; padding-left: 0.32rem; } .c7n-tabs-bottom .c7n-tabs-bar { border-top: 0.01rem solid #e8e8e8; border-bottom: none; } .c7n-tabs-bottom .c7n-tabs-ink-bar { top: 0.01rem; bottom: auto; } .c7n-tabs-bottom .c7n-tabs-nav-container { margin-top: -0.01rem; margin-bottom: 0; } .c7n-tabs-tab-prev, .c7n-tabs-tab-next { position: absolute; z-index: 2; width: 0; height: 100%; color: rgba(0, 0, 0, 0.45); text-align: center; background-color: transparent; border: 0; cursor: pointer; opacity: 0; -webkit-transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 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; pointer-events: none; } .c7n-tabs-tab-prev.c7n-tabs-tab-arrow-show, .c7n-tabs-tab-next.c7n-tabs-tab-arrow-show { width: 0.32rem; height: 100%; opacity: 1; pointer-events: auto; } .c7n-tabs-tab-prev:hover, .c7n-tabs-tab-next:hover { color: #000000; } .c7n-tabs-tab-prev-icon, .c7n-tabs-tab-next-icon { position: absolute; top: 50%; left: 50%; width: 0.18rem; height: 0.18rem; line-height: inherit; text-align: center; vertical-align: baseline; -webkit-transform: translate(-50%, -50%); -ms-transform: translate(-50%, -50%); transform: translate(-50%, -50%); font-size: 0.18rem; display: inline-block; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; -webkit-transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; transition: all 450ms cubic-bezier(0.23, 1, 0.32, 1) 0ms; vertical-align: middle; background-image: none; font-family: 'icomoon' !important; speak: none; font-style: normal; font-weight: inherit; font-variant: normal; text-transform: none; /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } .c7n-tabs-tab-prev-icon:before, .c7n-tabs-tab-next-icon:before { line-height: 1; } .c7n-tabs-tab-btn-disabled { cursor: not-allowed; } .c7n-tabs-tab-btn-disabled, .c7n-tabs-tab-btn-disabled:hover { color: rgba(0, 0, 0, 0.25); } .c7n-tabs-tab-next { right: 0.02rem; } .c7n-tabs-tab-next-icon::before { content: '\e409'; } .c7n-tabs-tab-prev { left: 0; } .c7n-tabs-tab-prev-icon::before { content: '\e408'; } :root .c7n-tabs-tab-prev { -webkit-filter: none; filter: none; } .c7n-tabs-nav-wrap { margin-bottom: -0.01rem; overflow: hidden; } .c7n-tabs-nav-scroll { overflow: hidden; white-space: nowrap; } .c7n-tabs-nav { position: relative; display: inline-block; -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding-left: 0; list-style: none; -webkit-transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .c7n-tabs-nav::before, .c7n-tabs-nav::after { display: table; content: ' '; } .c7n-tabs-nav::after { clear: both; } .c7n-tabs-nav .c7n-tabs-tab { position: relative; display: inline-block; -webkit-box-sizing: border-box; box-sizing: border-box; height: 100%; margin: 0 0.32rem 0 0; padding: 0.08rem 0.16rem; color: rgba(0, 0, 0, 0.87); text-decoration: none; cursor: pointer; -webkit-transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .c7n-tabs-nav .c7n-tabs-tab .c7n-ripple { background-color: rgba(0, 0, 0, 0.2); } .c7n-tabs-nav .c7n-tabs-tab:last-child { margin-right: 0; } .c7n-tabs-nav .c7n-tabs-tab:hover { color: #6374c2; } .c7n-tabs-nav .c7n-tabs-tab:active { color: #2b378f; } .c7n-tabs-nav .c7n-tabs-tab .icon { margin-right: 0.08rem; } .c7n-tabs-nav .c7n-tabs-tab-active { color: #3f51b5; font-weight: 500; } .c7n-tabs-nav .c7n-tabs-tab-disabled { color: rgba(0, 0, 0, 0.25); cursor: default; pointer-events: none; } .c7n-tabs-large .c7n-tabs-nav-container { font-size: 0.16rem; } .c7n-tabs-large .c7n-tabs-tab { padding: 0.16rem; } .c7n-tabs-small .c7n-tabs-nav-container { font-size: 0.13rem; } .c7n-tabs-small .c7n-tabs-tab { padding: 0.08rem 0.16rem; } .c7n-tabs:not(.c7n-tabs-vertical) > .c7n-tabs-content { width: 100%; } .c7n-tabs:not(.c7n-tabs-vertical) > .c7n-tabs-content > .c7n-tabs-tabpane { -ms-flex-negative: 0; flex-shrink: 0; width: 100%; opacity: 1; -webkit-transition: opacity 0.45s; transition: opacity 0.45s; } .c7n-tabs:not(.c7n-tabs-vertical) > .c7n-tabs-content > .c7n-tabs-tabpane-inactive { height: 0; padding: 0 !important; opacity: 0; pointer-events: none; } .c7n-tabs:not(.c7n-tabs-vertical) > .c7n-tabs-content-animated { display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-orient: horizontal; -webkit-box-direction: normal; -ms-flex-direction: row; flex-direction: row; -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); will-change: margin-left; } .c7n-tabs-vertical > .c7n-tabs-bar { height: 100%; border-bottom: 0; } .c7n-tabs-vertical > .c7n-tabs-bar-tab-prev, .c7n-tabs-vertical > .c7n-tabs-bar-tab-next { width: 0.32rem; height: 0; -webkit-transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), opacity 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), color 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .c7n-tabs-vertical > .c7n-tabs-bar-tab-prev.c7n-tabs-tab-arrow-show, .c7n-tabs-vertical > .c7n-tabs-bar-tab-next.c7n-tabs-tab-arrow-show { width: 100%; height: 0.32rem; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-tab { display: block; float: none; margin: 0 0 0.16rem 0; padding: 0.08rem 0.24rem; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-tab:last-child { margin-bottom: 0; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-extra-content { text-align: center; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-nav-scroll { width: auto; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-nav-container, .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-nav-wrap { height: 100%; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-nav-container { margin-bottom: 0; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-nav-container.c7n-tabs-nav-container-scrolling { padding: 0.32rem 0; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-nav-wrap { margin-bottom: 0; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-nav { width: 100%; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-ink-bar { top: 0; left: auto; width: 0.02rem; height: auto; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-tab-next { bottom: 0; width: 100%; height: 0.32rem; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-tab-next-icon::before { content: '\e5cf'; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-tab-prev { top: 0; width: 100%; height: 0.32rem; } .c7n-tabs-vertical > .c7n-tabs-bar .c7n-tabs-tab-prev-icon::before { content: '\e5ce'; } .c7n-tabs-vertical > .c7n-tabs-content { width: auto; margin-top: 0 !important; overflow: hidden; } .c7n-tabs-vertical.c7n-tabs-left > .c7n-tabs-bar { float: left; margin-right: -0.01rem; margin-bottom: 0; border-right: 0.01rem solid #e8e8e8; } .c7n-tabs-vertical.c7n-tabs-left > .c7n-tabs-bar .c7n-tabs-tab { text-align: right; } .c7n-tabs-vertical.c7n-tabs-left > .c7n-tabs-bar .c7n-tabs-nav-container { margin-right: -0.01rem; } .c7n-tabs-vertical.c7n-tabs-left > .c7n-tabs-bar .c7n-tabs-nav-wrap { margin-right: -0.01rem; } .c7n-tabs-vertical.c7n-tabs-left > .c7n-tabs-bar .c7n-tabs-ink-bar { right: 0.01rem; } .c7n-tabs-vertical.c7n-tabs-left > .c7n-tabs-content { padding-left: 0.24rem; border-left: 0.01rem solid #e8e8e8; } .c7n-tabs-vertical.c7n-tabs-right > .c7n-tabs-bar { float: right; margin-bottom: 0; margin-left: -0.01rem; border-left: 0.01rem solid #e8e8e8; } .c7n-tabs-vertical.c7n-tabs-right > .c7n-tabs-bar .c7n-tabs-nav-container { margin-left: -0.01rem; } .c7n-tabs-vertical.c7n-tabs-right > .c7n-tabs-bar .c7n-tabs-nav-wrap { margin-left: -0.01rem; } .c7n-tabs-vertical.c7n-tabs-right > .c7n-tabs-bar .c7n-tabs-ink-bar { left: 0.01rem; } .c7n-tabs-vertical.c7n-tabs-right > .c7n-tabs-content { padding-right: 0.24rem; border-right: 0.01rem solid #e8e8e8; } .c7n-tabs-bottom > .c7n-tabs-bar { margin-top: 0.16rem; margin-bottom: 0; } .c7n-tabs-top .c7n-tabs-ink-bar-animated, .c7n-tabs-bottom .c7n-tabs-ink-bar-animated { -webkit-transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), width 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .c7n-tabs-left .c7n-tabs-ink-bar-animated, .c7n-tabs-right .c7n-tabs-ink-bar-animated { -webkit-transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); transition: transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), height 0.3s cubic-bezier(0.645, 0.045, 0.355, 1), -webkit-transform 0.3s cubic-bezier(0.645, 0.045, 0.355, 1); } .no-flex > .c7n-tabs-content-animated, .c7n-tabs-no-animation > .c7n-tabs-content-animated, .c7n-tabs-vertical > .c7n-tabs-content-animated { margin-left: 0 !important; -webkit-transform: none !important; -ms-transform: none !important; transform: none !important; } .no-flex > .c7n-tabs-content > .c7n-tabs-tabpane-inactive, .c7n-tabs-no-animation > .c7n-tabs-content > .c7n-tabs-tabpane-inactive, .c7n-tabs-vertical > .c7n-tabs-content > .c7n-tabs-tabpane-inactive { display: none; }