Subversion Repositories Integrator Subversion

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
1 espaco 1
/***
2
Portlets
3
***/
4
 
5
/* Full Screen portlet mode */
6
 
7
.page-portlet-fullscreen {
8
    overflow: hidden;
9
}
10
 
11
/* Basic portlet */
12
 
13
.portlet  {
14
    margin-top: 0px;
15
    margin-bottom: 25px;
16
    padding: 0px;
17
 
18
    @include border-radius($portlet-border-radius);
19
 
20
    &.portlet-fullscreen {
21
        z-index: $zindex-modal + 10;
22
        margin: 0;
23
        position: fixed;
24
        top:0;
25
        left:0;
26
        bottom:0;
27
        right: 0;
28
        width: 100%;
29
        height: 100%;
30
        background: #fff;
31
 
32
        > .portlet-body {
33
            overflow-y: auto;
34
            overflow-x: hidden;
35
            padding: 0 10px;
36
        }
37
 
38
        > .portlet-title {
39
            padding: 0 10px;
40
        }
41
    }
42
 
43
    > .portlet-title {
44
        border-bottom: 1px solid #eee;
45
        padding: 0;
46
        margin-bottom: 10px;
47
        min-height: 41px;
48
 
49
        @include border-radius($portlet-border-radius $portlet-border-radius 0 0);
50
 
51
        @include clearfix();
52
 
53
        > .caption {
54
            float: left;
55
            display: inline-block;
56
            font-size: 18px;
57
            line-height: 18px;
58
            font-weight: 300;
59
            padding: 10px 0;
60
 
61
            &.bold {
62
                font-weight: 400;
63
            }
64
 
65
            > i {
66
                float: left;
67
                margin-top: 4px;
68
                display: inline-block;
69
                font-size: 13px;
70
                margin-right: 5px;
71
                color: #666;
72
 
73
                &.glyphicon {
74
                    margin-top: 2px;
75
                }
76
            }
77
 
78
            > .caption-helper {
79
                padding: 0;
80
                margin: 0;
81
                line-height: 13px;
82
                color: #9eacb4;
83
                font-size: 13px;
84
                font-weight: 400;
85
            }
86
        }
87
 
88
        > .actions {
89
            float: right;
90
            display: inline-block;
91
            padding: 6px 0;
92
 
93
            > .dropdown-menu i {
94
                color: #555555;
95
            }
96
 
97
            > .btn,
98
            > .btn.btn-sm,
99
            > .btn-group > .btn,
100
            > .btn-group > .btn.btn-sm, {
101
                padding: 4px 10px;
102
 
103
                &.btn-default {
104
                    padding: 3px 9px;
105
                }
106
 
107
                font-size: 13px;
108
                line-height: 1.5;
109
 
110
                > i {
111
                    font-size: 13px;
112
                }
113
            }
114
 
115
            .btn-icon-only {
116
                padding: 5px 7px 3px 7px;
117
 
118
                &.btn-default {
119
                    padding: 4px 6px 2px 6px;
120
 
121
                    > i {
122
                        font-size: 14px;
123
                    }
124
 
125
                    &.fullscreen {
126
                        font-family: FontAwesome;
127
                        color: lighten(#8c8c8c, 8%);
128
                        padding-top: 3px;
129
 
130
                        &.btn-sm {
131
                            padding: 3px 3px !important;
132
                            height: 27px;
133
                            width: 27px;
134
                        }
135
 
136
                        &:before {
137
                            content: "\f065";
138
                        }
139
 
140
                        &.on {
141
                            &:before {
142
                                content: "\f066";
143
                            }
144
                        }
145
                    }
146
                }
147
            }
148
        }
149
 
150
        > .tools {
151
            float: right;
152
            display: inline-block;
153
            padding: 12px 0 8px 0;
154
 
155
            > a {
156
                display: inline-block;
157
                height: 16px;
158
                margin-left:5px;
159
                @include opacity(1)
160
            }
161
 
162
            > a.remove {
163
                background-image:url(../img/portlet-remove-icon.png);
164
                background-repeat: no-repeat;
165
                width: 11px;
166
            }
167
 
168
            > a.config {
169
                background-image:url(../img/portlet-config-icon.png);
170
                background-repeat: no-repeat;
171
                width: 12px;
172
            }
173
 
174
            > a.reload {
175
                background-image:url(../img/portlet-reload-icon.png);
176
                width: 13px;
177
            }
178
 
179
            > a.expand {
180
                background-image:url(../img/portlet-expand-icon.png);
181
                width: 14px;
182
                visibility: visible;
183
            }
184
 
185
            > a.collapse {
186
                background-image:url(../img/portlet-collapse-icon.png);
187
                width: 14px;
188
                visibility: visible;
189
            }
190
 
191
            > a.fullscreen {
192
                display: inline-block;
193
                top: -3px;
194
                position: relative;
195
                font-size: 13px;
196
                font-family: FontAwesome;
197
                color: #ACACAC;
198
 
199
                &:before {
200
                    content: "\f065";
201
                }
202
 
203
                &.on {
204
                    &:before {
205
                        content: "\f066";
206
                    }
207
                }
208
            }
209
 
210
            > a:hover {
211
                text-decoration: none;
212
                -webkit-transition: all 0.1s ease-in-out;
213
                -moz-transition: all 0.1s ease-in-out;
214
                -o-transition: all 0.1s ease-in-out;
215
                -ms-transition: all 0.1s ease-in-out;
216
                transition: all 0.1s ease-in-out;
217
 
218
                @include opacity(0.8);
219
            }
220
        }
221
 
222
        > .pagination {
223
            float: right;
224
            display: inline-block;
225
            margin: 2px 0 0 0;
226
            border: 0;
227
            padding: 4px 0;
228
        }
229
 
230
        > .nav-tabs {
231
            background: none;
232
            margin: 0;
233
            float: right;
234
            display: inline-block;
235
            border: 0;
236
 
237
            > li {
238
                background: none;
239
                margin: 0;
240
                border: 0;
241
 
242
                > a {
243
                    background: none;
244
                    margin: 5px 0 0 1px;
245
                    border: 0;
246
                    padding: 8px 10px;
247
                    color: #fff;
248
                }
249
 
250
                &.active > a,
251
                &:hover > a {
252
                    color: #333;
253
                    background: #fff;
254
                    border: 0;
255
                }
256
            }
257
        }
258
    }
259
 
260
    > .portlet-body {
261
        clear: both;
262
        @include border-radius(0 0 $portlet-border-radius $portlet-border-radius);
263
    }
264
 
265
    > .portlet-empty {
266
        min-height: 125px;
267
    }
268
 
269
    &.full-height-content {
270
        margin-bottom: 0;
271
    }
272
}
273
 
274
/* Portlet background colors */
275
 
276
@mixin porlet-background($name, $color) {
277
 
278
    .portlet > .portlet-body.#{$name},
279
    .portlet.#{$name} {
280
        background-color: $color;
281
    }
282
 
283
}
284
 
285
//@include porlet-background("red", $metronic-red);
286
 
287
/* Side bordered portlet */
288
 
289
.portlet.bordered {
290
    border-left: 2px solid #e6e9ec !important;
291
 
292
    > .portlet-title {
293
        border-bottom: 0;
294
    }
295
}
296
 
297
/* Solid colored portlet */
298
 
299
.portlet.solid {
300
    padding: 0 10px 10px 10px;
301
    border: 0px;
302
 
303
    > .portlet-title {
304
        border-bottom: 0;
305
        margin-bottom: 10px;
306
 
307
        > .caption {
308
            padding: 16px 0 2px 0;
309
        }
310
 
311
        > .actions {
312
            padding: 12px 0 6px 0;
313
        }
314
 
315
        > .tools {
316
            padding: 14px 0 6px 0;
317
        }
318
    }
319
}
320
 
321
@mixin porlet-solid($name, $color) {
322
 
323
    .portlet.solid.#{$name} {
324
 
325
        > .portlet-title,
326
        > .portlet-body {
327
            border: 0;
328
            color: $color;
329
        }
330
 
331
        > .portlet-title {
332
            > .caption {
333
                > i {
334
                    color: $color;
335
                }
336
            }
337
 
338
            > .tools {
339
                > a.remove {
340
                    background-image:url(../img/portlet-remove-icon-white.png);
341
                }
342
 
343
                > a.config {
344
                    background-image:url(../img/portlet-config-icon-white.png);
345
                }
346
 
347
                > a.reload {
348
                    background-image:url(../img/portlet-reload-icon-white.png);
349
                }
350
 
351
                > a.expand {
352
                    background-image:url(../img/portlet-expand-icon-white.png);
353
                }
354
 
355
                > a.collapse {
356
                    background-image:url(../img/portlet-collapse-icon-white.png);
357
                }
358
 
359
                > a.fullscreen {
360
                    color: #fdfdfd;
361
                }
362
            }
363
        }
364
    }
365
}
366
 
367
//@include porlet-solid("red", $metronic-blue-text);
368
 
369
/* Solid bordered portlet */
370
 
371
.portlet.solid.bordered > .portlet-title {
372
  margin-bottom: 10px;
373
}
374
 
375
/* Box portlet */
376
 
377
.portlet.box {
378
    padding:0px !important;
379
 
380
    > .portlet-title {
381
        border-bottom: 0;
382
        padding: 0 10px;
383
        margin-bottom: 0;
384
        color: #fff;
385
 
386
        > .caption {
387
            padding: 11px 0 9px 0;
388
        }
389
 
390
        > .tools {
391
            > a.remove {
392
                background-image:url(../img/portlet-remove-icon-white.png);
393
            }
394
 
395
            > a.config {
396
                background-image:url(../img/portlet-config-icon-white.png);
397
            }
398
 
399
            > a.reload {
400
                background-image:url(../img/portlet-reload-icon-white.png);
401
            }
402
 
403
            > a.expand {
404
                background-image:url(../img/portlet-expand-icon-white.png);
405
            }
406
 
407
            > a.collapse {
408
                background-image:url(../img/portlet-collapse-icon-white.png);
409
            }
410
 
411
            > a.fullscreen {
412
                color: #fdfdfd;
413
            }
414
        }
415
 
416
        > .actions {
417
            padding: 7px 0 5px 0;
418
        }
419
    }
420
 
421
    > .portlet-body {
422
        background-color: #fff;
423
        padding: 10px;
424
    }
425
 
426
    &.portlet-fullscreen {
427
        > .portlet-body {
428
            padding: 10px;
429
        }
430
    }
431
}
432
 
433
@mixin porlet-box($name, $color, $text-color) {
434
 
435
    .portlet.box.#{$name} {
436
        border: 1px solid lighten($color, 10%);
437
        border-top: 0;
438
 
439
        > .portlet-title {
440
            background-color: $color;
441
 
442
            > .caption {
443
                color: $text-color;
444
                > i {
445
                    color: $text-color;
446
                }
447
            }
448
 
449
            > .actions {
450
                .btn-default {
451
                    background: transparent !important;
452
                    background-color: transparent !important;
453
                    border: 1px solid lighten($color, 22%);
454
                    color: lighten($color, 27%);
455
 
456
                    > i {
457
                        color: lighten($color, 30%);
458
                    }
459
 
460
                    &:hover,
461
                    &:focus,
462
                    &:active,
463
                    &.active {
464
                        border: 1px solid lighten($color, 32%);
465
                        color: lighten($color,37%);
466
                    }
467
                }
468
            }
469
        }
470
    }
471
}
472
 
473
//@include porlet-box("red", $metronic-red, $metronic-red-text);
474
 
475
/* Light Portlet */
476
 
477
.portlet.light {
478
    padding: 12px 20px 15px 20px;
479
    background-color: #fff;
480
 
481
    &.bordered {
482
        border: 1px solid #e1e1e1 !important;
483
 
484
        > .portlet-title {
485
            border-bottom: 1px solid #eee;
486
        }
487
    }
488
 
489
    &.bg-inverse {
490
        background: #F7F7F7;
491
    }
492
 
493
    > .portlet-title {
494
        padding: 0;
495
        min-height: 48px;
496
 
497
        > .caption {
498
            color: #666;
499
            padding: 10px 0;
500
 
501
            > .caption-subject {
502
                font-size: 16px;
503
            }
504
 
505
            > i {
506
                color: #777;
507
                font-size: 15px;
508
                font-weight: 300;
509
                margin-top: 3px;
510
            }
511
 
512
            &.caption-md {
513
                > .caption-subject {
514
                    font-size: 15px;
515
                }
516
 
517
                > i {
518
                    font-size: 14px;
519
                }
520
            }
521
        }
522
 
523
        > .actions {
524
            padding: 6px 0 14px 0;
525
 
526
            .btn-default {
527
                color: #666;
528
            }
529
 
530
            .btn-icon-only {
531
                height: 27px;
532
                width: 27px;
533
            }
534
 
535
            .dropdown-menu {
536
                li > a {
537
                    color: #555;
538
                }
539
            }
540
        }
541
 
542
        > .inputs {
543
            float: right;
544
            display: inline-block;
545
            padding: 4px 0;
546
 
547
            > .portlet-input {
548
                .input-icon {
549
                    > i {
550
                        font-size: 14px;
551
                        margin-top: 9px;
552
                    }
553
 
554
                    > .form-control {
555
                        height: 30px;
556
                        padding: 2px 26px 3px 10px;
557
                        font-size: 13px;
558
                    }
559
                }
560
 
561
                > .form-control {
562
                    height: 30px;
563
                    padding: 3px 10px;
564
                    font-size: 13px;
565
                }
566
            }
567
        }
568
 
569
        > .pagination {
570
            padding: 2px 0 13px 0;
571
        }
572
 
573
        > .tools {
574
            padding: 10px 0 13px 0;
575
            margin-top: 2px;
576
        }
577
 
578
        > .nav-tabs {
579
            > li {
580
                margin: 0;
581
                padding: 0;
582
 
583
                > a {
584
                    margin: 0;
585
                    padding: 12px 13px 13px 13px;
586
                    font-size: 13px;
587
                    color: #666;
588
                }
589
 
590
                &.active > a,
591
                &:hover > a {
592
                    margin: 0;
593
                    background: none;
594
                    color: #333;
595
                }
596
            }
597
        }
598
    }
599
 
600
    &.form-fit {
601
        padding: 0;
602
 
603
        > .portlet-title {
604
            padding: 17px 20px 10px 20px;
605
            margin-bottom: 0;
606
        }
607
    }
608
 
609
    .portlet-body {
610
        padding-top: 8px;
611
    }
612
 
613
    &.portlet-fullscreen {
614
        > .portlet-body {
615
            padding: 8px 0;
616
        }
617
    }
618
}
619
 
620
.tab-pane {
621
    > p:last-child {
622
        margin-bottom: 0px;
623
    }
624
}
625
 
626
/* Reverse aligned tabs */
627
 
628
.tabs-reversed {
629
    > li {
630
        float: right;
631
        margin-right: 0;
632
 
633
        > a {
634
            margin-right: 0;
635
        }
636
    }
637
}
638
 
639
/* jQuery UI Draggable Portlets */
640
.portlet-sortable:not(.portlet-fullscreen) {
641
    > .portlet-title {
642
        cursor: move;
643
    }
644
}
645
 
646
.portlet-sortable-placeholder {
647
    border: 2px dashed #eee;
648
    margin-bottom: 25px;
649
}
650
 
651
.portlet-sortable-empty {
652
    height: 45px;
653
}