ae85b131d64c54e20571af71c28fc7aecf805eee
[bootswatch] / cosmo / bootswatch.less
1 // Cosmo 2.2.2
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         background-image: none;
308         .box-shadow(none);
309         border: none;
310         .border-radius(0);
311         text-shadow: none;
312
313         &.disabled {
314                 box-shadow: inset 0 2px 4px rgba(0,0,0,.15),~" "0 1px 2px rgba(0,0,0,.05);
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                 .control-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                 .control-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                 .control-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: @purple;
471         }
472
473         &-inverse {
474                 background-color: @black;
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: @purple;
494         }
495
496         &-inverse {
497                 background-color: @black;
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 // -----------------------------------------------------