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