bootswatch.less 9.26 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
// Bootswatch.less
Thomas Park's avatar
Thomas Park committed
2
// Swatch: Spruce
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
// --------------------------------------------------

Thomas Park's avatar
Thomas Park committed
9
@import url('https://fonts.googleapis.com/css?family=Josefin+Slab:400,700');
Thomas Park's avatar
Thomas Park committed
10

Thomas Park's avatar
Thomas Park committed
11
12
13
14
15
16
17
18
19
20
h1 {
	font-size: 54px;
	line-height: 1.2em;
	color: @yellow;
}

h2 { font-size: 48px; }
h3 { font-size: 36px; }
h4 { font-size: 24px; }
h5 { font-size: 20px; }
Thomas Park's avatar
Thomas Park committed
21

Thomas Park's avatar
Thomas Park committed
22
23
24
25
26
27
28
h1 > small,
h2 > small,
h3 > small,
h4 > small,
h5 > small,
h6 > small,
.muted {
Thomas Park's avatar
Thomas Park committed
29
	color: @headingsColor;
Thomas Park's avatar
Thomas Park committed
30
31
32
	font-family: @baseFontFamily;
}

Thomas Park's avatar
Thomas Park committed
33
34
35
code, pre {
	color: lighten(@blueDark, 10%);
	background-color: @headingsColor;
Thomas Park's avatar
Thomas Park committed
36
37
38
39
40
}

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

Thomas Park's avatar
Thomas Park committed
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
// body {
// 	#gradient > .vertical-three-colors (#90A38F, #AEAD8E, 60%, #90A38F);
// 	background-size: 100% 1400px;
// 	background-repeat: repeat-y;
// }

.page-header {
	border-bottom: 2px solid @headingsColor;
	padding-bottom: 5px;

	h1 {
		margin-bottom: 0;
	}
}

hr {
	border-top: none;
	border-bottom: 2px solid @headingsColor;
Thomas Park's avatar
Thomas Park committed
59
60
61
}

blockquote {
Thomas Park's avatar
Thomas Park committed
62
	border-left: 2px solid @headingsColor;
Thomas Park's avatar
Thomas Park committed
63

Thomas Park's avatar
Thomas Park committed
64
	&.pull-right {
Thomas Park's avatar
Thomas Park committed
65
		border-right: 2px solid @headingsColor;
Thomas Park's avatar
Thomas Park committed
66
	}
Thomas Park's avatar
Thomas Park committed
67

Thomas Park's avatar
Thomas Park committed
68
69
70
71
72
73
74
75
	small {
		color: @blueDark;
	}
}

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

76
.navbar {
Thomas Park's avatar
Thomas Park committed
77

78
79
80
81
	.navbar-inner {
		background-image: none;
		.box-shadow(none);
	}
Thomas Park's avatar
Thomas Park committed
82

83
84
	.brand {
		padding: 18px 20px 12px;
Thomas Park's avatar
Thomas Park committed
85
86
87
		font-size: 26px;
		font-family: @headingsFontFamily;
		font-weight: @headingsFontWeight;
88
	}
Thomas Park's avatar
Thomas Park committed
89

90
	.nav > li > a {
Thomas Park's avatar
Thomas Park committed
91
		padding: 20px 20px 10px;
Thomas Park's avatar
Thomas Park committed
92
93
94
		font-size: 20px;
		font-family: @headingsFontFamily;
		font-weight: @headingsFontWeight;
95
	}
Thomas Park's avatar
Thomas Park committed
96

97
98
	.nav .active > a,
	.nav .active > a:hover {
Thomas Park's avatar
Thomas Park committed
99
100
		color: @yellow;
	}
Thomas Park's avatar
Thomas Park committed
101

Thomas Park's avatar
Thomas Park committed
102
103
104
105
106
107
	.nav > .active > a,
	.nav > .active > a:hover,
	.nav > .active > a:focus {
		.box-shadow(none);
	}

108
	.navbar-text {
Thomas Park's avatar
Thomas Park committed
109
		margin: 19px 20px 0;
110
		font-size: 20px;
Thomas Park's avatar
Thomas Park committed
111
112
		font-family: @headingsFontFamily;
		font-weight: @headingsFontWeight;
Thomas Park's avatar
Thomas Park committed
113
114
115
116
117
		line-height: inherit;
	}

	.divider-vertical {
		border-color: rgba(0, 0, 0, 0.2);
118
	}
Thomas Park's avatar
Thomas Park committed
119

120
121
122
	.navbar-search {
		margin-top: 12px;
	}
Thomas Park's avatar
Thomas Park committed
123

124
125
126
	.navbar-search .search-query {
		border-color: transparent;
		background-color: rgba(255, 255, 255, 0.4);
Thomas Park's avatar
Thomas Park committed
127
		color: @white;
128
	}
Thomas Park's avatar
Thomas Park committed
129

130
131
132
133
134
135
136
137
	.btn-navbar {
		margin-top: 14px;
	}

	.navbar-form, .navbar-search {
		border-color: transparent;
		.box-shadow(none);
	}
Thomas Park's avatar
Thomas Park committed
138
139
}

140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
@media (max-width: @navbarCollapseWidth) {

	.navbar .nav-collapse {

		.nav li > a {
			color: @headingsColor;

			&:hover {
				color: @yellow;
				background-color: @blue;
			}
		}	
	}

	.navbar-inverse .nav-collapse {

		.nav li > a:hover {
			background-color: rgba(0, 0, 0, 0.06) !important;
		}

	}
}

Thomas Park's avatar
Thomas Park committed
163
164
165
166
167
div.subnav {
	background-color: @green;
	background-image: none;
	border-color: transparent;
	.box-shadow(0 1px 5px rgba(0,0,0,.1));
Thomas Park's avatar
Thomas Park committed
168
	font-size: 18px;
Thomas Park's avatar
Thomas Park committed
169

170
	.nav > li > a {
171
		padding: 13px 12px 9px;
172
173
		border-color: transparent;
		background-color: transparent;
Thomas Park's avatar
Thomas Park committed
174
175
		font-family: @headingsFontFamily;
		font-weight: @headingsFontWeight;
Thomas Park's avatar
Thomas Park committed
176
		color: @headingsColor;
177
	}
Thomas Park's avatar
Thomas Park committed
178

179
180
181
	.nav > li + li > a {
		border-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
182

183
184
185
186
187
188
189
190
191
192
	.nav > li.active > a,
	.nav > li > a:hover,
	.nav > li.active > a:hover,
	.dropdown.open .dropdown-toggle,
	.dropdown.open.active .dropdown-toggle:hover {
		.box-shadow(none);
		background-color: transparent;
		border-color: transparent;
		color: @yellow;
	}
Thomas Park's avatar
Thomas Park committed
193

194
	.dropdown.open > .dropdown-menu {
Thomas Park's avatar
Thomas Park committed
195
		background-color: @headingsColor;
196
197
198
		color: @textColor;
		border-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
199

200
201
	.dropdown.open > .dropdown-menu a:hover {
		background-color: darken(#90A38F, 10%);
Thomas Park's avatar
Thomas Park committed
202
		color: @headingsColor;
Thomas Park's avatar
Thomas Park committed
203
	}
Thomas Park's avatar
Thomas Park committed
204

205
	&.subnav-fixed {
Thomas Park's avatar
Thomas Park committed
206
		top: @navbarHeight;
207
	}
Thomas Park's avatar
Thomas Park committed
208
209
}

Thomas Park's avatar
Thomas Park committed
210
// NAV
Thomas Park's avatar
Thomas Park committed
211
212
// --------------------------------------------------

Thomas Park's avatar
Thomas Park committed
213
214
.nav {
	.disabled > a {
Thomas Park's avatar
Thomas Park committed
215

Thomas Park's avatar
Thomas Park committed
216
		color: #ccc;
Thomas Park's avatar
Thomas Park committed
217

Thomas Park's avatar
Thomas Park committed
218
219
220
221
		&:hover {
			background-color: #748C73;
		}
	}
Thomas Park's avatar
Thomas Park committed
222
223
}

Thomas Park's avatar
Thomas Park committed
224
.nav-list {
Thomas Park's avatar
Thomas Park committed
225

Thomas Park's avatar
Thomas Park committed
226
227
228
229
	li > a,
	.nav-header {
		text-shadow: none;
	}
Thomas Park's avatar
Thomas Park committed
230

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

Thomas Park's avatar
Thomas Park committed
235
236
237
238
239
	li.active > a,
	li.active > a:hover {
		background-color: #A2CDB5;
		text-shadow: none;
	}
Thomas Park's avatar
Thomas Park committed
240

Thomas Park's avatar
Thomas Park committed
241
242
243
244
245
	.divider {
		background-color: transparent;
		border-bottom: 1px solid @headingsColor;
	}
}
Thomas Park's avatar
Thomas Park committed
246

Thomas Park's avatar
Thomas Park committed
247
.nav-tabs {
Thomas Park's avatar
Thomas Park committed
248
	border-color: transparent;
Thomas Park's avatar
Thomas Park committed
249
250
251
252
253
}

.nav-tabs > li > a,
.nav-pills > li > a {
	background-color: #748C73;
Thomas Park's avatar
Thomas Park committed
254

Thomas Park's avatar
Thomas Park committed
255
	&:hover {
Thomas Park's avatar
Thomas Park committed
256
257
		background-color: #748C73;
		border-color: transparent;
Thomas Park's avatar
Thomas Park committed
258
259
260
	}
}

Thomas Park's avatar
Thomas Park committed
261
262
263
264
265
266
267
.nav-tabs > .active > a,
.nav-tabs > .active > a:hover,
.nav-pills .active > a,
.nav-pills .active > a:hover {
	background-color: #A2CDB5;
	border-color: transparent;
	color: @blue;
Thomas Park's avatar
Thomas Park committed
268
269
}

Thomas Park's avatar
Thomas Park committed
270
271
.nav-tabs.nav-stacked > li > a {
	border-color: transparent;
Thomas Park's avatar
Thomas Park committed
272

Thomas Park's avatar
Thomas Park committed
273
274
275
	&:hover {
		border-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
276
}
Thomas Park's avatar
Thomas Park committed
277

Thomas Park's avatar
Thomas Park committed
278
279
280
281
282
.nav-tabs .open .dropdown-toggle,
.nav-pills .open .dropdown-toggle  {
	background-color: #748C73;
	border-color: transparent;
	color: @yellow;
Thomas Park's avatar
Thomas Park committed
283
}
Thomas Park's avatar
Thomas Park committed
284

Thomas Park's avatar
Thomas Park committed
285
286
287
.nav-tabs .active.open .dropdown-toggle,
.nav-pills .active.open .dropdown-toggle {
	background-color: #A2CDB5;
Thomas Park's avatar
Thomas Park committed
288
}
Thomas Park's avatar
Thomas Park committed
289

Thomas Park's avatar
Thomas Park committed
290
291
292
293
294
.nav-tabs .dropdown-menu,
.nav-pills .dropdown-menu {
	background-color: @headingsColor;
	color: @textColor;
	border-color: transparent;
Thomas Park's avatar
Thomas Park committed
295

Thomas Park's avatar
Thomas Park committed
296
297
298
299
	a:hover {
		background-color: #A2CDB5;
		color: @headingsColor;
	}
Thomas Park's avatar
Thomas Park committed
300
301
}

Thomas Park's avatar
Thomas Park committed
302
303
.nav .nav-header {
	color: @blue;
Thomas Park's avatar
Thomas Park committed
304
305
}

Thomas Park's avatar
Thomas Park committed
306
307
308
309
310
311
312
.tabbable {
	.nav-tabs,
	.nav-tabs > li > a,
	.nav-tabs > li > a:hover,
	.nav-tabs > li.active > a,
	.nav-tabs > li.active > a:hover  {
		border-color: transparent;
Thomas Park's avatar
Thomas Park committed
313
314
315
	}
}

316
.breadcrumb {
Thomas Park's avatar
Thomas Park committed
317
318
319
320
	background-color: darken(#90A38F, 10%);
	background-image: none;
	border-color: transparent;
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
321

322
	li {
Thomas Park's avatar
Thomas Park committed
323
		color: @yellow;
324
325
326
		text-shadow: none;

		a {
Thomas Park's avatar
Thomas Park committed
327
			color: @yellow;
328
329
330
331
332
333
334
		}

		a:hover {
			color: @yellow;
		}

		.divider {
Thomas Park's avatar
Thomas Park committed
335
			color: @headingsColor;
336
		}
Thomas Park's avatar
Thomas Park committed
337
	}
Thomas Park's avatar
Thomas Park committed
338

Thomas Park's avatar
Thomas Park committed
339
340
341
	.active {
		color: @headingsColor;
	}
342
343
}

Thomas Park's avatar
Thomas Park committed
344
.pagination {
Thomas Park's avatar
Thomas Park committed
345

346
	ul {
Thomas Park's avatar
Thomas Park committed
347
348
349
350
351
352
		background-color: darken(#90A38F, 10%);
		background-image: none;
		border-color: transparent;
		.box-shadow(none);
	}

353
	ul > li > a {
Thomas Park's avatar
Thomas Park committed
354
		color: @yellow;
Thomas Park's avatar
Thomas Park committed
355
356
357
358
359
360
		border-color: transparent;

		&:hover {
			color: @yellow;
			background-color: rgba(0, 0, 0, 0.1);
		}
Thomas Park's avatar
Thomas Park committed
361
362
	}

363
	ul > .active > a {
Thomas Park's avatar
Thomas Park committed
364
365
366
		color: @headingsColor;
		background-color: rgba(0, 0, 0, 0.1);
	}
Thomas Park's avatar
Thomas Park committed
367

368
369
	ul > .disabled > a,
	ul > .disabled > a:hover {
Thomas Park's avatar
Thomas Park committed
370
371
		color: @blue;
	}
Thomas Park's avatar
Thomas Park committed
372
373
}

Thomas Park's avatar
Thomas Park committed
374
.pager {
Thomas Park's avatar
Thomas Park committed
375

Thomas Park's avatar
Thomas Park committed
376
377
378
	a {
		border: none;
		background-color: #748C73;
Thomas Park's avatar
Thomas Park committed
379

Thomas Park's avatar
Thomas Park committed
380
381
382
		&:hover {
			background-color: #687D67;
		}
383
	}
Thomas Park's avatar
Thomas Park committed
384

Thomas Park's avatar
Thomas Park committed
385
386
387
388
	.disabled a,
	.disabled a:hover {
		background-color: #748C73;
		color: @textColor;
389
	}
Thomas Park's avatar
Thomas Park committed
390
}
Thomas Park's avatar
Thomas Park committed
391

Thomas Park's avatar
Thomas Park committed
392
393
394
395
396
397
398
399
400
// BUTTONS
// --------------------------------------------------

.btn {
	font-family: @headingsFontFamily;
	font-weight: @headingsFontWeight;
    text-shadow: none;
	border-color: transparent;
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
401
402
}

Thomas Park's avatar
Thomas Park committed
403
404
.btn-large {
	font-size: 18px;
Thomas Park's avatar
Thomas Park committed
405
406
}

Thomas Park's avatar
Thomas Park committed
407
408
.btn-group .dropdown-toggle {
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
409
410
}

Thomas Park's avatar
Thomas Park committed
411
412
// TABLES
// --------------------------------------------------
Thomas Park's avatar
Thomas Park committed
413

Thomas Park's avatar
Thomas Park committed
414
415
416
417
.table,
.table.table-bordered,
.table.table-striped {
	.border-radius(0 0 8px 8px);
Thomas Park's avatar
Thomas Park committed
418
419
}

Thomas Park's avatar
Thomas Park committed
420
421
422
423
424
.table-bordered thead:first-child tr:first-child th:first-child,
.table-bordered tbody:first-child tr:first-child td:first-child,
.table-bordered thead:first-child tr:first-child th:last-child,
.table-bordered tbody:first-child tr:first-child td:last-child {
	.border-radius(0);
Thomas Park's avatar
Thomas Park committed
425
426
}

Thomas Park's avatar
Thomas Park committed
427
428
.table-striped tbody:last-child tr:last-child td:first-child {
	.border-radius(0 0 0 8px);
Thomas Park's avatar
Thomas Park committed
429
430
}

Thomas Park's avatar
Thomas Park committed
431
432
433
.table-striped tbody:last-child tr:last-child td:last-child {
	.border-radius(0 0 8px 0);
}
Thomas Park's avatar
Thomas Park committed
434

Thomas Park's avatar
Thomas Park committed
435
436
437
.table-bordered {
	border: none;
}
Thomas Park's avatar
Thomas Park committed
438

Thomas Park's avatar
Thomas Park committed
439
440
441
442
.table thead tr th:first-child,
.table tbody tr td:first-child {
	border-left: none;
}
Thomas Park's avatar
Thomas Park committed
443

Thomas Park's avatar
Thomas Park committed
444
445
446
447
.table th,
.table-striped tbody tr:nth-child(odd) th {
	background-color: darken(#90A38F, 10%);
	color: @headingsColor;
Thomas Park's avatar
Thomas Park committed
448
449
450
451
452
453
}

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

legend {
Thomas Park's avatar
Thomas Park committed
454
455
	font-family: @headingsFontFamily;
	font-weight: @headingsFontWeight;
Thomas Park's avatar
Thomas Park committed
456
	color: @headingsColor;
Thomas Park's avatar
Thomas Park committed
457
458
459
}

label, .help-block, input[type="file"] {
Thomas Park's avatar
Thomas Park committed
460
	color: @headingsColor;
Thomas Park's avatar
Thomas Park committed
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
}

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

.uneditable-input {
	color: @gray;
}

legend {
	border-bottom: 2px solid @white;
}

.form-actions {
	border-top: none;
	.border-radius(4px);
}

480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
.control-group.error {

	label, .help-block, .help-inline {
		color: lighten(@red, 30%);
	}

	input, select, textarea {
		border: 2px solid lighten(@red, 30%);
		color: @textColor;
	}
}

.control-group.success {

	label, .help-block, .help-inline {
		color: lighten(#24C00B, 25%);
	}

	input, select, textarea {
		border: 2px solid lighten(#24C00B, 25%);
		color: @textColor;
	}
}

.control-group.warning {

	label, .help-block, .help-inline {
		color: lighten(@orange, 25%);
	}

	input, select, textarea {
		border: 2px solid lighten(@orange, 25%);
		color: @textColor;
	}
}

Thomas Park's avatar
Thomas Park committed
516
// ALERTS, LABELS, BADGES
Thomas Park's avatar
Thomas Park committed
517
518
519
520
521
522
523
// --------------------------------------------------

.alert {
	text-shadow: none;
	border: none;
}

Thomas Park's avatar
Thomas Park committed
524
525
526
527
528
.alert-heading {
	font-family: @baseFontFamily;
	color: inherit;
}

Thomas Park's avatar
Thomas Park committed
529
.badge,
Thomas Park's avatar
Thomas Park committed
530
.label {
Thomas Park's avatar
Thomas Park committed
531
532

	background-color: @blue;
Thomas Park's avatar
Thomas Park committed
533
	text-shadow: none;
Thomas Park's avatar
Thomas Park committed
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553

	&-success {
		background-color: @successBackground;
	}

	&-warning {
		background-color: @warningBackground;
	}

	&-important {
		background-color: @errorBackground;
	}

	&-info {
		background-color: @infoBackground;
	}

	&-inverse {
		background-color: @yellow;
	}
Thomas Park's avatar
Thomas Park committed
554
555
}

Thomas Park's avatar
Thomas Park committed
556
557
// MISC
// --------------------------------------------------
Thomas Park's avatar
Thomas Park committed
558
559
560
561
562
563
564
565
566

.well {
	border: none;
	.box-shadow(none);
}

.thumbnail {
	border: none;
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
567

Thomas Park's avatar
Thomas Park committed
568
569
570
571
572
	img {
		.border-radius(4px);
	}
}

Thomas Park's avatar
Thomas Park committed
573
574
575
.progress {
	background-color: darken(#90A38F, 10%);
	background-image: none;
Thomas Park's avatar
Thomas Park committed
576
577
}

Thomas Park's avatar
Thomas Park committed
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
.modal {

	&-header {
		padding: 12px 15px 6px;
		background-color: @green;
	}

	&-body,
	&-footer {
		background-color: @headingsColor;
		border: none;
		.box-shadow(none);

		label {
			color: @textColor;
		}
	}

	&-footer {
		.border-radius(0 0 4px 4px);
	}
Thomas Park's avatar
Thomas Park committed
599
}
Thomas Park's avatar
Thomas Park committed
600
601
602

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