1576d4f1353489433cfc276b674f376214c4ab29
[bootswatch] / flatly / bootswatch.less
1 // Flatness by Jenil (www.jgog.in)
2 // Bootswatch 2.3.2
3 // -----------------------------------------------------
4
5
6 // TYPOGRAPHY
7 // --------------------------------------------------
8
9 @import url("http://fonts.googleapis.com/css?family=Lato:400,700,900,400italic");
10
11 h1 {
12         font-size: 48px;
13         font-weight: 900;
14 }
15
16 h2 {
17         font-size: 36px;
18         font-weight: 700;
19 }
20
21 h3 {
22         font-size: 28px;
23         font-weight: 700;
24 }
25
26 h4 {
27         font-size: 24px;
28         font-weight: 500;
29 }
30
31 h5 {
32         font-size: 16px;
33         font-weight: 500;
34 }
35
36 h6 {
37         font-size: 13px;
38         font-weight: 500;
39         text-transform: none;
40 }
41
42 p {
43         margin-bottom: 1em;
44 }
45
46 // SCAFFOLDING
47 // --------------------------------------------------
48
49 .page-header {
50         border-bottom: none;
51 }
52
53
54 // NAVBAR
55 // --------------------------------------------------
56
57 .navbar {
58
59         .brand {
60
61                 text-shadow: none;
62
63                 &:hover {
64                         color: @linkColorHover;
65                 }
66         }
67
68         .navbar-inner {
69                 .box-shadow(none);
70         }
71
72         .nav > li > a {
73                 text-shadow: none;
74         }
75
76         .nav > .active > a,
77         .nav > .active > a:hover,
78         .nav > .active > a:focus {
79                 .box-shadow(none);
80         }
81
82         .navbar-search .search-query {
83                 border: none;
84                 .box-shadow(none);
85                 line-height: normal;
86         }
87
88         .btn-navbar {
89                 background-image: none;
90                 .box-shadow(none);
91         }
92
93         .btn, .btn-group {
94                 margin-top: 6px;
95         }
96
97         &-inverse {
98
99                 .brand:hover {
100                         color: @blueDark;
101                 }
102
103                 .navbar-search .search-query {
104                         border-color: transparent;
105                         .box-shadow(none);
106                         line-height: normal;
107                         color: @textColor;
108
109                         &:focus {               
110                                 padding: 4px 14px;
111                                 color: @textColor;
112                         }
113                 }
114         }
115 }
116
117 div.subnav {
118
119         border-color: transparent;
120         background-image: none;
121         background-color: @grayLighter;
122         .box-shadow(none);
123
124         &-fixed {
125                 top: @navbarHeight;
126         }
127
128         .nav > li > a {
129                 border-color: transparent;
130                 .box-shadow(none);
131                 color: @textColor;
132         }
133
134         .nav > .active > a,
135         .nav > .active > a:hover {
136                 border-color: transparent;
137                 background-color: darken(@grayLighter, 10%);
138                 .box-shadow(none);
139                 color: @textColor;
140         }
141 }
142
143 // NAVIGATION
144 // --------------------------------------------------
145
146 .nav-list {
147
148         & > li > a,
149         & > .active > a,
150         .nav-header {
151                 text-shadow: none;
152         }
153
154         .divider {
155                 background: none;
156                 border-bottom: 2px solid @dropdownDividerBottom;
157         }
158 }
159
160 .nav-pills {
161
162         .open .dropdown-toggle {
163                 background-color: @blueDark;
164         }
165 }
166
167 .pagination {
168
169         ul {
170
171                 .box-shadow(none);
172
173                 & > li > a {
174                         background-color: @green;
175                         border-color: transparent;
176                         color: @white;
177
178                         &:hover {
179                                 background-color: lighten(@green, 10%);
180                         }
181                 }
182
183                 & > .active > a,
184                 & > .active > a:hover {
185                         background-color: @paginationActiveBackground;
186                         color: @textColor;
187                 }
188
189                 & > .disabled > a,
190                 & > .disabled > a:hover {
191                         background-color: lighten(@green, 10%);
192                         color: @white;
193                 }
194         }
195 }
196
197 .pager {
198
199         li > a,
200         li > span {
201                 background-color: @green;
202                 border: none;
203                 color: @white;
204
205                 &:hover {
206                         background-color: lighten(@green, 10%);
207                 }
208         }
209
210         .disabled > a,
211         .disabled > span,
212         .disabled > a:hover,
213         .disabled > span:hover {
214                 background-color: lighten(@green, 10%);
215                 color: @white;
216         }
217 }
218
219 .breadcrumb {
220
221         & > li {
222                 text-shadow: none;
223         }
224 }
225
226 // BUTTONS
227 // --------------------------------------------------
228
229 .btn {
230         padding: 9px 20px;
231         border: none;
232         background-image: none;
233         color: @white;
234         text-decoration: none;
235         text-shadow: none;
236         .box-shadow(none);
237         -webkit-transition: 0.25s;
238         -moz-transition: 0.25s;
239         transition: 0.25s;
240
241         &:hover,
242         &:focus {
243                 color: white;
244                 -webkit-transition: 0.25s;
245                 -moz-transition: 0.25s;
246                 transition: 0.25s;
247         }
248
249         &:active,
250         &.active {
251                 .box-shadow(none);
252                 color: rgba(255, 255, 255, 0.75);
253         }
254
255         &.disabled,
256         &[disabled] {
257                 color: white;
258         }
259
260         &-large {
261                 padding: @paddingLarge;
262         }
263
264         &-small {
265                 padding: @paddingSmall;
266         }
267
268         &-mini {
269                 padding: @paddingMini;
270         }
271 }
272
273 // TABLES
274 // -----------------------------------------------------
275
276
277
278 // FORMS
279 // --------------------------------------------------
280
281 textarea,
282 input[type="text"],
283 input[type="password"],
284 input[type="datetime"],
285 input[type="datetime-local"],
286 input[type="date"],
287 input[type="month"],
288 input[type="time"],
289 input[type="week"],
290 input[type="number"],
291 input[type="email"],
292 input[type="url"],
293 input[type="search"],
294 input[type="tel"],
295 input[type="color"],
296 .uneditable-input {
297         padding: 7px 6px;
298         border: 2px solid #dce4ec;
299         text-indent: 1px;
300         .border-radius(@inputBorderRadius);
301         .box-shadow(none);
302         .placeholder(#acb6c0);
303
304         &:focus {
305                 border-color: #1abc9c;
306                 .box-shadow(none);
307
308         }
309 }
310
311 .input-prepend {
312
313   .add-on:first-child,
314   .btn:first-child {
315     .border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
316   }
317 }
318
319 .input-append {
320
321   input,
322   select,
323   .uneditable-input {
324
325     .border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
326
327     + .btn-group .btn:last-child {
328       .border-radius(0 @inputBorderRadius @inputBorderRadius 0);
329     }
330   }
331
332   .add-on:last-child,
333   .btn:last-child,
334   .btn-group:last-child > .dropdown-toggle {
335     .border-radius(0 @inputBorderRadius @inputBorderRadius 0);
336   }
337 }
338
339 .input-prepend.input-append {
340
341   input,
342   select,
343   .uneditable-input {
344     .border-radius(0);
345     + .btn-group .btn {
346       .border-radius(0 @inputBorderRadius @inputBorderRadius 0);
347     }
348   }
349
350   .add-on:first-child,
351   .btn:first-child {
352     .border-radius(@inputBorderRadius 0 0 @inputBorderRadius);
353   }
354
355   .add-on:last-child,
356   .btn:last-child {
357     .border-radius(0 @inputBorderRadius @inputBorderRadius 0);
358   }
359 }
360
361 .input-append,
362 .input-prepend {
363
364         .add-on {
365                 padding: 9px 5px;
366                 text-shadow: none;
367         }
368 }
369
370 .control-group.error,
371 .control-group.error input:focus,
372 .control-group.error textarea:focus {
373                 border-color: #e74c3c;
374                 .box-shadow(none);
375 }
376
377 .control-group.success,
378 .control-group.success input:focus,
379 .control-group.success textarea:focus {
380                 border-color: #2ecc71;
381                 .box-shadow(none);
382 }
383
384 .control-group.warning,
385 .control-group.warning input:focus,
386 .control-group.warning textarea:focus {
387                 border-color: #f1c40f;
388                 .box-shadow(none);
389 }
390
391 .control-group.info,
392 .control-group.info input:focus,
393 .control-group.info textarea:focus {
394                 border-color: #3498db;
395                 .box-shadow(none);
396 }
397
398 input[disabled],
399 input[readonly],
400 textarea[disabled],
401 textarea[readonly] {
402         background-color: #eaeded;
403         border-color: transparent;
404         color: #cad2d3;
405         cursor: default;
406 }
407
408 input[type="file"]{
409         line-height: 16px;
410 }
411
412 .input-append .add-on,
413 .input-prepend .add-on {
414         border: none;
415         background: none;
416 }
417
418 legend {
419         border-bottom: none;
420         color: @textColor;
421 }
422
423 .form-actions {
424         border-top: none;
425         .border-radius(@baseBorderRadius);
426         background-color: darken(@grayLighter, 5%);
427 }
428
429 // DROPDOWNS
430 // --------------------------------------------------
431
432
433 // ALERTS, LABELS, BADGES
434 // --------------------------------------------------
435
436 .alert {
437         background-color: @orange;
438         color: @white;
439         text-shadow: none;
440
441         h1, h2, h3, h4, h5, h6 {
442                 color: @white;
443         }
444
445         &-error {
446                 background-color: @red;
447         }
448
449         &-success {
450                 background-color: @green;
451         }
452
453         &-info {
454                 background-color: @blue;
455         }
456 }
457
458 .label {
459         padding: 6px 10px;
460         text-shadow: none;
461 }
462
463 .badge {
464         padding: 6px 10px;
465         .border-radius(@borderRadiusLarge);
466         text-shadow: none;
467 }
468
469
470 // MISC
471 // --------------------------------------------------
472
473 .well {
474         border: none;
475         .box-shadow(none);
476
477 }
478
479 .progress {
480
481         background: @grayLighter;
482         border-radius: 32px;
483         height: 12px;
484         .box-shadow(none);
485
486         .bar {
487                 background-color: @blueDark;
488                 background-image: none;
489                 .box-shadow(none);
490         }
491
492         .bar + .bar {
493                 .box-shadow(none);
494         }
495
496         &-striped .bar {
497                 #gradient > .striped(@blueDark);
498         }
499
500         &-success .bar,
501         &-success.progress-striped .bar,
502         .bar-success {
503                 background-color: @green;
504         }
505
506         &-warning .bar,
507         &-warning.progress-striped .bar,
508         .bar-warning {
509                 background-color: @yellow;
510         }
511
512         &-danger .bar,
513         &-danger.progress-striped .bar,
514         .bar-danger {
515                 background-color: @red;
516         }
517
518         &-info .bar,
519         &-info.progress-striped .bar,
520         .bar-info {
521                 background-color: @blue;
522         }
523 }
524
525 .tooltip {
526
527         &.in {
528                 opacity: 1;
529         }
530 }
531
532 .popover {
533         color: @white;
534
535         &-title {
536                 border-bottom: 2px solid @dropdownDividerBottom;
537         }
538 }
539
540 .modal {
541
542         &-header {
543                 background-color: @navbarBackground;
544                 border-bottom: none;
545                 color: @white;
546         }
547
548         &-footer {
549                 background-color: @grayLighter;
550                 border-top: none;
551                 .box-shadow(none);
552         }
553 }
554
555 .close {
556         text-shadow: none;
557 }
558
559 // MEDIA QUERIES
560 // --------------------------------------------------
561
562 @media (max-width: 767px) {
563         
564         div.subnav {
565
566                 .nav > li:first-child > a,
567                 .nav > li + li > a {
568                         border-color: transparent;
569
570                         &:hover {
571                                 background-color: darken(@grayLighter, 10%);
572                         }
573                 }
574                 
575                 .nav > li:last-child > a {
576                         border-radius: 0 0 4px 4px;
577                 }
578         }
579 }
580
581 @media (max-width: 979px) {
582
583         .navbar {
584
585                 .nav-collapse .nav > li > a {
586                         color: @white;
587
588                         &:hover {
589                                 background-color: @green;
590                         }
591                 }
592
593         }
594 }