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