File tree Expand file tree Collapse file tree 2 files changed +23
-16
lines changed Expand file tree Collapse file tree 2 files changed +23
-16
lines changed Original file line number Diff line number Diff line change 20
20
</div >
21
21
<div >
22
22
<button @click =" populate()" >populate tree</button >
23
- <ul class =" g8-tree-view g8-tree__highlight_hover" >
23
+ <ul class =" g8-tree-view g8-tree__dark g8- tree__highlight_hover" >
24
24
<g8-tree-view
25
25
checker =" 1"
26
26
:item =" item"
43
43
"
44
44
>
45
45
<template #default =" { item } " >
46
- <span :class =" { blue : !item.color }" >
46
+ <span :class =" { tint : !item.color }" >
47
47
{{ item.name }} (default slot)
48
48
</span >
49
49
</template >
50
50
<template #tag =" { tag } " >
51
- <span :class =" { blue : !tag.color }" >
51
+ <span :class =" { tint : !tag.color }" >
52
52
{{ tag.label }} (tag slot)
53
53
</span >
54
54
</template >
@@ -129,11 +129,18 @@ body {
129
129
height : 100% ;
130
130
}
131
131
132
+ html ,
133
+ body ,
134
+ button ,
135
+ #app {
136
+ color : #888888 ;
137
+ background : #333333 ;
138
+ }
139
+
132
140
#app {
133
141
font-family : Avenir, Helvetica , Arial , sans-serif ;
134
142
-webkit-font-smoothing : antialiased ;
135
143
-moz-osx-font-smoothing : grayscale ;
136
- color : #2c3e50 ;
137
144
display : flex ;
138
145
height : 100% ;
139
146
flex-direction : column ;
@@ -151,7 +158,7 @@ span[id] {
151
158
display : inline-block ;
152
159
}
153
160
154
- .blue {
155
- color : blue ;
161
+ .tint {
162
+ color : lightseagreen ;
156
163
}
157
164
</style >
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ $g8-tree-fg: #333 !default;
27
27
28
28
.g8-tree__node {
29
29
list-style : none ;
30
- padding : .1rem 0 .1rem 1rem ;
30
+ padding : 0 .1rem 0 0 .1rem 1rem ;
31
31
}
32
32
33
33
.g8-tree__node_label {
@@ -41,7 +41,7 @@ $g8-tree-fg: #333 !default;
41
41
42
42
.g8-tree__toggle ,
43
43
.g8-tree__checker {
44
- font-size : .8rem ;
44
+ font-size : 0 .8rem ;
45
45
width : 1rem ;
46
46
text-align : center ;
47
47
}
@@ -99,7 +99,7 @@ $g8-tree-fg: #333 !default;
99
99
font-weight : bold ;
100
100
101
101
.g8-tree__toggle :before {
102
- padding-right : .5rem ;
102
+ padding-right : 0 .5rem ;
103
103
content : ' \25ba ' ;
104
104
}
105
105
}
@@ -110,12 +110,12 @@ $g8-tree-fg: #333 !default;
110
110
}
111
111
112
112
.g8-tree__node_tag {
113
- margin-left : .5rem ;
114
- padding : 0 .2rem ;
115
- font-size : .6rem ;
113
+ margin-left : 0 .5rem ;
114
+ padding : 0 0 .2rem ;
115
+ font-size : 0 .6rem ;
116
116
font-weight : normal ;
117
117
max-width : 6rem ;
118
- border-radius : .2rem ;
118
+ border-radius : 0 .2rem ;
119
119
background : $g8-tree-bg ;
120
120
overflow : hidden ;
121
121
text-overflow : ellipsis ;
@@ -169,8 +169,8 @@ $g8-tree-fg: #333 !default;
169
169
}
170
170
}
171
171
172
- .g8-tree__highlight_hover .g8-tree__node_label :hover ,
173
- .g8-tree__highlight_hover .g8-tree__node_label :focus {
174
- background : $g8-tree-fg ;
172
+ & .g8-tree__highlight_hover .g8-tree__node_label :hover ,
173
+ & .g8-tree__highlight_hover .g8-tree__node_label :focus {
174
+ background : lighten ( $g8-tree-fg , 10 % ) ;
175
175
}
176
176
}
You can’t perform that action at this time.
0 commit comments