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