bootswatch.less 11.4 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
2
// Bootswatch.less
// Swatch: Amelia
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
10
@import url('https://fonts.googleapis.com/css?family=Lobster');
@import url('https://fonts.googleapis.com/css?family=Cabin:400,700');
Thomas Park's avatar
Thomas Park committed
11

Thomas Park's avatar
Thomas Park committed
12
h6 {
Thomas Park's avatar
Thomas Park committed
13
14
15
	color: @textColor;
}

Thomas Park's avatar
Thomas Park committed
16
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
Thomas Park's avatar
Thomas Park committed
17
	font-family: @baseFontFamily;
Thomas Park's avatar
Thomas Park committed
18
	color: @textColor;
Thomas Park's avatar
Thomas Park committed
19
20
}

21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
code, pre {
	background-color: rgba(255, 255, 255, 0.3);
	padding: 2px;
}

blockquote {

	border-left-color: lighten(#147E88, 12%);

	&.pull-right {
		border-right-color: lighten(#147E88, 12%);
	}

	small {
		color: rgba(255, 255, 255, 0.6);
	}
}

Thomas Park's avatar
Thomas Park committed
39
.muted {
40
	color: rgba(255, 255, 255, 0.5);
Thomas Park's avatar
Thomas Park committed
41
42
43
44
45
46
}

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

body {
47
	#gradient > .radial(lighten(#0F8790, 7%), #0F8790);
Thomas Park's avatar
Thomas Park committed
48
49
50
}

hr {
51
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
Thomas Park's avatar
Thomas Park committed
52
53
54
}

.page-header {
Thomas Park's avatar
Thomas Park committed
55
	margin: 30px 0 15px;
Thomas Park's avatar
Thomas Park committed
56
57
58
59
60
61
62
	border-bottom: 0px solid transparent;
}

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

.navbar {
Thomas Park's avatar
Thomas Park committed
63

Thomas Park's avatar
Thomas Park committed
64
65
66
	.navbar-inner {
		.border-radius(0);
	}
Thomas Park's avatar
Thomas Park committed
67

Thomas Park's avatar
Thomas Park committed
68
	.brand {
Thomas Park's avatar
Thomas Park committed
69
		padding: 15px 20px 14px;
70
		font-family: @headingsFontFamily;
Thomas Park's avatar
Thomas Park committed
71
		font-size: 24px;
Thomas Park's avatar
Thomas Park committed
72
		font-weight: normal;
Thomas Park's avatar
Thomas Park committed
73
	}
74

Thomas Park's avatar
Thomas Park committed
75
76
77
78
79
	.nav > li > a {
		padding-top: 17px;
		padding-bottom: 14px;
		text-shadow: none;
	}
Thomas Park's avatar
Thomas Park committed
80

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

Thomas Park's avatar
Thomas Park committed
87
88
	.navbar-search {
		margin-top: 10px;
Thomas Park's avatar
Thomas Park committed
89
90
	}

Thomas Park's avatar
Thomas Park committed
91
92
	.navbar-search .search-query {
		.border-radius(0);
Thomas Park's avatar
Thomas Park committed
93
94
95
96
97
98
99
100
101
102
103
104
105
106
		padding-top: 5px;
		padding-bottom: 5px;
	}

	.navbar-text {
		margin: 17px 15px 14px;
		line-height: 20px;
	}

	.btn,
	.btn-group {
		padding: 4px;
	}

107
108
109
110
111
112
113
114
115
116
117
118
119
120
	&-inverse {

		.dropdown-menu li > a:hover,
		.dropdown-menu li > a:focus,
		.dropdown-submenu:hover > a {
			background-image: none;
			background-color: @yellow;
		}
	}
}

@media (max-width: @navbarCollapseWidth) {

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

		.nav li > a {
123

Thomas Park's avatar
Thomas Park committed
124
125
126
127
128
129
130
			color: @textColor;
			.border-radius(0);

			&:hover {
				background-color: lighten(@navbarBackground, 10%);
			}
		}
Thomas Park's avatar
Thomas Park committed
131

Thomas Park's avatar
Thomas Park committed
132
133
134
135
136
137
138
139
		.dropdown-menu li > a:hover,
		.dropdown-menu li > a:focus,
		.dropdown-submenu:hover > a {
			background-image: none;
		}

		.navbar-form,
		.navbar-search {
Thomas Park's avatar
Thomas Park committed
140
			.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
141
142
143
144
145
146
147
148
149
150
151
152
			border: none;
		}

		.navbar-search .search-query {
			border: 2px solid @textColor;
		}

		.nav-header {
			color: rgba(255, 255, 255, 0.5);
		}
	}

153
	.navbar-inverse .nav-collapse {
Thomas Park's avatar
Thomas Park committed
154

155
156
157
		.nav li > a:hover,
		.dropdown-menu a:hover {
			background-color: lighten(@navbarInverseBackground, 10%) !important;
Thomas Park's avatar
Thomas Park committed
158
159
160
161
162
		}
	}
}

div.subnav {
163

Thomas Park's avatar
Thomas Park committed
164
165
166
167
168
	background-color: rgba(42, 99, 105, 0.9);
	background-image: none;
	border: 0px solid transparent;
	.border-radius(0);
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
169

170
	.nav > li.open > a {
Thomas Park's avatar
Thomas Park committed
171
		border-color: transparent;
172
		background-color: rgba(255, 255, 255, 0.4);
Thomas Park's avatar
Thomas Park committed
173
	}
Thomas Park's avatar
Thomas Park committed
174

Thomas Park's avatar
Thomas Park committed
175
176
177
178
	.nav > li > a {
		color: @textColor;
		border-color: transparent;
	}
Thomas Park's avatar
Thomas Park committed
179

Thomas Park's avatar
Thomas Park committed
180
181
182
183
184
185
186
187
188
189
190
	.nav > li:first-child > a,
	.nav > li:first-child > a:hover {
		.border-radius(0);
	}

	.nav > .active > a {
		background-color: transparent;
		border-color: transparent;
		color: @textColor;
		.box-shadow(none);
	}
Thomas Park's avatar
Thomas Park committed
191

Thomas Park's avatar
Thomas Park committed
192
193
194
195
	.nav > .active > a:hover,
	.nav > li > a:hover,
	.nav > li.active > a:hover, {
		border-right-color: transparent;
196
		background-color: rgba(255, 255, 255, 0.4);
Thomas Park's avatar
Thomas Park committed
197
198
		color: @textColor;
	}
Thomas Park's avatar
Thomas Park committed
199

Thomas Park's avatar
Thomas Park committed
200
	.nav > li:first-child > a:hover {
201
		border-left-color: rgba(255, 255, 255, 0.4);
Thomas Park's avatar
Thomas Park committed
202
203
		border-left-width: 1px;
	}
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
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

	&-fixed {
		top: 50px;
	}
}

// NAV
// -----------------------------------------------------

.nav-tabs li.open > .dropdown-toggle,
.nav-pills li.open > .dropdown-toggle {
	background-color: #8AD5DC;
	color: @linkColor;
	border-color: transparent;
}

.nav-tabs, .nav-pills {
	border-color: transparent;

	li > a {
		border-color: transparent;
		.border-radius(0);
		.box-shadow(0);
	}

	li.active > a,
	li:active > a,
	li.active > a:hover,
	li:active > a:hover {
		color: @textColor;
	}

	li.active > a,
	li:active > a,
	li > a:hover,
	li.active > a:hover,
	li:active > a:hover {
		background-color: #8AD5DC;
		border-color: transparent;
		text-shadow: none;
	}
}

.nav-tabs, .nav-tabs > li > a {
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
}

.nav-tabs > li > a {
	background-color: #3CB9C6;
}

.nav-tabs.nav-stacked {

	li > a:first-child,
	li > a:last-child {
		.border-radius(0);
	}

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

.nav-list {
	.nav-header {
		text-shadow: none;
		color: @textColor;
	}

	li > a {
		text-shadow: none;
	}

	li.active > a,
	li:active > a,
	li > a:hover,
	li.active > a:hover,
	li:active > a:hover {
		background-color: #8AD5DC;
		text-shadow: none;
	}

	.divider {
		background-color: rgba(255, 255, 255, 0.3);
		border-bottom: none;
	}
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
.breadcrumb, .pager > li > a {
	border-color: transparent;
	.border-radius(0);
	.box-shadow(none);
	text-shadow: none;
}

.breadcrumb {
	background-color: #3CB9C6;
	background-image: none;

	li {
		text-shadow: none;
	}

	.active {
		color: @white;
	}

	.divider {
		color: @linkColor;
	}
}

.pagination {

	ul  {
		background-color: @paginationBackground;
		background-image: none;
326
		.border-radius(0);
327
328
	}

329
	ul > li > a:hover {
330
331
332
333
		background-color: rgba(255, 255, 255, 0.4);
		color: @linkColor;
	}

334
335
336
337
338
339
340
341
342
	ul > li:first-child > a,
	ul > li:last-child > a {
		.border-radius(0);
	}

	ul > .disabled > a,
	ul > .disabled > a:hover,
	ul > .disabled > span,
	ul > .disabled > span:hover {
343
344
345
		color: @textColor;
	}

346
347
348
349
350
351
	ul > .active > a,
	ul > .active > a:hover,
	ul > .active > span,
	ul > .active > span:hover {
		background-color: rgba(255, 255, 255, 0.4);
		color: @textColor;
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
	}
}

.pager {

	li > a {
		background-color: #3CB9C6;

		&:hover {
			background-color: #8AD5DC;
		}
	}

	.disabled a,
	.disabled a:hover {
		background-color: #3CB9C6;
		color: @white;
	}
Thomas Park's avatar
Thomas Park committed
370
371
372
373
374
375
376
377
}

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

.buttonBackgroundCustom(@color) {

  background-color: @color;
Thomas Park's avatar
Thomas Park committed
378
  border-color: transparent;
Thomas Park's avatar
Thomas Park committed
379
380
381
382
383

  &:hover, &:active, &.active, &.disabled, &[disabled] {
    background-color: darken(@color, 5%);
	text-shadow: none;
  }
Thomas Park's avatar
Thomas Park committed
384

Thomas Park's avatar
Thomas Park committed
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
  &:active, &.active {
    background-color: darken(@color, 15%);
	.box-shadow(none);
  }

  // IE 7 + 8 can't handle box-shadow to show active, so we darken a bit ourselves
  &:active,
  &.active {
    background-color: darken(@color, 15%) e("\9");
  }
}

.btn {
 	padding: 12px 16px;
	.border-radius(0);
Thomas Park's avatar
Thomas Park committed
400
	background-image: none;
Thomas Park's avatar
Thomas Park committed
401
402
	text-shadow: none;
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
403
	.buttonBackgroundCustom(@btnBackground)
Thomas Park's avatar
Thomas Park committed
404
405
406
}

.btn-group .btn:first-child {
Thomas Park's avatar
Thomas Park committed
407
408
	margin-left: 0;
	.border-radius(0);
Thomas Park's avatar
Thomas Park committed
409
410
411
412
}

.btn-group .btn:last-child,
.btn-group .dropdown-toggle {
Thomas Park's avatar
Thomas Park committed
413
     .border-radius(0);
Thomas Park's avatar
Thomas Park committed
414
415
416
417
418
419
420
421
422
}

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

.btn-primary {
Thomas Park's avatar
Thomas Park committed
423
  .buttonBackgroundCustom(@btnPrimaryBackground);
Thomas Park's avatar
Thomas Park committed
424
425
}

Thomas Park's avatar
Thomas Park committed
426
427
.btn-info {
  .buttonBackgroundCustom(@btnInfoBackground);
Thomas Park's avatar
Thomas Park committed
428
429
}

Thomas Park's avatar
Thomas Park committed
430
431
.btn-success {
  .buttonBackgroundCustom(@btnSuccessBackground);
Thomas Park's avatar
Thomas Park committed
432
433
}

Thomas Park's avatar
Thomas Park committed
434
435
.btn-warning {
  .buttonBackgroundCustom(@btnWarningBackground);
Thomas Park's avatar
Thomas Park committed
436
437
}

Thomas Park's avatar
Thomas Park committed
438
439
.btn-danger {
  .buttonBackgroundCustom(@btnDangerBackground);
Thomas Park's avatar
Thomas Park committed
440
441
442
}

.btn-inverse {
Thomas Park's avatar
Thomas Park committed
443
  .buttonBackgroundCustom(@btnInverseBackground);
Thomas Park's avatar
Thomas Park committed
444
445
}

Thomas Park's avatar
Thomas Park committed
446
447
448
449
.btn-link {
	.buttonBackgroundCustom(@btnPrimaryBackground);
}

450
451
452
453
.btn-large {
	padding: 20px 24px;
}

Thomas Park's avatar
Thomas Park committed
454
.btn-small {
455
456
457
458
459
	padding: 8px 12px;
}

.btn-mini {
	padding: 4px 8px;
Thomas Park's avatar
Thomas Park committed
460
461
462
463
464
465
466
467
468
469
470
}

[class^="icon-"], [class*=" icon-"] {
	margin-top: 2px;
	margin-right: 8px;
}

.btn-small [class^="icon-"] {
	margin-top: 1px;
}

471
.add-on [class^="icon-"] {
Thomas Park's avatar
Thomas Park committed
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
	margin-left: 5px;
}

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

.table th, .table td,
.table tbody + tbody {
	border-top: 0px solid transparent;
}

.table-bordered {
	.border-radius(0);
}

Thomas Park's avatar
Thomas Park committed
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
.table tbody {

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

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

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

Thomas Park's avatar
Thomas Park committed
502
503
504
// FORMS
// -----------------------------------------------------

505
506
507
508
legend {
	font-family: @headingsFontFamily;
}

Thomas Park's avatar
Thomas Park committed
509
510
511
512
513
legend, label, .help-block, .input-file {
	color: @textColor;
	border: 0px solid transparent;
}

514
input, textarea, .uneditable-input {
Thomas Park's avatar
Thomas Park committed
515
516
517
518
	border: 0px solid transparent;
	padding: 10px;
}

Thomas Park's avatar
Thomas Park committed
519
520
521
522
.uneditable-input {
	padding-bottom: 30px;
}

523
524
525
526
select {
	border: 0px solid transparent;
}

Thomas Park's avatar
Thomas Park committed
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
button {
	margin-left: 12px;
}

input, textarea, .search-query, .uneditable-input,
.input-append input, .input-append .uneditable-input,
.input-prepend input, .input-prepend .uneditable-input {
	border-color: transparent;
	.box-shadow(none);
}

.form-actions {
	border-top: 0px solid transparent;
}

.control-group.warning > label,
.control-group.warning .help-inline {
	color: lighten(@orange, 30%);
}

.control-group.error > label,
.control-group.error .help-inline {
	color: lighten(@linkColor, 10%);
}

.control-group.success > label,
.control-group.success .help-inline {
	color: lighten(@green, 20%);
}

Thomas Park's avatar
Thomas Park committed
557
558
559
560
.input-prepend .add-on,
.input-append .add-on {
	height: 20px;
	padding-top: 4px;
Thomas Park's avatar
Thomas Park committed
561
	background-color: @grayLighter;
Thomas Park's avatar
Thomas Park committed
562
563
	border-color: transparent;
	.border-radius(0);
Thomas Park's avatar
Thomas Park committed
564
565
	color: @gray;
	text-shadow: none;
Thomas Park's avatar
Thomas Park committed
566
567
}

Thomas Park's avatar
Thomas Park committed
568
569
570
571
572
.input-append .btn,
.input-prepend .btn {
	padding: 4px 10px;
}

573
// ALERTS, LABELS, BADGES
Thomas Park's avatar
Thomas Park committed
574
575
// -----------------------------------------------------

576
.alert, .label {
Thomas Park's avatar
Thomas Park committed
577
578
579
580
581
582
	border-color: transparent;
	.border-radius(0);
	.box-shadow(none);
	text-shadow: none;
}

583
584
.alert-heading {
	color: @textColor;
Thomas Park's avatar
Thomas Park committed
585
586
587
588
589
590
591
592
593
594
595
596
597
598
}

.label, .label:hover {
	background-color: @grayLighter;
	text-shadow: none;
	color: @grayDark;
}

.label-warning, .label-warning:hover, .alert {
	background-color: @orange;
	color: @textColor;
}

.label-important, .label-important:hover, .alert-error {
599
	background-color: darken(@yellow, 3%);
Thomas Park's avatar
Thomas Park committed
600
601
602
603
604
605
606
607
608
609
610
611
612
	color: @textColor;
}

.label-success, .label-success:hover, .alert-success {
	background-color: @green;
	color: @textColor;
}

.label-info, .label-info:hover, .alert-info {
	background-color: @purple;
	color: @textColor;
}

613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
// MISCELLANEOUS
// -----------------------------------------------------

.progress, .well, pre, code {
	border-color: transparent;
	.border-radius(0);
	.box-shadow(none);
	text-shadow: none;
}

.well {
	background-image: none;
}

.hero-unit {
	.border-radius(0);
}

.thumbnail {
	border: 0 solid transparent;
	.border-radius(0);
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
635
636
637
}

.progress {
Thomas Park's avatar
Thomas Park committed
638

Thomas Park's avatar
Thomas Park committed
639
640
	background-image: none;
	background-color: #27666D;
Thomas Park's avatar
Thomas Park committed
641

Thomas Park's avatar
Thomas Park committed
642
	.bar {
Thomas Park's avatar
Thomas Park committed
643

Thomas Park's avatar
Thomas Park committed
644
645
		.box-shadow(none);
		background-image: none;
Thomas Park's avatar
Thomas Park committed
646
647
648
649
650
651
652
653
654
655
656
657
658
		background-color: @yellow;

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

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

		&-error {
			background-color: @red;
		}
Thomas Park's avatar
Thomas Park committed
659
660
661
662
663
664
665
	}
}

.progress-danger .bar {
	background-image: none;
	background-color: #AD1D28;
}
666

Thomas Park's avatar
Thomas Park committed
667
.progress-danger.progress-striped .bar {
Thomas Park's avatar
Thomas Park committed
668
	#gradient > .striped(#AD1D28);
Thomas Park's avatar
Thomas Park committed
669
670
671
672
673
674
}

.progress-success .bar {
	background-image: none;
	background-color: @green;
}
675

Thomas Park's avatar
Thomas Park committed
676
.progress-success.progress-striped .bar {
Thomas Park's avatar
Thomas Park committed
677
	#gradient > .striped(@green);
Thomas Park's avatar
Thomas Park committed
678
679
680
681
682
683
}

.progress-info .bar {
	background-image: none;
	background-color: @blue;
}
684

Thomas Park's avatar
Thomas Park committed
685
.progress-info.progress-striped .bar {
Thomas Park's avatar
Thomas Park committed
686
	#gradient > .striped(@blue);
Thomas Park's avatar
Thomas Park committed
687
688
}

689
.modal {
Thomas Park's avatar
Thomas Park committed
690

Thomas Park's avatar
Thomas Park committed
691
	.border-radius(0);
Thomas Park's avatar
Thomas Park committed
692

Thomas Park's avatar
Thomas Park committed
693
694
695
	&-header {
		background-color: @navbarBackground;
		color: @white;
Thomas Park's avatar
Thomas Park committed
696
697
	}

Thomas Park's avatar
Thomas Park committed
698
699
	&-body {
		
700
701
		color: @grayDark;

Thomas Park's avatar
Thomas Park committed
702
703
704
705
706
707
708
709
710
711
712
713
714
715
		h1, h2, h3, h4, h5, h6,
		legend {
			color: @red;
		}

		label,
		.input-file {
			color: @grayDark;
		}

		.help-block,
		.help-inline {
			color: @grayLight;
		}
716

Thomas Park's avatar
Thomas Park committed
717
718
719
720
721
		textarea,
		input,
		.uneditable-input {
			border: 1px solid @grayLight;
		}
Thomas Park's avatar
Thomas Park committed
722
	}
Thomas Park's avatar
Thomas Park committed
723
}
Thomas Park's avatar
Thomas Park committed
724
725

.popover {
Thomas Park's avatar
Thomas Park committed
726
	
Thomas Park's avatar
Thomas Park committed
727
728
729
730
731
732
733
734
	padding: 0;
	.border-radius(0);
	color: @grayDark;

	.popover-title {
		.border-radius(0);
		color: @white;
	}
Thomas Park's avatar
Thomas Park committed
735
736
737
738
}

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