bootswatch.less 8.3 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.0.3
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
.navbar .brand, legend, .btn,
Thomas Park's avatar
Thomas Park committed
12
.navbar .nav > li > a,
Thomas Park's avatar
Thomas Park committed
13
14
div.subnav li > a,
.navbar-text  {
Thomas Park's avatar
Thomas Park committed
15
16
	font-family: @headingsFontFamily;
	font-weight: @headingsFontWeight;
Thomas Park's avatar
Thomas Park committed
17
18
19
20
21
22
23
24
25
26
27
28
}

h3 { font-size: 20px; }
h4 { font-size: 16px; }
h5 { font-size: 14px; }

h1, h2, h3, h4, h5, h6 {
	color: @yellow;
}

h1 > small, h2 > small, h3 > small, h4 > small, h5 > small, h6 > small, .muted {
	color: @linkColor;
Thomas Park's avatar
Thomas Park committed
29
30
31
32
33
	font-family: @baseFontFamily;
}

.alert-heading {
	font-family: @baseFontFamily;
Thomas Park's avatar
Thomas Park committed
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
}

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

body {
	#gradient > .vertical-three-colors (#90A38F, #AEAD8E, 60%, #90A38F);
	background-size: 100% 1400px;
	background-repeat: repeat-y !important;
}

blockquote {
	border-left: 2px solid @linkColor;
	
	&.pull-right {
		border-right: 2px solid @linkColor;
	}
	
	small {
		color: @blueDark;
	}
}

code, pre {
	color: lighten(@blueDark, 10%);
	background-color: @linkColor;
}

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

Thomas Park's avatar
Thomas Park committed
65
66
67
68
69
70
71
72
73
74
75
.navbar {
	
	.navbar-inner {
		background-image: none;
		.box-shadow(none);
	}
	
	.brand {
		font-size: 26px;
		padding: 18px 20px 12px;
	}
Thomas Park's avatar
Thomas Park committed
76

Thomas Park's avatar
Thomas Park committed
77
78
79
80
	.nav > li > a {
		font-size: 20px;
		padding: 22px 10px 11px;
	}
Thomas Park's avatar
Thomas Park committed
81
	
Thomas Park's avatar
Thomas Park committed
82
83
	.nav .active > a,
	.nav .active > a:hover {
Thomas Park's avatar
Thomas Park committed
84
85
		color: @yellow;
	}
Thomas Park's avatar
Thomas Park committed
86
87
88
89
90
	
	.navbar-text {
		font-size: 20px;
		padding-top: 12px;
	}
Thomas Park's avatar
Thomas Park committed
91

Thomas Park's avatar
Thomas Park committed
92
93
94
	.navbar-search {
		margin-top: 12px;
	}
Thomas Park's avatar
Thomas Park committed
95

Thomas Park's avatar
Thomas Park committed
96
97
98
99
100
	.navbar-search .search-query {
		border-color: transparent;
		padding: 6px 9px 2px 9px;
		background-color: rgba(255, 255, 255, 0.4);
	}
Thomas Park's avatar
Thomas Park committed
101

Thomas Park's avatar
Thomas Park committed
102
103
104
	.nav > .open > a {
		color: @yellow;
	}
Thomas Park's avatar
Thomas Park committed
105

Thomas Park's avatar
Thomas Park committed
106
107
108
109
110
	.nav > .open > .dropdown-menu {
		background-color: @linkColor;
		color: @textColor;
		border-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
111

Thomas Park's avatar
Thomas Park committed
112
113
114
115
	.nav > .open > .dropdown-menu a:hover {
		background-color: darken(#90A38F, 10%);
		color: @linkColor;
	}
Thomas Park's avatar
Thomas Park committed
116

Thomas Park's avatar
Thomas Park committed
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
	.btn-navbar {
		margin-top: 14px;
	}

	.nav-collapse.in .nav li > a {
		color: @linkColor;

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

	.navbar-form, .navbar-search {
		border-color: transparent;
		.box-shadow(none);
	}
Thomas Park's avatar
Thomas Park committed
134
135
136
137
138
139
140
141
142
143
144
145
}

.dropdown-menu .divider {
	background-color: transparent;
	border-bottom: 1px solid #AEAD8E;
}

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
146
	font-size: 18px;
Thomas Park's avatar
Thomas Park committed
147
148
149
150
151
152
	
	.nav > li > a {
		color: @linkColor;
		border-color: transparent;
		background-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
153

Thomas Park's avatar
Thomas Park committed
154
155
156
	.nav > li + li > a {
		border-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
157

Thomas Park's avatar
Thomas Park committed
158
159
160
161
162
163
164
165
166
167
	.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
168

Thomas Park's avatar
Thomas Park committed
169
170
171
172
173
	.dropdown.open > .dropdown-menu {
		background-color: @linkColor;
		color: @textColor;
		border-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
174

Thomas Park's avatar
Thomas Park committed
175
176
177
	.dropdown.open > .dropdown-menu a:hover {
		background-color: darken(#90A38F, 10%);
		color: @linkColor;
Thomas Park's avatar
Thomas Park committed
178
179
	}

Thomas Park's avatar
Thomas Park committed
180
181
182
	&.subnav-fixed {
		top: 54px;
	}
Thomas Park's avatar
Thomas Park committed
183
184
185
186
187
}

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

Thomas Park's avatar
Thomas Park committed
188
189
190
191
.table,
.table.table-bordered,
.table.table-striped {
	.border-radius(0 0 8px 8px);
Thomas Park's avatar
Thomas Park committed
192
193
}

Thomas Park's avatar
Thomas Park committed
194
195
196
197
198
199
200
201
202
203
204
205
206
.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);
}

.table-striped tbody:last-child tr:last-child td:first-child {
	.border-radius(0 0 0 8px);
}

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

Thomas Park's avatar
Thomas Park committed
209
210
.table-bordered {
	border: none;
Thomas Park's avatar
Thomas Park committed
211
212
}

Thomas Park's avatar
Thomas Park committed
213
214
215
.table thead tr th:first-child,
.table tbody tr td:first-child {
	border-left: none;
Thomas Park's avatar
Thomas Park committed
216
217
}

Thomas Park's avatar
Thomas Park committed
218
219
220
221
.table th,
.table-striped tbody tr:nth-child(odd) th {
	background-color: darken(#90A38F, 10%);
	color: @linkColor;
Thomas Park's avatar
Thomas Park committed
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
}

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

.btn {
  .buttonBackground(lighten(@blueDark, 5%), @blueDark);
    text-shadow: none;
    color: @white;
	border-color: transparent;
	.box-shadow(none);
	
	&:hover {
		color: @grayLighter;
	}
}

.btn-large {
	font-size: 18px;
}

.btn-primary {
	.buttonBackground(lighten(@blue, 10%), lighten(@blue, 5%));
}
Thomas Park's avatar
Thomas Park committed
246

Thomas Park's avatar
Thomas Park committed
247
248
249
.btn-warning {
  .buttonBackground(@orange, darken(@orange, 5%));
}
Thomas Park's avatar
Thomas Park committed
250

Thomas Park's avatar
Thomas Park committed
251
252
253
.btn-danger {
  .buttonBackground(lighten(@red, 5%), @red);
}
Thomas Park's avatar
Thomas Park committed
254

Thomas Park's avatar
Thomas Park committed
255
256
257
.btn-success {
  .buttonBackground(#62c462, #51a351);
}
Thomas Park's avatar
Thomas Park committed
258

Thomas Park's avatar
Thomas Park committed
259
260
261
.btn-info {
  .buttonBackground(#5bc0de, #2f96b4);
}
Thomas Park's avatar
Thomas Park committed
262

Thomas Park's avatar
Thomas Park committed
263
264
265
266
267
268
269
270
271
272
273
.btn-inverse {
  .buttonBackground(@yellow, darken(@yellow, 5%));
}

.btn-group .dropdown-toggle {
	.box-shadow(none);
}

// NAVIGATION
// --------------------------------------------------

Thomas Park's avatar
Thomas Park committed
274
.breadcrumb {
Thomas Park's avatar
Thomas Park committed
275
276
277
278
279
	background-color: darken(#90A38F, 10%);
	background-image: none;
	border-color: transparent;
	.box-shadow(none);
	
Thomas Park's avatar
Thomas Park committed
280
	li {
Thomas Park's avatar
Thomas Park committed
281
		color: @yellow;
Thomas Park's avatar
Thomas Park committed
282
283
284
285
286
287
288
289
290
291
292
293
294
		text-shadow: none;

		a {
			color: @linkColor;
		}

		a:hover {
			color: @yellow;
		}

		.divider {
			color: @blue;
		}
Thomas Park's avatar
Thomas Park committed
295
296
297
	}
}

Thomas Park's avatar
Thomas Park committed
298
299
300
301
302
303
304
.pagination > ul {
	background-color: darken(#90A38F, 10%);
	background-image: none;
	border-color: transparent;
	.box-shadow(none);
}

Thomas Park's avatar
Thomas Park committed
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
.pagination a {
	color: @linkColor;
	border-color: transparent;
	
	&:hover {
		color: @yellow;
		background-color: #748C73;
	}
}

.pagination .active a {
	color: @blue;
	background-color: #A2CDB5;
}

.pagination .disabled a,
.pagination .disabled a:hover {
	color: @blue;
}

Thomas Park's avatar
Thomas Park committed
325
326
327
328
329
330
.nav-list {
	
	li > a,
	.nav-header {
		text-shadow: none;
	}
Thomas Park's avatar
Thomas Park committed
331

Thomas Park's avatar
Thomas Park committed
332
333
334
335
336
337
338
339
340
341
342
343
344
345
	li > a:hover {
		background-color: transparent;
	}
	
	li.active > a,
	li.active > a:hover {
		background-color: #A2CDB5;
		text-shadow: none;
	}
	
	.divider {
		background-color: transparent;
		border-bottom: 1px solid @linkColor;
	}
Thomas Park's avatar
Thomas Park committed
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
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
401
402
403
404
405
406
}

.nav-tabs {
	border-color: transparent;
}

.nav-tabs > li > a,
.nav-pills > li > a {
	background-color: #748C73;
	
	&:hover {
		background-color: #748C73;
		border-color: transparent;
	}
}

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

.nav-tabs.nav-stacked > li > a {
	border-color: transparent;
	
	&:hover {
		border-color: transparent;
	}
}

.nav-tabs .open .dropdown-toggle,
.nav-pills .open .dropdown-toggle  {
	background-color: #748C73;
	border-color: transparent;
	color: @yellow;
}

.nav-tabs .active.open .dropdown-toggle,
.nav-pills .active.open .dropdown-toggle {
	background-color: #A2CDB5;
}

.nav-tabs .dropdown-menu,
.nav-pills .dropdown-menu {
	background-color: @linkColor;
	color: @textColor;
	border-color: transparent;
	
	a:hover {
		background-color: #A2CDB5;
		color: @linkColor;
	}
}

.nav .nav-header {
	color: @blue;
}

Thomas Park's avatar
Thomas Park committed
407
408
409
410
411
412
413
414
.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
415
416
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
448
449
450
451
452
453
454
}

.pager a {
	border: none;
	background-color: #748C73;
	
	&:hover {
		background-color: transparent;
		background-color: #748C73;
	}
}

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

legend {
	color: @yellow;
}

label, .help-block, input[type="file"] {
	color: @linkColor;
}

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

.uneditable-input {
	color: @gray;
}

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

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

Thomas Park's avatar
Thomas Park committed
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
// MODALS
// --------------------------------------------------

.modal-header {
	background-color: @green;
}

.modal-body,
.modal-footer {
	background-color: @linkColor;
	border: none;
	.box-shadow(none);
}

.modal-footer {
	.border-radius(0 0 4px 4px);
}

Thomas Park's avatar
Thomas Park committed
473
474
475
476
477
478
479
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
516
517
518
519
520
521
522
523
524
525
// MISCELLANEOUS
// --------------------------------------------------

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

.label {
	color: @linkColor;
	opacity: 1;
	text-shadow: none;
}

.progress {
	background-color: darken(#90A38F, 10%);
	background-image: none;
	.box-shadow(none);
	
	.bar {
		background-image: none;	
		background-color: #A2CDB5;
	}
}

.well {
	background-color: darken(#90A38F, 10%);
	border: none;
	.box-shadow(none);
}

.thumbnail {
	border: none;
	.box-shadow(none);
	
	img {
		.border-radius(4px);
	}
}

hr {
	border-top: none;
	border-bottom: 2px solid @linkColor;
}

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

footer.footer {
	border-top: 2px solid @linkColor;
}