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