bootswatch.less 9.38 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
// Cyborg 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
7
8
// TYPOGRAPHY
// -----------------------------------------------------

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

Thomas Park's avatar
Thomas Park committed
11
12
13
label, input, button, select, textarea,
.navbar .search-query:-moz-placeholder,
.navbar .search-query::-webkit-input-placeholder {
Thomas Park's avatar
Thomas Park committed
14
15
16
	font-family: 'Droid Sans', sans-serif;
	color: @gray;
}
Thomas Park's avatar
Thomas Park committed
17

Thomas Park's avatar
Thomas Park committed
18
19
20
21
22
code, pre {
	background-color: @grayLighter;
}

blockquote {
23
	border-left: 5px solid @grayDark;
Thomas Park's avatar
Thomas Park committed
24
25

	&.pull-right {
26
		border-right: 5px solid @grayDark;
Thomas Park's avatar
Thomas Park committed
27
	}
Thomas Park's avatar
Thomas Park committed
28
29
30
31
32
}

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

33
34
35
36
html {
	min-height: 100%;
}

Thomas Park's avatar
Thomas Park committed
37
body {
38
	min-height: 100%;
Thomas Park's avatar
Thomas Park committed
39
	#gradient > .vertical (@bodyBackground, #252A30);
Thomas Park's avatar
Thomas Park committed
40
41
42
}

.page-header {
43
44
45
46
47
	border-bottom: 1px solid @grayDark
}

hr {
	border-bottom: none;
Thomas Park's avatar
Thomas Park committed
48
49
50
51
52
}

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

53
.navbar {
Thomas Park's avatar
Thomas Park committed
54

55
	.navbar-inner {
Thomas Park's avatar
Thomas Park committed
56
57
		.border-radius(0);
		.box-shadow(none);
58
		border-bottom: 1px solid @grayDark;
59
	}
Thomas Park's avatar
Thomas Park committed
60

61
	.brand {
62
		padding: 15px 20px 15px;
Thomas Park's avatar
Thomas Park committed
63
64
65
		color: @grayLighter;
		font-weight: normal;
		text-shadow: none;
66
	}
Thomas Park's avatar
Thomas Park committed
67

Thomas Park's avatar
Thomas Park committed
68
	.nav > li > a {
69
70
		padding: 15px 15px 14px;
		border-bottom: 1px solid transparent;
71
	}
Thomas Park's avatar
Thomas Park committed
72

73
74
75
76
	.nav > li > a:hover,
	.nav > .active > a,
	.nav > .active > a:hover {
		border-bottom: 1px solid @blue;
Thomas Park's avatar
Thomas Park committed
77
78
	}

79
80
81
	.nav > .active > a,
	.nav > .active > a:hover,
	.nav > .active > a:focus {
Thomas Park's avatar
Thomas Park committed
82
83
84
		.box-shadow(none);
	}

85
86
87
88
	.navbar-text {
		margin-bottom: 1px;
		padding: 15px 15px 14px;
		line-height: inherit;
Thomas Park's avatar
Thomas Park committed
89
90
	}

91
92
93
94
	.divider-vertical {
		margin: 0;
		border-left: 1px solid @grayDark;
		border-right-width: 0;
95
	}
Thomas Park's avatar
Thomas Park committed
96

97
98
99
	.search-query,
	.search-query:focus,
	.search-query.focused {
100
101
102
		.border-radius(1px);
		background-color: @grayDark;
		line-height: normal;
103
104
105
		color: @grayLight;
		text-shadow: none;
		.placeholder(@gray);
Thomas Park's avatar
Thomas Park committed
106
107
	}

108
109
110
111
112
113
114
115
	&-inverse {

	}
}

@media (max-width: @navbarCollapseWidth) {

	.navbar .nav-collapse {
Thomas Park's avatar
Thomas Park committed
116

Thomas Park's avatar
Thomas Park committed
117
		.nav li > a {
118
			border: none;
Thomas Park's avatar
Thomas Park committed
119
120
121
			color: @grayLighter;
			font-weight: normal;
			text-shadow: none;
Thomas Park's avatar
Thomas Park committed
122

Thomas Park's avatar
Thomas Park committed
123
			&:hover {
124
				border: none;
Thomas Park's avatar
Thomas Park committed
125
126
127
				background-color: @blue;
			}
		}
Thomas Park's avatar
Thomas Park committed
128

Thomas Park's avatar
Thomas Park committed
129
		.nav .active > a {
130
131
132
133
134
			border: none;
			background-color: @blue;
		}

		.dropdown-menu a:hover {
Thomas Park's avatar
Thomas Park committed
135
136
137
138
139
140
141
142
143
144
145
146
			background-color: @blue;
		}

		.navbar-form,
		.navbar-search {
			border-top: none;
			border-bottom: none;
		}

		.nav-header {
			color: rgba(128, 128, 128, 0.6);
		}
147
	}
Thomas Park's avatar
Thomas Park committed
148

149
	.navbar-inverse .nav-collapse {
Thomas Park's avatar
Thomas Park committed
150
151

		.nav li > a:hover {
152
			background-color: #111;
Thomas Park's avatar
Thomas Park committed
153
154
155
		}

		.nav .active > a {
156
157
158
159
160
161
162
			background-color: #111;
		}

		.nav li.dropdown.open > .dropdown-toggle,
		.nav li.dropdown.active > .dropdown-toggle,
		.nav li.dropdown.open.active > .dropdown-toggle {
			background-color: #111;
Thomas Park's avatar
Thomas Park committed
163
164
		}
	}
Thomas Park's avatar
Thomas Park committed
165
166
167
}

div.subnav {
168
169

	margin: 0 1px;
Thomas Park's avatar
Thomas Park committed
170
171
	background-color: @grayDarker;
	background-image: none;
172
173
	border: none;
	border-bottom: 1px solid @grayDark;
Thomas Park's avatar
Thomas Park committed
174

175
	.nav > li > a,
176
177
178
179
	.nav > li:first-child > a,
	.nav > li:first-child > a:hover {
		padding: 11px 12px;
		border: none;
180
		background-color: @grayDarker;
181
		color: @grayLight;
182
	}
Thomas Park's avatar
Thomas Park committed
183

184
	.nav > li > a:hover,
185
	.nav > li.active > a,
186
187
	.nav > li.active > a:hover,
	.nav > li:first-child > a:hover {
188
		padding: 11px 12px;
189
		background: transparent;
190
191
		border: none;
		border-bottom: 1px solid @blue;
192
193
		color: @white;
	}
Thomas Park's avatar
Thomas Park committed
194

195
196
	.nav li.nav-header {
		text-shadow: none;
Thomas Park's avatar
Thomas Park committed
197
	}
198
199
200
201
202
203
204
205




	&-fixed {
		top: @navbarHeight;
		margin: 0;
	}
Thomas Park's avatar
Thomas Park committed
206
207
}

Thomas Park's avatar
Thomas Park committed
208
// NAV
Thomas Park's avatar
Thomas Park committed
209
210
211
// -----------------------------------------------------

.nav-tabs {
Thomas Park's avatar
Thomas Park committed
212

213
	border-bottom: 1px solid @grayDark;
Thomas Park's avatar
Thomas Park committed
214

215
216
217
	li > a:hover,
	li.active > a,
	li.active > a:hover {
218
		border-color: transparent;
219
220
221
		background-color: @blue;
		color: @white;
	}
Thomas Park's avatar
Thomas Park committed
222

223
	.open .dropdown-toggle {
224
225
		background-color: #060606;
		border-color: transparent;
226
	}
Thomas Park's avatar
Thomas Park committed
227
228
}

229
.nav-pills {
Thomas Park's avatar
Thomas Park committed
230

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

236
237
238
	.open .dropdown-toggle {
		background-color: #060606;
	}
Thomas Park's avatar
Thomas Park committed
239

240
241
242
	.dropdown-menu li > a:hover {
		border: none;
	}
Thomas Park's avatar
Thomas Park committed
243
244
}

Thomas Park's avatar
Thomas Park committed
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
.nav-list {

	li > a {
		text-shadow: none;
	}

	li > a:hover {
		background-color: @blue;
		color: @white;
	}

	.nav-header {
		text-shadow: none;
	}

	.divider {
		background-color: transparent;
262
		border-bottom: 1px solid @grayDark;
Thomas Park's avatar
Thomas Park committed
263
264
265
	}
}

266
.nav-stacked {
Thomas Park's avatar
Thomas Park committed
267

268
	li > a {
269
		border: 1px solid @grayDark !important;
Thomas Park's avatar
Thomas Park committed
270
	}
Thomas Park's avatar
Thomas Park committed
271

272
273
274
275
276
	li > a:hover,
	li.active > a {
		background-color: @blue;
		color: @white;
	}
Thomas Park's avatar
Thomas Park committed
277
278
}

279
280
281
.tabbable  {
	.nav-tabs,
	.nav-tabs li.active > a {
282
		border-color: @grayDark;
283
	}
Thomas Park's avatar
Thomas Park committed
284
285
286
}

.breadcrumb {
287
	
Thomas Park's avatar
Thomas Park committed
288
289
290
291
292
	background-color: transparent;
	background-image: none;
	border-width: 0;
	.box-shadow(none);
	font-size: 14px;
Thomas Park's avatar
Thomas Park committed
293

294
	li {
Thomas Park's avatar
Thomas Park committed
295
296
		text-shadow: none;
	}
Thomas Park's avatar
Thomas Park committed
297

298
299
	li > a {
		color: @blue;
Thomas Park's avatar
Thomas Park committed
300
301
302
303
304
		text-shadow: none;
	}
}

.pagination {
305

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

310
	ul > li > a:hover,
311
312
	ul > .active > a,
	ul > .active > span {
313
		// color: @white;	
314
315
316
317
318
319
	}

	ul > .disabled > a,
	ul > .disabled > a:hover,
	ul > .disabled > span,
	ul > .disabled > span:hover {
Thomas Park's avatar
Thomas Park committed
320
321
322
323
324
325
		background-color: rgba(0, 0, 0, 0.2);
	}
}

.pager {

326
327
	li > a,
	li > span {
Thomas Park's avatar
Thomas Park committed
328
329
330
331
332
333
334
335
336
337
338
339
340
		background-color: @bodyBackground;
		border: none;

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

	.disabled a,
	.disabled a:hover {
		background-color: @bodyBackground;
	}

Thomas Park's avatar
Thomas Park committed
341
342
343
344
345
}

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

Thomas Park's avatar
Thomas Park committed
346
.btn {
Thomas Park's avatar
Thomas Park committed
347
348
349
350
	.box-shadow(1px 1px 2px #111);
	.buttonBackground(darken(@gray, 20%), darken(@gray, 30%));
	color: @white;
	text-shadow: none;
Thomas Park's avatar
Thomas Park committed
351

Thomas Park's avatar
Thomas Park committed
352
353
354
355
356
357
358
359
360
	&:hover {
		text-shadow: none;
	  	color: @white;
	}
}

.btn-primary {
  .buttonBackground(@blueDark, darken(@blueDark, 10%));
}
Thomas Park's avatar
Thomas Park committed
361

Thomas Park's avatar
Thomas Park committed
362
363
364
.btn-warning {
  .buttonBackground(lighten(@orange, 10%), @orange);
}
Thomas Park's avatar
Thomas Park committed
365

Thomas Park's avatar
Thomas Park committed
366
367
368
.btn-danger {
  .buttonBackground(lighten(@red, 10%), @red);
}
Thomas Park's avatar
Thomas Park committed
369

Thomas Park's avatar
Thomas Park committed
370
371
372
.btn-success {
  .buttonBackground(lighten(@green, 10%), @green);
}
Thomas Park's avatar
Thomas Park committed
373

Thomas Park's avatar
Thomas Park committed
374
375
376
377
.btn-info {
  .buttonBackground(darken(@gray, 40%), darken(@gray, 50%));
}

Thomas Park's avatar
Thomas Park committed
378
379
380
381
.btn-inverse {
  .buttonBackground(lighten(@purple, 5%), @purple);
}

Thomas Park's avatar
Thomas Park committed
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
.btn .caret {
	border-top: 4px solid black;
	opacity: 0.3;
}

.btn-group > .dropdown-menu > li > a:hover {
	border-bottom: 0;
}

.btn.disabled, .btn[disabled] {
	background-color: @grayLight;
}

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

398
399
input, textarea, select {
	border-width: 2px;
Thomas Park's avatar
Thomas Park committed
400
	.border-radius(1px);
Thomas Park's avatar
Thomas Park committed
401
}
Thomas Park's avatar
Thomas Park committed
402

Thomas Park's avatar
Thomas Park committed
403
404
405
406
407
408
select, textarea,
input[type="text"], input[type="password"], input[type="datetime"],
input[type="datetime-local"], input[type="date"], input[type="month"],
input[type="time"], input[type="week"], input[type="number"],
input[type="email"], input[type="url"], input[type="search"],
input[type="tel"], input[type="color"], .uneditable-input {
Thomas Park's avatar
Thomas Park committed
409
410
411
	color: @grayDark;
}

412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
input[disabled], select[disabled], textarea[disabled], input[readonly], select[readonly], textarea[readonly], .uneditable-input {
	border-color: #444;
}

input:focus,
textarea:focus,
input.focused,
textarea.focused {
  border-color: rgba(82,168,236,1);
  outline: 0;
  outline: thin dotted \9; /* IE6-9 */
}

input[type="file"]:focus,
input[type="radio"]:focus,
input[type="checkbox"]:focus,
select:focus {
  .box-shadow(none); // override for file inputs
  .tab-focus();
}

Thomas Park's avatar
Thomas Park committed
433
434
435
436
437
legend, label {
	color: @textColor;
	border-bottom: 0px solid #222;
}

438
.form-actions {
439
	border-top: 1px solid #222;
Thomas Park's avatar
Thomas Park committed
440
441
}

Thomas Park's avatar
Thomas Park committed
442
// TABLES
Thomas Park's avatar
Thomas Park committed
443
444
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
.table {

	.border-radius(1px);

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

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

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

Thomas Park's avatar
Thomas Park committed
465
466
// DROPDOWNS
// -----------------------------------------------------
Thomas Park's avatar
Thomas Park committed
467

Thomas Park's avatar
Thomas Park committed
468
469
.dropdown-menu {
	.box-shadow(0 2px 4px rgba(0, 0, 0, 0.8));
Thomas Park's avatar
Thomas Park committed
470
}
Thomas Park's avatar
Thomas Park committed
471

Thomas Park's avatar
Thomas Park committed
472
473
// ALERTS, LABELS, BADGES
// -----------------------------------------------------
474

Thomas Park's avatar
Thomas Park committed
475
476
477
478
479
480
481
482
483
484
485
486
487
.alert,
.alert .alert-heading,
.alert-success,
.alert-success .alert-heading,
.alert-danger,
.alert-error,
.alert-danger .alert-heading,
.alert-error .alert-heading,
.alert-info,
.alert-info .alert-heading {
  color: @grayLighter;
  text-shadow: none;
  border: none;
Thomas Park's avatar
Thomas Park committed
488
489
}

490
491
492
493
494
495
496
497
.label {
	color: @grayLighter;
}

.label, .alert { background-color: darken(@gray, 20%); }

.label:hover { background-color: darken(@gray, 30%); }

Thomas Park's avatar
Thomas Park committed
498
499
.label-important,
.alert-danger,
500
501
.alert-error { background-color: @red; }

502
.label-important:hover { background-color: darken(@red, 10%); }
503

Thomas Park's avatar
Thomas Park committed
504
.label-warning   { background-color: darken(@orange, 10%); }
505

506
.label-warning:hover { background-color: darken(@orange, 20%); }
507
508
509

.label-success, .alert-success { background-color: darken(@green, 3%); }

510
.label-success:hover { background-color: darken(@green, 13%); }
511
512
513

.label-info, .alert-info { background-color: darken(@blueDark, 10%); }

514
.label-info:hover { background-color: darken(@blueDark, 20%); }
515

Thomas Park's avatar
Thomas Park committed
516
517
518
519
520
521
522
523
524
525
526
527
528
// MISC
// -----------------------------------------------------

.well, .hero-unit {
	.border-radius(1px);
}

.well, .hero-unit {
	border-top: solid 1px lighten(@grayDark, 5%);
	.box-shadow(0 2px 4px rgba(0,0,0,.8));
}

.thumbnail {
529
	border-color: @grayDark;
Thomas Park's avatar
Thomas Park committed
530
531
532
533
534
535
}

.progress {
	background-color: #060606;
	background-image: none;
	.border-radius(0);
536
}
Thomas Park's avatar
Thomas Park committed
537

Thomas Park's avatar
Thomas Park committed
538
539
540
541
542
543
544
.modal {
 	.border-radius(1px);
	border-top: solid 1px lighten(@grayDark, 5%);
	background-color: @grayDark;
}

.modal-header {
545
	border-bottom: 1px solid @grayDark;
Thomas Park's avatar
Thomas Park committed
546
547
548
549
}

.modal-footer {
	background-color: @grayDark;
550
	border-top: 1px solid @grayDark;
Thomas Park's avatar
Thomas Park committed
551
552
553
554
555
	.border-radius(0 0 6px 6px);
	.box-shadow(none);
}

.footer {
556
	border-top: 1px solid @grayDark;
Thomas Park's avatar
Thomas Park committed
557
558
559
560
561
562
563
564
}

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

@media (max-width: 768px) {
	div.subnav .nav > li + li > a,
	div.subnav .nav > li:first-child > a {
565
566
		border-top: 1px solid @grayDark;
		border-left: 1px solid @grayDark;
Thomas Park's avatar
Thomas Park committed
567
568
569
570
571
572
573
	}

	.subnav .nav > li + li > a:hover,
	.subnav .nav > li:first-child > a:hover {
			border-bottom: 0;
			background-color: @blue;
	}
574
}