bootswatch.less 6.76 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
// Bootswatch.less
Thomas Park's avatar
Thomas Park committed
2
// Swatch: Readable
Thomas Park's avatar
Thomas Park committed
3
// Version: 2.1.0
Thomas Park's avatar
Thomas Park committed
4
5
6
7
8
// -----------------------------------------------------

// TYPOGRAPHY
// -----------------------------------------------------

9
10
11
12
body {
	word-spacing: -0.05em;
}

13
14
h1 {
	font-size: 2.5em;
Thomas Park's avatar
Thomas Park committed
15
16
}

17
h2 {
Thomas Park's avatar
Thomas Park committed
18
19
20
	font-size: 2em;
}

21
h3 {
Thomas Park's avatar
Thomas Park committed
22
23
24
	font-size: 1.5em;
}

25
26
h6 {
	color: @textColor;
Thomas Park's avatar
Thomas Park committed
27
28
}

Thomas Park's avatar
Thomas Park committed
29
30
small {
	font-size: 13px;
Thomas Park's avatar
Thomas Park committed
31
32
33
34
35
36
37
38
39
}

.muted, .help-block, .uneditable-input, blockquote, small {
	color: @grayLight;
}

// SCAFFOLDING
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
40
41
42
43
.page-header {
	border-bottom: 2px solid @grayLighter;
}

Thomas Park's avatar
Thomas Park committed
44
45
46
47
48
49
50
51
// NAVBAR
// -----------------------------------------------------

.navbar {

	.brand {
		font-weight: bold;
		line-height: 1em;
52
		padding: 15px 15px 7px;
Thomas Park's avatar
Thomas Park committed
53

Thomas Park's avatar
Thomas Park committed
54
55
56
57
		&:hover {
			color: @linkColorHover;
		}
	}
Thomas Park's avatar
Thomas Park committed
58

Thomas Park's avatar
Thomas Park committed
59
60
	.nav > li > a {
		text-shadow: none;
61
		padding: 15px 15px 7px;
Thomas Park's avatar
Thomas Park committed
62
63
	}

Thomas Park's avatar
Thomas Park committed
64
65
66
67
	.nav > .active > a,
	.nav > .active > a:hover,
	.nav > .active > a:focus {
		.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
68
	}
Thomas Park's avatar
Thomas Park committed
69

70
71
72
73
	.navbar-search {
		margin-top: 11px;
	}

Thomas Park's avatar
Thomas Park committed
74
75
76
77
78
	.search-query {
		border: 1px solid #D4D4D4;
		.border-radius(0);
		color: @textColor;
		background-color: @white;
79
	}
Thomas Park's avatar
Thomas Park committed
80

Thomas Park's avatar
Thomas Park committed
81
	.navbar-text {
82
		margin: 15px 15px 0;
Thomas Park's avatar
Thomas Park committed
83
		line-height: @baseLineHeight;
84
	}
Thomas Park's avatar
Thomas Park committed
85

Thomas Park's avatar
Thomas Park committed
86
87
88
	.divider-vertical {
		border-right: 1px solid rgba(128, 128, 128, 0.3);
		border-left: none;
89
	}
Thomas Park's avatar
Thomas Park committed
90

Thomas Park's avatar
Thomas Park committed
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
	.nav-collapse.collapse {

		.nav li:first-child > a {
			margin-bottom: 10px;
		}

		.nav li > a {
			color: @linkColor;
			.border-radius(0);
			font-weight: normal;

			&:hover {
				background-color: rgba(0, 0, 0, 0.05);
				color: @linkColorHover;
			}
		}

		.navbar-form,
		.navbar-search {
			border-top: 1px solid rgba(128, 128, 128, 0.2);
			border-bottom: 1px solid rgba(128, 128, 128, 0.2);
		}

		.nav-header {
			color: @grayLight;
		}
117
118
	}

Thomas Park's avatar
Thomas Park committed
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
	&-inverse {

		.brand:hover {
			color: @white;
		}

		.nav-collapse.collapse {

			.nav li > a {
				color: @grayLighter;
			}

			.nav li > a:hover {
				background-color: rgba(0, 0, 0, 0.2);
				color: @white;
			}
		}

	}
Thomas Park's avatar
Thomas Park committed
138
139
140
141
142
143
144
145
146
}

div.subnav {
	.box-shadow(none);
	.border-radius(0);
	background-color: @white;
	background-image: none;

	.nav {
Thomas Park's avatar
Thomas Park committed
147
		padding: 0;
Thomas Park's avatar
Thomas Park committed
148
	}
Thomas Park's avatar
Thomas Park committed
149

Thomas Park's avatar
Thomas Park committed
150
151
152
153
154
155
	.nav > li.active > a,
	.nav > li:active > a {
		color: @linkColor;
		.box-shadow(none);
		background-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
156

Thomas Park's avatar
Thomas Park committed
157
158
159
160
	.nav > li > a:hover,
	.nav > li.active > a:hover,
	.nav > li:active > a:hover {
		background-color: transparent;
161
162
163
164
165
166
		.box-shadow(none);
		color: @linkColorHover;
	}

	&-fixed {
		top: @navbarHeight;
Thomas Park's avatar
Thomas Park committed
167
168
169
170
171
172
173
	}
}

.dropdown-menu {
	border: 1px solid #D4D4D4;
	.border-radius(0);
	.box-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
Thomas Park's avatar
Thomas Park committed
174

Thomas Park's avatar
Thomas Park committed
175
176
	.divider {
		margin: 5px 1px;
Thomas Park's avatar
Thomas Park committed
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
	}
}

// NAV
// -----------------------------------------------------

.nav .dropdown .caret {
	opacity: 1;
}

.nav-tabs {

	li > a {
		.border-radius(0);
	}

	li > a:hover {
Thomas Park's avatar
Thomas Park committed
194
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
195
196
197
198
199
	}

	li.active > a,
	li.active > a:hover {
		color: @textColor;
Thomas Park's avatar
Thomas Park committed
200
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
	}
}

.nav-tabs.nav-stacked {

	li > a {
		background-color: @white;
	}

	li.active > a,
	li.active > a:hover,
	li > a:hover {
		background-color: #F5F5F5;
	}

	li:first-child > a,
	li:last-child > a {
		.border-radius(0);
	}
}

.nav-pills {

	li > a {
		.border-radius(0);
	}

	li > a:hover {
Thomas Park's avatar
Thomas Park committed
229
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
230
231
232
233
234
	}

	li.active > a,
	li.active > a:hover {
		color: @textColor;
Thomas Park's avatar
Thomas Park committed
235
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
236
	}
Thomas Park's avatar
Thomas Park committed
237

238
239
240
241
242
243
	.open .dropdown-toggle {
		background-color: transparent;
		color: @linkColor;
		border-left: 1px solid whiteSmoke;
		border-right: 1px solid #E5E5E5;
	}
Thomas Park's avatar
Thomas Park committed
244
245


246
247
248
	li.dropdown.open .dropdown-toggle .caret {
		border-top-color: @linkColor;
	}
Thomas Park's avatar
Thomas Park committed
249

250
251
252
	li.dropdown.open .dropdown-toggle:hover .caret {
		border-top-color: @linkColorHover;
	}
Thomas Park's avatar
Thomas Park committed
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
}

.nav-list {

	li > a:hover,
	li.active > a,
	li.active > a:hover {
		background-color: transparent;
		text-shadow: none;
	}

	li.active > a,
	li.active > a:hover {
		color: @textColor;
	}
Thomas Park's avatar
Thomas Park committed
268

Thomas Park's avatar
Thomas Park committed
269
270
271
272
	[class^="icon-"] {
		margin-top: 3px;
		opacity: 0.8;
	}
Thomas Park's avatar
Thomas Park committed
273
274
275
276

	.divider {
		margin: 1px;
	}
Thomas Park's avatar
Thomas Park committed
277
278
279
280
}

.breadcrumb {
	.border-radius(0);
Thomas Park's avatar
Thomas Park committed
281
	background-color: transparent;
Thomas Park's avatar
Thomas Park committed
282
283
284
285
286
287
288
289
290
291
292
293
	background-image: none;
}

.pagination {

	ul {
		.box-shadow(none);
	}

	li > a {
		padding: 10px 14px;
	}
Thomas Park's avatar
Thomas Park committed
294

Thomas Park's avatar
Thomas Park committed
295
296
297
298
299
300

	li.active > a,
	li.active > a:hover {
		color: @textColor;
		background-color: #F5F5F5;
	}
Thomas Park's avatar
Thomas Park committed
301

Thomas Park's avatar
Thomas Park committed
302
303
304
305
306
	li > a,
	li.disabled > a,
	li.disabled > a:hover {
		background-color: @white;
	}
Thomas Park's avatar
Thomas Park committed
307

Thomas Park's avatar
Thomas Park committed
308
309
310
311
312
313
314
	li:first-child > a,
	li:last-child > a {
		.border-radius(0);
	}
}

.pager {
Thomas Park's avatar
Thomas Park committed
315

Thomas Park's avatar
Thomas Park committed
316
317
318
319
320
321
322
323
324
	a {
		.border-radius(0);
	}
}

// BUTTONS
// -----------------------------------------------------

.btn-primary {
Thomas Park's avatar
Thomas Park committed
325
  .buttonBackground(lighten(@btnPrimaryBackground, 10%), @btnPrimaryBackground);
Thomas Park's avatar
Thomas Park committed
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
}

.btn [class^="icon-"],
.btn [class*=" icon-"] {
	margin-top: 4px;
}

.btn-large [class^="icon-"],
.btn-large [class*=" icon-"] {
	margin-top: 6px;
	margin-right: 2px;
}

.btn-small [class^="icon-"],
.btn-small [class*=" icon-"] {
	margin-top: 3px;
}

.btn .caret {
	margin-top: 13px;
}

// FORMS
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
351
352
353
354
355
356
357
358
input, button, select, textarea {
	font-family: @baseFontFamily;
}

input, textarea, select {
	color: @textColor;
}

359
360
361
362
363
select, input[type="file"] {
	height: auto;
	line-height: normal;
}

Thomas Park's avatar
Thomas Park committed
364
365
366
367
.form-actions {
	border-top: 1px solid #D4D4D4;
	padding-top: 2em;
}
Thomas Park's avatar
Thomas Park committed
368
369
370
371
372
373
374
375

// TABLES
// -----------------------------------------------------

.table-bordered {
	.border-radius(0);
}

Thomas Park's avatar
Thomas Park committed
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
.table-bordered thead:first-child tr:first-child th:first-child,
.table-bordered tbody:first-child tr:first-child td:first-child {
	.border-radius(0);
}

.table-bordered thead:last-child tr:last-child th:first-child,
.table-bordered tbody:last-child tr:last-child td:first-child {
	.border-radius(0);
}

// MODALS
// -----------------------------------------------------

.modal {
	background-color: @white;
	.border-radius(0);
}

.modal-header {
	border-bottom: none;
}

.modal-footer {
	background-color: @bodyBackground;
}


Thomas Park's avatar
Thomas Park committed
403
404
405
// MISCELLANEOUS
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
406
.alert,
Thomas Park's avatar
Thomas Park committed
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
.label, .label:hover {
	.border-radius(0);
	border: 1px solid #D4D4D4;
	color: @textColor;
	text-shadow: none;
}

.alert-heading {
	color: @textColor;
	text-shadow: none;
}

.label, .label:hover {
	background-color: @white;
	font-weight: normal;
	font-size: @baseFontSize;
	padding: 4px;
}

.label-important, .label-important:hover { background-color: @errorBackground; }

.label-warning, .label-warning:hover { background-color: @warningBackground; }

.label-success, .label-success:hover { background-color: @successBackground; }

.label-info, .label-info:hover { background-color: @infoBackground; }

Thomas Park's avatar
Thomas Park committed
434
.well, .hero-unit {
Thomas Park's avatar
Thomas Park committed
435
436
437
438
439
440
441
	.box-shadow(none);
	border: 1px solid #D4D4D4;
	.border-radius(0);
}

blockquote {
	border-left: 6px solid @grayLighter;
Thomas Park's avatar
Thomas Park committed
442

Thomas Park's avatar
Thomas Park committed
443
444
445
	&.pull-right {
		border-right: 6px solid @grayLighter;
	}
Thomas Park's avatar
Thomas Park committed
446

Thomas Park's avatar
Thomas Park committed
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
	p {
		font-size: 1em;
		line-height: 1.2em;
	}
}

.thumbnail {
	background-color: @white;
}

.thumbnail, .thumbnail > img {
	.border-radius(0);
	.box-shadow(none);
}

code, pre {
	.border-radius(0);
	background-color: @white;
}