ant-design/components/tree-select/style/index.less

192 lines
4.6 KiB
Plaintext
Raw Normal View History

meger feature to master (#16421) * 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 * :white_check_mark: Add test cases for hr_HR * :memo: 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
2019-05-06 12:04:39 +08:00
@import '../../style/themes/index';
2018-12-07 16:17:45 +08:00
@import '../../style/mixins/index';
@import '../../tree/style/mixin';
@import '../../checkbox/style/mixin';
2018-12-07 16:17:45 +08:00
@select-prefix-cls: ~'@{ant-prefix}-select';
@select-tree-prefix-cls: ~'@{ant-prefix}-select-tree';
2016-01-28 15:29:29 +08:00
2018-12-07 16:17:45 +08:00
.antCheckboxFn(@checkbox-prefix-cls: ~'@{ant-prefix}-select-tree-checkbox');
2016-02-26 18:13:16 +08:00
.@{select-tree-prefix-cls} {
.reset-component;
2019-04-15 10:52:00 +08:00
2015-12-31 14:38:35 +08:00
margin: 0;
2017-07-20 17:17:56 +08:00
margin-top: -4px;
padding: 0 4px;
2015-12-31 14:38:35 +08:00
li {
2016-01-30 16:53:49 +08:00
margin: 8px 0;
padding: 0;
2015-12-31 14:38:35 +08:00
white-space: nowrap;
list-style: none;
2015-12-31 14:38:35 +08:00
outline: 0;
2016-01-07 19:05:55 +08:00
&.filter-node {
2017-05-15 17:31:16 +08:00
> span {
2017-08-17 22:10:40 +08:00
font-weight: 500;
2016-01-07 19:05:55 +08:00
}
}
2015-12-31 14:38:35 +08:00
ul {
margin: 0;
padding: 0 0 0 18px;
}
.@{select-tree-prefix-cls}-node-content-wrapper {
2015-12-31 14:38:35 +08:00
display: inline-block;
width: ~'calc(100% - 24px)';
margin: 0;
padding: 3px 5px;
color: @text-color;
text-decoration: none;
border-radius: @border-radius-sm;
2015-12-31 14:38:35 +08:00
cursor: pointer;
2018-12-07 16:17:45 +08:00
transition: all 0.3s;
2016-01-30 16:53:49 +08:00
&:hover {
background-color: @item-hover-bg;
2016-01-30 16:53:49 +08:00
}
2016-02-26 18:13:16 +08:00
&.@{select-tree-prefix-cls}-node-selected {
background-color: @primary-2;
2016-01-30 16:53:49 +08:00
}
}
2017-08-03 15:52:31 +08:00
span {
2016-02-26 18:13:16 +08:00
&.@{select-tree-prefix-cls}-checkbox {
2017-06-27 14:25:10 +08:00
margin: 0 4px 0 0;
2017-07-20 17:17:56 +08:00
+ .@{select-tree-prefix-cls}-node-content-wrapper {
2018-12-07 16:17:45 +08:00
width: ~'calc(100% - 46px)';
2017-07-20 17:17:56 +08:00
}
2015-12-31 14:38:35 +08:00
}
2016-02-26 18:13:16 +08:00
&.@{select-tree-prefix-cls}-switcher,
&.@{select-tree-prefix-cls}-iconEle {
display: inline-block;
width: 24px;
height: 24px;
margin: 0;
2017-07-20 17:17:56 +08:00
line-height: 22px;
text-align: center;
2015-12-31 14:38:35 +08:00
vertical-align: middle;
border: 0 none;
outline: none;
cursor: pointer;
2015-12-31 14:38:35 +08:00
}
2018-08-25 15:51:07 +08:00
&.@{select-prefix-cls}-icon_loading {
.@{select-prefix-cls}-switcher-loading-icon {
position: absolute;
left: 0;
display: inline-block;
2017-08-03 15:52:31 +08:00
color: @primary-color;
2018-08-25 15:51:07 +08:00
font-size: 14px;
transform: none;
2018-09-01 20:11:13 +08:00
svg {
2018-08-25 15:51:07 +08:00
position: absolute;
top: 0;
right: 0;
bottom: 0;
left: 0;
margin: auto;
}
2015-12-31 14:38:35 +08:00
}
}
2016-02-26 18:13:16 +08:00
&.@{select-tree-prefix-cls}-switcher {
2018-08-25 15:51:07 +08:00
position: relative;
2016-08-17 17:12:40 +08:00
&.@{select-tree-prefix-cls}-switcher-noop {
cursor: auto;
}
2017-08-03 15:52:31 +08:00
&.@{select-tree-prefix-cls}-switcher_open {
2017-03-28 17:51:45 +08:00
.antTreeSwitcherIcon();
2015-12-31 14:38:35 +08:00
}
2017-08-03 15:52:31 +08:00
&.@{select-tree-prefix-cls}-switcher_close {
2017-03-28 17:51:45 +08:00
.antTreeSwitcherIcon();
2018-08-25 15:51:07 +08:00
.@{select-prefix-cls}-switcher-icon {
svg {
transform: rotate(-90deg);
}
}
2015-12-31 14:38:35 +08:00
}
2018-08-25 15:51:07 +08:00
&.@{select-tree-prefix-cls}-switcher_open,
2018-12-07 16:17:45 +08:00
&.@{select-tree-prefix-cls}-switcher_close {
.@{select-prefix-cls}-switcher-loading-icon {
position: absolute;
left: 0;
display: inline-block;
2018-12-07 16:17:45 +08:00
width: 24px;
height: 24px;
color: @primary-color;
font-size: 14px;
transform: none;
2018-12-07 16:17:45 +08:00
svg {
2018-08-25 15:51:07 +08:00
position: absolute;
2018-12-07 16:17:45 +08:00
top: 0;
right: 0;
bottom: 0;
2018-08-25 15:51:07 +08:00
left: 0;
2018-12-07 16:17:45 +08:00
margin: auto;
2018-08-25 15:51:07 +08:00
}
}
2018-12-07 16:17:45 +08:00
}
2015-12-31 14:38:35 +08:00
}
}
}
2018-08-25 15:51:07 +08:00
.@{select-tree-prefix-cls}-treenode-loading {
.@{select-tree-prefix-cls}-iconEle {
display: none;
}
}
2015-12-31 14:38:35 +08:00
&-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;
2016-01-07 19:05:55 +08:00
cursor: not-allowed;
2015-12-31 14:38:35 +08:00
}
> .@{select-tree-prefix-cls}-node-content-wrapper:hover {
background: transparent;
}
2015-12-31 14:38:35 +08:00
}
&-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 {
2019-02-19 18:27:53 +08:00
position: sticky;
top: 0;
z-index: 1;
display: block;
padding: 4px;
2019-02-19 18:27:53 +08:00
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;
}
2016-08-03 11:33:23 +08:00
}