c00ca0e70fbd6602152d30844ee3f8394bbd8e2c
[bootswatch] / flatly / bootswatch.less
1 // Flatness by Jenil (www.jgog.in)
2 // Bootswatch 2.3.1
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         &-inverse {
94
95                 .navbar-search .search-query {
96                         border-color: transparent;
97                         .box-shadow(none);
98                         line-height: normal;
99                         color: @textColor;
100
101                         &:focus {               
102                                 padding: 4px 14px;
103                                 color: @textColor;
104                         }
105                 }
106         }
107 }
108
109 div.subnav {
110
111         border-color: transparent;
112         background-image: none;
113         background-color: @grayLighter;
114         .box-shadow(none);
115
116         &-fixed {
117                 top: @navbarHeight;
118         }
119
120         .nav > li > a {
121                 border-color: transparent;
122                 .box-shadow(none);
123                 color: @textColor;
124         }
125
126         .nav > .active > a,
127         .nav > .active > a:hover {
128                 border-color: transparent;
129                 background-color: darken(@grayLighter, 10%);
130                 .box-shadow(none);
131                 color: @textColor;
132         }
133 }
134
135 // NAVIGATION
136 // --------------------------------------------------
137
138 .nav-list {
139
140         & > li > a,
141         & > .active > a,
142         .nav-header {
143                 text-shadow: none;
144         }
145
146         .divider {
147                 background: none;
148                 border-bottom: 2px solid @dropdownDividerBottom;
149         }
150 }
151
152 .nav-pills {
153
154         .open .dropdown-toggle {
155                 background-color: @blueDark;
156         }
157 }
158
159 .pagination {
160
161         ul {
162
163                 .box-shadow(none);
164
165                 & > li > a {
166                         background-color: @green;
167                         border-color: transparent;
168                         color: @white;
169
170                         &:hover {
171                                 background-color: lighten(@green, 10%);
172                         }
173                 }
174
175                 & > .active > a,
176                 & > .active > a:hover {
177                         background-color: @orange;
178                         color: @white;
179                 }
180
181                 & > .disabled > a,
182                 & > .disabled > a:hover {
183                         background-color: lighten(@green, 10%);
184                         color: @white;
185                 }
186         }
187 }
188
189 .pager {
190
191         li > a,
192         li > span {
193                 background-color: @green;
194                 border: none;
195                 color: @white;
196
197                 &:hover {
198                         background-color: lighten(@green, 10%);
199                 }
200         }
201
202         .disabled > a,
203         .disabled > span,
204         .disabled > a:hover,
205         .disabled > span:hover {
206                 background-color: lighten(@green, 10%);
207                 color: @white;
208         }
209 }
210
211 .breadcrumb {
212
213         & > li {
214                 text-shadow: none;
215         }
216 }
217
218 // BUTTONS
219 // --------------------------------------------------
220
221 .btn {
222         padding: 8px 20px;
223         border: none;
224         background-image: none;
225         color: @white;
226         text-decoration: none;
227         text-shadow: none;
228         .box-shadow(none);
229         -webkit-transition: 0.25s;
230         -moz-transition: 0.25s;
231         transition: 0.25s;
232
233         &:hover,
234         &:focus {
235                 color: white;
236                 -webkit-transition: 0.25s;
237                 -moz-transition: 0.25s;
238                 transition: 0.25s;
239         }
240
241         &:active,
242         &.active {
243                 .box-shadow(none);
244                 color: rgba(255, 255, 255, 0.75);
245         }
246
247         &.disabled,
248         &[disabled] {
249                 color: white;
250         }
251
252         &-large {
253                 padding: @paddingLarge;
254         }
255
256         &-small {
257                 padding: @paddingSmall;
258         }
259
260         &-mini {
261                 padding: @paddingMini;
262         }
263 }
264
265 // TABLES
266 // -----------------------------------------------------
267
268
269
270 // FORMS
271 // --------------------------------------------------
272
273 textarea,
274 input[type="text"],
275 input[type="password"],
276 input[type="datetime"],
277 input[type="datetime-local"],
278 input[type="date"],
279 input[type="month"],
280 input[type="time"],
281 input[type="week"],
282 input[type="number"],
283 input[type="email"],
284 input[type="url"],
285 input[type="search"],
286 input[type="tel"],
287 input[type="color"],
288 .uneditable-input {
289         padding: 7px 6px;
290         border: 2px solid #dce4ec;
291         text-indent: 1px;
292         .border-radius(6px);
293         .box-shadow(none);
294         .placeholder(#acb6c0);
295
296         &:focus {
297                 border-color: #1abc9c;
298                 .box-shadow(none);
299
300         }
301
302 }
303
304 .control-group.error,
305 .control-group.error input:focus,
306 .control-group.error textarea:focus {
307                 border-color: #e74c3c;
308                 .box-shadow(none);
309 }
310
311 .control-group.success,
312 .control-group.success input:focus,
313 .control-group.success textarea:focus {
314                 border-color: #2ecc71;
315                 .box-shadow(none);
316 }
317
318 .control-group.warning,
319 .control-group.warning input:focus,
320 .control-group.warning textarea:focus {
321                 border-color: #f1c40f;
322                 .box-shadow(none);
323 }
324
325 .control-group.info,
326 .control-group.info input:focus,
327 .control-group.info textarea:focus {
328                 border-color: #3498db;
329                 .box-shadow(none);
330 }
331
332 input[disabled],
333 input[readonly],
334 textarea[disabled],
335 textarea[readonly] {
336         background-color: #eaeded;
337         border-color: transparent;
338         color: #cad2d3;
339         cursor: default;
340 }
341
342 input[type="file"]{
343         line-height: 16px;
344 }
345
346 .input-append .add-on,
347 .input-prepend .add-on {
348         border: none;
349         background: none;
350 }
351
352 legend {
353         border-bottom: none;
354         color: @textColor;
355 }
356
357 .form-actions {
358         border-top: none;
359         .border-radius(@baseBorderRadius);
360         background-color: darken(@grayLighter, 5%);
361 }
362
363 // DROPDOWNS
364 // --------------------------------------------------
365
366
367 // ALERTS, LABELS, BADGES
368 // --------------------------------------------------
369
370 .alert {
371         background-color: @orange;
372         color: @white;
373         text-shadow: none;
374
375         h1, h2, h3, h4, h5, h6 {
376                 color: @white;
377         }
378
379         &-error {
380                 background-color: @red;
381         }
382
383         &-success {
384                 background-color: @green;
385         }
386
387         &-info {
388                 background-color: @blue;
389         }
390 }
391
392 .label {
393         padding: 6px 10px;
394         text-shadow: none;
395 }
396
397 .badge {
398         padding: 6px 10px;
399         .border-radius(@borderRadiusLarge);
400         text-shadow: none;
401 }
402
403
404 // MISC
405 // --------------------------------------------------
406
407 .well {
408         border: none;
409         .box-shadow(none);
410
411 }
412
413 .progress {
414
415         background: @grayLighter;
416         border-radius: 32px;
417         height: 12px;
418         .box-shadow(none);
419
420         .bar {
421                 background: @textColor;
422                 .box-shadow(none);
423         }
424
425         &-success .bar {
426                 background-color: @green;
427         }
428
429         &-warning .bar {
430                 background-color: @orange;
431         }
432
433         &-danger .bar {
434                 background-color: @green;
435         }
436
437         &-info .bar {
438                 background-color: @blue;
439         }
440 }
441
442 .tooltip {
443
444         &.in {
445                 opacity: 1;
446         }
447 }
448
449 .popover {
450         color: @white;
451
452         &-title {
453                 border-bottom: 2px solid @dropdownDividerBottom;
454         }
455 }
456
457 .modal {
458
459         &-header {
460                 background-color: @navbarBackground;
461                 border-bottom: none;
462                 color: @white;
463         }
464
465         &-footer {
466                 background-color: @grayLighter;
467                 border-top: 2px solid @dropdownDividerTop;
468                 .box-shadow(none);
469         }
470 }
471
472 .close {
473         text-shadow: none;
474 }
475
476 // MEDIA QUERIES
477 // --------------------------------------------------
478
479 @media (max-width: 767px) {
480         
481         div.subnav {
482
483                 .nav > li:first-child > a,
484                 .nav > li + li > a {
485                         border-color: transparent;
486
487                         &:hover {
488                                 background-color: darken(@grayLighter, 10%);
489                         }
490                 }
491                 
492                 .nav > li:last-child > a {
493                         border-radius: 0 0 4px 4px;
494                 }
495         }
496 }
497
498 @media (max-width: 979px) {
499
500         .navbar {
501
502                 .nav-collapse .nav > li > a {
503                         color: @white;
504
505                         &:hover {
506                                 background-color: @green;
507                         }
508                 }
509
510         }
511 }