UNPKG

vue-antd-ui

Version:

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

494 lines (493 loc) 14.3 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 */ @-webkit-keyframes antCheckboxEffect { 0% { -webkit-transform: scale(1); transform: scale(1); opacity: 0.5; } 100% { -webkit-transform: scale(1.6); transform: scale(1.6); opacity: 0; } } @keyframes antCheckboxEffect { 0% { -webkit-transform: scale(1); transform: scale(1); opacity: 0.5; } 100% { -webkit-transform: scale(1.6); transform: scale(1.6); opacity: 0; } } .ant-tree-checkbox { font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: rgba(0, 0, 0, 0.65); -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; list-style: none; white-space: nowrap; cursor: pointer; outline: none; display: inline-block; line-height: 1; position: relative; vertical-align: middle; top: -0.09em; } .ant-tree-checkbox-wrapper:hover .ant-tree-checkbox-inner, .ant-tree-checkbox:hover .ant-tree-checkbox-inner, .ant-tree-checkbox-input:focus + .ant-tree-checkbox-inner { border-color: #1890ff; } .ant-tree-checkbox-checked:after { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border-radius: 2px; border: 1px solid #1890ff; content: ''; -webkit-animation: antCheckboxEffect 0.36s ease-in-out; animation: antCheckboxEffect 0.36s ease-in-out; -webkit-animation-fill-mode: both; animation-fill-mode: both; visibility: hidden; } .ant-tree-checkbox:hover:after, .ant-tree-checkbox-wrapper:hover .ant-tree-checkbox:after { visibility: visible; } .ant-tree-checkbox-inner { position: relative; top: 0; left: 0; display: block; width: 16px; height: 16px; border: 1px solid #d9d9d9; border-radius: 2px; background-color: #fff; -webkit-transition: all .3s; transition: all .3s; } .ant-tree-checkbox-inner:after { -webkit-transform: rotate(45deg) scale(0); -ms-transform: rotate(45deg) scale(0); transform: rotate(45deg) scale(0); position: absolute; left: 4.57142857px; top: 1.14285714px; display: table; width: 5.71428571px; height: 9.14285714px; border: 2px solid #fff; border-top: 0; border-left: 0; content: ' '; -webkit-transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6); transition: all 0.1s cubic-bezier(0.71, -0.46, 0.88, 0.6); } .ant-tree-checkbox-input { position: absolute; left: 0; z-index: 1; cursor: pointer; opacity: 0; top: 0; bottom: 0; right: 0; width: 100%; height: 100%; } .ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner:after { content: ' '; -webkit-transform: scale(1); -ms-transform: scale(1); transform: scale(1); position: absolute; left: 2.42857143px; top: 5.92857143px; width: 9.14285714px; height: 1.14285714px; } .ant-tree-checkbox-indeterminate.ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after { border-color: rgba(0, 0, 0, 0.25); } .ant-tree-checkbox-checked .ant-tree-checkbox-inner:after { -webkit-transform: rotate(45deg) scale(1); -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: ' '; -webkit-transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; transition: all 0.2s cubic-bezier(0.12, 0.4, 0.29, 1.46) 0.1s; } .ant-tree-checkbox-checked .ant-tree-checkbox-inner, .ant-tree-checkbox-indeterminate .ant-tree-checkbox-inner { background-color: #1890ff; border-color: #1890ff; } .ant-tree-checkbox-disabled { cursor: not-allowed; } .ant-tree-checkbox-disabled.ant-tree-checkbox-checked .ant-tree-checkbox-inner:after { -webkit-animation-name: none; animation-name: none; border-color: rgba(0, 0, 0, 0.25); } .ant-tree-checkbox-disabled .ant-tree-checkbox-input { cursor: not-allowed; } .ant-tree-checkbox-disabled .ant-tree-checkbox-inner { border-color: #d9d9d9 !important; background-color: #f5f5f5; } .ant-tree-checkbox-disabled .ant-tree-checkbox-inner:after { -webkit-animation-name: none; animation-name: none; border-color: #f5f5f5; } .ant-tree-checkbox-disabled + span { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } .ant-tree-checkbox-wrapper { font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: rgba(0, 0, 0, 0.65); -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; list-style: none; line-height: unset; cursor: pointer; display: inline-block; } .ant-tree-checkbox-wrapper + .ant-tree-checkbox-wrapper { margin-left: 8px; } .ant-tree-checkbox-wrapper + span, .ant-tree-checkbox + span { padding-left: 8px; padding-right: 8px; } .ant-tree-checkbox-group { font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: rgba(0, 0, 0, 0.65); -webkit-box-sizing: border-box; box-sizing: border-box; margin: 0; padding: 0; list-style: none; display: inline-block; } .ant-tree-checkbox-group-item { display: inline-block; margin-right: 8px; } .ant-tree-checkbox-group-item:last-child { margin-right: 0; } .ant-tree-checkbox-group-item + .ant-tree-checkbox-group-item { margin-left: 0; } .ant-tree { font-family: "Monospaced Number", "Chinese Quote", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif; font-size: 14px; line-height: 1.5; color: rgba(0, 0, 0, 0.65); -webkit-box-sizing: border-box; box-sizing: border-box; list-style: none; margin: 0; padding: 0; } .ant-tree ol, .ant-tree ul { list-style: none; margin: 0; padding: 0; } .ant-tree li { padding: 4px 0; margin: 0; list-style: none; white-space: nowrap; outline: 0; } .ant-tree li span[draggable], .ant-tree li span[draggable="true"] { -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; user-select: none; border-top: 2px transparent solid; border-bottom: 2px transparent solid; margin-top: -2px; /* Required to make elements draggable in old WebKit */ -khtml-user-drag: element; -webkit-user-drag: element; } .ant-tree li.drag-over > span[draggable] { background-color: #1890ff; color: white; opacity: 0.8; } .ant-tree li.drag-over-gap-top > span[draggable] { border-top-color: #1890ff; } .ant-tree li.drag-over-gap-bottom > span[draggable] { border-bottom-color: #1890ff; } .ant-tree li.filter-node > span { color: #f5222d !important; font-weight: 500 !important; } .ant-tree li ul { margin: 0; padding: 0 0 0 18px; } .ant-tree li .ant-tree-node-content-wrapper { display: inline-block; padding: 0 5px; border-radius: 2px; margin: 0; cursor: pointer; text-decoration: none; vertical-align: top; color: rgba(0, 0, 0, 0.65); -webkit-transition: all .3s; transition: all .3s; position: relative; height: 24px; line-height: 24px; } .ant-tree li .ant-tree-node-content-wrapper:hover { background-color: #e6f7ff; } .ant-tree li .ant-tree-node-content-wrapper.ant-tree-node-selected { background-color: #bae7ff; } .ant-tree li span.ant-tree-checkbox { margin: 4px 4px 0 2px; } .ant-tree li span.ant-tree-switcher, .ant-tree li span.ant-tree-iconEle { margin: 0; width: 24px; height: 24px; line-height: 24px; display: inline-block; vertical-align: middle; border: 0 none; cursor: pointer; outline: none; text-align: center; } .ant-tree li span.ant-tree-icon_loading { position: absolute; left: 0; top: 1px; background: #fff; -webkit-transform: translateX(-100%); -ms-transform: translateX(-100%); transform: translateX(-100%); -webkit-transition: all .3s; transition: all .3s; } .ant-tree li span.ant-tree-icon_loading:after { display: inline-block; font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\E64D"; -webkit-animation: loadingCircle 1s infinite linear; animation: loadingCircle 1s infinite linear; color: #1890ff; } .ant-tree li span.ant-tree-switcher.ant-tree-switcher-noop { cursor: default; } .ant-tree li span.ant-tree-switcher.ant-tree-switcher_open:after { font-size: 12px; font-size: 7px \9; -webkit-transform: scale(0.58333333) rotate(0deg); -ms-transform: scale(0.58333333) rotate(0deg); transform: scale(0.58333333) rotate(0deg); display: inline-block; font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\e606"; font-weight: bold; -webkit-transition: -webkit-transform .3s; transition: -webkit-transform .3s; transition: transform .3s; transition: transform .3s, -webkit-transform .3s; } :root .ant-tree li span.ant-tree-switcher.ant-tree-switcher_open:after { font-size: 12px; } .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close:after { font-size: 12px; font-size: 7px \9; -webkit-transform: scale(0.58333333) rotate(0deg); -ms-transform: scale(0.58333333) rotate(0deg); transform: scale(0.58333333) rotate(0deg); display: inline-block; font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\e606"; font-weight: bold; -webkit-transition: -webkit-transform .3s; transition: -webkit-transform .3s; transition: transform .3s; transition: transform .3s, -webkit-transform .3s; } :root .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close:after { font-size: 12px; } .ant-tree li span.ant-tree-switcher.ant-tree-switcher_close:after { -webkit-transform: rotate(270deg) scale(0.59); -ms-transform: rotate(270deg) scale(0.59); transform: rotate(270deg) scale(0.59); } .ant-tree li:last-child > span.ant-tree-switcher:before, .ant-tree li:last-child > span.ant-tree-iconEle:before { display: none; } .ant-tree > li:first-child { padding-top: 7px; } .ant-tree > li:last-child { padding-bottom: 7px; } .ant-tree-child-tree { display: none; } .ant-tree-child-tree-open { display: block; } li.ant-tree-treenode-disabled > span:not(.ant-tree-switcher), li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper, li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper span { color: rgba(0, 0, 0, 0.25); cursor: not-allowed; } li.ant-tree-treenode-disabled > .ant-tree-node-content-wrapper:hover { background: transparent; } .ant-tree-icon__open { margin-right: 2px; vertical-align: top; } .ant-tree-icon__close { margin-right: 2px; vertical-align: top; } .ant-tree.ant-tree-show-line li { position: relative; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher { background: #fff; color: rgba(0, 0, 0, 0.45); } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher-noop:after { font-size: 12px; font-size: 12px \9; -webkit-transform: scale(1) rotate(0deg); -ms-transform: scale(1) rotate(0deg); transform: scale(1) rotate(0deg); display: inline-block; font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\e664"; vertical-align: baseline; font-weight: normal; -webkit-transition: -webkit-transform .3s; transition: -webkit-transform .3s; transition: transform .3s; transition: transform .3s, -webkit-transform .3s; } :root .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher-noop:after { font-size: 12px; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_open:after { font-size: 12px; font-size: 12px \9; -webkit-transform: scale(1) rotate(0deg); -ms-transform: scale(1) rotate(0deg); transform: scale(1) rotate(0deg); display: inline-block; font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\e621"; vertical-align: baseline; font-weight: normal; -webkit-transition: -webkit-transform .3s; transition: -webkit-transform .3s; transition: transform .3s; transition: transform .3s, -webkit-transform .3s; } :root .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_open:after { font-size: 12px; } .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_close:after { font-size: 12px; font-size: 12px \9; -webkit-transform: scale(1) rotate(0deg); -ms-transform: scale(1) rotate(0deg); transform: scale(1) rotate(0deg); display: inline-block; font-family: 'anticon'; text-rendering: optimizeLegibility; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; content: "\e645"; vertical-align: baseline; font-weight: normal; -webkit-transition: -webkit-transform .3s; transition: -webkit-transform .3s; transition: transform .3s; transition: transform .3s, -webkit-transform .3s; } :root .ant-tree.ant-tree-show-line li span.ant-tree-switcher.ant-tree-switcher_close:after { font-size: 12px; } .ant-tree.ant-tree-show-line li:not(:last-child):before { content: ' '; width: 1px; border-left: 1px solid #d9d9d9; height: 100%; position: absolute; left: 12px; margin: 22px 0; }