source: pro-violet-viettel/www/deploy/20150304/assets/css/less/thirdparty-nestable.less @ 780

Last change on this file since 780 was 780, checked in by dungnv, 10 years ago
File size: 4.4 KB
Line 
1.dd {
2        position: relative;
3        display: block;
4        margin: 0; padding: 0;
5        max-width: 600px;
6        list-style: none;
7        line-height: 20px;
8}
9.dd-list {
10        display: block;
11        position: relative;
12        margin: 0; padding: 0; list-style: none;
13       
14        .dd-list {
15                padding-left: 30px;
16        }
17        .dd-collapsed & {
18                display: none;
19        }
20}
21
22.dd-item,
23.dd-empty,
24.dd-placeholder {
25        display: block;
26        position: relative;
27        margin: 0;
28        padding: 0;
29        min-height: 20px;
30        line-height: 20px;
31 }
32
33.dd-handle  , .dd2-content {
34        display: block;
35        min-height: 38px;
36        margin: 5px 0;
37        padding: 8px 12px;
38       
39        background: #F8FAFF;
40        border: 1px solid #DAE2EA;
41        color: #7C9EB2;
42        text-decoration: none;
43        font-weight: bold;   
44
45    .box-sizing(border-box);
46       
47       
48        &:hover {
49                color: #438EB9;
50                background: #F4F6F7;
51                border-color:#DCE2E8;
52        }
53       
54        &[class*="btn-"] {
55                color:#FFF;
56                border:none;
57                padding: 9px 12px;
58
59                &:hover {
60                        opacity:0.85;
61                        color:#FFF;
62                }
63        }
64}
65.dd2-handle  + .dd2-content,
66.dd2-handle  + .dd2-content[class*="btn-"]
67{
68        padding-left:44px;
69}
70.dd-handle[class*="btn-"]:hover , .dd2-content[class*="btn-"]
71.dd2-handle[class*="btn-"]:hover  + .dd2-content[class*="btn-"] {
72        //opacity:0.85;
73        color:#FFF;
74}
75
76.dd-item > button:hover {
77        ~ .dd-handle  , ~ .dd2-content {
78                color: #438EB9;
79                background: #F4F6F7;
80                border-color:#DCE2E8;
81        }
82        ~ .dd-handle[class*="btn-"]  , ~ .dd2-content[class*="btn-"] {
83                opacity:0.85;
84                color:#FFF;
85        }
86}
87.dd2-handle:hover {
88        ~ .dd2-content {
89                color: #438EB9;
90                background: #F4F6F7;
91                border-color:#DCE2E8;
92        }
93        ~ .dd2-content[class*="btn-"] {
94                opacity:0.85;
95                color:#FFF;
96        }
97}
98
99
100
101
102
103.dd2-item.dd-item > button {
104        margin-left:34px;
105}
106.dd-item > button {
107        display: block;
108        position: relative; z-index:1;
109        cursor: pointer;
110       
111        float: left;
112        width: 25px;
113        height: 20px;
114        margin: 5px 1px 5px 5px;
115        padding: 0;
116       
117        text-indent: 100%;
118        white-space: nowrap;
119        overflow: hidden;
120       
121        border: 0;
122        background: transparent;
123        font-size: 12px;
124       
125        line-height: 1;
126        text-align: center;
127        font-weight: bold;
128       
129        top:4px;
130        left:1px;
131       
132        color:#707070;
133 }
134.dd-item > button:before {
135        font-family:FontAwesome;
136        content: '\f067';
137       
138        display: block;
139        position: absolute;
140        width: 100%;
141       
142        text-align: center;
143        text-indent: 0;
144       
145        font-weight:normal;
146        font-size:14px;
147}
148.dd-item > button[data-action="collapse"]:before {
149        content: '\f068';
150}
151.dd-item > button:hover {
152        color:#707070;
153}
154.dd-item.dd-colored > button , .dd-item.dd-colored > button:hover {
155        color:#EEE;
156}
157
158
159.dd-placeholder,
160.dd-empty {
161        margin: 5px 0;
162        padding: 0;
163        min-height: 30px;
164        background: #F0F9FF;
165        border: 2px dashed #BED2DB;
166        .box-sizing(border-box);
167 }
168.dd-empty  {
169        border-color:#AAA;
170        border-style:solid;
171        background-color: #e5e5e5;
172}
173
174.dd-dragel {
175        position: absolute;
176        pointer-events: none;
177        z-index: 999;
178        opacity:0.8;
179       
180        > li > .dd-handle {
181                color:#4B92BE;
182                background:#F1F5FA;
183               
184                border-color:#D6E1EA;
185                //opacity:0.85;
186                border-left:2px solid #777;
187               
188                position:relative;
189               
190                &[class*="btn-"]  {
191                        color:#FFF;
192                }
193        }
194 }
195.dd-dragel > .dd-item > .dd-handle {
196        margin-top: 0;
197}
198
199
200.dd-list > li[class*="item-"] {
201  border-width:0;padding:0;
202
203  > .dd-handle {
204        border-left:2px solid;
205        border-left-color:inherit;
206 }
207}
208
209.dd-list > li > .dd-handle .sticker {
210  position:absolute;
211  right:0;
212  top:0;
213}
214
215
216
217
218.dd2-handle , .dd-dragel > li > .dd2-handle {
219        position:absolute;
220        left:0; top:0;
221        width:36px;
222        margin:0;
223        border-width:1px 1px 0 0;
224        text-align:center;
225        padding:0 !important;
226        line-height:38px;
227        height:38px;
228 
229        background: #EBEDF2;
230        border: 1px solid #DEE4EA;
231
232        cursor: pointer;
233        overflow: hidden;
234        position: absolute;
235        z-index:1;
236}
237.dd2-handle:hover , .dd-dragel > li > .dd2-handle{
238        background:#E3E8ED;
239}
240
241
242
243
244.dd2-content[class*="btn-"] {
245        text-shadow:none !important;
246}
247.dd2-handle[class*="btn-"] {
248        text-shadow:none !important;
249        background:rgba(0,0,0,0.1) !important;
250        border-right:1px solid #EEE;
251}
252.dd2-handle[class*="btn-"]:hover {
253        background:rgba(0,0,0,0.08) !important;
254}
255.dd-dragel .dd2-handle[class*="btn-"] {
256        border-color:transparent;
257        border-right-color:#EEE;
258}
259.dd2-handle.btn-yellow {
260        text-shadow:none !important;
261        background:rgba(0,0,0,0.05) !important;
262        border-right:1px solid #FFF;
263}
264.dd2-handle.btn-yellow:hover {
265        background:rgba(0,0,0,0.08) !important;
266}
267.dd-dragel .dd2-handle.btn-yellow {
268        border-color:transparent;
269        border-right-color:#FFF;
270}
271
272
273.dd-item  > .dd2-handle .drag-icon {
274        display:none;
275}
276.dd-dragel > .dd-item > .dd2-handle .drag-icon {
277        display:inline;
278}
279.dd-dragel > .dd-item > .dd2-handle .normal-icon {
280        display:none;
281}
Note: See TracBrowser for help on using the repository browser.