mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-12 23:35:38 +08:00
4feb186085
* chore(list): improve code (#24280) * chore(list): improve code * Update index.tsx * refactor: tree select style code * 🔒 lock antd-theme-generator to 1.2.2 https://github.com/mzohaibqc/antd-theme-generator/issues/42 Co-authored-by: Tom Xu <ycxzhkx@gmail.com>
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
@import '../../style/themes/index';
|
|
@import '../../style/mixins/index';
|
|
@import '../../tree/style/mixin';
|
|
@import '../../checkbox/style/mixin';
|
|
|
|
@tree-select-prefix-cls: ~'@{ant-prefix}-tree-select';
|
|
@select-tree-prefix-cls: ~'@{ant-prefix}-select-tree';
|
|
|
|
.antCheckboxFn(@checkbox-prefix-cls: ~'@{select-tree-prefix-cls}-checkbox');
|
|
|
|
.@{tree-select-prefix-cls} {
|
|
// ======================= Dropdown =======================
|
|
&-dropdown {
|
|
padding: @padding-xs (@padding-xs / 2) 0;
|
|
|
|
&-rtl {
|
|
direction: rtl;
|
|
}
|
|
// ======================== Tree ========================
|
|
.@{select-tree-prefix-cls} {
|
|
border-radius: 0;
|
|
|
|
&-list-holder-inner {
|
|
align-items: stretch;
|
|
|
|
.@{select-tree-prefix-cls}-treenode {
|
|
padding-bottom: @padding-xs;
|
|
|
|
.@{select-tree-prefix-cls}-node-content-wrapper {
|
|
flex: auto;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
// ========================== Tree ==========================
|
|
.antTreeFn(@select-tree-prefix-cls);
|
|
|
|
// change switcher icon rotation in rtl direction
|
|
.@{select-tree-prefix-cls} {
|
|
// >>> Switcher
|
|
& &-switcher {
|
|
&_close {
|
|
.@{select-tree-prefix-cls}-switcher-icon {
|
|
svg {
|
|
.@{tree-select-prefix-cls}-dropdown-rtl & {
|
|
transform: rotate(90deg);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|