forked from givanz/VvvebJs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_csstree.scss
121 lines (107 loc) · 1.97 KB
/
_csstree.scss
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
/* CSS Tree menu styles */
.tree
{
width:100%;
ol
{
padding: 0.3rem 0 0 2rem;
margin:0;
//width: 300px;
min-width: $builder-right-panel-width + 15;
font-size:12px;
font-weight:500;
color:#555;
li
{
position: relative;
margin-left: -15px;
margin-bottom: 0.3rem;
list-style: none;
color:#555;
overflow:hidden;
&:hover
{
color:#007bff;
}
&.active
{
//background-color:$primary;
//color:#fff;
> label > span, > a > span
{
color:#007bff;
//font-weight:500;
}
}
}
li.file
{
> label
{
background: url(../libs/builder/icons/file.svg) 24px 0px no-repeat;
background-size:21px 21px;
cursor: pointer;
display: block;
padding-left: 56px;
margin:0;
font-size:12px;
font-weight:500;
line-height:28px;
&:hover
{
color:$primary;
}
}
}
li.folder
{
> label
{
//padding-left:38px;
}
}
li input
{
position: absolute;
left: 0;
margin-left: 0;
opacity: 0;
z-index: 2;
cursor: pointer;
height: 1em;
width: 1em;
top: 0;
+ ol
{
background: url(../libs/builder/icons/arrow-right.svg) 5px .3rem no-repeat;
background-size:10px 10px;
margin: -1.8rem 0 0 0rem;
padding: 2rem 0 0 2rem;
height: 0;
> li { display: none; margin-left: -14px !important; padding-left: 1px; }
}
}
li label
{
background: url(../libs/builder/icons/folder.svg) 24px 1px no-repeat;
background-size:24px 24px;
cursor: pointer;
display: block;
padding-left: 56px;
margin:0px;
font-size:12px;
font-weight:500;
line-height:28px;
}
li input:checked + ol
{
background: url(../libs/builder/icons/arrow-down.svg) 5px .1rem no-repeat;
background-size:10px 10px;
margin: -1.8em 0 0 0rem;
padding: 2rem 0 0 2rem;
height: auto;
> li { display: block; margin: 0 0 0.5em; /* 2px */}
> li:last-child { margin: 0 0 0.7em; /* 1px */ }
}
}
}