UNPKG

ygd

Version:

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

314 lines (313 loc) 8.08 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable no-duplicate-selectors */ /* stylelint-disable */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ .yg-time-picker-panel { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; position: absolute; z-index: 1050; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'; } .yg-time-picker-panel-inner { position: relative; left: -2px; font-size: 12px; text-align: left; list-style: none; background-color: #fff; background-clip: padding-box; border-radius: 2px; outline: none; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .yg-time-picker-panel-input { width: 100%; max-width: 207px; margin: 0; padding: 0; line-height: normal; border: 0; outline: 0; cursor: auto; } .yg-time-picker-panel-input::-moz-placeholder { color: #ccc; opacity: 1; } .yg-time-picker-panel-input:-ms-input-placeholder { color: #ccc; } .yg-time-picker-panel-input::-webkit-input-placeholder { color: #ccc; } .yg-time-picker-panel-input-wrap { position: relative; box-sizing: content-box; padding: 7px 10px 7px 10px; border-bottom: 1px solid #ccc; } .yg-time-picker-panel-input-invalid { border-color: #e2062c; } .yg-time-picker-panel-narrow .yg-time-picker-panel-input-wrap { max-width: 146px; } .yg-time-picker-panel-select { position: relative; float: left; box-sizing: content-box; width: 73px; max-height: 180px; overflow: hidden; font-size: 12px; border-left: 1px solid #ccc; } .yg-time-picker-panel-select:hover { overflow-y: auto; } .yg-time-picker-panel-select:first-child { margin-left: 0; border-left: 0; } .yg-time-picker-panel-select:last-child { border-right: 0; } .yg-time-picker-panel-select:only-child { width: 100%; } .yg-time-picker-panel-select ul { box-sizing: content-box; width: 100%; margin: 0; padding: 0 0 150px; list-style: none; } .yg-time-picker-panel-select li { box-sizing: content-box; width: 100%; height: 30px; margin: 0; padding: 0 0 0 10px; line-height: 30px; text-align: left; list-style: none; cursor: pointer; transition: background 0.3s; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; } .yg-time-picker-panel-select li:hover { background: #e1edff; } li.yg-time-picker-panel-select-option-selected { font-weight: bold; background: #f5f5f5; } li.yg-time-picker-panel-select-option-selected:hover { background: #f5f5f5; } li.yg-time-picker-panel-select-option-disabled { color: rgba(51, 51, 51, 0.25); } li.yg-time-picker-panel-select-option-disabled:hover { background: transparent; cursor: not-allowed; } .yg-time-picker-panel-combobox { zoom: 1; } .yg-time-picker-panel-combobox::before, .yg-time-picker-panel-combobox::after { content: ''; display: table; } .yg-time-picker-panel-combobox::after { clear: both; } .yg-time-picker-panel-addon { padding: 10px; text-align: right; border-top: 1px solid #ccc; } .yg-time-picker-panel.slide-up-enter.slide-up-enter-active.yg-time-picker-panel-placement-topLeft, .yg-time-picker-panel.slide-up-enter.slide-up-enter-active.yg-time-picker-panel-placement-topRight, .yg-time-picker-panel.slide-up-appear.slide-up-appear-active.yg-time-picker-panel-placement-topLeft, .yg-time-picker-panel.slide-up-appear.slide-up-appear-active.yg-time-picker-panel-placement-topRight { -webkit-animation-name: antSlideDownIn; animation-name: antSlideDownIn; } .yg-time-picker-panel.slide-up-enter.slide-up-enter-active.yg-time-picker-panel-placement-bottomLeft, .yg-time-picker-panel.slide-up-enter.slide-up-enter-active.yg-time-picker-panel-placement-bottomRight, .yg-time-picker-panel.slide-up-appear.slide-up-appear-active.yg-time-picker-panel-placement-bottomLeft, .yg-time-picker-panel.slide-up-appear.slide-up-appear-active.yg-time-picker-panel-placement-bottomRight { -webkit-animation-name: antSlideUpIn; animation-name: antSlideUpIn; } .yg-time-picker-panel.slide-up-leave.slide-up-leave-active.yg-time-picker-panel-placement-topLeft, .yg-time-picker-panel.slide-up-leave.slide-up-leave-active.yg-time-picker-panel-placement-topRight { -webkit-animation-name: antSlideDownOut; animation-name: antSlideDownOut; } .yg-time-picker-panel.slide-up-leave.slide-up-leave-active.yg-time-picker-panel-placement-bottomLeft, .yg-time-picker-panel.slide-up-leave.slide-up-leave-active.yg-time-picker-panel-placement-bottomRight { -webkit-animation-name: antSlideUpOut; animation-name: antSlideUpOut; } .yg-time-picker { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; position: relative; display: inline-block; width: 200px; outline: none; cursor: text; transition: opacity 0.3s; } .yg-time-picker-input { position: relative; display: inline-block; width: 178px; height: 28px; padding: 0px 10px; color: #333; font-size: 12px; line-height: 28px; background-color: #fff; background-image: none; border: 1px solid #ccc; border-radius: 2px; transition: all 0.3s; } .yg-time-picker-input::-moz-placeholder { color: #ccc; opacity: 1; } .yg-time-picker-input:-ms-input-placeholder { color: #ccc; } .yg-time-picker-input::-webkit-input-placeholder { color: #ccc; } .yg-time-picker-input:hover { border-color: #bababa; border-right-width: 1px; } .yg-time-picker-input:focus { border-color: #bababa; border-right-width: 1px; outline: 0; box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.2); } .yg-time-picker-input-disabled { color: rgba(51, 51, 51, 0.25); background-color: #f5f5f5; cursor: not-allowed; opacity: 1; } .yg-time-picker-input-disabled:hover { border-color: #bababa; border-right-width: 1px; } .yg-time-picker-input[disabled] { color: rgba(51, 51, 51, 0.25); background-color: #f5f5f5; cursor: not-allowed; opacity: 1; } .yg-time-picker-input[disabled]:hover { border-color: #bababa; border-right-width: 1px; } textarea.yg-time-picker-input { max-width: 100%; height: auto; min-height: 28px; vertical-align: bottom; transition: all 0.3s, height 0s; } .yg-time-picker-input-lg { height: 38px; line-height: 38px; padding: 0px 10px; font-size: 14px; } .yg-time-picker-input-sm { height: 22px; line-height: 22px; padding: 0px 7px; } .yg-time-picker-input[disabled] { color: rgba(51, 51, 51, 0.25); background-color: #f5f5f5; cursor: not-allowed; opacity: 1; } .yg-time-picker-input[disabled]:hover { border-color: #bababa; border-right-width: 1px; } .yg-time-picker-open { opacity: 0; } .yg-time-picker-icon, .yg-time-picker-clear { position: absolute; top: 50%; right: 9px; z-index: 1; width: 14px; height: 14px; margin-top: -7px; color: rgba(51, 51, 51, 0.25); line-height: 14px; 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; } .yg-time-picker-icon .yg-time-picker-clock-icon, .yg-time-picker-clear .yg-time-picker-clock-icon { display: block; color: rgba(51, 51, 51, 0.25); line-height: 1; } .yg-time-picker-clear { z-index: 2; background: #fff; opacity: 0; pointer-events: none; } .yg-time-picker-clear:hover { color: rgba(0, 0, 0, 0.45); } .yg-time-picker:hover .yg-time-picker-clear { opacity: 1; pointer-events: auto; } .yg-time-picker-large .yg-time-picker-input { height: 38px; line-height: 38px; padding: 0px 10px; font-size: 14px; } .yg-time-picker-small .yg-time-picker-input { height: 22px; line-height: 22px; padding: 0px 7px; } .yg-time-picker-small .yg-time-picker-icon, .yg-time-picker-small .yg-time-picker-clear { right: 7px; }