UNPKG

ygd

Version:

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

215 lines (214 loc) 5.52 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-cascader { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; } .yg-cascader-input.yg-input { position: relative; background-color: transparent; cursor: pointer; width: 100%; } .yg-cascader-picker-show-search .yg-cascader-input.yg-input { position: relative; } .yg-cascader-picker { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; position: relative; display: inline-block; background-color: #fff; border-radius: 2px; outline: 0; cursor: pointer; transition: color 0.3s; } .yg-cascader-picker-with-value .yg-cascader-picker-label { color: transparent; } .yg-cascader-picker-disabled { color: rgba(51, 51, 51, 0.25); background: #f5f5f5; cursor: not-allowed; } .yg-cascader-picker-disabled .yg-cascader-input { cursor: not-allowed; } .yg-cascader-picker:focus .yg-cascader-input { border-color: #bababa; border-right-width: 1px; outline: 0; box-shadow: 0 0 0 2px rgba(204, 204, 204, 0.2); } .yg-cascader-picker-show-search.yg-cascader-picker-focused { color: rgba(51, 51, 51, 0.25); } .yg-cascader-picker-label { position: absolute; top: 50%; left: 0; width: calc(100% - 30px); height: 20px; margin-top: -10px; padding: 0 10px; overflow: hidden; line-height: 20px; white-space: nowrap; text-overflow: ellipsis; } .yg-cascader-picker-clear { position: absolute; top: 50%; right: 10px; z-index: 2; width: 12px; height: 12px; margin-top: -6px; color: rgba(51, 51, 51, 0.25); font-size: 12px; line-height: 12px; background: #fff; cursor: pointer; opacity: 0; transition: color 0.3s ease, opacity 0.15s ease; } .yg-cascader-picker-clear:hover { color: rgba(0, 0, 0, 0.45); } .yg-cascader-picker:hover .yg-cascader-picker-clear { opacity: 1; } .yg-cascader-picker-arrow { position: absolute; top: 50%; right: -10px; z-index: 1; width: 12px; height: 12px; margin-top: -6px; color: rgba(51, 51, 51, 0.25); font-size: 12px; line-height: 12px; transition: transform 0.2s; } .yg-cascader-picker-arrow.yg-cascader-picker-arrow-expand { transform: rotate(180deg); } .yg-cascader-picker-small .yg-cascader-picker-clear, .yg-cascader-picker-small .yg-cascader-picker-arrow { right: 8px; } .yg-cascader-menus { position: absolute; z-index: 1050; font-size: 12px; white-space: nowrap; background: #fff; border-radius: 2px; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15); } .yg-cascader-menus ul, .yg-cascader-menus ol { margin: 0; padding: 0; list-style: none; } .yg-cascader-menus-empty, .yg-cascader-menus-hidden { display: none; } .yg-cascader-menus.slide-up-enter.slide-up-enter-active.yg-cascader-menus-placement-bottomLeft, .yg-cascader-menus.slide-up-appear.slide-up-appear-active.yg-cascader-menus-placement-bottomLeft { -webkit-animation-name: antSlideUpIn; animation-name: antSlideUpIn; } .yg-cascader-menus.slide-up-enter.slide-up-enter-active.yg-cascader-menus-placement-topLeft, .yg-cascader-menus.slide-up-appear.slide-up-appear-active.yg-cascader-menus-placement-topLeft { -webkit-animation-name: antSlideDownIn; animation-name: antSlideDownIn; } .yg-cascader-menus.slide-up-leave.slide-up-leave-active.yg-cascader-menus-placement-bottomLeft { -webkit-animation-name: antSlideUpOut; animation-name: antSlideUpOut; } .yg-cascader-menus.slide-up-leave.slide-up-leave-active.yg-cascader-menus-placement-topLeft { -webkit-animation-name: antSlideDownOut; animation-name: antSlideDownOut; } .yg-cascader-menu { display: inline-block; min-width: 111px; height: 180px; margin: 0; padding: 0; overflow: auto; vertical-align: top; list-style: none; border-right: 1px solid #ccc; -ms-overflow-style: -ms-autohiding-scrollbar; } .yg-cascader-menu:first-child { border-radius: 2px 0 0 2px; } .yg-cascader-menu:last-child { margin-right: -1px; border-right-color: transparent; border-radius: 0 2px 2px 0; } .yg-cascader-menu:only-child { border-radius: 2px; } .yg-cascader-menu-item { padding: 5px 10px; line-height: 22px; white-space: nowrap; cursor: pointer; transition: all 0.3s; } .yg-cascader-menu-item:hover { background: #e1edff; } .yg-cascader-menu-item-disabled { color: rgba(51, 51, 51, 0.25); cursor: not-allowed; } .yg-cascader-menu-item-disabled:hover { background: transparent; } .yg-cascader-menu-item-active:not(.yg-cascader-menu-item-disabled), .yg-cascader-menu-item-active:not(.yg-cascader-menu-item-disabled):hover { font-weight: 600; background: #f5f5f5; } .yg-cascader-menu-item-expand { position: relative; padding-right: 24px; } .yg-cascader-menu-item-expand .yg-cascader-menu-item-expand-icon, .yg-cascader-menu-item-expand .yg-cascader-menu-item-loading-icon { display: inline-block; font-size: 12px; font-size: 10px \9; transform: scale(0.83333333) rotate(0deg); position: absolute; right: 10px; color: rgba(0, 0, 0, 0.45); } :root .yg-cascader-menu-item-expand .yg-cascader-menu-item-expand-icon, :root .yg-cascader-menu-item-expand .yg-cascader-menu-item-loading-icon { font-size: 12px; } .yg-cascader-menu-item .yg-cascader-menu-item-keyword { color: #e2062c; }