UNPKG

antd

Version:

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

351 lines (350 loc) 9.84 kB
/* stylelint-disable at-rule-empty-line-before,at-rule-name-space-after,at-rule-no-unknown */ /* stylelint-disable declaration-bang-space-before */ /* stylelint-disable declaration-bang-space-before */ @keyframes antCheckboxEffect { 0% { transform: scale(1); opacity: 0.5; } 100% { transform: scale(1.6); opacity: 0; } } .ant-select-tree-checkbox { white-space: nowrap; cursor: pointer; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: text-bottom; } .ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox-inner, .ant-select-tree-checkbox:hover .ant-select-tree-checkbox-inner, .ant-select-tree-checkbox-input:focus + .ant-select-tree-checkbox-inner { border-color: #108ee9; } .ant-select-tree-checkbox-checked:after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 2px; border: 1px solid #108ee9; content: ''; animation: antCheckboxEffect 0.36s ease-in-out; animation-fill-mode: both; visibility: hidden; } .ant-select-tree-checkbox:hover:after, .ant-select-tree-checkbox-wrapper:hover .ant-select-tree-checkbox:after { visibility: visible; } .ant-select-tree-checkbox-inner { position: relative; top: 0; left: 0; display: block; width: 14px; height: 14px; border: 1px solid #d9d9d9; border-radius: 2px; background-color: #fff; transition: all .3s; } .ant-select-tree-checkbox-inner:after { -ms-transform: rotate(45deg) scale(0); transform: rotate(45deg) scale(0); position: absolute; left: 4px; top: 1px; display: table; width: 5px; height: 8px; border: 2px solid #fff; border-top: 0; border-left: 0; content: ' '; transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6); } .ant-select-tree-checkbox-input { position: absolute; left: 0; z-index: 1; cursor: pointer; opacity: 0; filter: alpha(opacity=0); top: 0; bottom: 0; right: 0; width: 100%; height: 100%; } .ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner:after { content: ' '; -ms-transform: scale(1); transform: scale(1); position: absolute; left: 2px; top: 5px; width: 8px; height: 1px; } .ant-select-tree-checkbox-indeterminate.ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after { border-color: rgba(0, 0, 0, 0.25); } .ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after { -ms-transform: rotate(45deg) scale(1); transform: rotate(45deg) scale(1); position: absolute; display: table; border: 2px solid #fff; border-top: 0; border-left: 0; content: ' '; transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; } .ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner, .ant-select-tree-checkbox-indeterminate .ant-select-tree-checkbox-inner { background-color: #108ee9; border-color: #108ee9; } .ant-select-tree-checkbox-disabled { cursor: not-allowed; } .ant-select-tree-checkbox-disabled.ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after { animation-name: none; border-color: rgba(0, 0, 0, 0.25); } .ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-input { cursor: not-allowed; } .ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner { border-color: #d9d9d9 !important; background-color: #f7f7f7; } .ant-select-tree-checkbox-disabled .ant-select-tree-checkbox-inner:after { animation-name: none; border-color: #f7f7f7; } .ant-select-tree-checkbox-disabled + span { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } .ant-select-tree-checkbox-wrapper { cursor: pointer; font-size: 12px; display: inline-block; } .ant-select-tree-checkbox-wrapper + .ant-select-tree-checkbox-wrapper { margin-left: 8px; } .ant-select-tree-checkbox-wrapper + span, .ant-select-tree-checkbox + span { padding-left: 8px; padding-right: 8px; } .ant-select-tree-checkbox-group { font-size: 12px; } .ant-select-tree-checkbox-group-item { display: inline-block; margin-right: 8px; } .ant-select-tree-checkbox-group-item:last-child { margin-right: 0; } .ant-select-tree-checkbox-group-item + .ant-select-tree-checkbox-group-item { margin-left: 0; } @media \0screen { .ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:before, .ant-select-tree-checkbox-checked .ant-select-tree-checkbox-inner:after { font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\e632"; font-weight: bold; font-size: 8px; border: 0; color: #fff; left: 2px; top: 3px; position: absolute; } } .ant-select-tree { margin: 0; padding: 0 4px; margin-top: -4px; font-size: 12px; } .ant-select-tree li { padding: 0; margin: 8px 0; list-style: none; white-space: nowrap; outline: 0; } .ant-select-tree li.filter-node > span { font-weight: 500; } .ant-select-tree li ul { margin: 0; padding: 0 0 0 18px; } .ant-select-tree li .ant-select-tree-node-content-wrapper { display: inline-block; padding: 3px 5px; border-radius: 2px; margin: 0; cursor: pointer; text-decoration: none; color: rgba(0, 0, 0, 0.65); transition: all .3s; width: calc(100% - 24px); } .ant-select-tree li .ant-select-tree-node-content-wrapper:hover { background-color: #ecf6fd; } .ant-select-tree li .ant-select-tree-node-content-wrapper.ant-select-tree-node-selected { background-color: #d2eafb; } .ant-select-tree li span.ant-select-tree-checkbox { margin: 0 4px 0 0; } .ant-select-tree li span.ant-select-tree-checkbox + .ant-select-tree-node-content-wrapper { width: calc(100% - 46px); } .ant-select-tree li span.ant-select-tree-switcher, .ant-select-tree li span.ant-select-tree-iconEle { margin: 0; width: 24px; height: 24px; line-height: 22px; display: inline-block; vertical-align: middle; border: 0 none; cursor: pointer; outline: none; text-align: center; } .ant-select-tree li span.ant-select-tree-icon_loading:after { display: inline-block; font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\e6ae"; animation: loadingCircle 1s infinite linear; color: #108ee9; } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher-noop { cursor: auto; } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open:after { font-size: 12px; font-size: 7px \9; -ms-transform: scale(0.58333333) rotate(0deg); transform: scale(0.58333333) rotate(0deg); /* IE6-IE8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)"; zoom: 1; display: inline-block; font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\e606"; font-weight: bold; transition: transform .3s; } :root .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open:after { -webkit-filter: none; filter: none; } :root .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_open:after { font-size: 12px; } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close { -ms-filter: "progid:DXImageTransform.Microsoft.BasicImage(rotation=3)"; } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close:after { font-size: 12px; font-size: 7px \9; -ms-transform: scale(0.58333333) rotate(0deg); transform: scale(0.58333333) rotate(0deg); /* IE6-IE8 */ -ms-filter: "progid:DXImageTransform.Microsoft.Matrix(sizingMethod='auto expand', M11=1, M12=0, M21=0, M22=1)"; zoom: 1; display: inline-block; font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\e606"; font-weight: bold; transition: transform .3s; } :root .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close:after { -webkit-filter: none; filter: none; } :root .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close:after { font-size: 12px; } .ant-select-tree li span.ant-select-tree-switcher.ant-select-tree-switcher_close:after { -ms-transform: rotate(270deg) scale(0.59); transform: rotate(270deg) scale(0.59); } .ant-select-tree-child-tree { display: none; } .ant-select-tree-child-tree-open { display: block; } li.ant-select-tree-treenode-disabled > span, li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper, li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper span, li.ant-select-tree-treenode-disabled > span.ant-select-tree-switcher { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } li.ant-select-tree-treenode-disabled > .ant-select-tree-node-content-wrapper:hover { background: transparent; } .ant-select-tree-icon__open { margin-right: 2px; vertical-align: top; } .ant-select-tree-icon__close { margin-right: 2px; vertical-align: top; } .ant-select-tree-dropdown .ant-select-dropdown-search { display: block; padding: 4px; } .ant-select-tree-dropdown .ant-select-dropdown-search .ant-select-search__field__wrap { width: 100%; } .ant-select-tree-dropdown .ant-select-dropdown-search .ant-select-search__field { padding: 4px 7px; width: 100%; box-sizing: border-box; border: 1px solid #d9d9d9; border-radius: 4px; outline: none; } .ant-select-tree-dropdown .ant-select-dropdown-search.ant-select-search--hide { display: none; } .ant-select-tree-dropdown .ant-select-not-found { cursor: not-allowed; color: rgba(0, 0, 0, 0.25); padding: 7px 16px; display: block; }