v2.3.1 -> v2.3.2
[bootswatch] / spruce / bootswatch.less
1 // Spruce 2.3.2
2 // Bootswatch
3 // -----------------------------------------------------
4
5
6 // TYPOGRAPHY
7 // --------------------------------------------------
8
9 @import url(//fonts.googleapis.com/css?family=Crete+Round);
10
11 h1, h2, h3, h4, h5, h6 {
12
13         small {
14                 font-family: @baseFontFamily;
15                 color: @headingsColor;
16         }
17 }
18
19 .muted {
20         color: @grayLight;
21 }
22
23 .jumbotron h1 {
24         font-weight: normal !important;
25 }
26
27 // SCAFFOLDING
28 // --------------------------------------------------
29
30 .page-header {
31         border-bottom: none;
32         padding-bottom: 5px;
33
34         h1 {
35                 margin-bottom: 0;
36         }
37 }
38
39 hr {
40         border-bottom: none;
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                 .navbar-search .search-query {
133                         color: @gray;
134                 }
135
136                 .dropdown-menu {
137                         background-color: @navbarInverseLinkBackgroundHover;
138
139                         li > a {
140                                 color: @headingsColor;
141
142                                 &:hover {
143                                         background-color: @navbarInverseBackground;
144                                 }
145                         }
146
147                         .divider {
148                                 border-bottom: 1px solid rgba(0, 0, 0, 0.2);
149                         }
150
151                         .nav-header {
152                                 color: @gray;
153                         }
154                 }
155
156         }
157
158 }
159
160 @media (max-width: @navbarCollapseWidth) {
161
162         .navbar .nav-collapse {
163
164                 .nav li > a {
165                         color: @navbarLinkColor;
166
167                         &:hover {
168                                 background-color: @navbarLinkBackgroundHover;
169                         }
170                 }       
171         }
172
173         .navbar-inverse .nav-collapse {
174
175                 .nav li > a:hover {
176                         background-color: rgba(0, 0, 0, 0.06) !important;
177                 }
178         }
179
180         .nav-collapse .navbar-form,
181         .nav-collapse .navbar-search {
182                 border: none !important;
183                 .box-shadow(none) !important;
184         }
185 }
186
187 div.subnav {
188
189         background: @green none;
190         border-color: transparent;
191
192         .nav > li > a {
193                 padding: 12px 12px 10px;
194                 border-color: transparent;
195                 background-color: transparent;
196                 font-family: @headingsFontFamily;
197                 font-weight: @headingsFontWeight;
198                 color: @navbarLinkColor;
199         }
200
201         .nav > li > a:hover,
202         .nav > .active > a,
203         .nav > .active > a:hover,
204         .dropdown.open .dropdown-toggle,
205         .dropdown.open.active .dropdown-toggle:hover {
206                 background-color: @navbarLinkBackgroundHover;
207                 .box-shadow(none);
208                 border-color: transparent;
209                 color: @white;
210         }
211
212         &.subnav-fixed {
213                 top: @navbarHeight;
214         }
215 }
216
217 // NAV
218 // --------------------------------------------------
219
220 .nav {
221
222         .nav-header {
223                 color: @headingsColor;
224         }
225
226         .disabled > a,
227         .disabled > a:hover {
228                 background-color: lighten(@green, 10%);
229                 color: @white;
230         }
231 }
232
233 .nav-tabs {
234         
235         border-color: transparent;
236
237         & > li > a {
238                 background-color: @green;
239                 color: @white;
240
241                 &:hover {
242                         background-color: @navbarBackground;
243                         border-color: transparent;
244                 }       
245         }
246
247         .active > a,
248         .active > a:hover {
249                 background-color: @navbarBackground;
250                 border-color: transparent;
251                 color: @white;
252         }
253
254         &.nav-stacked > li > a {
255                 border-color: transparent;
256
257                 &:hover {
258                         border-color: transparent;
259                 }
260         }
261
262         .open .dropdown-toggle,
263         .active.open .dropdown-toggle {
264                 background-color: @navbarBackground;
265         }
266 }
267
268 .nav-pills {
269
270         & > li > a {
271                 background-color: @green;
272                 color: @white;
273
274                 &:hover {
275                         background-color: @navbarBackground;
276                         border-color: transparent;
277                 }
278         }
279
280         .active > a,
281         .active > a:hover {
282                 background-color: @navbarBackground;
283                 border-color: transparent;
284                 color: @white;
285         }
286
287         .open .dropdown-toggle,
288         .active.open .dropdown-toggle {
289                 background-color: @navbarBackground;
290         }
291 }
292
293 .tabbable {
294         .nav-tabs,
295         .nav-tabs > li > a,
296         .nav-tabs > li > a:hover,
297         .nav-tabs > li.active > a,
298         .nav-tabs > li.active > a:hover  {
299                 border-color: transparent;
300         }
301 }
302
303 .nav-list {
304
305         .nav-header,
306         li > a {
307                 text-shadow: none;
308         }
309
310         li > a:hover {
311                 background-color: @green;
312                 color: @white;
313         }
314
315         li.active > a,
316         li.active > a:hover {
317                 background-color: @navbarBackground;
318                 text-shadow: none;
319         }
320
321         .divider {
322                 background-color: transparent;
323                 border-bottom: 1px solid @grayLight;
324         }
325 }
326
327 .breadcrumb {
328
329         background-color: @green;
330         background-image: none;
331         .box-shadow(none);
332         border-color: transparent;
333
334         li {
335                 color: @white;
336                 text-shadow: none;
337
338                 a {
339                         color: @white;
340                         text-decoration: underline;
341                 }
342
343                 a:hover {
344                         color: @white;
345                 }
346
347                 .divider {
348                         color: @white;
349                 }
350         }
351
352         .active {
353                 color: @white;
354         }
355 }
356
357 .pagination {
358
359         ul {
360                 background-color: @green;
361                 background-image: none;
362                 .box-shadow(none);
363                 border-color: transparent;
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         font-family: @headingsFontFamily;
419         font-weight: @headingsFontWeight;
420     text-shadow: none;
421 }
422
423 .btn-large {
424         font-size: 18px;
425 }
426
427 .btn-group .dropdown-toggle {
428         .box-shadow(none);
429 }
430
431 // TABLES
432 // --------------------------------------------------
433
434 .table th,
435 .table-striped tbody tr:nth-child(odd) th {
436         background-color: @green;
437         color: @white;
438 }
439
440 .table {
441
442         tbody tr.success td {
443                 background-color: #B5EEAA;
444         }
445
446         tbody tr.error td {
447                 background-color: #EEB8B8;
448         }
449
450         tbody tr.info td {
451                 background-color: #AEE2EE;
452         }
453 }
454
455 // FORMS
456 // --------------------------------------------------
457
458 legend {
459         border-bottom: none;
460         font-family: @headingsFontFamily;
461         font-weight: @headingsFontWeight;
462         color: @headingsColor;
463 }
464
465 label, .help-block, input[type="file"] {
466         color: @headingsColor;
467 }
468
469 input, textarea, select {
470         color: @textColor;
471 }
472
473 .uneditable-input {
474         color: @gray;
475 }
476
477 .form-actions {
478         border-top: none;
479 }
480
481 .control-group {
482
483         &.warning,
484         &.error,
485         &.success {
486
487                 .control-label {
488                         color: @textColor;
489                 }
490         }
491 }
492
493 .control-group.error {
494
495         .help-block,
496         .help-inline {
497                 color: @red;
498         }
499
500         input, select, textarea {
501                 border: 1px solid @red;
502                 color: @textColor;
503         }
504 }
505
506 .control-group.success {
507
508         .help-block,
509         .help-inline {
510                 color: @green;
511         }
512
513         input, select, textarea {
514                 border: 1px solid @green;
515                 color: @textColor;
516         }
517 }
518
519 .control-group.warning {
520
521         .help-block,
522         .help-inline {
523                 color: @orange;
524         }
525
526         input, select, textarea {
527                 border: 1px solid @orange;
528                 color: @textColor;
529         }
530 }
531
532 // ALERTS, LABELS, BADGES
533 // --------------------------------------------------
534
535 .alert {
536         text-shadow: none;
537         border: none;
538
539         h1, h2, h3, h4, h5, h6 {
540                 font-weight: bold;
541                 color: @white;
542         }
543 }
544
545 .alert-heading {
546         font-family: @baseFontFamily;
547         color: inherit;
548 }
549
550 .badge,
551 .label {
552
553         background-color: @green;
554         text-shadow: none;
555
556         &-success {
557                 background-color: @btnSuccessBackground;
558         }
559
560         &-warning {
561                 background-color: @btnWarningBackground;
562         }
563
564         &-important {
565                 background-color: @btnDangerBackground;
566         }
567
568         &-info {
569                 background-color: @btnInfoBackground;
570         }
571
572         &-inverse {
573                 background-color: @btnInverseBackground;
574         }
575 }
576
577 // MISC
578 // --------------------------------------------------
579
580 .well {
581         border: none;
582         .box-shadow(none);
583 }
584
585 .hero-unit {
586         border: none;
587 }
588
589 .thumbnail {
590         border: none;
591         .box-shadow(none);
592 }
593
594 .dropdown-menu .nav-header {
595         color: @white;
596         text-shadow: none;
597 }
598
599 .dropdown-menu li > a:hover,
600 .dropdown-menu li > a:focus,
601 .dropdown-submenu:hover > a {
602         background-image: none;
603 }
604
605 .progress {
606         background-color: darken(@grayLighter, 10%);
607         background-image: none;
608 }
609
610 [class^="icon-"],
611 [class*=" icon-"] {
612         vertical-align: baseline;
613 }
614
615 .modal {
616
617         &-header {
618                 padding: 12px 15px 6px;
619                 background-color: @green;
620                 color: @navbarLinkColor;
621
622                 h1, h2, h3, h4, h5, h6 {
623                         color: @navbarLinkColor;
624                 }
625         }
626
627         &-body,
628         &-footer {
629                 border: none;
630                 .box-shadow(none);
631
632                 label {
633                         color: @textColor;
634                 }
635         }
636
637         &-footer {
638                 background-color: @wellBackground;
639         }
640 }
641
642 .popover {
643
644         &-title {
645                 color: @white;
646         }
647 }
648
649 // MEDIA QUERIES
650 // --------------------------------------------------