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