all: fixes pagination issues, closes #37
[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         ul > li > span {
295                 padding: 12px 14px 8px;
296                 background-color: @white;
297                 line-height: 1;
298         }
299
300         ul > li:first-child > a,
301         ul > li:last-child > a {
302                 .border-radius(0);
303         }
304
305         ul > .active > a,
306         ul > .active > a:hover,
307         ul > .active > span,
308         ul > .active > span:hover {
309                 color: @textColor;
310                 background-color: #F5F5F5;
311         }
312
313         ul > .disabled > a,
314         ul > .disabled > a:hover,
315         ul > .disabled > span,
316         ul > .disabled > span:hover {
317                 background-color: @white;
318         }
319 }
320
321 .pager {
322
323         a {
324                 .border-radius(0);
325         }
326 }
327
328 // BUTTONS
329 // -----------------------------------------------------
330
331 .btn-primary {
332   .buttonBackground(lighten(@btnPrimaryBackground, 10%), @btnPrimaryBackground);
333 }
334
335 .btn [class^="icon-"],
336 .btn [class*=" icon-"] {
337         margin-top: 4px;
338 }
339
340 .btn-large [class^="icon-"],
341 .btn-large [class*=" icon-"] {
342         margin-top: 6px;
343         margin-right: 2px;
344 }
345
346 .btn-small [class^="icon-"],
347 .btn-small [class*=" icon-"] {
348         margin-top: 3px;
349 }
350
351 .btn .caret {
352         margin-top: 13px;
353 }
354
355 // TABLES
356 // -----------------------------------------------------
357
358 .table-bordered {
359         .border-radius(0);
360 }
361
362 .table-bordered thead:first-child tr:first-child th:first-child,
363 .table-bordered tbody:first-child tr:first-child td:first-child {
364         .border-radius(0);
365 }
366
367 .table-bordered thead:last-child tr:last-child th:first-child,
368 .table-bordered tbody:last-child tr:last-child td:first-child {
369         .border-radius(0);
370 }
371
372 // FORMS
373 // -----------------------------------------------------
374
375 input, button, select, textarea {
376         font-family: @baseFontFamily;
377 }
378
379 input, textarea, select {
380         color: @textColor;
381 }
382
383 select, input[type="file"] {
384         height: auto;
385         line-height: normal;
386 }
387
388 .form-actions {
389         border-top: 1px solid #D4D4D4;
390         padding-top: 2em;
391 }
392
393 // DROPDOWNS
394 // -----------------------------------------------------
395
396 .dropdown-menu {
397         border: 1px solid #D4D4D4;
398         .border-radius(0);
399         .box-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
400
401         .divider {
402                 margin: 5px 1px;
403         }
404 }
405
406 // ALERTS, LABELS, BADGES
407 // -----------------------------------------------------
408
409 .alert,
410 .label, .label:hover {
411         .border-radius(0);
412         border: 1px solid #D4D4D4;
413         color: @textColor;
414         text-shadow: none;
415 }
416
417 .alert-heading {
418         color: @textColor;
419         text-shadow: none;
420 }
421
422 .label, .label:hover {
423         background-color: @white;
424         font-weight: normal;
425         font-size: @baseFontSize;
426         padding: 4px;
427 }
428
429 .label-important, .label-important:hover { background-color: @errorBackground; }
430
431 .label-warning, .label-warning:hover { background-color: @warningBackground; }
432
433 .label-success, .label-success:hover { background-color: @successBackground; }
434
435 .label-info, .label-info:hover { background-color: @infoBackground; }
436
437 // MISC
438 // -----------------------------------------------------
439
440 .well, .hero-unit {
441         .box-shadow(none);
442         border: 1px solid #D4D4D4;
443         .border-radius(0);
444 }
445
446 .thumbnail {
447         background-color: @white;
448 }
449
450 .thumbnail,
451 .thumbnail > img {
452         .border-radius(0);
453         .box-shadow(none);
454 }
455
456 .modal {
457         background-color: @white;
458         .border-radius(0);
459 }
460
461 .modal-header {
462         border-bottom: none;
463 }
464
465 .modal-footer {
466         background-color: @bodyBackground;
467 }
468
469 // MEDIA QUERIES
470 // -----------------------------------------------------