bootswatch.less 8.25 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
// Bootswatch.less
Thomas Park's avatar
Thomas Park committed
2
3
// Swatch: Spruce
// Version: 2.0.2
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
13
.navbar .nav > li > a,
div.subnav li > a  {
Thomas Park's avatar
Thomas Park committed
14
15
	font-family: @headingsFontFamily;
	font-weight: @headingsFontWeight;
Thomas Park's avatar
Thomas Park committed
16
17
18
19
20
21
22
23
24
25
26
27
}

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
28
29
30
31
32
	font-family: @baseFontFamily;
}

.alert-heading {
	font-family: @baseFontFamily;
Thomas Park's avatar
Thomas Park committed
33
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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
}

// 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
// --------------------------------------------------

.navbar-inner {
	background-image: none;
	.box-shadow(none);
}

.navbar .brand {
	font-size: 26px;
	padding: 18px 20px 12px;
	color: @linkColor;
}

.navbar .nav > li > a, {
	font-size: 20px;
	padding: 22px 10px 11px;
	color: @linkColor;
	
	&:hover {
		color: @yellow;
	}
}

.navbar .nav .active > a,
.navbar .nav .active > a:hover {
	color: @yellow;
}

.navbar-search {
	margin-top: 12px;
}

.navbar-search .search-query {
	border-color: transparent;
	padding: 6px 9px 2px 9px;
97
	background-color: rgba(255, 255, 255, 0.4);
Thomas Park's avatar
Thomas Park committed
98
99
100
101
102
103
104
105
106
107
108
109
110
}

.navbar .nav > .dropdown.open > a {
	color: @yellow;
}

.navbar .nav > .dropdown.open > .dropdown-menu {
	background-color: @linkColor;
	color: @textColor;
	border-color: transparent;
}

.navbar .nav > .dropdown.open > .dropdown-menu a:hover {
111
	background-color: darken(#90A38F, 10%);
Thomas Park's avatar
Thomas Park committed
112
113
114
115
116
117
118
119
120
121
122
123
124
	color: @linkColor;
}

.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
125
	font-size: 18px;
Thomas Park's avatar
Thomas Park committed
126
127
128
129
130
131
132
133
134
135
136
137
}

div.subnav .nav > li > a {
	color: @linkColor;
	border-color: transparent;
	background-color: transparent;
}

div.subnav .nav > li.active > a,
div.subnav .nav > li > a:hover,
div.subnav .nav > li.active > a:hover,
div.subnav .dropdown.open .dropdown-toggle {
138
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
139
140
141
142
143
	background-color: transparent;
	border-color: transparent;
	color: @yellow;
}

Thomas Park's avatar
Thomas Park committed
144
145
146
147
div.subnav .nav > li + li > a {
	border-color: transparent;
}

Thomas Park's avatar
Thomas Park committed
148
149
150
151
152
153
154
div.subnav .dropdown.open > .dropdown-menu {
	background-color: @linkColor;
	color: @textColor;
	border-color: transparent;
}

div.subnav .dropdown.open > .dropdown-menu a:hover {
155
	background-color: darken(#90A38F, 10%);
Thomas Park's avatar
Thomas Park committed
156
157
158
	color: @linkColor;
}

Thomas Park's avatar
Thomas Park committed
159
160
161
162
div.subnav-fixed {
	top: 54px;
}

Thomas Park's avatar
Thomas Park committed
163
164
165
166
.navbar .btn-navbar {
	margin-top: 14px;
}

Thomas Park's avatar
Thomas Park committed
167
.navbar .nav-collapse.in .nav li > a {
Thomas Park's avatar
Thomas Park committed
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
	color: @linkColor;
	
	&:hover {
		color: @yellow;
		background-color: @blue;
	}
}

.navbar .navbar-form, .navbar .navbar-search {
	border-color: transparent;
	.box-shadow(none);
}

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

Thomas Park's avatar
Thomas Park committed
184
185
186
187
.table,
.table.table-bordered,
.table.table-striped {
	.border-radius(0 0 8px 8px);
Thomas Park's avatar
Thomas Park committed
188
189
}

Thomas Park's avatar
Thomas Park committed
190
191
192
193
194
195
196
197
198
199
200
201
202
.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
203
204
}

Thomas Park's avatar
Thomas Park committed
205
206
.table-bordered {
	border: none;
Thomas Park's avatar
Thomas Park committed
207
208
}

Thomas Park's avatar
Thomas Park committed
209
210
211
.table thead tr th:first-child,
.table tbody tr td:first-child {
	border-left: none;
Thomas Park's avatar
Thomas Park committed
212
213
}

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

// 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
242

Thomas Park's avatar
Thomas Park committed
243
244
245
.btn-warning {
  .buttonBackground(@orange, darken(@orange, 5%));
}
Thomas Park's avatar
Thomas Park committed
246

Thomas Park's avatar
Thomas Park committed
247
248
249
.btn-danger {
  .buttonBackground(lighten(@red, 5%), @red);
}
Thomas Park's avatar
Thomas Park committed
250

Thomas Park's avatar
Thomas Park committed
251
252
253
.btn-success {
  .buttonBackground(#62c462, #51a351);
}
Thomas Park's avatar
Thomas Park committed
254

Thomas Park's avatar
Thomas Park committed
255
256
257
.btn-info {
  .buttonBackground(#5bc0de, #2f96b4);
}
Thomas Park's avatar
Thomas Park committed
258

Thomas Park's avatar
Thomas Park committed
259
260
261
262
263
264
265
266
267
268
269
270
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
339
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
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
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
.btn-inverse {
  .buttonBackground(@yellow, darken(@yellow, 5%));
}

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

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

.breadcrumb, .pagination > ul {
	background-color: darken(#90A38F, 10%);
	background-image: none;
	border-color: transparent;
	.box-shadow(none);
}

.breadcrumb li {
	color: @yellow;
	text-shadow: none;
	
	a {
		color: @linkColor;
	}
	
	a:hover {
		color: @yellow;
	}
	
	.divider {
		color: @blue;
	}
}

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

.nav-list > li > a, .nav-list .nav-header {
	text-shadow: none;
}

.nav-list .active > a, .nav-list .active > a:hover {
	background-color: #A2CDB5;
	text-shadow: none;
}

.nav-list li > a:hover {
	background-color: transparent;
}

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

.tabbable > .nav-tabs,
.tabbable > .nav-tabs > li > a,
.tabbable > .nav-tabs > li > a:hover,
.tabbable > .nav-tabs > li.active > a,
.tabbable > .nav-tabs > li.active > a:hover  {
	border-color: transparent;
}

.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 {
	background-color: transparent;
	border-top: none;
	.border-radius(4px);
}

Thomas Park's avatar
Thomas Park committed
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
// 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
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
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
// 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;
}