-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbranchy.component.styl
78 lines (63 loc) · 1.23 KB
/
branchy.component.styl
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
@import 'common/styles/colors'
@import 'common/styles/fonts'
// mixins
node-folding(icon)
content icon
color color-dark-grey
// styles
ul
padding 3px 0 3px 25px
li
padding 0
margin 0
list-style none
.over-drop-target
border 4px solid color-dark-grey
transition: padding 0.2s ease-out
padding 5px
border-radius 5%
.tree
box-sizing border-box
font-family primary-font-family
li
list-style none
cursor default
div
display inline-block
box-sizing border-box
.node-value
display inline-block
color color-black
&:after
display block
padding-top -3px
width 0
height 2px
background-color color-black
content ''
transition width 0.3s
&:hover:after
width 100%
.node-selected
&:after
width 100%
.folding
width 25px
display inline-block
line-height 1px
padding 0 5px
font-weight bold
&.node-collapsed
cursor pointer
&:before
node-folding(folder-icon)
&.node-expanded
cursor pointer
&:before
node-folding(folder-opened-icon)
&.node-leaf
color color-black
text-align center
font-size 0.89em
&:before
node-folding(tag-icon)