mirror of
https://github.com/ant-design/ant-design.git
synced 2025-01-10 22:26:23 +08:00
785c132262
* use ul in list * update snapshot * update comment * feat: TreeSelect support `showSearch` in multiple mode (#15933) * update rc-tree-select * typo * update desc & snapshot * update desc & snapshot * check default showSearch * feat: table customizing variable (#15971) * feat: added table selected row color variable * fix: @table-selected-row-color default is inherit * feat: Upload support customize previewFile (#15984) * support preview file * use promise * dealy load * use canvas of render * use domHook of test * update demo * add snapshot * update types * update testcase * feat: form customizing variables (#15954) * fix: added styling form input background-color * feat: added '@form-warning-input-bg' variable * feat: added '@form-error-input-bg' variable * use li wrap with comment * feat: Support append theme less file with less-variable (#16118) * add override * add override support * update doc * feat: dropdown support set right icon * docs: update doc of dropdown component * style: format dropdown-button.md * test: update updateSnapshot * style: format dropdown-button.md * test: update updateSnapshot * test: update updateSnapshot * style: change style of dropdown-button demo * fix: fix document table order * feat: Support SkeletonAvatarProps.size accept number (#16078) (#16128) * chore:update style of demo * feat: Notification functions accept top, bottom and getContainer as arguments * drawer: add afterVisibleChange * rm onVisibleChange * update * feat: 🇭🇷 hr_HR locale (#16258) * Added Croatian locale * fixed lint error * ✅ Add test cases for hr_HR * 📝 update i18n documentation * feat: add `htmlFor` in Form.Item (#16278) * add htmlFor in Form.Item * update doc * feat: Button support `link` type (#16289) close #15892 * feat: Add Timeline.Item.position (#16148) (#16193) * fix: Timeline.pendingDot interface documentation there is a small problem (#16177) * feat: Add Timeline.Item.position (#16148) * doc: add version infomation for Timeline.Item.position * refactor: Update Tree & TreeSelect deps (#16330) * use CSSMotion * update snapshot * feat: Collapse support `expandIconPosition` (#16365) * update doc * support expandIconPosition * update snapshot * feat: Breadcrumb support DropDown (#16315) * breadcrumbs support drop down menu * update doc * add require less * fix test * fix md doc * less code * fix style warning * update snap * add children render test * feat: TreeNode support checkable * feat: add optional to support top and left slick dots (#16186) (#16225) * add optional to support top and left slick dots * update carousel snapshot * Update doc, add placement demo * update carousel placement demo snapshots * rename dots placement to position * update vertical as deprecated * rename dotsPosition to dotPosition * refine code * add warning testcase for vertical * remove unused warning * update expression * Additional test case for dotPosition * refactor: Upgrade `rc-tree-select` to support pure React motion (#16402) * upgrade `rc-tree-select` * update snapshot * 3.17.0 changelog * fix warning * fix review warning
192 lines
4.6 KiB
Plaintext
192 lines
4.6 KiB
Plaintext
@import '../../style/themes/index';
|
|
@import '../../style/mixins/index';
|
|
@import '../../tree/style/mixin';
|
|
@import '../../checkbox/style/mixin';
|
|
|
|
@select-prefix-cls: ~'@{ant-prefix}-select';
|
|
@select-tree-prefix-cls: ~'@{ant-prefix}-select-tree';
|
|
|
|
.antCheckboxFn(@checkbox-prefix-cls: ~'@{ant-prefix}-select-tree-checkbox');
|
|
|
|
.@{select-tree-prefix-cls} {
|
|
.reset-component;
|
|
|
|
margin: 0;
|
|
margin-top: -4px;
|
|
padding: 0 4px;
|
|
li {
|
|
margin: 8px 0;
|
|
padding: 0;
|
|
white-space: nowrap;
|
|
list-style: none;
|
|
outline: 0;
|
|
&.filter-node {
|
|
> span {
|
|
font-weight: 500;
|
|
}
|
|
}
|
|
ul {
|
|
margin: 0;
|
|
padding: 0 0 0 18px;
|
|
}
|
|
.@{select-tree-prefix-cls}-node-content-wrapper {
|
|
display: inline-block;
|
|
width: ~'calc(100% - 24px)';
|
|
margin: 0;
|
|
padding: 3px 5px;
|
|
color: @text-color;
|
|
text-decoration: none;
|
|
border-radius: 2px;
|
|
cursor: pointer;
|
|
transition: all 0.3s;
|
|
&:hover {
|
|
background-color: @item-hover-bg;
|
|
}
|
|
&.@{select-tree-prefix-cls}-node-selected {
|
|
background-color: @primary-2;
|
|
}
|
|
}
|
|
span {
|
|
&.@{select-tree-prefix-cls}-checkbox {
|
|
margin: 0 4px 0 0;
|
|
+ .@{select-tree-prefix-cls}-node-content-wrapper {
|
|
width: ~'calc(100% - 46px)';
|
|
}
|
|
}
|
|
&.@{select-tree-prefix-cls}-switcher,
|
|
&.@{select-tree-prefix-cls}-iconEle {
|
|
display: inline-block;
|
|
width: 24px;
|
|
height: 24px;
|
|
margin: 0;
|
|
line-height: 22px;
|
|
text-align: center;
|
|
vertical-align: middle;
|
|
border: 0 none;
|
|
outline: none;
|
|
cursor: pointer;
|
|
}
|
|
&.@{select-prefix-cls}-icon_loading {
|
|
.@{select-prefix-cls}-switcher-loading-icon {
|
|
position: absolute;
|
|
left: 0;
|
|
display: inline-block;
|
|
color: @primary-color;
|
|
font-size: 14px;
|
|
transform: none;
|
|
svg {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
margin: auto;
|
|
}
|
|
}
|
|
}
|
|
&.@{select-tree-prefix-cls}-switcher {
|
|
position: relative;
|
|
&.@{select-tree-prefix-cls}-switcher-noop {
|
|
cursor: auto;
|
|
}
|
|
&.@{select-tree-prefix-cls}-switcher_open {
|
|
.antTreeSwitcherIcon();
|
|
}
|
|
&.@{select-tree-prefix-cls}-switcher_close {
|
|
.antTreeSwitcherIcon();
|
|
.@{select-prefix-cls}-switcher-icon {
|
|
svg {
|
|
transform: rotate(-90deg);
|
|
}
|
|
}
|
|
}
|
|
|
|
&.@{select-tree-prefix-cls}-switcher_open,
|
|
&.@{select-tree-prefix-cls}-switcher_close {
|
|
.@{select-prefix-cls}-switcher-loading-icon {
|
|
position: absolute;
|
|
left: 0;
|
|
display: inline-block;
|
|
width: 24px;
|
|
height: 24px;
|
|
color: @primary-color;
|
|
font-size: 14px;
|
|
transform: none;
|
|
svg {
|
|
position: absolute;
|
|
top: 0;
|
|
right: 0;
|
|
bottom: 0;
|
|
left: 0;
|
|
margin: auto;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
.@{select-tree-prefix-cls}-treenode-loading {
|
|
.@{select-tree-prefix-cls}-iconEle {
|
|
display: none;
|
|
}
|
|
}
|
|
&-child-tree {
|
|
display: none;
|
|
&-open {
|
|
display: block;
|
|
}
|
|
}
|
|
li&-treenode-disabled {
|
|
> span:not(.@{select-tree-prefix-cls}-switcher),
|
|
> .@{select-tree-prefix-cls}-node-content-wrapper,
|
|
> .@{select-tree-prefix-cls}-node-content-wrapper span {
|
|
color: @disabled-color;
|
|
cursor: not-allowed;
|
|
}
|
|
> .@{select-tree-prefix-cls}-node-content-wrapper:hover {
|
|
background: transparent;
|
|
}
|
|
}
|
|
&-icon__open {
|
|
margin-right: 2px;
|
|
vertical-align: top;
|
|
}
|
|
&-icon__close {
|
|
margin-right: 2px;
|
|
vertical-align: top;
|
|
}
|
|
}
|
|
|
|
.@{select-prefix-cls}-tree-dropdown {
|
|
.reset-component;
|
|
.@{select-prefix-cls}-dropdown-search {
|
|
position: sticky;
|
|
top: 0;
|
|
z-index: 1;
|
|
display: block;
|
|
padding: 4px;
|
|
background: @component-background;
|
|
.@{select-prefix-cls}-search__field__wrap {
|
|
width: 100%;
|
|
}
|
|
.@{select-prefix-cls}-search__field {
|
|
box-sizing: border-box;
|
|
width: 100%;
|
|
padding: 4px 7px;
|
|
border: @border-width-base @border-style-base @border-color-base;
|
|
border-radius: 4px;
|
|
outline: none;
|
|
}
|
|
&.@{select-prefix-cls}-search--hide {
|
|
display: none;
|
|
}
|
|
}
|
|
.@{select-prefix-cls}-not-found {
|
|
display: block;
|
|
padding: 7px 16px;
|
|
color: @disabled-color;
|
|
cursor: not-allowed;
|
|
}
|
|
}
|