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