bootswatch.less 10.9 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
// Slate 2.2.2
Thomas Park's avatar
Thomas Park committed
2
// Bootswatch
Thomas Park's avatar
Thomas Park committed
3
4
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
5

Thomas Park's avatar
Thomas Park committed
6
// TYPOGRAPHY
Thomas Park's avatar
Thomas Park committed
7
8
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
9
h1, h2, h3, h4, h5, h6 {
10
	text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
Thomas Park's avatar
Thomas Park committed
11
12
}

Thomas Park's avatar
Thomas Park committed
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
code, pre {
	background-color: #F7F7F7;
	border: 1px solid darken(@grayDarker, 5%);
	text-shadow: none;
}

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

hr, legend, .page-header {
	border-top: none;
	border-bottom: 1px solid darken(@grayDarker, 5%);
	background-color: transparent;
}

Thomas Park's avatar
Thomas Park committed
28
29
30
// NAVBAR
// -----------------------------------------------------

31
.navbar {
Thomas Park's avatar
Thomas Park committed
32

33
	.navbar-inner {
Thomas Park's avatar
Thomas Park committed
34
		#gradient > .vertical-three-colors(@gray, @grayDark, 70%, @grayDark);
35
	}
Thomas Park's avatar
Thomas Park committed
36
37

	.brand {
38
39
		font-weight: bold;
		text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
Thomas Park's avatar
Thomas Park committed
40
		border-right: 1px solid darken(@gray, 15%);
41
	}
Thomas Park's avatar
Thomas Park committed
42
43

	.navbar-text {
Thomas Park's avatar
Thomas Park committed
44
45
		padding: 0 15px;
		font-weight: bold;
Thomas Park's avatar
Thomas Park committed
46
47
	}

48
49
	.nav > li > a  {
		text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
Thomas Park's avatar
Thomas Park committed
50
51
		border-right: 1px solid rgba(0, 0, 0, 0.2);
		border-left: 1px solid rgba(255, 255, 255, 0.1);
Thomas Park's avatar
Thomas Park committed
52

53
54
55
56
57
58
		&:hover {
			#gradient > .directional(@grayDarker, @grayDark, 280deg);
			border-left: 1px solid transparent;
			border-right: 1px solid transparent;
		}
	}
Thomas Park's avatar
Thomas Park committed
59

60
61
	.nav > li.active > a,
	.nav > li.active > a:hover {
Thomas Park's avatar
Thomas Park committed
62
63
		color: @grayLighter;
		background-color: @grayDark;
64
65
66
		#gradient > .directional(lighten(@grayDarker, 4%), lighten(@grayDark, 4%), 280deg);
		border-right: 1px solid darken(@gray, 15%);
	}
Thomas Park's avatar
Thomas Park committed
67

68
69
	.navbar-search .search-query {
		border: 1px solid darken(@gray, 15%);
Thomas Park's avatar
Thomas Park committed
70
71
	}

72
73
74
75
76
	.btn,
	.btn-group {
		margin: 4px 0;
	}

77
78
79
80
	.divider-vertical {
		background-color: transparent;
		border-right: none;
	}
Thomas Park's avatar
Thomas Park committed
81

82
83
84
	.dropdown-menu::after {
		border-bottom: 6px solid @grayDark;
	}
Thomas Park's avatar
Thomas Park committed
85

86
87
88
89
90
91
92
93
94
95
	&-inverse {

		.navbar-inner {
			#gradient > .vertical-three-colors(darken(@grayDarker, 3%), darken(@grayDarker, 8%), 70%, darken(@grayDarker, 8%));
		}

		.nav li > a {
			background-image: none;
			background-color: transparent;
		}
Thomas Park's avatar
Thomas Park committed
96
97

		.nav li > a:hover,
98
		.nav li.active > a,
Thomas Park's avatar
Thomas Park committed
99
		.nav li.active > a:hover {
100
101
102
103
104
105
106
107
108
109
110
111
112
			#gradient > .directional(darken(@grayDarker, 3%), @grayDarker, 280deg);
		}
	}
}

@media (max-width: @navbarCollapseWidth) {

	.navbar .nav-collapse {

		.nav li > a,
		.nav li > a:hover,
		.nav .active > a,
		.nav .active > a:hover {
Thomas Park's avatar
Thomas Park committed
113
114
115
116
117
118
119
120
			.box-shadow(none);
			color: @grayLighter;
			border: 1px solid transparent;
			background-color: transparent;
			background-image: none;
		}

		.nav li > a:hover,
121
		.nav .active > a:hover {
Thomas Park's avatar
Thomas Park committed
122
123
124
125
126
127
128
129
130
131
132
133
			background-color: @grayDarker;
		}

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

		.nav-header {
			color: @grayLight;
		}
134
	}
Thomas Park's avatar
Thomas Park committed
135

136
	.navbar-inverse .nav-collapse {
Thomas Park's avatar
Thomas Park committed
137
138

		.nav li > a:hover,
139
140
		.nav .active > a:hover {
			background-color: @grayDarker !important;
Thomas Park's avatar
Thomas Park committed
141
		}
Thomas Park's avatar
Thomas Park committed
142
	}
Thomas Park's avatar
Thomas Park committed
143
144
145
}

div.subnav {
146

147
	margin: 0 1px;
148
	#gradient > .vertical-three-colors(@gray, @grayDark, 70%, @grayDark);
Thomas Park's avatar
Thomas Park committed
149
	border: 1px solid transparent;
Thomas Park's avatar
Thomas Park committed
150
	.box-shadow('0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1)');
Thomas Park's avatar
Thomas Park committed
151

152
153
154
155
156
	.nav > li > a {
		color: @grayLighter;
		text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
		border-right: 1px solid darken(@gray, 15%);
		border-left: 1px solid @gray;
Thomas Park's avatar
Thomas Park committed
157

158
159
160
161
162
163
164
165
		&:hover {
			color: @grayLighter;
			background-color: @grayDark;
			#gradient > .directional(@grayDarker, @grayDark, 280deg);
			border-left: 1px solid transparent;
			border-right: 1px solid transparent;
		}
	}
Thomas Park's avatar
Thomas Park committed
166

167
168
169
170
171
172
173
	.nav > li.active > a,
	.nav > li.active > a:hover {
		color: @grayLighter;
		background-color: @grayDark;
		#gradient > .directional(lighten(@grayDarker, 4%), lighten(@grayDark, 4%), 280deg);
		border-right: 1px solid darken(@gray, 15%);
	}
Thomas Park's avatar
Thomas Park committed
174

175
176
177
178
	.nav > li:first-child > a,
	.nav > li:first-child > a:hover {
		border-left: 1px solid transparent;
	}
Thomas Park's avatar
Thomas Park committed
179

180
181
182
183
	.nav > li.active:last-child > a,
	.nav > li:last-child > a:hover {
		border-right: 1px solid darken(@gray, 15%);
	}
Thomas Park's avatar
Thomas Park committed
184

185
186
187
188
	.open .dropdown-toggle {
		border-right: 1px solid darken(@gray, 15%);
		border-left: 1px solid @gray;
	}
Thomas Park's avatar
Thomas Park committed
189

190
	&.subnav-fixed {
191
192
		top: @navbarHeight;
		margin: 0;
193
		.box-shadow(none);
194
195
196
197
198

		.nav > li.active:first-child > a,
		.nav > li:first-child > a:hover {
			border-left: 1px solid darken(@gray, 15%);
		}
Thomas Park's avatar
Thomas Park committed
199
200
201
	}
}

Thomas Park's avatar
Thomas Park committed
202
// NAV
Thomas Park's avatar
Thomas Park committed
203
204
// -----------------------------------------------------

205
.nav {
Thomas Park's avatar
Thomas Park committed
206

207
208
209
	.nav-header {
		text-shadow: none;
	}
Thomas Park's avatar
Thomas Park committed
210

211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
	& > li > a {
		#gradient > .vertical-three-colors(@gray, @grayDark, 70%, @grayDark);
		.box-shadow('0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1)');
		border: none;
		color: @grayLight;
		font-weight: bold;
		text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
	}

	li.active > a,
	li.active > a:hover {
		background-color: transparent;
		border: none;
		color: @white;
	}

	li > a:hover {
		background-color: transparent;
		color: @grayLighter;
	}
231

Thomas Park's avatar
Thomas Park committed
232
}
Thomas Park's avatar
Thomas Park committed
233

Thomas Park's avatar
Thomas Park committed
234
235
236
.nav-list {
	background-color: @grayDark;
	.box-shadow(1px 1px 1px rgba(0, 0, 0, 0.4));
Thomas Park's avatar
Thomas Park committed
237

Thomas Park's avatar
Thomas Park committed
238
239
240
241
	li > a {
		background-image: none;
		text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
	}
Thomas Park's avatar
Thomas Park committed
242

Thomas Park's avatar
Thomas Park committed
243
244
245
246
	.nav-header {
		color: @gray;
		text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
	}
Thomas Park's avatar
Thomas Park committed
247

Thomas Park's avatar
Thomas Park committed
248
249
250
251
	.divider {
		border-bottom: 1px solid darken(@grayDarker, 5%);
		background-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
252
253
}

Thomas Park's avatar
Thomas Park committed
254
255
.nav-tabs {
	border-bottom: none;
Thomas Park's avatar
Thomas Park committed
256
257
}

Thomas Park's avatar
Thomas Park committed
258
259
260
.tabs-below .nav-tabs {
	border-top: none;
}
Thomas Park's avatar
Thomas Park committed
261

Thomas Park's avatar
Thomas Park committed
262
263
264
.tabs-left .nav-tabs {
	border-right: none;
}
Thomas Park's avatar
Thomas Park committed
265

Thomas Park's avatar
Thomas Park committed
266
267
268
.tabs-right .nav-tabs {
	border-left: none;
}
Thomas Park's avatar
Thomas Park committed
269

270
271
272
273
274
275
276
277
278
279
280
281
282
283
.nav-tabs.nav-stacked {

	li > a,
	li > a:hover {
		border: 1px solid darken(@grayDarker, 5%);
		background-image: none;
	}

	li > a:hover,
	.active > a,
	.active > a:hover {
		background-color: @wellBackground;
		color: @white;
	}
Thomas Park's avatar
Thomas Park committed
284
}
Thomas Park's avatar
Thomas Park committed
285

Thomas Park's avatar
Thomas Park committed
286
.breadcrumb {
Thomas Park's avatar
Thomas Park committed
287
	border: 1px solid transparent;
Thomas Park's avatar
Thomas Park committed
288
	#gradient > .vertical-three-colors(@gray, @grayDark, 70%, @grayDark);
289
	.box-shadow('0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1)');
Thomas Park's avatar
Thomas Park committed
290

291
292
293
294
	a {
		color: @grayLighter;
		font-weight: bold;
	}
Thomas Park's avatar
Thomas Park committed
295

296
297
298
299
300
	li {
		color: @grayLight;
		font-weight: bold;
		text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
	}
Thomas Park's avatar
Thomas Park committed
301
302
}

Thomas Park's avatar
Thomas Park committed
303
.pagination {
Thomas Park's avatar
Thomas Park committed
304

305
	ul {
Thomas Park's avatar
Thomas Park committed
306
307
		.box-shadow(none);
	}
Thomas Park's avatar
Thomas Park committed
308

309
310
	ul > li > a,
	ul > li > span {
Thomas Park's avatar
Thomas Park committed
311
312
313
314
		border-left: 1px solid @gray;
		border-right: 1px solid darken(@gray, 15%);
		border-top: none;
		border-bottom: none;
315
316
317
318
319
		#gradient > .vertical-three-colors(@gray, @grayDark, 70%, @grayDark);
		.box-shadow('0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1)');
		color: @grayLighter;
		font-weight: bold;
		text-shadow: 1px 1px 1px rgba(0, 0, 0, 0.3);
Thomas Park's avatar
Thomas Park committed
320

321
322
323
324
		&:hover {
			#gradient > .directional(@grayDarker, @grayDark, 280deg);
			border-left: 1px solid transparent;
		}
Thomas Park's avatar
Thomas Park committed
325
326
	}

327
328
329
330
	ul > .active > a,
	ul > .active > a:hover,
	ul > .active > span,
	ul > .active > span:hover {
Thomas Park's avatar
Thomas Park committed
331
332
333
334
335
		color: @grayLighter;
		background-color: @grayDark;
		#gradient > .directional(lighten(@grayDarker, 4%), lighten(@grayDark, 4%), 280deg);
		border-left: 1px solid transparent;
	}
336

337
338
339
340
	ul > .disabled > a,
	ul > .disabled > a:hover,
	ul > .disabled > span,
	ul > .disabled > span:hover {
341
342
343
344
345
346
		border-left: 1px solid @gray;
		border-right: 1px solid darken(@gray, 15%);
		border-top: none;
		border-bottom: none;
		#gradient > .vertical-three-colors(@grayLight, @gray, 70%, @gray);
	}
Thomas Park's avatar
Thomas Park committed
347
348
}

Thomas Park's avatar
Thomas Park committed
349
350
.pager {

351
352
	li > a,
	li > span {
353
354
355
356
		border: 1px solid transparent;
		.box-shadow('0 1px 3px rgba(0, 0, 0, 0.25), inset 0 -1px 0 rgba(0, 0, 0, 0.1)');
		#gradient > .vertical-three-colors(@gray, @grayDark, 70%, @grayDark);

357
358
359
360
361
		&:hover {
			#gradient > .directional(@grayDarker, @grayDark, 280deg);
			border: 1px solid transparent;
		}
	}	
Thomas Park's avatar
Thomas Park committed
362
363
364
365
366

	.disabled a,
	.disabled a:hover {
		background-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
367
368
}

Thomas Park's avatar
Thomas Park committed
369
370
// BUTTONS
// -----------------------------------------------------
Thomas Park's avatar
Thomas Park committed
371

Thomas Park's avatar
Thomas Park committed
372
373
374
375
.btn {
    .buttonBackground(@gray, darken(@gray, 10%));
	.border-radius(3px);
	border: 1px solid @grayDarker;
Thomas Park's avatar
Thomas Park committed
376
377
}

Thomas Park's avatar
Thomas Park committed
378
.btn, .btn:hover {
379
	color: @white;
Thomas Park's avatar
Thomas Park committed
380
	font-weight: bold;
381
	text-shadow: -1px -1px 1px rgba(0, 0, 0, 0.3);
Thomas Park's avatar
Thomas Park committed
382
383
}

Thomas Park's avatar
Thomas Park committed
384
.btn-primary {
385
386
387
	.buttonBackground(@btnPrimaryBackground, spin(@btnPrimaryBackground, 20));
	color: @grayDark;
	text-shadow: 1px 1px 1px rgba(255, 255, 255, 0.3);
Thomas Park's avatar
Thomas Park committed
388
389
}

Thomas Park's avatar
Thomas Park committed
390
.btn-warning {
391
	.buttonBackground(lighten(@orange, 15%), @orange);
Thomas Park's avatar
Thomas Park committed
392
393
}

Thomas Park's avatar
Thomas Park committed
394
.btn-danger {
395
	.buttonBackground(@red, #bd362f);
Thomas Park's avatar
Thomas Park committed
396
397
}

Thomas Park's avatar
Thomas Park committed
398
.btn-success {
399
	.buttonBackground(@green, #51a351);
Thomas Park's avatar
Thomas Park committed
400
401
}

Thomas Park's avatar
Thomas Park committed
402
.btn-info {
403
	.buttonBackground(@blue, #2f96b4);
Thomas Park's avatar
Thomas Park committed
404
405
}

Thomas Park's avatar
Thomas Park committed
406
.btn-inverse {
407
	.buttonBackground(@gray, @grayDarker);
408
409
}

Thomas Park's avatar
Thomas Park committed
410
411
.caret {
	border-top-color: @white;
412
413
}

Thomas Park's avatar
Thomas Park committed
414
415
// TABLES
// -----------------------------------------------------
416

417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
.table {

	tbody tr.success td {
		background-color: @successText;
	}

	tbody tr.error td {
		background-color: @errorText;
	}

	tbody tr.info td {
		background-color: @infoText;
	}

}


Thomas Park's avatar
Thomas Park committed
434
435
436
// FORMS
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
437
438
439
440
label, input, button, select, textarea, legend {
	color: @textColor;
}

Thomas Park's avatar
Thomas Park committed
441
442
legend, label {
	text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
Thomas Park's avatar
Thomas Park committed
443
444
}

Thomas Park's avatar
Thomas Park committed
445
446
.input-prepend .add-on,
.input-append .add-on {
Thomas Park's avatar
Thomas Park committed
447
	vertical-align: top;
Thomas Park's avatar
Thomas Park committed
448
449
450
451
452
453
454
455
	background-color: @gray;
	border-top: 1px solid @grayLight;
	border-left: 1px solid @grayLight;
	border-bottom: 1px solid @grayDark;
	border-right: 1px solid @grayDark;
	text-shadow: none;
}

Thomas Park's avatar
Thomas Park committed
456
457
458
459
460
461
462
463
464
465
466
467
468
.input-append .btn,
.input-prepend .btn {
	margin-top: -1px;
	padding: 5px 14px;
}

.uneditable-input,
input[disabled],
select[disabled],
textarea[disabled],
input[readonly],
select[readonly],
textarea[readonly] {
Thomas Park's avatar
Thomas Park committed
469
470
471
	color: @grayLighter;
}

Thomas Park's avatar
Thomas Park committed
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
.form-actions {
	border-top: none;
}

// DROPDOWNS
// -----------------------------------------------------

.dropdown-menu {
	.box-shadow(0 5px 5px rgba(0, 0, 0, 0.2));
}

.dropdown.open .dropdown-toggle {
	background-color: @grayDark;
	color: @grayLighter;
}

488
489
490
491
.dropdown-submenu > a::after {
	border-left-color: @white;
}

Thomas Park's avatar
Thomas Park committed
492
// ALERTS, LABELS, BADGES
Thomas Park's avatar
Thomas Park committed
493
494
495
// -----------------------------------------------------

.label, .alert {
496
  	color: rgba(255, 255, 255, 0.9);
497
	text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.3);
Thomas Park's avatar
Thomas Park committed
498
499
500
501
	.box-shadow(1px 1px 1px rgba(0, 0, 0, 0.3));
}

.alert {
502
  background-color: @orange;
Thomas Park's avatar
Thomas Park committed
503
  border-color: @orange;
Thomas Park's avatar
Thomas Park committed
504
505
506
507
508

	.alert-heading {
		color: rgba(255, 255, 255, 0.9);
		text-shadow: -1px -1px 0 rgba(0, 0, 0, 0.4);
	}
Thomas Park's avatar
Thomas Park committed
509
510
511
512
}

.alert-success {
  background-color: @successText;
Thomas Park's avatar
Thomas Park committed
513
  border-color: @successText;
Thomas Park's avatar
Thomas Park committed
514
515
516
517
518
519
520
521
522
523
524
525
}

.alert-error {
  background-color: @errorText;
  border-color: @errorText;
}

.alert-info {
  background-color: @infoText;
  border-color: @infoText;
}

Thomas Park's avatar
Thomas Park committed
526
// MISC
Thomas Park's avatar
Thomas Park committed
527
528
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
529
.well, .hero-unit {
530
	.box-shadow(inset 1px 1px 1px rgba(0, 0, 0, 0.5));
Thomas Park's avatar
Thomas Park committed
531
532
}

Thomas Park's avatar
Thomas Park committed
533
534
535
.thumbnail,
a.thumbnail:hover {
  border: 1px solid darken(@grayDarker, 5%);
Thomas Park's avatar
Thomas Park committed
536
537
}

Thomas Park's avatar
Thomas Park committed
538
539
540
.progress {
	background-color: darken(@grayDarker, 3%);
	#gradient > .vertical(darken(@grayDarker, 3%), darken(@grayDarker, 3%));
541
	.box-shadow(inset 1px 1px 1px rgba(0, 0, 0, 0.5));
Thomas Park's avatar
Thomas Park committed
542
543
}

Thomas Park's avatar
Thomas Park committed
544
545
546
547
548
549
.footer {
	border-top: 1px solid darken(@grayDarker, 5%);

	p {
		color: @textColor;
	}
Thomas Park's avatar
Thomas Park committed
550
551
}

Thomas Park's avatar
Thomas Park committed
552
.modal {
Thomas Park's avatar
Thomas Park committed
553

Thomas Park's avatar
Thomas Park committed
554
	background-color: darken(@grayDark, 5%);
Thomas Park's avatar
Thomas Park committed
555

Thomas Park's avatar
Thomas Park committed
556
557
558
	&-header {
		border-bottom: none;
	}
Thomas Park's avatar
Thomas Park committed
559

Thomas Park's avatar
Thomas Park committed
560
561
562
	&-body {
		border-bottom: 1px solid #1C1E22;
	}
Thomas Park's avatar
Thomas Park committed
563

Thomas Park's avatar
Thomas Park committed
564
565
566
567
	&-footer {
		border-top: none;
		background-color: @grayDarker;
		.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
568
	}
Thomas Park's avatar
Thomas Park committed
569
570
}

Thomas Park's avatar
Thomas Park committed
571
572
// MEDIA QUERIES
// -----------------------------------------------------
Thomas Park's avatar
Thomas Park committed
573

Thomas Park's avatar
Thomas Park committed
574
575
576
577
@media (max-width: 979px) {
	.navbar .brand {
		border-right: none;
	}
Thomas Park's avatar
Thomas Park committed
578
579
}

Thomas Park's avatar
Thomas Park committed
580
581
582
583
584
@media (max-width: 768px) {
	div.subnav .nav > li + li > a {
		border-top: 1px solid transparent;
	}
}