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