bootswatch.less 7.19 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.0.4
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
42
43
44
45
}

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

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

body {
	padding-top: 20px !important;
}

Thomas Park's avatar
Thomas Park committed
46
47
48
49
50
51
52
53
54
55
.page-header {
	padding-bottom: 1em;
	border-bottom: 2px solid @grayLighter;
}

footer.footer {
	padding-top: 2em;
	padding-bottom: 3em;
	border-top: 2px solid @grayLighter;
}
Thomas Park's avatar
Thomas Park committed
56
57
58
59
60
61

// NAVBAR
// -----------------------------------------------------

.navbar {

Thomas Park's avatar
Thomas Park committed
62
63
	margin-left: 16px;

Thomas Park's avatar
Thomas Park committed
64
65
66
67
68
69
70
71
	.navbar-inner {
		.box-shadow(none);
	}

	.brand {
		font-size: @baseFontSize;
		font-weight: bold;
		line-height: 1em;
Thomas Park's avatar
Thomas Park committed
72
		padding: 11px 10px;
Thomas Park's avatar
Thomas Park committed
73

Thomas Park's avatar
Thomas Park committed
74
75
76
77
		&:hover {
			color: @linkColorHover;
		}
	}
Thomas Park's avatar
Thomas Park committed
78

Thomas Park's avatar
Thomas Park committed
79
80
81
82
83
84
	.nav > li > a {
		text-shadow: none;
		padding: 10px;
	}

	.nav > li.active > a,
85
	.open .dropdown-toggle {
Thomas Park's avatar
Thomas Park committed
86
87
		color: @linkColor;
	}
Thomas Park's avatar
Thomas Park committed
88

89
90
91
92
	.nav li.dropdown.active > .dropdown-toggle,
	.nav li.dropdown.open > .dropdown-toggle,
	.nav li.dropdown.active.open > .dropdown-toggle {
		color: @linkColor;
Thomas Park's avatar
Thomas Park committed
93

94
95
96
97
		&:hover {
			color: @linkColorHover;
		}
	}
Thomas Park's avatar
Thomas Park committed
98

99
100
101
102
103
	.nav li.dropdown .dropdown-toggle .caret,
	.nav li.dropdown.open .caret {
		border-top-color: @linkColor;
		opacity: 1;
	}
Thomas Park's avatar
Thomas Park committed
104

105
106
107
	.nav li.dropdown.open .dropdown-toggle:hover .caret {
		border-top-color: @linkColorHover;
	}
Thomas Park's avatar
Thomas Park committed
108

Thomas Park's avatar
Thomas Park committed
109
110
111
112
113
114
115
116
	.search-query {
		border: 1px solid #D4D4D4;
		.border-radius(0);
		color: @textColor;
		background-color: @white;
	}
}

117
118
119
120
121
122
123
@media (max-width: 980px) {
	form.navbar-form, form.navbar-search {
		border-top: 1px solid #D4D4D4;
		border-bottom: 1px solid #D4D4D4;
	}
}

Thomas Park's avatar
Thomas Park committed
124
125
.navbar-fixed-top {
	position: static;
Thomas Park's avatar
Thomas Park committed
126
	margin-bottom: 1.6em;
Thomas Park's avatar
Thomas Park committed
127
128
129
130
131
132
133
134
135
}

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

	.nav {
Thomas Park's avatar
Thomas Park committed
136
		padding: 0;
Thomas Park's avatar
Thomas Park committed
137
	}
Thomas Park's avatar
Thomas Park committed
138

Thomas Park's avatar
Thomas Park committed
139
140
141
142
143
144
	.nav > li.active > a,
	.nav > li:active > a {
		color: @linkColor;
		.box-shadow(none);
		background-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
145

Thomas Park's avatar
Thomas Park committed
146
147
148
149
150
151
152
	.nav > li > a:hover,
	.nav > li.active > a:hover,
	.nav > li:active > a:hover {
		color: @linkColorHover;
		.box-shadow(none);
		background-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
153

Thomas Park's avatar
Thomas Park committed
154
155
156
157
158
159
160
161
162
163
}

div.subnav-fixed {
	position: static;
	left: auto;
	width: 100%;
	margin: 0;
	.box-shadow(none);
	.border-radius(4px);
	border: 1px solid #E5E5E5;
Thomas Park's avatar
Thomas Park committed
164

Thomas Park's avatar
Thomas Park committed
165
166
167
168
169
170
171
172
173
174
	.nav {
		width: auto;
		padding: 0;
	}
}

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

Thomas Park's avatar
Thomas Park committed
176
177
	.divider {
		margin: 5px 1px;
Thomas Park's avatar
Thomas Park committed
178
179
180
	}
}

Thomas Park's avatar
Thomas Park committed
181
.navbar .nav-collapse.in {
Thomas Park's avatar
Thomas Park committed
182

Thomas Park's avatar
Thomas Park committed
183
	.nav li:first-child > a {
Thomas Park's avatar
Thomas Park committed
184
185
		margin-bottom: 10px;
	}
Thomas Park's avatar
Thomas Park committed
186

Thomas Park's avatar
Thomas Park committed
187
	.nav li > a {
Thomas Park's avatar
Thomas Park committed
188
189
190
		color: @linkColor;
		.border-radius(0);
		font-weight: normal;
Thomas Park's avatar
Thomas Park committed
191

Thomas Park's avatar
Thomas Park committed
192
193
194
195
		&:hover {
			color: @linkColorHover;
		}
	}
Thomas Park's avatar
Thomas Park committed
196

Thomas Park's avatar
Thomas Park committed
197
	.nav li > a:hover {
Thomas Park's avatar
Thomas Park committed
198
199
200
201
		background: transparent;
	}
}

Thomas Park's avatar
Thomas Park committed
202
203
204
205
206
207
208
209
210
211
212
213
214
215
// NAV
// -----------------------------------------------------

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

.nav-tabs {

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

	li > a:hover {
Thomas Park's avatar
Thomas Park committed
216
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
217
218
219
220
221
	}

	li.active > a,
	li.active > a:hover {
		color: @textColor;
Thomas Park's avatar
Thomas Park committed
222
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
	}
}

.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
251
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
252
253
254
255
256
	}

	li.active > a,
	li.active > a:hover {
		color: @textColor;
Thomas Park's avatar
Thomas Park committed
257
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
258
	}
Thomas Park's avatar
Thomas Park committed
259

260
261
262
263
264
265
	.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
266
267


268
269
270
	li.dropdown.open .dropdown-toggle .caret {
		border-top-color: @linkColor;
	}
Thomas Park's avatar
Thomas Park committed
271

272
273
274
	li.dropdown.open .dropdown-toggle:hover .caret {
		border-top-color: @linkColorHover;
	}
Thomas Park's avatar
Thomas Park committed
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
}

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

Thomas Park's avatar
Thomas Park committed
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
	[class^="icon-"] {
		margin-top: 3px;
		opacity: 0.8;
	}
}

.breadcrumb {
	.border-radius(0);
	background-color: @white;
	background-image: none;
}

.pagination {

	ul {
		.box-shadow(none);
	}

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

Thomas Park's avatar
Thomas Park committed
313
314
315
316
317
318

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

Thomas Park's avatar
Thomas Park committed
320
321
322
323
324
	li > a,
	li.disabled > a,
	li.disabled > a:hover {
		background-color: @white;
	}
Thomas Park's avatar
Thomas Park committed
325

Thomas Park's avatar
Thomas Park committed
326
327
328
329
330
331
332
	li:first-child > a,
	li:last-child > a {
		.border-radius(0);
	}
}

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

Thomas Park's avatar
Thomas Park committed
334
335
336
337
338
339
340
341
342
	a {
		.border-radius(0);
	}
}

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

.btn-primary {
Thomas Park's avatar
Thomas Park committed
343
  .buttonBackground(lighten(@btnPrimaryBackground, 10%), @btnPrimaryBackground);
Thomas Park's avatar
Thomas Park committed
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
}

.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
369
370
371
372
373
374
375
376
input, button, select, textarea {
	font-family: @baseFontFamily;
}

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

377
378
379
380
381
select, input[type="file"] {
	height: auto;
	line-height: normal;
}

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

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

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

Thomas Park's avatar
Thomas Park committed
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
.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
421
422
423
// MISCELLANEOUS
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
424
.alert,
Thomas Park's avatar
Thomas Park committed
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
.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
452
.well, .hero-unit {
Thomas Park's avatar
Thomas Park committed
453
454
455
456
457
458
459
460
	.box-shadow(none);
	border: 1px solid #D4D4D4;
	.border-radius(0);
	background-color: @white;
}

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

Thomas Park's avatar
Thomas Park committed
462
463
464
	&.pull-right {
		border-right: 6px solid @grayLighter;
	}
Thomas Park's avatar
Thomas Park committed
465

Thomas Park's avatar
Thomas Park committed
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
	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;
}