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