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