bootswatch.less 7.12 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.1
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 { font-size: 2.5em; }
Thomas Park's avatar
Thomas Park committed
14

Thomas Park's avatar
Thomas Park committed
15
h2 { font-size: 2em; }
Thomas Park's avatar
Thomas Park committed
16

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

small {
	font-size: 13px;
Thomas Park's avatar
Thomas Park committed
21
22
}

Thomas Park's avatar
Thomas Park committed
23
24
25
26
27
28
29
30
31
32
33
34
blockquote {

	border-left: 6px solid @grayLighter;

	&.pull-right {
		border-right: 6px solid @grayLighter;
	}

	p {
		font-size: 1em;
		line-height: 1.2em;
	}
Thomas Park's avatar
Thomas Park committed
35
36
}

Thomas Park's avatar
Thomas Park committed
37
38
39
code, pre {
	.border-radius(0);
	background-color: @white;
Thomas Park's avatar
Thomas Park committed
40
41
42
43
44
45
46
47
48
}

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

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

Thomas Park's avatar
Thomas Park committed
49
50
51
52
.page-header {
	border-bottom: 2px solid @grayLighter;
}

Thomas Park's avatar
Thomas Park committed
53
54
55
56
57
58
59
60
// NAVBAR
// -----------------------------------------------------

.navbar {

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

Thomas Park's avatar
Thomas Park committed
63
64
65
66
		&:hover {
			color: @linkColorHover;
		}
	}
Thomas Park's avatar
Thomas Park committed
67

Thomas Park's avatar
Thomas Park committed
68
69
	.nav > li > a {
		text-shadow: none;
70
		padding: 15px 15px 7px;
Thomas Park's avatar
Thomas Park committed
71
72
	}

Thomas Park's avatar
Thomas Park committed
73
74
75
76
	.nav > .active > a,
	.nav > .active > a:hover,
	.nav > .active > a:focus {
		.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
77
	}
Thomas Park's avatar
Thomas Park committed
78

79
80
81
82
	.navbar-search {
		margin-top: 11px;
	}

Thomas Park's avatar
Thomas Park committed
83
84
85
86
87
	.search-query {
		border: 1px solid #D4D4D4;
		.border-radius(0);
		color: @textColor;
		background-color: @white;
88
	}
Thomas Park's avatar
Thomas Park committed
89

Thomas Park's avatar
Thomas Park committed
90
	.navbar-text {
91
		margin: 15px 15px 0;
Thomas Park's avatar
Thomas Park committed
92
		line-height: @baseLineHeight;
93
	}
Thomas Park's avatar
Thomas Park committed
94

Thomas Park's avatar
Thomas Park committed
95
96
97
	.divider-vertical {
		border-right: 1px solid rgba(128, 128, 128, 0.3);
		border-left: none;
98
	}
Thomas Park's avatar
Thomas Park committed
99

100
101
102
103
104
105
106
107
108
109
110
	&-inverse {

		.brand:hover {
			color: @white;
		}
	}
}

@media (max-width: @navbarCollapseWidth) {

	.navbar .nav-collapse {
Thomas Park's avatar
Thomas Park committed
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135

		.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;
		}
136
137
	}

138
	.navbar-inverse .nav-collapse {
Thomas Park's avatar
Thomas Park committed
139

140
141
		.nav li > a {
			color: @grayLighter;
Thomas Park's avatar
Thomas Park committed
142
143
		}

144
145
146
		.nav li > a:hover {
			background-color: rgba(0, 0, 0, 0.2) !important;
			color: @white;
Thomas Park's avatar
Thomas Park committed
147
148
		}
	}
Thomas Park's avatar
Thomas Park committed
149
150
151
}

div.subnav {
Thomas Park's avatar
Thomas Park committed
152

Thomas Park's avatar
Thomas Park committed
153
154
155
156
157
158
	.box-shadow(none);
	.border-radius(0);
	background-color: @white;
	background-image: none;

	.nav {
Thomas Park's avatar
Thomas Park committed
159
		padding: 0;
Thomas Park's avatar
Thomas Park committed
160
	}
Thomas Park's avatar
Thomas Park committed
161

Thomas Park's avatar
Thomas Park committed
162
163
164
165
166
167
	.nav > li.active > a,
	.nav > li:active > a {
		color: @linkColor;
		.box-shadow(none);
		background-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
168

Thomas Park's avatar
Thomas Park committed
169
170
171
172
	.nav > li > a:hover,
	.nav > li.active > a:hover,
	.nav > li:active > a:hover {
		background-color: transparent;
173
174
175
176
177
178
		.box-shadow(none);
		color: @linkColorHover;
	}

	&-fixed {
		top: @navbarHeight;
Thomas Park's avatar
Thomas Park committed
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
	}
}

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

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

.nav-tabs {

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

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

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

.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
231
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
232
233
234
235
236
	}

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

240
241
242
243
244
245
	.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
246
247


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

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

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

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

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

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

.pagination {

	ul {
		.box-shadow(none);
	}

293
294
	ul > li > a,
	ul > li > span {
295
		padding: 12px 14px 8px;
296
		background-color: @white;
297
		line-height: 1;
Thomas Park's avatar
Thomas Park committed
298
	}
Thomas Park's avatar
Thomas Park committed
299

300
301
302
303
	ul > li:first-child > a,
	ul > li:last-child > a {
		.border-radius(0);
	}
Thomas Park's avatar
Thomas Park committed
304

305
306
307
308
	ul > .active > a,
	ul > .active > a:hover,
	ul > .active > span,
	ul > .active > span:hover {
Thomas Park's avatar
Thomas Park committed
309
310
311
		color: @textColor;
		background-color: #F5F5F5;
	}
Thomas Park's avatar
Thomas Park committed
312

313
314
315
316
	ul > .disabled > a,
	ul > .disabled > a:hover,
	ul > .disabled > span,
	ul > .disabled > span:hover {
Thomas Park's avatar
Thomas Park committed
317
318
319
320
321
		background-color: @white;
	}
}

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

Thomas Park's avatar
Thomas Park committed
323
324
325
326
327
328
329
330
331
	a {
		.border-radius(0);
	}
}

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

.btn-primary {
Thomas Park's avatar
Thomas Park committed
332
  .buttonBackground(lighten(@btnPrimaryBackground, 10%), @btnPrimaryBackground);
Thomas Park's avatar
Thomas Park committed
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
}

.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;
}

Thomas Park's avatar
Thomas Park committed
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
// TABLES
// -----------------------------------------------------

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

.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);
}

Thomas Park's avatar
Thomas Park committed
372
373
374
// FORMS
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
375
376
377
378
379
380
381
382
input, button, select, textarea {
	font-family: @baseFontFamily;
}

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

383
384
385
386
387
select, input[type="file"] {
	height: auto;
	line-height: normal;
}

Thomas Park's avatar
Thomas Park committed
388
389
390
391
.form-actions {
	border-top: 1px solid #D4D4D4;
	padding-top: 2em;
}
Thomas Park's avatar
Thomas Park committed
392

Thomas Park's avatar
Thomas Park committed
393
// DROPDOWNS
Thomas Park's avatar
Thomas Park committed
394
395
// -----------------------------------------------------

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

Thomas Park's avatar
Thomas Park committed
401
402
403
	.divider {
		margin: 5px 1px;
	}
Thomas Park's avatar
Thomas Park committed
404
405
}

Thomas Park's avatar
Thomas Park committed
406
// ALERTS, LABELS, BADGES
Thomas Park's avatar
Thomas Park committed
407
408
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
409
.alert,
Thomas Park's avatar
Thomas Park committed
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
.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
437
438
439
// MISC
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
440
.well, .hero-unit {
Thomas Park's avatar
Thomas Park committed
441
442
443
444
445
446
447
448
449
	.box-shadow(none);
	border: 1px solid #D4D4D4;
	.border-radius(0);
}

.thumbnail {
	background-color: @white;
}

Thomas Park's avatar
Thomas Park committed
450
451
.thumbnail,
.thumbnail > img {
Thomas Park's avatar
Thomas Park committed
452
453
454
455
	.border-radius(0);
	.box-shadow(none);
}

Thomas Park's avatar
Thomas Park committed
456
.modal {
Thomas Park's avatar
Thomas Park committed
457
	background-color: @white;
Thomas Park's avatar
Thomas Park committed
458
459
460
461
462
	.border-radius(0);
}

.modal-header {
	border-bottom: none;
Thomas Park's avatar
Thomas Park committed
463
}
Thomas Park's avatar
Thomas Park committed
464
465
466
467
468
469
470

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

// MEDIA QUERIES
// -----------------------------------------------------