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