hjg
2023-11-18 bb48edb3d9faaaeab0088151c86fc24137acdb08
提交 | 用户 | 时间
58d006 1 @wizard-step-border:#CED1D6;
A 2 @wizard-step-color:#546474;
3 @wizard-step-active-border:#5293C4;
4 @wizard-step-complete-color:#87BA21;
5 @wizard-step-title-color:#949EA7;
6 @wizard-step-active-title-color:#2B3D53;
7
8
9 //spinner
10
11 .enable_plugin_fuelux_spinner() when (@enable-plugin-fuelux-spinner = true) {
12 .ace-spinner {
13   display: inline-block;
14
15   .spinbox-buttons.btn-group-vertical {
16      min-width: 18px;
17     
18     > .btn {
19         //.border-radius(0) !important;
20         font-size: @font-size-spinner-button;
21         padding: 0;
22         width: 22px;
23         
24         height: 16px;
25         line-height: 8px;
26         margin-left: 0;
27         
28         &:first-child {
29             margin-top: 0;
30         }
31         
32         > .@{icon} {
33             margin: 0;
34             padding: 0;
35         }
36         
37         + .btn {
38             margin-top: 2px;
39         }
40     }
41     > .btn-xs {
42         height: 14px;
43         line-height: 7px;
44     }
45     > .btn-lg {
46         height: 22px;
47         line-height: 10px;
48         width: 22px;
49     }
50   }
51
52   .spinbox-buttons {
53     > button.btn.spinbox-up:active {
54         top: -1px;
55     }
56   }
57 }
58
59 .ace-spinner:not(.touch-spinner) .spinbox-buttons > .btn > .@{icon} {
60   margin-top: -1px;
61 }
62
63
64 //touch spinner buttons
65 .ace-spinner.touch-spinner .spinbox-buttons {
66    margin: 0;
67    font-size: 0;
68    
69    .btn-sm {
70        width: 32px;
71        padding-left: 6px;
72        padding-right: 6px;
73    }
74    .btn-xs {
75       width: 24px;
76       padding-left: 4px;
77       padding-right: 4px;
78    }
79    .btn-lg {
80       width: 40px;
81       padding-left: 8px;
82       padding-right: 8px;
83    }
84 }
85 .ace-spinner.touch-spinner .spinbox-buttons > .btn {
86   margin: 0 1px !important;//to override .RTL's
87 }
88 .ace-spinner.touch-spinner .spinbox-buttons > .btn-xs {
89   padding-top: 3px;
90   padding-bottom: 3px;
91 }
92
93 .ace-spinner.touch-spinner .spinbox-buttons > .btn > .@{icon}{
94   vertical-align: middle;
95   display: inline-block;
96 }
97
98 }
99 .enable_plugin_fuelux_spinner();
100
101
102
103
104
105
106 //wizard
107 .enable_plugin_fuelux_wizard() when (@enable-plugin-fuelux-wizard = true) {
108 .steps  {
109     list-style:none;
110     display:table;
111     width:100%;
112     padding:0;
113     margin:0;
114     position:relative;
115     
116     li {
117         display: table-cell;
118         text-align: center;
119         width: 1%;
120
121         .step {
122             border: 5px solid @wizard-step-border;
123             color: @wizard-step-color;
124             font-size: @font-size-wizard-step;
125             border-radius: 100%;
126             background-color: #FFF;
127
128             position: relative;
129             z-index: 2;
130             display: inline-block;
131
132             width: 40px;
133             height: 40px;
134             line-height: 30px;
135             text-align: center;
136         }
137         
138         
139         &:before {//the line running through each step
140              display: block;
141              content: "";
142
143              width: 100%;
144              height: 1px;
145              font-size: 0;
146              overflow: hidden;
147              
148              border-top: 4px solid #CED1D6;
149              
150              position: relative;
151              top: 21px;
152              z-index: 1;
153         }
154         
155         &.last-child:before {
156             max-width:50%;
157             width:50%;
158         }
159         &:last-child:before {
160             max-width:50%;
161             width:50%;
162         }
163         &:first-child:before {
164             max-width:51%;
165             left:50%;
166         }
167         
168         
169         &.active, &.complete {
170             &:before, .step {
171                 border-color:@wizard-step-active-border;
172             }
173         }
174         
175         &.complete {
176             .step {
177                 cursor:default;
178                 color:#FFF;
179                 
180                 &:before {
181                     display:block;
182                     position:absolute;
183                     top:0; left:0; bottom:0; right:0;
184                     line-height:30px; text-align:center;
185                     border-radius: 100%;
186                      
187                     content:"\f00c";
188
189                     background-color: #FFF;
190                     z-index: 3;
191                      
192                     font-family: FontAwesome;
193                     font-size: @font-size-wizard-complete;
194                     color:@wizard-step-complete-color;
195                 }
196                 
197                 .transition(~"transform ease 0.1s");
198             }
199             &:hover {
200                 .step {
201                     .transform(~"scale(1.1)");
202                     border-color:lighten(@wizard-step-active-border , 12%);
203                 }
204                 &:before {
205                     border-color:lighten(@wizard-step-active-border , 12%);
206                 }
207             }
208         }
209         
210         
211         .title{
212             display:block;
213             margin-top:4px;
214             max-width:100%;
215              
216             color:@wizard-step-title-color;
217             font-size: @font-size-wizard-title;
218              
219             z-index:104;
220              
221             text-align:center;
222             table-layout:fixed;
223              
224             word-wrap:break-word;
225         }
226         &.complete .title , &.active .title{
227             color:@wizard-step-active-title-color;
228         }
229
230         
231         
232     }
233     
234 }
235
236 .step-content {
237  position: relative;
238 }
239 .step-content .step-pane {
240   display: none;
241   min-height: 200px;
242   padding: 4px 8px 12px;
243 }
244
245 .step-content .step-pane.active {
246   display: block;
247 }
248
249 .wizard-actions {
250  text-align:right;
251 }
252
253 @media only screen and (max-width: @screen-xs-max) {
254  .steps li .step {
255     width: 30px;
256     height: 30px;
257     line-height:24px;
258     border-width: 3px;
259  }
260  .steps li:before  , .steps li:after {
261     border-width: 3px;
262  }
263  .steps li.complete .step:before{
264     line-height: 24px;
265     font-size: @base-font-size;
266  }
267  .steps li:before {
268     top:16px;
269  }
270  
271  .step-content .step-pane {
272     padding: 4px 4px 6px;
273     min-height: 150px;
274  }
275 }
276
277
278 }
279 .enable_plugin_fuelux_wizard();
280
281
282
283
284
285
286
287 //tree control
288 .enable_plugin_fuelux_treeview() when (@enable-plugin-fuelux-treeview = true) {
289 @tree-border-color:#67B2DD;
290  .tree {
291     margin: auto;
292     padding: 0 0 0 9px;
293     overflow-x: hidden;
294     overflow-y: auto;
295     position: relative;
296     
297     &:before {
298         display:inline-block;
299         content: ""; 
300         
301         position: absolute;
302         top: -20px;
303         bottom: 16px;
304         left: 0;
305         z-index: 1;
306         
307         border:1px dotted @tree-border-color;
308         border-width: 0 0 0 1px;
309     }
310     
311     .tree-branch-name, .tree-item-name {
312         cursor: pointer;
313     }
314     
315     .icon-caret {
316         vertical-align: baseline !important;
317     }
318
319
320     .tree-branch {
321         width: auto;
322         min-height: 20px;
323         cursor: pointer;
324
325         .tree-branch-header {
326             position: relative;
327             height: 20px;
328             line-height: 20px;
329             
330             &:hover {
331                 background-color: rgba(98, 168, 209 , 0.1);
332             }
333         }
334         
335         //in folderSelect mode
336         .icon-caret + .tree-branch-header {
337             display: inline-block;
338             width: 80%;
339             width: ~"calc(100% - 36px)";
340         }
341         
342
343         &.tree-selected  > .tree-branch-header {
344             background-color: rgba(98, 168, 209 , 0.18);
345         }
346         
347         
348     }
349     
350     .tree-branch .tree-branch-header .tree-branch-name , .tree-item .tree-item-name {
351         display: inline;
352         z-index: 2;
353     }
354     .tree-branch .tree-branch-header > .tree-branch-name > .@{icon}:first-child , 
355     .tree-item > .tree-item-name > .@{icon}:first-child {
356       display: inline-block;
357       position: relative;
358       z-index: 2;      
359       top: -1px;
360     }
361     .tree-branch {
362         > .tree-branch-header {
363             > .tree-branch-name  {
364                 > .tree-label {
365                     margin-left: 2px;
366                 }
367                 > .@{icon}:first-child {
368                     margin: -2px 0 0 -2px;
369                 }
370             }
371         }
372         &:last-child:after {
373             display: inline-block;
374             content: "";
375             
376             position: absolute; 
377             z-index: 1;
378             top: 15px;
379             bottom: 0;
380             left: -15px;
381             border-left: 1px solid #FFF;
382         }
383         .tree-branch-children {
384             margin: 0 0 0 23px;
385             padding: 0;
386             position: relative;
387             
388             &:before {
389                 display: inline-block;
390                 content: "";
391
392                 position: absolute;
393                 z-index: 1;
394                 top: -14px;
395                 bottom: 16px;
396                 left: -14px;
397
398                 border: 1px dotted @tree-border-color;
399                 border-width: 0 0 0 1px;
400             }
401         }
402     }
403
404     
405     .tree-branch.tree-selected > .icon-caret + .tree-branch-header > .tree-branch-name > .tree-label {
406         font-weight: bold;
407     }
408
409
410
411     .tree-item {
412         position: relative;
413         height: 20px;
414         line-height: 20px;
415         cursor: pointer;
416         
417         max-width: ~"calc(100% - 20px)";
418         
419         &:hover {
420             background-color: rgba(98, 168, 209 , 0.1);
421         }
422         
423         &.tree-selected {
424             & , &:hover {
425                 background-color: rgba(98, 168, 209 , 0.16);
426             }
427         }
428         
429         
430     
431         > .tree-item-name {
432             > .@{icon}:first-child {
433                 margin-right: 3px;
434             }
435             > .tree-label > .@{icon}:first-child {
436                 margin-left: 3px;
437                 margin-right: 3px;
438             }
439         }
440         > .@{icon}:first-child {
441             margin-top: -1px;
442         }
443     }
444     
445     .tree-branch , .tree-item {
446         position: relative;
447         list-style: none;
448         
449         &:before {
450             display: inline-block;
451             content: ""; 
452             position: absolute;
453             top: 14px;
454             left: -13px;
455             
456             width: 18px;
457             height: 0;
458             
459             border-top: 1px dotted @tree-border-color;
460          
461             z-index:1;
462         }
463     }
464     
465
466     .tree-selected {
467         //background-color: rgba(98, 168, 209 , 0.1);
468         color: #6398B0;
469         //&:hover {
470             //background-color: rgba(98, 168, 209 , 0.1);
471         //}
472     }
473
474     .tree-item  , .tree-branch {
475         border-left: 1px solid #FFF;
476         margin: 1px 0;
477     }
478
479     .tree-branch .tree-branch-header {
480         border-radius: 0;
481     }
482     .tree-item  , .tree-branch .tree-branch-header {
483         //margin: 0;
484         padding: 5px;
485         color: #4D6878;
486         
487         .box-sizing(content-box);
488     }
489
490
491     .tree-item > .tree-item-name > .@{icon}:first-child {
492         color: #F9E8CE;
493         border: 1px solid #CCC;
494         width: 13px;
495         height: 13px;
496         line-height: 13px;
497         font-size: @font-size-tree-icon;
498         text-align: center;
499
500         border-radius: 3px;
501         
502         .box-sizing(content-box);
503
504         background-color: #FAFAFA;
505         border: 1px solid #CCC;
506         box-shadow: 0 1px 2px rgba(0, 0, 0, 0.05);
507     }
508
509     .tree-selected > .tree-item-name > .@{icon}:first-child {
510         background-color: #F9A021;
511         border-color: #F9A021;
512         color: #FFF;
513     }
514
515
516     .tree-plus.@{icon}:first-child , .tree-minus.@{icon}:first-child {
517         display: inline-block;
518         font-style: normal;
519          border: 1px solid #DDD;
520          vertical-align: middle;
521          height: 11px;
522          width: 11px;
523          .box-sizing(content-box);
524          
525          text-align:center;
526
527          border: 1px solid #8BAEBF;
528          line-height: 10px;
529          background-color: #FFF;
530          
531          position: relative;
532          z-index: 2;
533          
534          &:before {
535             content: "";
536             display: block;
537             width: 7px;
538             height: 0;
539             border-top: 1px solid #4D6878;
540
541             position: absolute;
542             top: 5px;
543             left: 2px;
544          }
545     }
546     .tree-plus.@{icon}:first-child:after {
547         content: "";
548         display: block;
549         height: 7px;
550         width: 0;
551         border-left: 1px solid #4D6878;
552
553         position: absolute;
554         top: 2px;
555         left: 5px;
556     }
557     
558     .tree-unselectable .tree-item > .tree-item-name > .tree-label > .@{icon}:first-child {
559         color: #5084A0;
560         border: none;
561         width: 13px;
562         height: 13px;
563         line-height: 13px;
564         
565         font-size: @font-size-tree-icon - 1;
566         text-align: center;
567         border-radius: 0;
568
569         background-color: transparent;
570         border: none;
571         box-shadow: none;
572     }
573     
574     
575     .@{icon}[class*="-down"] {
576         transform: rotate(-45deg);
577     }
578     .@{icon}[class*="-download"] {
579         transform: none;
580     }
581     
582     .fa-spin {
583         height: auto;
584     }
585     .tree-loading {
586         margin-left: 36px;
587     }
588     
589     img {
590         display: inline;
591         veritcal-align: middle;
592     }
593     
594     
595     .icon-open {
596         width: 16px;
597
598         position: relative;
599         z-index: 2;
600         
601         padding-left: 2px;        
602     }
603     
604     .tree .tree-open > .tree-branch-header .icon-open {
605         .rotate(90deg);
606     }
607  }
608
609  
610  .tree-container {
611     background-color: #FFF;
612     border: 1px solid #DDD;
613     border-left-color: @tree-border-color;
614     
615     display: block;
616     padding: 0;
617     
618     max-width: 200px;
619     max-height: 250px;
620
621     
622     .tree::before {
623         margin-left: -1px;
624     }
625  }
626
627 }
628 .enable_plugin_fuelux_treeview();