mirror of
https://github.com/ant-design/ant-design.git
synced 2024-12-19 11:58:41 +08:00
6936599aef
* rename .stylelintrc to .stylelintrc.json for explicit file type * add new npm script lint-fix:style * fix pseudo-element with double colon * function name should be lower except ignored functions * support stylelint declaration-block-no-ignored-properties rule * support sorted CSS properties order for readability and consistency * autofix order of all styles by lint-fix:style script * remove double slash comments after selector * replace .stylelintignore with ignoreFiles in .stylelintrc.json
96 lines
2.1 KiB
Plaintext
96 lines
2.1 KiB
Plaintext
@import '../../style/themes/default';
|
|
|
|
@tree-prefix-cls: ~'@{ant-prefix}-tree';
|
|
|
|
.@{tree-prefix-cls} {
|
|
&.@{tree-prefix-cls}-directory {
|
|
position: relative;
|
|
|
|
// Stretch selector width
|
|
> li,
|
|
.@{tree-prefix-cls}-child-tree > li {
|
|
span {
|
|
&.@{tree-prefix-cls}-switcher {
|
|
position: relative;
|
|
z-index: 1;
|
|
|
|
&.@{tree-prefix-cls}-switcher-noop {
|
|
pointer-events: none;
|
|
}
|
|
}
|
|
|
|
&.@{tree-prefix-cls}-checkbox {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
|
|
&.@{tree-prefix-cls}-node-content-wrapper {
|
|
border-radius: 0;
|
|
user-select: none;
|
|
|
|
&:hover {
|
|
background: transparent;
|
|
|
|
&::before {
|
|
background: @item-hover-bg;
|
|
}
|
|
}
|
|
|
|
&.@{tree-prefix-cls}-node-selected {
|
|
color: @tree-directory-selected-color;
|
|
background: transparent;
|
|
}
|
|
|
|
&::before {
|
|
position: absolute;
|
|
right: 0;
|
|
left: 0;
|
|
height: @tree-title-height;
|
|
transition: all 0.3s;
|
|
content: '';
|
|
}
|
|
|
|
> span {
|
|
position: relative;
|
|
z-index: 1;
|
|
}
|
|
}
|
|
}
|
|
|
|
&.@{tree-prefix-cls}-treenode-selected {
|
|
> span {
|
|
&.@{tree-prefix-cls}-switcher {
|
|
color: @tree-directory-selected-color;
|
|
}
|
|
|
|
&.@{tree-prefix-cls}-checkbox {
|
|
.@{tree-prefix-cls}-checkbox-inner {
|
|
border-color: @primary-color;
|
|
}
|
|
|
|
&.@{tree-prefix-cls}-checkbox-checked {
|
|
&::after {
|
|
border-color: @checkbox-check-color;
|
|
}
|
|
|
|
.@{tree-prefix-cls}-checkbox-inner {
|
|
background: @checkbox-check-color;
|
|
|
|
&::after {
|
|
border-color: @primary-color;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
&.@{tree-prefix-cls}-node-content-wrapper {
|
|
&::before {
|
|
background: @tree-directory-selected-bg;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|