2.3.0+2 -> 2.3.1
[bootswatch] / amelia / bootswatch.less
1 // Amelia 2.3.1
2 // Bootswatch
3 // -----------------------------------------------------
4
5
6 // TYPOGRAPHY
7 // -----------------------------------------------------
8
9 @import url('//fonts.googleapis.com/css?family=Lobster|Cabin:400,700');
10
11 h6 {
12         color: @textColor;
13 }
14
15 h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
16         font-family: @baseFontFamily;
17         color: @textColor;
18 }
19
20 code, pre {
21         background-color: rgba(255, 255, 255, 0.3);
22         padding: 2px;
23 }
24
25 blockquote {
26
27         border-left-color: lighten(#147E88, 12%);
28
29         &.pull-right {
30                 border-right-color: lighten(#147E88, 12%);
31         }
32
33         small {
34                 color: rgba(255, 255, 255, 0.6);
35         }
36 }
37
38 .muted {
39         color: rgba(255, 255, 255, 0.5);
40 }
41
42 // SCAFFOLDING
43 // -----------------------------------------------------
44
45 body {
46         #gradient > .radial(lighten(#0F8790, 7%), #0F8790);
47 }
48
49 hr {
50         border-bottom: none;
51 }
52
53 .page-header {
54         margin: 30px 0 15px;
55         border-bottom: 0px solid transparent;
56 }
57
58 // NAVBAR
59 // -----------------------------------------------------
60
61 .navbar {
62
63         .navbar-inner {
64                 .border-radius(0);
65         }
66
67         .brand {
68                 padding: 15px 20px 14px;
69                 font-family: @headingsFontFamily;
70                 font-size: 24px;
71                 font-weight: normal;
72         }
73
74         .nav > li > a {
75                 padding-top: 17px;
76                 padding-bottom: 14px;
77                 text-shadow: none;
78         }
79
80         .nav > .active > a,
81         .nav > .active > a:hover,
82         .navbar .nav > .active > a:focus {
83                 .box-shadow(none);
84         }
85
86         .navbar-search {
87                 margin-top: 10px;
88         }
89
90         .navbar-search .search-query {
91                 .border-radius(0);
92                 padding-top: 5px;
93                 padding-bottom: 5px;
94         }
95
96         .navbar-text {
97                 margin: 17px 15px 14px;
98                 line-height: 20px;
99         }
100
101         .btn,
102         .btn-group {
103                 padding: 4px;
104         }
105
106         &-inverse {
107
108                 .dropdown-menu li > a:hover,
109                 .dropdown-menu li > a:focus,
110                 .dropdown-submenu:hover > a {
111                         background-image: none;
112                         background-color: @yellow;
113                 }
114         }
115 }
116
117 @media (max-width: @navbarCollapseWidth) {
118
119         .navbar .nav-collapse {
120
121                 .nav li > a {
122
123                         color: @textColor;
124                         .border-radius(0);
125
126                         &:hover {
127                                 background-color: lighten(@navbarBackground, 10%);
128                         }
129                 }
130
131                 .dropdown-menu li > a:hover,
132                 .dropdown-menu li > a:focus,
133                 .dropdown-submenu:hover > a {
134                         background-image: none;
135                 }
136
137                 .navbar-form,
138                 .navbar-search {
139                         .box-shadow(none);
140                         border: none;
141                 }
142
143                 .navbar-search .search-query {
144                         border: 2px solid @textColor;
145                 }
146
147                 .nav-header {
148                         color: rgba(255, 255, 255, 0.5);
149                 }
150         }
151
152         .navbar-inverse .nav-collapse {
153
154                 .nav > li > a,
155                 .dropdown-menu a {
156                         color: @navbarInverseLinkColor !important;
157                 }
158
159                 .nav li > a:hover,
160                 .dropdown-menu a:hover {
161                         background-color: lighten(@navbarInverseBackground, 10%) !important;
162                 }
163         }
164 }
165
166 div.subnav {
167
168         margin: 0 1px;
169         background: rgba(42, 99, 105, 0.9) none;
170         border: none;
171         .border-radius(0);
172         .box-shadow(none);
173
174         .nav > li > a {
175                 color: @textColor;
176                 border-color: transparent;
177         }
178
179         .nav > li:first-child > a,
180         .nav > li:first-child > a:hover {
181                 .border-radius(0);
182         }
183
184         .nav > .active > a {
185                 background-color: rgba(255, 255, 255, 0.4);
186                 border-color: transparent;
187                 color: @textColor;
188                 .box-shadow(none);
189         }
190
191         .nav > li > a:hover,
192         .nav > .active > a:hover, {
193                 border-right-color: transparent;
194                 background-color: rgba(255, 255, 255, 0.4);
195                 color: @textColor;
196         }
197
198         .nav > li.open > a {
199                 border-color: transparent;
200                 background-color: rgba(255, 255, 255, 0.4);
201         }
202
203         &-fixed {
204                 top: @navbarHeight + 1;
205                 margin: 0;
206         }
207 }
208
209 // NAV
210 // -----------------------------------------------------
211
212 .nav-tabs li.open > .dropdown-toggle,
213 .nav-pills li.open > .dropdown-toggle {
214         background-color: #8AD5DC;
215         color: @linkColor;
216         border-color: transparent;
217 }
218
219 .nav-tabs, .nav-pills {
220         border-color: transparent;
221
222         li > a {
223                 border-color: transparent;
224                 .border-radius(0);
225                 .box-shadow(0);
226         }
227
228         li.active > a,
229         li.active > a:hover {
230                 color: @textColor;
231         }
232
233         li.active > a,
234         li > a:hover,
235         li.active > a:hover {
236                 background-color: #8AD5DC;
237                 border-color: transparent;
238                 text-shadow: none;
239         }
240 }
241
242 .nav-tabs, .nav-tabs > li > a {
243         border-bottom: 1px solid rgba(255, 255, 255, 0.5);
244 }
245
246 .nav-tabs > li > a {
247         background-color: #3CB9C6;
248 }
249
250 .nav-tabs.nav-stacked {
251
252         li > a:first-child,
253         li > a:last-child {
254                 .border-radius(0);
255         }
256
257         li > a,
258         li > a:hover,
259         li.active > a,
260         li.active > a:hover {
261                 border-color: transparent;
262         }
263 }
264
265 .nav-list {
266
267         .nav-header {
268                 text-shadow: none;
269                 color: @textColor;
270         }
271
272         li > a {
273                 text-shadow: none;
274         }
275
276         li.active > a,
277         li > a:hover,
278         li.active > a:hover {
279                 background-color: #8AD5DC;
280                 text-shadow: none;
281         }
282
283         .divider {
284                 background-color: rgba(255, 255, 255, 0.3);
285                 border-bottom: none;
286         }
287 }
288
289 .breadcrumb, .pager > li > a {
290         border-color: transparent;
291         .border-radius(0);
292         .box-shadow(none);
293         text-shadow: none;
294 }
295
296 .breadcrumb {
297         background-color: #3CB9C6;
298         background-image: none;
299
300         li {
301                 text-shadow: none;
302         }
303
304         .active {
305                 color: @white;
306         }
307
308         .divider {
309                 color: @linkColor;
310         }
311 }
312
313 .pagination {
314
315         ul  {
316                 background-color: @paginationBackground;
317                 background-image: none;
318                 .border-radius(0);
319         }
320
321         ul > li > a:hover {
322                 background-color: rgba(255, 255, 255, 0.4);
323                 color: @linkColor;
324         }
325
326         ul > li:first-child > a,
327         ul > li:last-child > a {
328                 .border-radius(0);
329         }
330
331         ul > .disabled > a,
332         ul > .disabled > a:hover,
333         ul > .disabled > span,
334         ul > .disabled > span:hover {
335                 color: @textColor;
336         }
337
338         ul > .active > a,
339         ul > .active > a:hover,
340         ul > .active > span,
341         ul > .active > span:hover {
342                 background-color: rgba(255, 255, 255, 0.4);
343                 color: @textColor;
344         }
345 }
346
347 .pager {
348
349         li > a {
350                 background-color: #3CB9C6;
351
352                 &:hover {
353                         background-color: #8AD5DC;
354                 }
355         }
356
357         .disabled a,
358         .disabled a:hover {
359                 background-color: #3CB9C6;
360                 color: @white;
361         }
362 }
363
364 // BUTTONS
365 // -----------------------------------------------------
366
367 .buttonBackgroundCustom(@color) {
368
369   background-color: @color;
370   border-color: transparent;
371
372   &:hover, &:active, &.active, &.disabled, &[disabled] {
373     background-color: darken(@color, 5%);
374         text-shadow: none;
375   }
376
377   &:active, &.active {
378     background-color: darken(@color, 15%);
379         .box-shadow(none);
380   }
381
382   // IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
383   &:active,
384   &.active {
385     background-color: darken(@color, 15%) e("\9");
386   }
387 }
388
389 .btn {
390         padding: 12px 16px;
391         .border-radius(0);
392         background-image: none;
393         text-shadow: none;
394         .box-shadow(none);
395         .buttonBackgroundCustom(@btnBackground)
396 }
397
398 .btn-large {
399         padding: @paddingLarge;
400 }
401
402 .btn-small {
403         padding: @paddingSmall;
404 }
405
406 .btn-mini {
407         padding: @paddingMini;
408 }
409
410 .btn-group .btn:first-child {
411         margin-left: 0;
412         .border-radius(0);
413 }
414
415 .btn-group .btn:last-child,
416 .btn-group .dropdown-toggle {
417      .border-radius(0);
418 }
419
420 .btn-group .dropdown-toggle,
421 .btn-group.open .dropdown-toggle,
422 .btn.open .dropdown-toggle {
423         .box-shadow(none);
424 }
425
426 .btn-primary {
427   .buttonBackgroundCustom(@btnPrimaryBackground);
428 }
429
430 .btn-info {
431   .buttonBackgroundCustom(@btnInfoBackground);
432 }
433
434 .btn-success {
435   .buttonBackgroundCustom(@btnSuccessBackground);
436 }
437
438 .btn-warning {
439   .buttonBackgroundCustom(@btnWarningBackground);
440 }
441
442 .btn-danger {
443   .buttonBackgroundCustom(@btnDangerBackground);
444 }
445
446 .btn-inverse {
447   .buttonBackgroundCustom(@btnInverseBackground);
448 }
449
450 .btn-link {
451         .buttonBackgroundCustom(@btnPrimaryBackground);
452 }
453
454 .btn-small [class^="icon-"] {
455         margin-top: 1px;
456 }
457
458 .add-on [class^="icon-"] {
459         margin-left: 5px;
460 }
461
462 // TABLES
463 // -----------------------------------------------------
464
465 .table th, .table td,
466 .table tbody + tbody {
467         border-top: 0px solid transparent;
468 }
469
470 .table-bordered {
471         .border-radius(0);
472 }
473
474 .table tbody {
475
476         tr.success td {
477                 background-color: @green;
478         }
479
480         tr.error td {
481                 background-color: @red;
482         }
483
484         tr.info td {
485                 background-color: @blue;
486         }
487 }
488
489 // FORMS
490 // -----------------------------------------------------
491
492 legend {
493         font-family: @headingsFontFamily;
494 }
495
496 legend, label, .help-block, .input-file {
497         color: @textColor;
498         border: 0px solid transparent;
499 }
500
501 input, textarea, .uneditable-input {
502         border: 0px solid transparent;
503         padding: 10px;
504 }
505
506 .uneditable-input {
507         padding-bottom: 30px;
508 }
509
510 select {
511         border: 0px solid transparent;
512 }
513
514 button {
515         margin-left: 12px;
516 }
517
518 input, textarea, .search-query, .uneditable-input,
519 .input-append input, .input-append .uneditable-input,
520 .input-prepend input, .input-prepend .uneditable-input {
521         border-color: transparent;
522         .box-shadow(none);
523 }
524
525 .form-actions {
526         border-top: 0px solid transparent;
527 }
528
529 .control-group.warning {
530
531         .control-label,
532         .help-block,
533         .help-inline {
534                 color: lighten(@orange, 30%);
535         }
536 }
537
538 .control-group.error {
539
540         .control-label,
541         .help-block,
542         .help-inline {
543                 color: lighten(@linkColor, 10%);
544         }
545 }
546
547 .control-group.success {
548
549         .control-label,
550         .help-block,
551         .help-inline {
552                 color: lighten(@green, 20%);
553         }
554 }
555
556 .input-prepend .add-on,
557 .input-append .add-on {
558         height: 20px;
559         padding-top: 4px;
560         background-color: @grayLighter;
561         border-color: transparent;
562         .border-radius(0);
563         color: @gray;
564         text-shadow: none;
565 }
566
567 .input-append .btn,
568 .input-prepend .btn {
569         padding: 4px 10px;
570 }
571
572 // ALERTS, LABELS, BADGES
573 // -----------------------------------------------------
574
575 .alert {
576
577         border-color: transparent;
578         .border-radius(0);
579         .box-shadow(none);
580         text-shadow: none;
581
582         h1, h2, h3, h4, h5, h6 {
583                 color: @textColor;
584         }
585
586         &-heading {
587                 color: @textColor;
588         }
589 }
590
591 .label,
592 .badge {
593
594         background-color: @blue;
595
596         &-success {
597                 background-color: @green;
598         }
599
600         &-important {
601                 background-color: @red;
602         }
603
604         &-warning {
605                 background-color: @orange;
606         }
607
608         &-info {
609                 background-color: @purple;
610         }
611
612         &-inverse {
613                 background-color: @btnInverseBackground;
614         }
615
616 }
617
618 // MISCELLANEOUS
619 // -----------------------------------------------------
620
621 .progress, .well, pre, code {
622         border-color: transparent;
623         .border-radius(0);
624         .box-shadow(none);
625         text-shadow: none;
626 }
627
628 .well {
629         background-image: none;
630 }
631
632 .hero-unit {
633         .border-radius(0);
634 }
635
636 .thumbnail {
637         border: 0 solid transparent;
638         .border-radius(0);
639         .box-shadow(none);
640 }
641
642 .progress {
643
644         background-image: none;
645         background-color: #27666D;
646
647         .bar {
648
649                 .box-shadow(none);
650                 background-image: none;
651                 background-color: @yellow;
652
653                 &-success {
654                         background-color: @green;
655                 }
656
657                 &-warning {
658                         background-color: @orange;
659                 }
660
661                 &-error {
662                         background-color: @red;
663                 }
664         }
665 }
666
667 .progress-danger .bar {
668         background-image: none;
669         background-color: #AD1D28;
670 }
671
672 .progress-danger.progress-striped .bar {
673         #gradient > .striped(#AD1D28);
674 }
675
676 .progress-success .bar {
677         background-image: none;
678         background-color: @green;
679 }
680
681 .progress-success.progress-striped .bar {
682         #gradient > .striped(@green);
683 }
684
685 .progress-info .bar {
686         background-image: none;
687         background-color: @blue;
688 }
689
690 .progress-info.progress-striped .bar {
691         #gradient > .striped(@blue);
692 }
693
694 .modal {
695
696         .border-radius(0);
697
698         &-header {
699                 background-color: @navbarBackground;
700                 color: @white;
701         }
702
703         &-body {
704                 
705                 color: @grayDark;
706
707                 h1, h2, h3, h4, h5, h6,
708                 legend {
709                         color: @red;
710                 }
711
712                 label,
713                 .input-file {
714                         color: @grayDark;
715                 }
716
717                 .help-block,
718                 .help-inline {
719                         color: @grayLight;
720                 }
721
722                 textarea,
723                 input,
724                 .uneditable-input {
725                         border: 1px solid @grayLight;
726                 }
727         }
728 }
729
730 .popover {
731         
732         padding: 0;
733         .border-radius(0);
734         color: @grayDark;
735
736         .popover-title {
737                 .border-radius(0);
738                 color: @white;
739         }
740 }
741
742 // MEDIA QUERIES
743 // -----------------------------------------------------