UNPKG

ygd

Version:

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

406 lines (405 loc) 11.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 */ /* stylelint-disable declaration-bang-space-before,no-duplicate-selectors,string-no-newline */ @-webkit-keyframes antCheckboxEffect { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } } @keyframes antCheckboxEffect { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } } .yg-select-tree-checkbox { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; position: relative; top: -0.09em; display: inline-block; line-height: 1; white-space: nowrap; vertical-align: middle; outline: none; cursor: pointer; } .yg-select-tree-checkbox-wrapper:hover .yg-select-tree-checkbox-inner, .yg-select-tree-checkbox:hover .yg-select-tree-checkbox-inner, .yg-select-tree-checkbox-input:focus + .yg-select-tree-checkbox-inner { border-color: #00a1ff; } .yg-select-tree-checkbox-checked::after { position: absolute; top: -1px; left: -1px; width: 100%; height: 100%; border: 1px solid #00a1ff; border-radius: 2px; visibility: hidden; -webkit-animation: antCheckboxEffect 0.36s ease-in-out; animation: antCheckboxEffect 0.36s ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both; content: ''; } .yg-select-tree-checkbox:hover::after, .yg-select-tree-checkbox-wrapper:hover .yg-select-tree-checkbox::after { visibility: visible; } .yg-select-tree-checkbox-inner { position: relative; top: 0; left: 0; display: block; width: 16px; height: 16px; background-color: #fff; border: 1px solid #ccc; border-radius: 2px; border-collapse: separate; transition: all 0.3s; } .yg-select-tree-checkbox-inner::after { position: absolute; top: 46%; left: 18%; display: table; width: 5.71428571px; height: 9.14285714px; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(45deg) scale(0) translate(-50%, -50%); opacity: 0; transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6), opacity 0.1s; content: ' '; } .yg-select-tree-checkbox-input { position: absolute; top: 0; right: 0; bottom: 0; left: 0; z-index: 1; width: 100%; height: 100%; cursor: pointer; opacity: 0; } .yg-select-tree-checkbox-checked .yg-select-tree-checkbox-inner::after { position: absolute; display: table; border: 2px solid #fff; border-top: 0; border-left: 0; transform: rotate(45deg) scale(1) translate(-50%, -50%); opacity: 1; transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; content: ' '; } .yg-select-tree-checkbox-checked .yg-select-tree-checkbox-inner { background-color: #00a1ff; border-color: #00a1ff; } .yg-select-tree-checkbox-disabled { cursor: not-allowed; } .yg-select-tree-checkbox-disabled.yg-select-tree-checkbox-checked .yg-select-tree-checkbox-inner::after { border-color: rgba(51, 51, 51, 0.25); -webkit-animation-name: none; animation-name: none; } .yg-select-tree-checkbox-disabled .yg-select-tree-checkbox-input { cursor: not-allowed; } .yg-select-tree-checkbox-disabled .yg-select-tree-checkbox-inner { background-color: #f5f5f5; border-color: #ccc; } .yg-select-tree-checkbox-disabled .yg-select-tree-checkbox-inner::after { border-color: #f5f5f5; border-collapse: separate; -webkit-animation-name: none; animation-name: none; } .yg-select-tree-checkbox-disabled + span { color: rgba(51, 51, 51, 0.25); cursor: not-allowed; } .yg-select-tree-checkbox-wrapper { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; display: inline-block; line-height: unset; cursor: pointer; } .yg-select-tree-checkbox-wrapper + .yg-select-tree-checkbox-wrapper { margin-left: 8px; } .yg-select-tree-checkbox-wrapper + span, .yg-select-tree-checkbox + span { padding-right: 8px; padding-left: 8px; } .yg-select-tree-checkbox-group { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; display: inline-block; } .yg-select-tree-checkbox-group-item { display: inline-block; margin-right: 8px; } .yg-select-tree-checkbox-group-item:last-child { margin-right: 0; } .yg-select-tree-checkbox-group-item + .yg-select-tree-checkbox-group-item { margin-left: 0; } .yg-select-tree-checkbox-indeterminate .yg-select-tree-checkbox-inner { background-color: #fff; border-color: #ccc; } .yg-select-tree-checkbox-indeterminate .yg-select-tree-checkbox-inner::after { top: 50%; left: 50%; width: 8px; height: 8px; background-color: #00a1ff; border: 0; transform: translate(-50%, -50%) scale(1); opacity: 1; content: ' '; } .yg-select-tree-checkbox-indeterminate.yg-select-tree-checkbox-disabled .yg-select-tree-checkbox-inner::after { background-color: rgba(51, 51, 51, 0.25); border-color: rgba(51, 51, 51, 0.25); } .yg-select-tree { box-sizing: content-box; color: #333; font-size: 12px; list-style: none; margin: 0; margin-top: -4px; padding: 0; } .yg-select-tree li { margin: 1px 0; padding: 0; white-space: nowrap; list-style: none; outline: 0; } .yg-select-tree li.filter-node > span { font-weight: 500; } .yg-select-tree li ul { margin: 0; padding: 0 0 0 18px; } .yg-select-tree li .yg-select-tree-node-content-wrapper { display: inline-block; width: calc(100% - 33px); margin: 0 5px 0 0; padding: 0 5px 0 5px; line-height: 24px; height: 24px; color: #333; text-decoration: none; border-radius: 2px; cursor: pointer; transition: all 0.3s; } .yg-select-tree li .yg-select-tree-node-content-wrapper:hover { background-color: #e1edff; } .yg-select-tree li .yg-select-tree-node-content-wrapper.yg-select-tree-node-selected { background-color: #a3eaff; } .yg-select-tree li span.yg-select-tree-checkbox { margin: 0 4px 0 0; } .yg-select-tree li span.yg-select-tree-checkbox + .yg-select-tree-node-content-wrapper { width: calc(100% - 62px); } .yg-select-tree li span.yg-select-tree-switcher, .yg-select-tree li span.yg-select-tree-iconEle { display: inline-block; width: 24px; height: 24px; margin: 0; line-height: 24px; text-align: center; vertical-align: middle; border: 0 none; outline: none; cursor: pointer; } .yg-select-tree li span.yg-select-icon_loading .yg-select-switcher-loading-icon { position: absolute; left: 0; display: inline-block; color: #00a1ff; font-size: 14px; transform: none; } .yg-select-tree li span.yg-select-icon_loading .yg-select-switcher-loading-icon svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; } .yg-select-tree li span.yg-select-tree-switcher { position: relative; } .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher-noop { cursor: auto; } .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_open .yg-tree-switcher-icon, .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_open .yg-select-switcher-icon { font-size: 12px; font-size: 10px \9; transform: scale(0.83333333) rotate(0deg); display: inline-block; font-weight: bold; } :root .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_open .yg-tree-switcher-icon, :root .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_open .yg-select-switcher-icon { font-size: 12px; } .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_open .yg-tree-switcher-icon svg, .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_open .yg-select-switcher-icon svg { transition: transform 0.3s; } .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_close .yg-tree-switcher-icon, .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_close .yg-select-switcher-icon { font-size: 12px; font-size: 10px \9; transform: scale(0.83333333) rotate(0deg); display: inline-block; font-weight: bold; } :root .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_close .yg-tree-switcher-icon, :root .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_close .yg-select-switcher-icon { font-size: 12px; } .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_close .yg-tree-switcher-icon svg, .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_close .yg-select-switcher-icon svg { transition: transform 0.3s; } .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_close .yg-select-switcher-icon svg { transform: rotate(-90deg); } .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_open .yg-select-switcher-loading-icon, .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_close .yg-select-switcher-loading-icon { position: absolute; left: 0; display: inline-block; width: 24px; height: 24px; color: #00a1ff; font-size: 14px; transform: none; } .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_open .yg-select-switcher-loading-icon svg, .yg-select-tree li span.yg-select-tree-switcher.yg-select-tree-switcher_close .yg-select-switcher-loading-icon svg { position: absolute; top: 0; right: 0; bottom: 0; left: 0; margin: auto; } .yg-select-tree .yg-select-tree-treenode-loading .yg-select-tree-iconEle { display: none; } .yg-select-tree-child-tree { display: none; } .yg-select-tree-child-tree-open { display: block; } li.yg-select-tree-treenode-disabled > span:not(.yg-select-tree-switcher), li.yg-select-tree-treenode-disabled > .yg-select-tree-node-content-wrapper, li.yg-select-tree-treenode-disabled > .yg-select-tree-node-content-wrapper span { color: rgba(51, 51, 51, 0.25); cursor: not-allowed; } li.yg-select-tree-treenode-disabled > .yg-select-tree-node-content-wrapper:hover { background: transparent; } .yg-select-tree-icon__open { margin-right: 2px; vertical-align: top; } .yg-select-tree-icon__close { margin-right: 2px; vertical-align: top; } .yg-select-tree-dropdown { box-sizing: content-box; margin: 0; padding: 0; color: #333; font-size: 12px; list-style: none; } .yg-select-tree-dropdown .yg-select-dropdown-search { position: -webkit-sticky; position: sticky; top: 0; z-index: 1; display: block; padding: 4px; background: #fff; } .yg-select-tree-dropdown .yg-select-dropdown-search .yg-select-search__field__wrap { width: 100%; } .yg-select-tree-dropdown .yg-select-dropdown-search .yg-select-search__field { box-sizing: content-box; height: 22px; line-height: 22px; width: calc(100% - 18px); padding: 0 5px; margin-left: 4px; border: 1px solid #ccc; border-radius: 2px; outline: none; } .yg-select-tree-dropdown .yg-select-dropdown-search.yg-select-search--hide { display: none; } .yg-select-tree-dropdown .yg-select-not-found { display: block; padding: 7px 16px; color: rgba(51, 51, 51, 0.25); cursor: not-allowed; }