UNPKG

choerodon-ui

Version:

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

585 lines (584 loc) 16.8 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 */ /* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ .c7n-time-picker-panel { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; list-style: none; position: absolute; z-index: 1050; } .c7n-time-picker-panel-inner { position: relative; left: -0.02rem; overflow: hidden; font-size: 0.13rem; text-align: left; list-style: none; background-color: #fff; background-clip: padding-box; border-radius: 0.02rem; outline: none; -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-time-picker-panel-input { width: 100%; margin: 0; padding: 0; border: 0; outline: 0; cursor: auto; } .c7n-time-picker-panel-input::-moz-placeholder { color: #bfbfbf; opacity: 1; } .c7n-time-picker-panel-input:-ms-input-placeholder { color: #bfbfbf; } .c7n-time-picker-panel-input::-webkit-input-placeholder { color: #bfbfbf; } .c7n-time-picker-panel-input-wrap { position: relative; -webkit-box-sizing: border-box; box-sizing: border-box; padding: 0.07rem 0.02rem 0.07rem 0.12rem; border-bottom: 0.01rem solid #e8e8e8; } .c7n-time-picker-panel-input-invalid { border-color: red; } .c7n-time-picker-panel-clear-btn { position: absolute; top: 0.07rem; right: 0.08rem; width: 0.2rem; height: 0.2rem; margin: 0; overflow: hidden; line-height: 0.2rem; text-align: center; cursor: pointer; } .c7n-time-picker-panel-clear-btn::after { width: 0.18rem; height: 0.18rem; color: rgba(0, 0, 0, 0.25); font-size: calc(0.13rem - 0.02rem); line-height: 1; -webkit-transition: color 0.3s ease; transition: color 0.3s ease; 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-time-picker-panel-clear-btn::after:before { line-height: 1; } .c7n-time-picker-panel-clear-btn::after:before { content: '\e62e'; } .c7n-time-picker-panel-clear-btn:hover::after { color: rgba(0, 0, 0, 0.45); } .c7n-time-picker-panel-narrow .c7n-time-picker-panel-input-wrap { max-width: 1.12rem; } .c7n-time-picker-panel-select { position: relative; float: left; -webkit-box-sizing: border-box; box-sizing: border-box; width: 0.56rem; max-height: 1.92rem; overflow: hidden; font-size: 0.13rem; border-left: 0.01rem solid #e8e8e8; } .c7n-time-picker-panel-select:hover { overflow-y: auto; } .c7n-time-picker-panel-select:first-child { margin-left: 0; border-left: 0; } .c7n-time-picker-panel-select:last-child { border-right: 0; } .c7n-time-picker-panel-select:only-child { width: 100%; } .c7n-time-picker-panel-select ul { -webkit-box-sizing: border-box; box-sizing: border-box; width: 100%; margin: 0; padding: 0 0 1.6rem; list-style: none; } .c7n-time-picker-panel-select li { -webkit-box-sizing: content-box; box-sizing: content-box; width: 100%; height: 0.32rem; margin: 0; padding: 0 0 0 0.12rem; line-height: 0.32rem; text-align: left; list-style: none; cursor: pointer; -webkit-transition: background 0.3s; transition: background 0.3s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .c7n-time-picker-panel-select li:hover { background: rgba(0, 0, 0, 0.04); } li.c7n-time-picker-panel-select-option-selected { font-weight: bold; background: #f5f5f5; } li.c7n-time-picker-panel-select-option-selected:hover { background: #f5f5f5; } li.c7n-time-picker-panel-select-option-disabled { color: rgba(0, 0, 0, 0.25); } li.c7n-time-picker-panel-select-option-disabled:hover { background: transparent; cursor: not-allowed; } .c7n-time-picker-panel-combobox { zoom: 1; } .c7n-time-picker-panel-combobox::before, .c7n-time-picker-panel-combobox::after { display: table; white-space: initial; content: ' '; } .c7n-time-picker-panel-combobox::after { clear: both; height: 0; font-size: 0; visibility: hidden; } .c7n-time-picker-panel-addon { padding: 0.08rem; border-top: 0.01rem solid #e8e8e8; } .c7n-time-picker-panel.slide-up-enter.slide-up-enter-active.c7n-time-picker-panel-placement-topLeft, .c7n-time-picker-panel.slide-up-enter.slide-up-enter-active.c7n-time-picker-panel-placement-topRight, .c7n-time-picker-panel.slide-up-appear.slide-up-appear-active.c7n-time-picker-panel-placement-topLeft, .c7n-time-picker-panel.slide-up-appear.slide-up-appear-active.c7n-time-picker-panel-placement-topRight { -webkit-animation-name: antSlideDownIn; animation-name: antSlideDownIn; } .c7n-time-picker-panel.slide-up-enter.slide-up-enter-active.c7n-time-picker-panel-placement-bottomLeft, .c7n-time-picker-panel.slide-up-enter.slide-up-enter-active.c7n-time-picker-panel-placement-bottomRight, .c7n-time-picker-panel.slide-up-appear.slide-up-appear-active.c7n-time-picker-panel-placement-bottomLeft, .c7n-time-picker-panel.slide-up-appear.slide-up-appear-active.c7n-time-picker-panel-placement-bottomRight { -webkit-animation-name: antSlideUpIn; animation-name: antSlideUpIn; } .c7n-time-picker-panel.slide-up-leave.slide-up-leave-active.c7n-time-picker-panel-placement-topLeft, .c7n-time-picker-panel.slide-up-leave.slide-up-leave-active.c7n-time-picker-panel-placement-topRight { -webkit-animation-name: antSlideDownOut; animation-name: antSlideDownOut; } .c7n-time-picker-panel.slide-up-leave.slide-up-leave-active.c7n-time-picker-panel-placement-bottomLeft, .c7n-time-picker-panel.slide-up-leave.slide-up-leave-active.c7n-time-picker-panel-placement-bottomRight { -webkit-animation-name: antSlideUpOut; animation-name: antSlideUpOut; } .c7n-time-picker { -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; list-style: none; position: relative; display: inline-block; width: 1.28rem; outline: none; -webkit-transition: opacity 0.3s; transition: opacity 0.3s; } .c7n-time-picker-input { position: relative; display: inline-block; width: 100%; height: 0.36rem; padding: 0.01rem 0.1rem; color: #000000; font-size: 0.13rem; line-height: 1.5; background-color: transparent; background-image: none; border: none; -webkit-transition: all 0.3s; transition: all 0.3s; } .c7n-time-picker-input-group:not(.c7n-time-picker-input-group-compact) .c7n-time-picker-input-wrapper { display: inline-grid; } .c7n-time-picker-input::-moz-placeholder { color: #bfbfbf; opacity: 1; } .c7n-time-picker-input:-ms-input-placeholder { color: #bfbfbf; } .c7n-time-picker-input::-webkit-input-placeholder { color: #bfbfbf; } .c7n-time-picker-input-wrapper { position: relative; display: inline-block; width: 100%; } .c7n-time-picker-input-content { position: relative; display: inline-block; width: 100%; vertical-align: middle; } .c7n-time-picker-input-rendered-wrapper { position: relative; display: block; -webkit-box-sizing: content-box; box-sizing: content-box; width: 100%; } .c7n-time-picker-input-rendered { position: relative; display: inline-block; width: 100%; } .c7n-time-picker-input-icon .c7n-time-picker-input-icon-copy { display: none; } .c7n-time-picker-input-has-copy { padding-right: calc(0.18rem + 0.02rem); } .c7n-time-picker-input-has-value .c7n-time-picker-input-icon { right: 0; background: none; border: none; cursor: pointer; } .c7n-time-picker-input-has-value .c7n-time-picker-input-icon-copy { display: inline-block; } .c7n-time-picker-input-suffix, .c7n-time-picker-input-prefix, .c7n-time-picker-input-icon { position: absolute !important; top: 0; bottom: 0; display: -webkit-box; display: -ms-flexbox; display: flex; -webkit-box-align: center; -ms-flex-align: center; align-items: center; min-width: 0.24rem; margin: auto 0; padding: 0 0.02rem; text-align: center; } .c7n-time-picker-input-suffix, .c7n-time-picker-input-prefix { color: rgba(0, 0, 0, 0.26); } .c7n-time-picker-input-suffix { right: 0; } .c7n-time-picker-input-prefix { left: 0; } .c7n-time-picker-input-has-prefix .c7n-time-picker-input { padding-left: 0; } .c7n-time-picker-input-label { padding: 0; color: inherit; line-height: 2.61538462; -webkit-transform-origin: inherit; -ms-transform-origin: inherit; transform-origin: inherit; -webkit-transition: inherit; transition: inherit; pointer-events: none; } .is-required .c7n-time-picker-input-label::after { display: inline-block; width: 0.08rem; margin-left: 0.04rem; color: #d50000; font-size: 0.13rem; font-family: SimSun, sans-serif; line-height: 1; content: '*'; } .c7n-time-picker-input-label-wrapper { position: absolute; top: 0; left: 0.1rem; height: 0; margin-left: -0.05rem; padding: 0 0.05rem; border-top: 0.02rem solid transparent; -webkit-transform-origin: 0.1rem -230%; -ms-transform-origin: 0.1rem -230%; transform-origin: 0.1rem -230%; -webkit-transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1); transition: all 0.2s cubic-bezier(0.215, 0.61, 0.355, 1); } .c7n-time-picker-input-rendered-lg .c7n-time-picker-input-label { font-size: 0.16rem; line-height: 0.4rem; } .c7n-time-picker-input-rendered-sm .c7n-time-picker-input-label { font-size: 0.12rem; line-height: 0.24rem; } .c7n-time-picker-input-has-prefix .c7n-time-picker-input-label-wrapper { left: 0; } .c7n-time-picker-input-has-value .c7n-time-picker-input-label-wrapper, .c7n-time-picker-input-focused .c7n-time-picker-input-label-wrapper { border-top-color: #fff; -webkit-transform: scaleX(0.8); -ms-transform: scaleX(0.8); transform: scaleX(0.8); } .c7n-time-picker-input:-webkit-autofill + .c7n-time-picker-input-label-wrapper { z-index: 1; border-top-color: #fff; -webkit-transform: scaleX(0.8); transform: scaleX(0.8); } .c7n-time-picker-input-has-value .c7n-time-picker-input-label, .c7n-time-picker-input-focused .c7n-time-picker-input-label { -webkit-transform: scaleY(0.8); -ms-transform: scaleY(0.8); transform: scaleY(0.8); } .c7n-time-picker-input:-webkit-autofill + .c7n-time-picker-input-label-wrapper .c7n-time-picker-input-label { -webkit-transform: scaleY(0.8); transform: scaleY(0.8); } .c7n-time-picker-input-focused .c7n-time-picker-input-label { color: #3f51b5; } .has-error .c7n-time-picker-input-label { color: #d50000; } .c7n-time-picker-input-has-border { position: relative; display: inline-block; width: 100%; } .c7n-time-picker-input-has-border::before { position: absolute; top: 0; right: 0; bottom: 0; left: 0; display: block; border: 0.01rem solid #d9d9d9; border-radius: 0.04rem; content: ' '; } .c7n-time-picker-input-has-border:hover::before { border-color: #000000; } .c7n-time-picker-input-focused .c7n-time-picker-input-has-border::before, .c7n-time-picker-input-focused.c7n-time-picker-input-has-border::before, .has-error .c7n-time-picker-input-wrapper::before { border-width: 0.02rem; } .c7n-time-picker-input-focused .c7n-time-picker-input-has-border::before, .c7n-time-picker-input-focused.c7n-time-picker-input-has-border::before { border-color: #3f51b5; } .has-error .c7n-time-picker-input-has-border::before { border-color: #d50000; } .c7n-time-picker-input-disabled .c7n-time-picker-input-has-border::before, .c7n-time-picker-input-disabled.c7n-time-picker-input-has-border::before { background-color: unset; border-color: #d9d9d9 !important; border-style: dashed; } .c7n-time-picker-input-placeholder { position: absolute; left: 0; width: 100%; max-width: 100%; color: #bfbfbf; white-space: nowrap; text-overflow: ellipsis; pointer-events: none; } .c7n-time-picker-input-has-value .c7n-time-picker-input-placeholder { display: none; } .c7n-time-picker-input-length-info { position: absolute; right: 0; margin-top: 0.02rem; color: rgba(0, 0, 0, 0.54); font-size: 0.12rem; letter-spacing: 0.02rem; } .c7n-time-picker-input:hover { border-color: #6374c2; } .c7n-time-picker-input:focus { border-color: #b6bfdb; outline: 0; } .c7n-time-picker-input-disabled { color: rgba(0, 0, 0, 0.54); opacity: 1; } .c7n-time-picker-input-disabled:hover { border-color: rgba(0, 0, 0, 0.54); } .c7n-time-picker-input-disabled .c7n-time-picker-input, .c7n-time-picker-input-disabled .c7n-time-picker-input-placeholder, .c7n-time-picker-input-disabled .c7n-time-picker-input-prefix, .c7n-time-picker-input-disabled .c7n-time-picker-input-suffix { color: rgba(0, 0, 0, 0.54); cursor: not-allowed; } .c7n-time-picker-input-underline { position: absolute; width: 100%; height: 0; border-bottom: 0.01rem solid rgba(0, 0, 0, 0.54); } .c7n-time-picker-input-ripple { position: absolute; left: 0; width: 100%; height: 0; border-bottom: 0.02rem solid #3f51b5; -webkit-transform: scaleX(0.5); -ms-transform: scaleX(0.5); transform: scaleX(0.5); -webkit-transform-origin: 50%; -ms-transform-origin: 50%; transform-origin: 50%; opacity: 0; -webkit-transition: border-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2); transition: border-color 300ms cubic-bezier(0.55, 0, 0.55, 0.2); } .c7n-time-picker-input-disabled .c7n-time-picker-input-underline { border-bottom: 0.01rem dotted rgba(0, 0, 0, 0.42); } .c7n-time-picker-input-focused .c7n-time-picker-input-underline .c7n-time-picker-input-ripple { -webkit-transform: scaleX(1); -ms-transform: scaleX(1); transform: scaleX(1); opacity: 1; -webkit-transition: opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1), border-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1), border-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1), opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1), border-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1); transition: transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1), opacity 100ms cubic-bezier(0.25, 0.8, 0.25, 1), border-color 300ms cubic-bezier(0.25, 0.8, 0.25, 1), -webkit-transform 300ms cubic-bezier(0.25, 0.8, 0.25, 1); } textarea.c7n-time-picker-input { max-width: 100%; height: auto; min-height: 0.3rem; vertical-align: bottom; -webkit-transition: all 0.3s, height 0s; transition: all 0.3s, height 0s; } .c7n-time-picker-input-lg { height: 0.4rem; padding: 0.06rem 0.1rem; font-size: 0.16rem; } .c7n-time-picker-input-lg .c7n-time-picker-input-has-copy { padding-right: calc(0.2rem + 0.02rem); } .c7n-time-picker-input-sm { height: 0.24rem; padding: 0.01rem 0.06rem; } .c7n-time-picker-input-sm .c7n-time-picker-input-has-copy { padding-right: calc(0.16rem + 0.02rem); } .c7n-time-picker-input:-webkit-autofill { width: calc(100% - .04rem); height: 0.32rem; margin: 0.02rem; text-indent: -0.02rem; border-radius: 0.04rem; -webkit-box-shadow: 0 0 0 10rem #fff inset; box-shadow: 0 0 0 10rem #fff inset; } textarea.c7n-time-picker-input:-webkit-autofill { height: auto; } .c7n-time-picker-input[disabled] { color: rgba(0, 0, 0, 0.54); opacity: 1; } .c7n-time-picker-input[disabled]:hover { border-color: rgba(0, 0, 0, 0.54); } .c7n-time-picker-open { opacity: 0; } .c7n-time-picker .c7n-input-suffix { display: block !important; height: 0.18rem; } .c7n-input-disabled .c7n-time-picker-icon { color: rgba(0, 0, 0, 0.54); } .c7n-time-picker-icon { color: #000; cursor: pointer; } .c7n-time-picker-large .c7n-time-picker-input { height: 0.4rem; padding: 0.06rem 0.1rem; font-size: 0.16rem; } .c7n-time-picker-small .c7n-time-picker-input { height: 0.24rem; padding: 0.01rem 0.06rem; } .c7n-time-picker-small .c7n-time-picker-icon { right: calc(0.08rem - 0.01rem); }