bootswatch.less 10 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
2
// Bootswatch.less
// Swatch: Amelia
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
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
13
14
15
16
.navbar .brand, legend {
	font-family: @headingsFontFamily;
}

h6 {
Thomas Park's avatar
Thomas Park committed
17
18
19
	color: @textColor;
}

Thomas Park's avatar
Thomas Park committed
20
h1 small, h2 small, h3 small, h4 small, h5 small, h6 small {
Thomas Park's avatar
Thomas Park committed
21
	font-family: @baseFontFamily;
Thomas Park's avatar
Thomas Park committed
22
	color: @textColor;
Thomas Park's avatar
Thomas Park committed
23
24
25
}

.muted {
26
	color: rgba(255, 255, 255, 0.5);
Thomas Park's avatar
Thomas Park committed
27
28
29
30
31
32
}

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

body {
33
	#gradient > .radial(lighten(#0F8790, 7%), #0F8790);
Thomas Park's avatar
Thomas Park committed
34
35
36
}

hr {
37
	border-bottom: 1px solid rgba(255, 255, 255, 0.3);
Thomas Park's avatar
Thomas Park committed
38
39
40
41
42
43
}

.page-header {
	border-bottom: 0px solid transparent;
}

Thomas Park's avatar
Thomas Park committed
44
footer.footer {
45
	border-top: 1px solid rgba(255, 255, 255, 0.3);
Thomas Park's avatar
Thomas Park committed
46
47
48
49
	
	p {
		color: @textColor;	
	}
Thomas Park's avatar
Thomas Park committed
50
51
}

Thomas Park's avatar
Thomas Park committed
52
53
54
55
56
57
58
59
60
// NAVBAR
// -----------------------------------------------------

.navbar {
	.navbar-inner {
		.border-radius(0);
	}
	
	.brand {
61
		padding: 12px 20px 14px;
Thomas Park's avatar
Thomas Park committed
62
		font-size: 24px;
Thomas Park's avatar
Thomas Park committed
63
		font-weight: normal;
Thomas Park's avatar
Thomas Park committed
64
	}
65

Thomas Park's avatar
Thomas Park committed
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
97
	.nav > li > a {
		padding-top: 17px;
		padding-bottom: 14px;
		text-shadow: none;
	}
	
	.navbar-search {
		margin-top: 10px;
	}	
	
	.navbar-search .search-query {
		border: 2px solid lighten(@navbarBackground, 10%);
		.border-radius(0);
		.box-shadow(none);
		
		&:focus, &.focus {
			background-color: @grayLighter;
			border-color: @grayLighter;
			text-shadow: none;
			padding: 4px 9px;
			.box-shadow(none);
		}
	}
}

div.subnav {
	background-color: rgba(42, 99, 105, 0.9);
	background-image: none;
	border: 0px solid transparent;
	.border-radius(0);
	.box-shadow(none);
	
98
	.nav > li.open > a {
Thomas Park's avatar
Thomas Park committed
99
		border-color: transparent;
100
		background-color: rgba(255, 255, 255, 0.4);
Thomas Park's avatar
Thomas Park committed
101
102
103
104
105
106
107
	}
	
	.nav > li > a {
		color: @textColor;
		border-color: transparent;
	}
	
Thomas Park's avatar
Thomas Park committed
108
109
110
111
112
113
114
115
116
117
118
119
	.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
120
121
122
123
	.nav > .active > a:hover,
	.nav > li > a:hover,
	.nav > li.active > a:hover, {
		border-right-color: transparent;
124
		background-color: rgba(255, 255, 255, 0.4);
Thomas Park's avatar
Thomas Park committed
125
126
		color: @textColor;
	}
Thomas Park's avatar
Thomas Park committed
127
128
	
	.nav > li:first-child > a:hover {
129
		border-left-color: rgba(255, 255, 255, 0.4);
Thomas Park's avatar
Thomas Park committed
130
131
		border-left-width: 1px;
	}
132
133
}

Thomas Park's avatar
Thomas Park committed
134
135
136
137
div.subnav-fixed {
	top: 50px;
}

Thomas Park's avatar
Thomas Park committed
138
.navbar .nav-collapse.in {
Thomas Park's avatar
Thomas Park committed
139
	
Thomas Park's avatar
Thomas Park committed
140
	.nav li > a {
Thomas Park's avatar
Thomas Park committed
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
		color: @textColor;
		.border-radius(0);
	}
	
	li > a:hover {
		background-color: lighten(@navbarBackground, 10%);
	}
	
	.navbar-form, .navbar-search {
		.box-shadow(none);
		border-color: lighten(@navbarBackground, 10%);
	}
	
	.navbar-search .search-query {
		border: 2px solid @textColor;
	}
}

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

.buttonBackgroundCustom(@color) {

  background-color: @color;
Thomas Park's avatar
Thomas Park committed
165
  border-color: transparent;
Thomas Park's avatar
Thomas Park committed
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186

  &:hover, &:active, &.active, &.disabled, &[disabled] {
    background-color: darken(@color, 5%);
	text-shadow: none;
  }
  
  &: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
187
	background-image: none;
Thomas Park's avatar
Thomas Park committed
188
189
	text-shadow: none;
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
190
	.buttonBackgroundCustom(@btnBackground)
Thomas Park's avatar
Thomas Park committed
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
}

.btn-group .btn:first-child {
  margin-left: 0;
     -webkit-border-top-left-radius: 0;
         -moz-border-radius-topleft: 0;
             border-top-left-radius: 0;
  -webkit-border-bottom-left-radius: 0;
      -moz-border-radius-bottomleft: 0;
          border-bottom-left-radius: 0;
}

.btn-group .btn:last-child,
.btn-group .dropdown-toggle {
     -webkit-border-top-right-radius: 0;
         -moz-border-radius-topright: 0;
             border-top-right-radius: 0;
  -webkit-border-bottom-right-radius: 0;
      -moz-border-radius-bottomright: 0;
          border-bottom-right-radius: 0;
}

.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
220
  .buttonBackgroundCustom(@btnPrimaryBackground);
Thomas Park's avatar
Thomas Park committed
221
222
}

Thomas Park's avatar
Thomas Park committed
223
224
.btn-info {
  .buttonBackgroundCustom(@btnInfoBackground);
Thomas Park's avatar
Thomas Park committed
225
226
}

Thomas Park's avatar
Thomas Park committed
227
228
.btn-success {
  .buttonBackgroundCustom(@btnSuccessBackground);
Thomas Park's avatar
Thomas Park committed
229
230
}

Thomas Park's avatar
Thomas Park committed
231
232
.btn-warning {
  .buttonBackgroundCustom(@btnWarningBackground);
Thomas Park's avatar
Thomas Park committed
233
234
}

Thomas Park's avatar
Thomas Park committed
235
236
.btn-danger {
  .buttonBackgroundCustom(@btnDangerBackground);
Thomas Park's avatar
Thomas Park committed
237
238
239
}

.btn-inverse {
Thomas Park's avatar
Thomas Park committed
240
  .buttonBackgroundCustom(@btnInverseBackground);
Thomas Park's avatar
Thomas Park committed
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
}

.btn-small {
	padding: 13px 16px 12px;
}

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

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

.add-on  [class^="icon-"] {
	margin-left: 5px;
}

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

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

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

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

legend, label, .help-block, .input-file {
	color: @textColor;
	border: 0px solid transparent;
}

280
input, textarea, .uneditable-input {
Thomas Park's avatar
Thomas Park committed
281
282
283
284
	border: 0px solid transparent;
	padding: 10px;
}

Thomas Park's avatar
Thomas Park committed
285
286
287
288
.uneditable-input {
	padding-bottom: 30px;
}

289
290
291
292
select {
	border: 0px solid transparent;
}

Thomas Park's avatar
Thomas Park committed
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
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%);
}

.input-prepend .add-on, .input-append .add-on {
	height: 25px;
	padding-top: 9px;
Thomas Park's avatar
Thomas Park committed
326
	background-color: @grayLighter;
Thomas Park's avatar
Thomas Park committed
327
328
	border-color: transparent;
	.border-radius(0);
Thomas Park's avatar
Thomas Park committed
329
330
	color: @gray;
	text-shadow: none;
Thomas Park's avatar
Thomas Park committed
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
}

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

.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;
	}
	
	.divider {
		color: @linkColor;
	}
}

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

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

.pagination {
	
	ul  {
		background-color: #3CB9C6;
		background-image: none;
	}

	li a {
		border: 0px solid transparent;
	}

	.disabled a, .disabled a:hover {
		color: @textColor;
	}
	
	li a:hover {
380
		background-color: rgba(255, 255, 255, 0.4);
Thomas Park's avatar
Thomas Park committed
381
382
383
384
		color: @linkColor;
	}
	
	.active a, .active a:hover {
385
		background-color: rgba(255, 255, 255, 0.4);
Thomas Park's avatar
Thomas Park committed
386
387
388
389
390
391
392
393
394
395
396
		color: @textColor;
	}

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

}

397
398
.nav-tabs li.open > .dropdown-toggle,
.nav-pills li.open > .dropdown-toggle {
Thomas Park's avatar
Thomas Park committed
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
	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 {
432
	border-bottom: 1px solid rgba(255, 255, 255, 0.5);
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
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
}

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

Thomas Park's avatar
Thomas Park committed
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
// MODALS
// -----------------------------------------------------

.modal {
	.border-radius(0);
}

.modal-header {
	color: @navbarBackground;
}

.modal-body {
	color: @bodyBackground;
}

Thomas Park's avatar
Thomas Park committed
491
492
493
494
495
496
497
498
499
500
// MISCELLANEOUS
// -----------------------------------------------------

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

Thomas Park's avatar
Thomas Park committed
501
502
503
504
.hero-unit {
	.border-radius(0);
}

Thomas Park's avatar
Thomas Park committed
505
code, pre {
506
	background-color: rgba(255, 255, 255, 0.3);
Thomas Park's avatar
Thomas Park committed
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
	padding: 2px;
}

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

.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 {
527
	background-color: darken(@yellow, 3%);
Thomas Park's avatar
Thomas Park committed
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
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
	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;
}

.alert-heading {
	color: @textColor;
}

.progress {
	background-image: none;
	background-color: #27666D;
	
	.bar {
		.box-shadow(none);
		background-image: none;
		background-color: @orange;
	}
}

.progress-danger .bar {
	background-image: none;
	background-color: #AD1D28;
}
.progress-danger.progress-striped .bar {
  #gradient > .striped(#AD1D28);
}

.progress-success .bar {
	background-image: none;
	background-color: @green;
}
.progress-success.progress-striped .bar {
  #gradient > .striped(@green);
}

.progress-info .bar {
	background-image: none;
	background-color: @blue;
}
.progress-info.progress-striped .bar {
  #gradient > .striped(@blue);
}

.thumbnail {
	border: 0px solid transparent;
	.border-radius(0);
	.box-shadow(none);
}

blockquote {

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

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

	small {
595
		color: rgba(255, 255, 255, 0.6);
Thomas Park's avatar
Thomas Park committed
596
	}
Thomas Park's avatar
Thomas Park committed
597
}