bootswatch.less 6.79 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;
}

Thomas Park's avatar
Thomas Park committed
13
h1, h2, h3, h4, h5, h6 {
Thomas Park's avatar
Thomas Park committed
14
15
16
17
	line-height: 2em;
	color: @textColor;
}

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

Thomas Park's avatar
Thomas Park committed
22
23
24
25
26
27
28
29
30
h2 {
	font-size: 1.5em;
}

h3, h4, h5, h6 {
	font-size: 1em;
	text-transform: none;
}

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

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

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

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

Thomas Park's avatar
Thomas Park committed
46
47
48
49
50
51
52
53
// NAVBAR
// -----------------------------------------------------

.navbar {

	.brand {
		font-weight: bold;
		line-height: 1em;
Thomas Park's avatar
Thomas Park committed
54
		padding: 10px 15px;
Thomas Park's avatar
Thomas Park committed
55

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

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

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

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

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

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

Thomas Park's avatar
Thomas Park committed
89
90
	.navbar-search {
		margin-top: 7px;
Thomas Park's avatar
Thomas Park committed
91
92
	}

Thomas Park's avatar
Thomas Park committed
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
	.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;
		}
119
120
	}

Thomas Park's avatar
Thomas Park committed
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
	&-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
140
141
142
143
144
145
146
147
148
}

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

	.nav {
Thomas Park's avatar
Thomas Park committed
149
		padding: 0;
Thomas Park's avatar
Thomas Park committed
150
	}
Thomas Park's avatar
Thomas Park committed
151

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

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

.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
172

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

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

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

.nav-tabs {

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

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

	li.active > a,
	li.active > a:hover {
		color: @textColor;
Thomas Park's avatar
Thomas Park committed
198
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
199
200
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
	}
}

.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
227
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
228
229
230
231
232
	}

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

236
237
238
239
240
241
	.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
242
243


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

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

.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
266

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

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

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

.pagination {

	ul {
		.box-shadow(none);
	}

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

Thomas Park's avatar
Thomas Park committed
293
294
295
296
297
298

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

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

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

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

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

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

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

.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
349
350
351
352
353
354
355
356
input, button, select, textarea {
	font-family: @baseFontFamily;
}

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

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

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

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

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

Thomas Park's avatar
Thomas Park committed
374
375
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
.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
401
402
403
// MISCELLANEOUS
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
404
.alert,
Thomas Park's avatar
Thomas Park committed
405
406
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
.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
432
.well, .hero-unit {
Thomas Park's avatar
Thomas Park committed
433
434
435
436
437
438
439
	.box-shadow(none);
	border: 1px solid #D4D4D4;
	.border-radius(0);
}

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

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

Thomas Park's avatar
Thomas Park committed
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
	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;
}