-
Notifications
You must be signed in to change notification settings - Fork 145
/
jquery.nestable.scss
146 lines (129 loc) · 2.67 KB
/
jquery.nestable.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
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
$nestable-root-class: dd;
$nestable-list-class: dd-list;
$nestable-item-class: dd-item;
$nestable-drag-class: dd-dragel;
$nestable-handle-class: dd-handle;
$nestable-collapsed-class: dd-collapsed;
$nestable-placeholder-class: dd-placeholder;
$nestable-no-children-class: dd-nochildren;
$nestable-empty-class: dd-empty;
.#{$nestable-root-class} {
position: relative;
display: block;
margin: 0;
padding: 0;
max-width: 600px;
list-style: none;
font-size: 13px;
line-height: 20px;
}
.#{$nestable-list-class} {
display: block;
position: relative;
margin: 0;
padding: 0;
list-style: none;
.#{$nestable-list-class} {
padding-left: 30px;
}
}
.#{$nestable-item-class},
.#{$nestable-empty-class},
.#{$nestable-placeholder-class} {
display: block;
position: relative;
margin: 0;
padding: 0;
min-height: 20px;
font-size: 13px;
line-height: 20px;
}
.#{$nestable-handle-class} {
display: block;
height: 30px;
margin: 5px 0;
padding: 5px 10px;
color: #333;
text-decoration: none;
font-weight: bold;
border: 1px solid #ccc;
background: #fafafa;
border-radius: 3px;
box-sizing: border-box;
&:hover {
color: #2ea8e5;
background: #fff;
}
}
.#{$nestable-item-class} > button {
position: relative;
cursor: pointer;
float: left;
width: 25px;
height: 20px;
margin: 5px 0;
padding: 0;
text-indent: 100%;
white-space: nowrap;
overflow: hidden;
border: 0;
background: transparent;
font-size: 12px;
line-height: 1;
text-align: center;
font-weight: bold;
&:before {
display: block;
position: absolute;
width: 100%;
text-align: center;
text-indent: 0;
}
&.dd-expand:before {
content: '+';
}
&.dd-collapse:before {
content: '-';
}
}
.dd-expand {
display: none;
}
.#{$nestable-collapsed-class} .#{$nestable-list-class},
.#{$nestable-collapsed-class} .dd-collapse {
display: none;
}
.#{$nestable-collapsed-class} .dd-expand {
display: block;
}
.#{$nestable-empty-class},
.#{$nestable-placeholder-class} {
margin: 5px 0;
padding: 0;
min-height: 30px;
background: #f2fbff;
border: 1px dashed #b6bcbf;
box-sizing: border-box;
-moz-box-sizing: border-box;
}
.#{$nestable-empty-class} {
border: 1px dashed #bbb;
min-height: 100px;
background-color: #e5e5e5;
background-size: 60px 60px;
background-position: 0 0, 30px 30px;
}
.#{$nestable-drag-class} {
position: absolute;
pointer-events: none;
z-index: 9999;
&> .#{$nestable-item-class} .#{$nestable-handle-class} {
margin-top: 0;
}
.#{$nestable-handle-class} {
box-shadow: 2px 4px 6px 0 rgba(0,0,0,.1);
}
}
.#{$nestable-no-children-class} .#{$nestable-placeholder-class} {
display: none;
}