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