update to bootstrap 2.1.0
[bootswatch] / readable / bootswatch.less
1 // Bootswatch.less
2 // Swatch: Readable
3 // Version: 2.1.0
4 // -----------------------------------------------------
5
6 // TYPOGRAPHY
7 // -----------------------------------------------------
8
9 body {
10         word-spacing: -0.05em;
11 }
12
13 h1, h2, h3, h4, h5, h6 {
14         line-height: 2em;
15         color: @textColor;
16 }
17
18 h1 {
19         font-size: 2em;
20 }
21
22 h2 {
23         font-size: 1.5em;
24 }
25
26 h3, h4, h5, h6 {
27         font-size: 1em;
28         text-transform: none;
29 }
30
31 small {
32         font-size: 13px;
33 }
34
35 .muted, .help-block, .uneditable-input, blockquote, small {
36         color: @grayLight;
37 }
38
39 // SCAFFOLDING
40 // -----------------------------------------------------
41
42 .page-header {
43         border-bottom: 2px solid @grayLighter;
44 }
45
46 // NAVBAR
47 // -----------------------------------------------------
48
49 .navbar {
50
51         .brand {
52                 font-weight: bold;
53                 line-height: 1em;
54                 padding: 10px 15px;
55
56                 &:hover {
57                         color: @linkColorHover;
58                 }
59         }
60
61         .nav > li > a {
62                 text-shadow: none;
63                 padding: 10px 15px 7px;
64         }
65
66         .nav > .active > a,
67         .nav > .active > a:hover,
68         .nav > .active > a:focus {
69                 .box-shadow(none);
70         }
71
72         .search-query {
73                 border: 1px solid #D4D4D4;
74                 .border-radius(0);
75                 color: @textColor;
76                 background-color: @white;
77         }
78
79         .navbar-text {
80                 margin: 10px 15px 0;
81                 line-height: @baseLineHeight;
82         }
83
84         .divider-vertical {
85                 border-right: 1px solid rgba(128, 128, 128, 0.3);
86                 border-left: none;
87         }
88
89         .navbar-search {
90                 margin-top: 7px;
91         }
92
93         .nav-collapse.collapse {
94
95                 .nav li:first-child > a {
96                         margin-bottom: 10px;
97                 }
98
99                 .nav li > a {
100                         color: @linkColor;
101                         .border-radius(0);
102                         font-weight: normal;
103
104                         &:hover {
105                                 background-color: rgba(0, 0, 0, 0.05);
106                                 color: @linkColorHover;
107                         }
108                 }
109
110                 .navbar-form,
111                 .navbar-search {
112                         border-top: 1px solid rgba(128, 128, 128, 0.2);
113                         border-bottom: 1px solid rgba(128, 128, 128, 0.2);
114                 }
115
116                 .nav-header {
117                         color: @grayLight;
118                 }
119         }
120
121         &-inverse {
122
123                 .brand:hover {
124                         color: @white;
125                 }
126
127                 .nav-collapse.collapse {
128
129                         .nav li > a {
130                                 color: @grayLighter;
131                         }
132
133                         .nav li > a:hover {
134                                 background-color: rgba(0, 0, 0, 0.2);
135                                 color: @white;
136                         }
137                 }
138
139         }
140 }
141
142 div.subnav {
143         .box-shadow(none);
144         .border-radius(0);
145         background-color: @white;
146         background-image: none;
147
148         .nav {
149                 padding: 0;
150         }
151
152         .nav > li.active > a,
153         .nav > li:active > a {
154                 color: @linkColor;
155                 .box-shadow(none);
156                 background-color: transparent;
157         }
158
159         .nav > li > a:hover,
160         .nav > li.active > a:hover,
161         .nav > li:active > a:hover {
162                 color: @linkColorHover;
163                 .box-shadow(none);
164                 background-color: transparent;
165         }
166 }
167
168 .dropdown-menu {
169         border: 1px solid #D4D4D4;
170         .border-radius(0);
171         .box-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
172
173         .divider {
174                 margin: 5px 1px;
175         }
176 }
177
178 // NAV
179 // -----------------------------------------------------
180
181 .nav .dropdown .caret {
182         opacity: 1;
183 }
184
185 .nav-tabs {
186
187         li > a {
188                 .border-radius(0);
189         }
190
191         li > a:hover {
192                 background-color: @bodyBackground;
193         }
194
195         li.active > a,
196         li.active > a:hover {
197                 color: @textColor;
198                 background-color: @bodyBackground;
199         }
200 }
201
202 .nav-tabs.nav-stacked {
203
204         li > a {
205                 background-color: @white;
206         }
207
208         li.active > a,
209         li.active > a:hover,
210         li > a:hover {
211                 background-color: #F5F5F5;
212         }
213
214         li:first-child > a,
215         li:last-child > a {
216                 .border-radius(0);
217         }
218 }
219
220 .nav-pills {
221
222         li > a {
223                 .border-radius(0);
224         }
225
226         li > a:hover {
227                 background-color: @bodyBackground;
228         }
229
230         li.active > a,
231         li.active > a:hover {
232                 color: @textColor;
233                 background-color: @bodyBackground;
234         }
235
236         .open .dropdown-toggle {
237                 background-color: transparent;
238                 color: @linkColor;
239                 border-left: 1px solid whiteSmoke;
240                 border-right: 1px solid #E5E5E5;
241         }
242
243
244         li.dropdown.open .dropdown-toggle .caret {
245                 border-top-color: @linkColor;
246         }
247
248         li.dropdown.open .dropdown-toggle:hover .caret {
249                 border-top-color: @linkColorHover;
250         }
251 }
252
253 .nav-list {
254
255         li > a:hover,
256         li.active > a,
257         li.active > a:hover {
258                 background-color: transparent;
259                 text-shadow: none;
260         }
261
262         li.active > a,
263         li.active > a:hover {
264                 color: @textColor;
265         }
266
267         [class^="icon-"] {
268                 margin-top: 3px;
269                 opacity: 0.8;
270         }
271
272         .divider {
273                 margin: 1px;
274         }
275 }
276
277 .breadcrumb {
278         .border-radius(0);
279         background-color: transparent;
280         background-image: none;
281 }
282
283 .pagination {
284
285         ul {
286                 .box-shadow(none);
287         }
288
289         li > a {
290                 padding: 10px 14px;
291         }
292
293
294         li.active > a,
295         li.active > a:hover {
296                 color: @textColor;
297                 background-color: #F5F5F5;
298         }
299
300         li > a,
301         li.disabled > a,
302         li.disabled > a:hover {
303                 background-color: @white;
304         }
305
306         li:first-child > a,
307         li:last-child > a {
308                 .border-radius(0);
309         }
310 }
311
312 .pager {
313
314         a {
315                 .border-radius(0);
316         }
317 }
318
319 // BUTTONS
320 // -----------------------------------------------------
321
322 .btn-primary {
323   .buttonBackground(lighten(@btnPrimaryBackground, 10%), @btnPrimaryBackground);
324 }
325
326 .btn [class^="icon-"],
327 .btn [class*=" icon-"] {
328         margin-top: 4px;
329 }
330
331 .btn-large [class^="icon-"],
332 .btn-large [class*=" icon-"] {
333         margin-top: 6px;
334         margin-right: 2px;
335 }
336
337 .btn-small [class^="icon-"],
338 .btn-small [class*=" icon-"] {
339         margin-top: 3px;
340 }
341
342 .btn .caret {
343         margin-top: 13px;
344 }
345
346 // FORMS
347 // -----------------------------------------------------
348
349 input, button, select, textarea {
350         font-family: @baseFontFamily;
351 }
352
353 input, textarea, select {
354         color: @textColor;
355 }
356
357 select, input[type="file"] {
358         height: auto;
359         line-height: normal;
360 }
361
362 .form-actions {
363         border-top: 1px solid #D4D4D4;
364         padding-top: 2em;
365 }
366
367 // TABLES
368 // -----------------------------------------------------
369
370 .table-bordered {
371         .border-radius(0);
372 }
373
374 .table-bordered thead:first-child tr:first-child th:first-child,
375 .table-bordered tbody:first-child tr:first-child td:first-child {
376         .border-radius(0);
377 }
378
379 .table-bordered thead:last-child tr:last-child th:first-child,
380 .table-bordered tbody:last-child tr:last-child td:first-child {
381         .border-radius(0);
382 }
383
384 // MODALS
385 // -----------------------------------------------------
386
387 .modal {
388         background-color: @white;
389         .border-radius(0);
390 }
391
392 .modal-header {
393         border-bottom: none;
394 }
395
396 .modal-footer {
397         background-color: @bodyBackground;
398 }
399
400
401 // MISCELLANEOUS
402 // -----------------------------------------------------
403
404 .alert,
405 .label, .label:hover {
406         .border-radius(0);
407         border: 1px solid #D4D4D4;
408         color: @textColor;
409         text-shadow: none;
410 }
411
412 .alert-heading {
413         color: @textColor;
414         text-shadow: none;
415 }
416
417 .label, .label:hover {
418         background-color: @white;
419         font-weight: normal;
420         font-size: @baseFontSize;
421         padding: 4px;
422 }
423
424 .label-important, .label-important:hover { background-color: @errorBackground; }
425
426 .label-warning, .label-warning:hover { background-color: @warningBackground; }
427
428 .label-success, .label-success:hover { background-color: @successBackground; }
429
430 .label-info, .label-info:hover { background-color: @infoBackground; }
431
432 .well, .hero-unit {
433         .box-shadow(none);
434         border: 1px solid #D4D4D4;
435         .border-radius(0);
436 }
437
438 blockquote {
439         border-left: 6px solid @grayLighter;
440
441         &.pull-right {
442                 border-right: 6px solid @grayLighter;
443         }
444
445         p {
446                 font-size: 1em;
447                 line-height: 1.2em;
448         }
449 }
450
451 .thumbnail {
452         background-color: @white;
453 }
454
455 .thumbnail, .thumbnail > img {
456         .border-radius(0);
457         .box-shadow(none);
458 }
459
460 code, pre {
461         .border-radius(0);
462         background-color: @white;
463 }