all: fixes pagination issues, closes #37
[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         .btn-navbar {
131                 margin-top: 14px;
132         }
133
134         .navbar-form, .navbar-search {
135                 border-color: transparent;
136                 .box-shadow(none);
137         }
138 }
139
140 @media (max-width: @navbarCollapseWidth) {
141
142         .navbar .nav-collapse {
143
144                 .nav li > a {
145                         color: @headingsColor;
146
147                         &:hover {
148                                 color: @yellow;
149                                 background-color: @blue;
150                         }
151                 }       
152         }
153
154         .navbar-inverse .nav-collapse {
155
156                 .nav li > a:hover {
157                         background-color: rgba(0, 0, 0, 0.06) !important;
158                 }
159
160         }
161 }
162
163 div.subnav {
164         background-color: @green;
165         background-image: none;
166         border-color: transparent;
167         .box-shadow(0 1px 5px rgba(0,0,0,.1));
168         font-size: 18px;
169
170         .nav > li > a {
171                 padding: 13px 12px 9px;
172                 border-color: transparent;
173                 background-color: transparent;
174                 font-family: @headingsFontFamily;
175                 font-weight: @headingsFontWeight;
176                 color: @headingsColor;
177         }
178
179         .nav > li + li > a {
180                 border-color: transparent;
181         }
182
183         .nav > li.active > a,
184         .nav > li > a:hover,
185         .nav > li.active > a:hover,
186         .dropdown.open .dropdown-toggle,
187         .dropdown.open.active .dropdown-toggle:hover {
188                 .box-shadow(none);
189                 background-color: transparent;
190                 border-color: transparent;
191                 color: @yellow;
192         }
193
194         .dropdown.open > .dropdown-menu {
195                 background-color: @headingsColor;
196                 color: @textColor;
197                 border-color: transparent;
198         }
199
200         .dropdown.open > .dropdown-menu a:hover {
201                 background-color: darken(#90A38F, 10%);
202                 color: @headingsColor;
203         }
204
205         &.subnav-fixed {
206                 top: @navbarHeight;
207         }
208 }
209
210 // NAV
211 // --------------------------------------------------
212
213 .nav {
214         .disabled > a {
215
216                 color: #ccc;
217
218                 &:hover {
219                         background-color: #748C73;
220                 }
221         }
222 }
223
224 .nav-list {
225
226         li > a,
227         .nav-header {
228                 text-shadow: none;
229         }
230
231         li > a:hover {
232                 background-color: transparent;
233         }
234
235         li.active > a,
236         li.active > a:hover {
237                 background-color: #A2CDB5;
238                 text-shadow: none;
239         }
240
241         .divider {
242                 background-color: transparent;
243                 border-bottom: 1px solid @headingsColor;
244         }
245 }
246
247 .nav-tabs {
248         border-color: transparent;
249 }
250
251 .nav-tabs > li > a,
252 .nav-pills > li > a {
253         background-color: #748C73;
254
255         &:hover {
256                 background-color: #748C73;
257                 border-color: transparent;
258         }
259 }
260
261 .nav-tabs > .active > a,
262 .nav-tabs > .active > a:hover,
263 .nav-pills .active > a,
264 .nav-pills .active > a:hover {
265         background-color: #A2CDB5;
266         border-color: transparent;
267         color: @blue;
268 }
269
270 .nav-tabs.nav-stacked > li > a {
271         border-color: transparent;
272
273         &:hover {
274                 border-color: transparent;
275         }
276 }
277
278 .nav-tabs .open .dropdown-toggle,
279 .nav-pills .open .dropdown-toggle  {
280         background-color: #748C73;
281         border-color: transparent;
282         color: @yellow;
283 }
284
285 .nav-tabs .active.open .dropdown-toggle,
286 .nav-pills .active.open .dropdown-toggle {
287         background-color: #A2CDB5;
288 }
289
290 .nav-tabs .dropdown-menu,
291 .nav-pills .dropdown-menu {
292         background-color: @headingsColor;
293         color: @textColor;
294         border-color: transparent;
295
296         a:hover {
297                 background-color: #A2CDB5;
298                 color: @headingsColor;
299         }
300 }
301
302 .nav .nav-header {
303         color: @blue;
304 }
305
306 .tabbable {
307         .nav-tabs,
308         .nav-tabs > li > a,
309         .nav-tabs > li > a:hover,
310         .nav-tabs > li.active > a,
311         .nav-tabs > li.active > a:hover  {
312                 border-color: transparent;
313         }
314 }
315
316 .breadcrumb {
317         background-color: darken(#90A38F, 10%);
318         background-image: none;
319         border-color: transparent;
320         .box-shadow(none);
321
322         li {
323                 color: @yellow;
324                 text-shadow: none;
325
326                 a {
327                         color: @yellow;
328                 }
329
330                 a:hover {
331                         color: @yellow;
332                 }
333
334                 .divider {
335                         color: @headingsColor;
336                 }
337         }
338
339         .active {
340                 color: @headingsColor;
341         }
342 }
343
344 .pagination {
345
346         ul {
347                 background-color: darken(#90A38F, 10%);
348                 background-image: none;
349                 border-color: transparent;
350                 .box-shadow(none);
351         }
352
353         ul > li > a,
354         ul > li > span {
355                 color: @yellow;
356                 border-color: transparent;
357
358                 &:hover {
359                         color: @yellow;
360                         background-color: rgba(0, 0, 0, 0.1);
361                 }
362         }
363
364         ul > .active > a,
365         ul > .active > span {
366                 color: @headingsColor;
367                 background-color: rgba(0, 0, 0, 0.1);
368         }
369
370         ul > .disabled > a,
371         ul > .disabled > a:hover,
372         ul > .disabled > span,
373         ul > .disabled > span:hover {
374                 color: @blue;
375         }
376 }
377
378 .pager {
379
380         a {
381                 border: none;
382                 background-color: #748C73;
383
384                 &:hover {
385                         background-color: #687D67;
386                 }
387         }
388
389         .disabled a,
390         .disabled a:hover {
391                 background-color: #748C73;
392                 color: @textColor;
393         }
394 }
395
396 // BUTTONS
397 // --------------------------------------------------
398
399 .btn {
400         font-family: @headingsFontFamily;
401         font-weight: @headingsFontWeight;
402     text-shadow: none;
403         border-color: transparent;
404         .box-shadow(none);
405 }
406
407 .btn-large {
408         font-size: 18px;
409 }
410
411 .btn-group .dropdown-toggle {
412         .box-shadow(none);
413 }
414
415 // TABLES
416 // --------------------------------------------------
417
418 .table,
419 .table.table-bordered,
420 .table.table-striped {
421         .border-radius(0 0 8px 8px);
422 }
423
424 .table-bordered thead:first-child tr:first-child th:first-child,
425 .table-bordered tbody:first-child tr:first-child td:first-child,
426 .table-bordered thead:first-child tr:first-child th:last-child,
427 .table-bordered tbody:first-child tr:first-child td:last-child {
428         .border-radius(0);
429 }
430
431 .table-striped tbody:last-child tr:last-child td:first-child {
432         .border-radius(0 0 0 8px);
433 }
434
435 .table-striped tbody:last-child tr:last-child td:last-child {
436         .border-radius(0 0 8px 0);
437 }
438
439 .table-bordered {
440         border: none;
441 }
442
443 .table thead tr th:first-child,
444 .table tbody tr td:first-child {
445         border-left: none;
446 }
447
448 .table th,
449 .table-striped tbody tr:nth-child(odd) th {
450         background-color: darken(#90A38F, 10%);
451         color: @headingsColor;
452 }
453
454 // FORMS
455 // --------------------------------------------------
456
457 legend {
458         font-family: @headingsFontFamily;
459         font-weight: @headingsFontWeight;
460         color: @headingsColor;
461 }
462
463 label, .help-block, input[type="file"] {
464         color: @headingsColor;
465 }
466
467 input, textarea, select {
468         color: @textColor;
469 }
470
471 .uneditable-input {
472         color: @gray;
473 }
474
475 legend {
476         border-bottom: 2px solid @white;
477 }
478
479 .form-actions {
480         border-top: none;
481         .border-radius(4px);
482 }
483
484 .control-group.error {
485
486         label, .help-block, .help-inline {
487                 color: lighten(@red, 30%);
488         }
489
490         input, select, textarea {
491                 border: 2px solid lighten(@red, 30%);
492                 color: @textColor;
493         }
494 }
495
496 .control-group.success {
497
498         label, .help-block, .help-inline {
499                 color: lighten(#24C00B, 25%);
500         }
501
502         input, select, textarea {
503                 border: 2px solid lighten(#24C00B, 25%);
504                 color: @textColor;
505         }
506 }
507
508 .control-group.warning {
509
510         label, .help-block, .help-inline {
511                 color: lighten(@orange, 25%);
512         }
513
514         input, select, textarea {
515                 border: 2px solid lighten(@orange, 25%);
516                 color: @textColor;
517         }
518 }
519
520 // ALERTS, LABELS, BADGES
521 // --------------------------------------------------
522
523 .alert {
524         text-shadow: none;
525         border: none;
526 }
527
528 .alert-heading {
529         font-family: @baseFontFamily;
530         color: inherit;
531 }
532
533 .badge,
534 .label {
535
536         background-color: @blue;
537         text-shadow: none;
538
539         &-success {
540                 background-color: @successBackground;
541         }
542
543         &-warning {
544                 background-color: @warningBackground;
545         }
546
547         &-important {
548                 background-color: @errorBackground;
549         }
550
551         &-info {
552                 background-color: @infoBackground;
553         }
554
555         &-inverse {
556                 background-color: @yellow;
557         }
558 }
559
560 // MISC
561 // --------------------------------------------------
562
563 .well {
564         border: none;
565         .box-shadow(none);
566 }
567
568 .thumbnail {
569         border: none;
570         .box-shadow(none);
571
572         img {
573                 .border-radius(4px);
574         }
575 }
576
577 .progress {
578         background-color: darken(#90A38F, 10%);
579         background-image: none;
580 }
581
582 .modal {
583
584         &-header {
585                 padding: 12px 15px 6px;
586                 background-color: @green;
587         }
588
589         &-body,
590         &-footer {
591                 background-color: @headingsColor;
592                 border: none;
593                 .box-shadow(none);
594
595                 label {
596                         color: @textColor;
597                 }
598         }
599
600         &-footer {
601                 .border-radius(0 0 4px 4px);
602         }
603 }
604
605 // MEDIA QUERIES
606 // --------------------------------------------------