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