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
3
// Version: 2.0.3
Thomas Park's avatar
Thomas Park committed
4
5
6
7
8
// -----------------------------------------------------

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

Thomas Park's avatar
Thomas Park committed
9
h1, h2, h3, h4, h5, h6 {
Thomas Park's avatar
Thomas Park committed
10
11
12
13
	line-height: 2em;
	color: @textColor;
}

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

Thomas Park's avatar
Thomas Park committed
18
19
20
21
22
23
24
25
26
h2 {
	font-size: 1.5em;
}

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

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

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

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

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

Thomas Park's avatar
Thomas Park committed
42
43
44
45
46
47
48
49
50
51
.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
52
53
54
55
56
57

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

.navbar {

Thomas Park's avatar
Thomas Park committed
58
59
	margin-left: 16px;

Thomas Park's avatar
Thomas Park committed
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
	.navbar-inner {
		.box-shadow(none);
	}

	.brand {
		font-size: @baseFontSize;
		font-weight: bold;
		line-height: 1em;
		padding: 10px 10px 11px;
		
		&:hover {
			color: @linkColorHover;
		}
	}
	
	.nav > li > a {
		text-shadow: none;
		padding: 10px;
	}

	.nav > li.active > a,
81
	.open .dropdown-toggle {
Thomas Park's avatar
Thomas Park committed
82
83
84
		color: @linkColor;
	}
	
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
	.nav li.dropdown.active > .dropdown-toggle,
	.nav li.dropdown.open > .dropdown-toggle,
	.nav li.dropdown.active.open > .dropdown-toggle {
		color: @linkColor;
		
		&:hover {
			color: @linkColorHover;
		}
	}
	
	.nav li.dropdown .dropdown-toggle .caret,
	.nav li.dropdown.open .caret {
		border-top-color: @linkColor;
		opacity: 1;
	}
	
	.nav li.dropdown.open .dropdown-toggle:hover .caret {
		border-top-color: @linkColorHover;
	}
	
Thomas Park's avatar
Thomas Park committed
105
106
107
108
109
110
111
112
	.search-query {
		border: 1px solid #D4D4D4;
		.border-radius(0);
		color: @textColor;
		background-color: @white;
	}
}

113
114
115
116
117
118
119
@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
120
121
.navbar-fixed-top {
	position: static;
Thomas Park's avatar
Thomas Park committed
122
	margin-bottom: 1.6em;
Thomas Park's avatar
Thomas Park committed
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
}

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

	.nav {
		padding: 0;	
	}
	
	.nav > li.active > a,
	.nav > li:active > a {
		color: @linkColor;
		.box-shadow(none);
		background-color: transparent;
	}
	
	.nav > li > a:hover,
	.nav > li.active > a:hover,
	.nav > li:active > a:hover {
		color: @linkColorHover;
		.box-shadow(none);
		background-color: transparent;
	}
149
	
Thomas Park's avatar
Thomas Park committed
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
}

div.subnav-fixed {
	position: static;
	left: auto;
	width: 100%;
	margin: 0;
	.box-shadow(none);
	.border-radius(4px);
	border: 1px solid #E5E5E5;
	
	.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
172
173
	.divider {
		margin: 5px 1px;
Thomas Park's avatar
Thomas Park committed
174
175
176
	}
}

Thomas Park's avatar
Thomas Park committed
177
.navbar .nav-collapse.in {
Thomas Park's avatar
Thomas Park committed
178
	
Thomas Park's avatar
Thomas Park committed
179
	.nav li:first-child > a {
Thomas Park's avatar
Thomas Park committed
180
181
182
		margin-bottom: 10px;
	}
	
Thomas Park's avatar
Thomas Park committed
183
	.nav li > a {
Thomas Park's avatar
Thomas Park committed
184
185
186
187
188
189
190
191
192
		color: @linkColor;
		.border-radius(0);
		font-weight: normal;
		
		&:hover {
			color: @linkColorHover;
		}
	}
	
Thomas Park's avatar
Thomas Park committed
193
	.nav li > a:hover {
Thomas Park's avatar
Thomas Park committed
194
195
196
197
		background: transparent;
	}
}

Thomas Park's avatar
Thomas Park committed
198
199
200
201
202
203
204
205
206
207
208
209
210
211
// NAV
// -----------------------------------------------------

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

.nav-tabs {

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

	li > a:hover {
Thomas Park's avatar
Thomas Park committed
212
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
213
214
215
216
217
	}

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

.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
247
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
248
249
250
251
252
	}

	li.active > a,
	li.active > a:hover {
		color: @textColor;
Thomas Park's avatar
Thomas Park committed
253
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
254
	}
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
	
	.open .dropdown-toggle {
		background-color: transparent;
		color: @linkColor;
		border-left: 1px solid whiteSmoke;
		border-right: 1px solid #E5E5E5;
	}
	
	
	li.dropdown.open .dropdown-toggle .caret {
		border-top-color: @linkColor;
	}
	
	li.dropdown.open .dropdown-toggle:hover .caret {
		border-top-color: @linkColorHover;
	}
Thomas Park's avatar
Thomas Park committed
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
}

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

	li.active > a,
	li.active > a:hover {
		color: @textColor;
		background-color: #F5F5F5;
	}
	
	li > a,
	li.disabled > a,
	li.disabled > a:hover {
		background-color: @white;
	}
	
	li:first-child > a,
	li:last-child > a {
		.border-radius(0);
	}
}

.pager {
	
	a {
		.border-radius(0);
	}
}

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

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

.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
365
366
367
368
369
370
371
372
input, button, select, textarea {
	font-family: @baseFontFamily;
}

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

373
374
375
376
377
select, input[type="file"] {
	height: auto;
	line-height: normal;
}

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

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

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

Thomas Park's avatar
Thomas Park committed
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
.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
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
// MISCELLANEOUS
// -----------------------------------------------------

.alert, 
.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
448
.well, .hero-unit {
Thomas Park's avatar
Thomas Park committed
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
	.box-shadow(none);
	border: 1px solid #D4D4D4;
	.border-radius(0);
	background-color: @white;
}

blockquote {
	border-left: 6px solid @grayLighter;
	
	&.pull-right {
		border-right: 6px solid @grayLighter;
	}
	
	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;
}