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