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