Skip to content

Commit bfeedb9

Browse files
author
Administrator
committed
fix
1 parent 2e66b95 commit bfeedb9

File tree

2 files changed

+48
-7
lines changed

2 files changed

+48
-7
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313
![](https://img.shields.io/github/downloads/code4bones/react-c4b-ui/treemenu/total) ![](https://img.shields.io/github/watchers/code4bones/react-c4b-ui) ![](https://img.shields.io/github/forks/code4bones/react-c4b-ui) ![](https://img.shields.io/github/tag/code4bones/react-c4b-ui) ![](https://img.shields.io/github/release/code4bones/react-c4b-ui) ![](https://img.shields.io/github/issues/code4bones/react-c4b-ui)
1414

15-
###Links
15+
### Links
1616

1717
[Change log](https://github.com/code4bones/react-c4b-ui/wiki/Change-Log "Change log")
1818

rollup.build.css

Lines changed: 47 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
.tree-menu {
22
--font-family: "Avenir Next", Helvetica, Arial, sans-serif;
3+
--item-padding: 5px;
4+
--item-height: 24px;
35
}
46
@media (prefers-color-scheme: light) {
57
.tree-menu {
68
--tree-background: #ffffff;
79
--item-title: rgba(31, 31, 31, 0.787);
810
--item-info: #79aaff;
9-
--item-group-icon: red;
11+
--item-group-icon: #babec2;
1012
--item-selected-background: rgba(129, 129, 129, 0.364);
1113
--item-selected-color: #202020;
1214
--item-hover-background: rgba(0, 0, 0, 0.063);
@@ -19,30 +21,32 @@
1921
--tree-background: #242539;
2022
--item-title: rgba(225, 225, 225, 0.787);
2123
--item-info: #c8a636;
22-
--item-group-icon: red;
24+
--item-group-icon: #ff8c00;
2325
--item-selected-background: rgba(148, 185, 247, 0.364);
2426
--item-selected-color: #ffffff;
2527
--item-hover-background: rgba(89, 100, 102, 0.692);
2628
--item-hover-color: #04c5ff;
2729
--item-disabled-color: rgba(129, 129, 129, 0.533);
2830
}
2931
}
32+
.dark.tree-menu,
3033
.dark .tree-menu {
3134
--tree-background: #242539;
3235
--item-title: rgba(225, 225, 225, 0.787);
3336
--item-info: #c8a636;
34-
--item-group-icon: red;
37+
--item-group-icon: #ff8c00;
3538
--item-selected-background: rgba(148, 185, 247, 0.364);
3639
--item-selected-color: #ffffff;
3740
--item-hover-background: rgba(89, 100, 102, 0.692);
3841
--item-hover-color: #04c5ff;
3942
--item-disabled-color: rgba(129, 129, 129, 0.533);
4043
}
44+
.light.tree-menu,
4145
.light .tree-menu {
4246
--tree-background: #ffffff;
4347
--item-title: rgba(31, 31, 31, 0.787);
4448
--item-info: #79aaff;
45-
--item-group-icon: red;
49+
--item-group-icon: #babec2;
4650
--item-selected-background: rgba(129, 129, 129, 0.364);
4751
--item-selected-color: #202020;
4852
--item-hover-background: rgba(0, 0, 0, 0.063);
@@ -69,6 +73,10 @@
6973
/* Internet Explorer/Edge */
7074
user-select: none;
7175
/* Non-prefixed version, currently */
76+
/*
77+
.wrapper {
78+
}
79+
*/
7280
}
7381
.tree-menu .group {
7482
transition: all 0.3s cubic-bezier(0.81, 0.58, 0.48, 1.41);
@@ -95,6 +103,12 @@
95103
.tree-menu .item.hasChilds {
96104
font-weight: 800;
97105
}
106+
.tree-menu .item.hasChilds .folder {
107+
display: flex;
108+
margin-left: 5px;
109+
justify-content: center;
110+
align-items: center;
111+
}
98112
.tree-menu .item ~ .group {
99113
max-height: var(--mh);
100114
overflow: hidden;
@@ -107,14 +121,32 @@
107121
max-height: 0px;
108122
overflow: hidden;
109123
}
110-
.tree-menu .item.expanded .folder {
124+
.tree-menu .item.expanded {
125+
/*
126+
~ .group {
127+
128+
}
129+
*/
130+
}
131+
.tree-menu .item.expanded .folder.enable-rotate {
111132
transform: rotate(90deg);
112133
}
113134
.tree-menu .item > .content {
114-
padding: 10px;
135+
padding: var(--item-padding);
136+
min-height: var(--item-height);
115137
display: flex;
116138
flex-direction: row;
117139
align-items: center;
140+
/*
141+
> .folder {
142+
143+
}
144+
*/
145+
/*
146+
> .marker {
147+
148+
}
149+
*/
118150
}
119151
.tree-menu .item > .content:hover {
120152
color: var(--item-hover-color);
@@ -136,3 +168,12 @@
136168
background-color: var(--item-selected-background);
137169
color: var(--item-selected-color) !important;
138170
}
171+
/*
172+
.test {
173+
&.tree-menu {
174+
.item:hover {
175+
background-color: red;
176+
}
177+
}
178+
}
179+
*/

0 commit comments

Comments
 (0)