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