bootswatch.less 8.42 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
// Cosmo 2.2.2
Thomas Park's avatar
Thomas Park committed
2
3
4
5
6
7
8
// Bootswatch
// -----------------------------------------------------


// TYPOGRAPHY
// -----------------------------------------------------

9
@import url('//fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700');
Thomas Park's avatar
Thomas Park committed
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40

body {
	font-weight: 300;
}

h1 {
	font-size: 50px;
}

h2, h3 {
	font-size: 26px;
}

h4 {
	font-size: 14px;
}

h5, h6 {
	font-size: 11px;
}

blockquote {

	padding: 10px 15px;
	background-color: @grayLighter;
	border-left-color: @gray;

	&.pull-right {
		padding: 10px 15px;
		border-right-color: @gray;
	}
Thomas Park's avatar
Thomas Park committed
41
42
43
44

	small {
		color: @gray;
	}
Thomas Park's avatar
Thomas Park committed
45
46
47
48
49
50
}

.muted {
	color: @gray;
}

51
52
53
54
55
56
57
58
59
60
61
62
.text-warning        { color: @orange; }
a.text-warning:hover { color: darken(@orange, 10%); }

.text-error          { color: @red; }
a.text-error:hover   { color: darken(@red, 10%); }

.text-info           { color: @purple; }
a.text-info:hover    { color: darken(@purple, 10%); }

.text-success        { color: @green; }
a.text-success:hover { color: darken(@green, 10%); }

Thomas Park's avatar
Thomas Park committed
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
97
98
99
100
101
102
103
104
105
106
// SCAFFOLDING
// -----------------------------------------------------

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

.navbar {

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

	.brand {

		&:hover {
			color: @navbarLinkColorHover;
		}
	}

	.nav > .active > a,
	.nav > .active > a:hover,
	.nav > .active > a:focus {
		.box-shadow(none);
		background-color: @navbarLinkBackgroundHover;
	}

	.nav li.dropdown.open > .dropdown-toggle,
	.nav li.dropdown.active > .dropdown-toggle,
	.nav li.dropdown.open.active > .dropdown-toggle {
		color: @white;

		&:hover {
			color: @grayLighter;
		}
	}

	.navbar-search .search-query {
		line-height: normal;
	}

	&-inverse {

107
108
109
110
		.brand,
		.nav > li > a {
			text-shadow: none;
		}
Thomas Park's avatar
Thomas Park committed
111

112
		.brand:hover,
Thomas Park's avatar
Thomas Park committed
113
114
115
116
		.nav > .active > a,
		.nav > .active > a:hover,
		.nav > .active > a:focus {
			background-color: @navbarInverseLinkBackgroundHover;
117
118
			.box-shadow(none);
			color: @white;
Thomas Park's avatar
Thomas Park committed
119
120
121
122
123
124
125
126
127
128
		}

		.navbar-search .search-query {
			color: @grayDarker;
		}
	}
}

div.subnav {

129
130
	margin: 0 1px;
	background: @grayLight none;
Thomas Park's avatar
Thomas Park committed
131
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
132
	border: none;
Thomas Park's avatar
Thomas Park committed
133
134
135
136
137
138
139
	.border-radius(0);

	.nav {
		background-color: transparent;
	}

	.nav > li > a {
Thomas Park's avatar
Thomas Park committed
140
		border-color: transparent;
Thomas Park's avatar
Thomas Park committed
141
142
	}

Thomas Park's avatar
Thomas Park committed
143
144
	.nav > .active > a,
	.nav > .active > a:hover {
Thomas Park's avatar
Thomas Park committed
145
		border-color: transparent;
Thomas Park's avatar
Thomas Park committed
146
147
		background-color: @black;
		color: @white;
Thomas Park's avatar
Thomas Park committed
148
149
150
151
		.box-shadow(none);
	}

	&-fixed {
152
153
		top: @navbarHeight + 1;
		margin: 0;
Thomas Park's avatar
Thomas Park committed
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
	}
}

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

.nav {

	.open .dropdown-toggle,
	& > li.dropdown.open.active > a:hover {
		color: @blue;
	}
}

.nav-tabs {

	& > li > a {
		.border-radius(0);
	}

	&.nav-stacked {

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

		& > .active > a,
		& > .active > a:hover {
			background-color: @white;
			color: @gray;
		}

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

194
195
196
197
198
199
200
201
202
.tabs-below,
.tabs-left,
.tabs-right {

	& > .nav-tabs > li > a{
		.border-radius(0);
	}
}

Thomas Park's avatar
Thomas Park committed
203
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
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
.nav-pills {

	& > li > a {
		background-color: @grayLight;
		.border-radius(0);
		color: @black;

		&:hover {
			background-color: @black;
			color: @white;
		}
	}

	& > .disabled > a,
	& > .disabled > a:hover {
		background-color: @grayLighter;
		color: @grayDark;
	}
}

.nav-list {

	& > li > a {
		color: @grayDarker;

		&:hover {
			background-color: @blue;
			color: @white;
			text-shadow: none;
		}
	}

	.nav-header {
		color: @grayDarker;
	}

	.divider {
		background-color: @gray;
		border-bottom: none;
	}
}

.pagination {

	ul {

		.box-shadow(none);

		& > li > a,
		& > li > span {
			margin-right: 6px;
			color: @grayDarker;

			&:hover {
				background-color: @grayDarker;
				color: @white;
			}
		}

		& > li:last-child > a,
		& > li:last-child > span {
			margin-right: 0;
		}

		& > .active > a,
		& > .active > span { 
			color: @white;
		}

		& > .disabled > span,
		& > .disabled > a,
		& > .disabled > a:hover {
			background-color: @grayLighter;
			color: @grayDark;
		}
	}
}

.pager {

	li > a,
	li > span {
		background-color: @grayLight;
		border: none;
		.border-radius(0);
		color: @grayDarker;

		&:hover {
			background-color: @grayDarker;
			color: @white;
		}
	}

	.disabled > a,
	.disabled > a:hover,
	.disabled > span {
		background-color: @grayLighter;
		color: @grayDark;
	}

}

.breadcrumb {
	background-color: @grayLight;

	li {
		text-shadow: none;
	}

	.divider,
	.active {
		color: @grayDarker;
		text-shadow: none;
	}
}

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

.btn {
323
	padding: 5px 12px;
Thomas Park's avatar
Thomas Park committed
324
325
326
327
328
329
330
331
332
333
334
	background-image: none;
	.box-shadow(none);
	border: none;
	.border-radius(0);
	text-shadow: none;

	&.disabled {
		box-shadow: inset 0 2px 4px rgba(0,0,0,.15),~" "0 1px 2px rgba(0,0,0,.05);
	}
}

335
336
337
338
339
340
341
342
343
344
345
346
.btn-large {
	padding: 22px 30px;
}

.btn-small {
	padding: 2px 10px;
}

.btn-mini {
	padding: 2px 6px;
}

Thomas Park's avatar
Thomas Park committed
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
.btn-group {

	& > .btn:first-child,
	& > .btn:last-child,
	& > .dropdown-toggle {
		.border-radius(0);
	}

	& > .btn + .dropdown-toggle {
		.box-shadow(none);
	}
}

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

.table {

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

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

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

	&-bordered {
		.border-radius(0);

		thead:first-child tr:first-child th:first-child,
		tbody:first-child tr:first-child td:first-child {
			.border-radius(0);
		}

		thead:last-child tr:last-child th:first-child,
		tbody:last-child tr:last-child td:first-child,
		tfoot:last-child tr:last-child td:first-child {
			.border-radius(0);
		}
	}
}

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

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"] {
	color: @grayDarker;
}

.control-group {

	&.warning {

Thomas Park's avatar
Thomas Park committed
407
		.control-label,
Thomas Park's avatar
Thomas Park committed
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
		.help-block,
		.help-inline {
			color: @orange;
		}

		input,
		select,
		textarea {
			border-color: @orange;
			color: @grayDarker;
		}
	}

	&.error {

Thomas Park's avatar
Thomas Park committed
423
		.control-label,
Thomas Park's avatar
Thomas Park committed
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
		.help-block,
		.help-inline {
			color: @red;
		}

		input,
		select,
		textarea {
			border-color: @red;
			color: @grayDarker;
		}
	}

	&.success {

Thomas Park's avatar
Thomas Park committed
439
		.control-label,
Thomas Park's avatar
Thomas Park committed
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
476
477
478
479
480
481
482
483
		.help-block,
		.help-inline {
			color: @green;
		}

		input,
		select,
		textarea {
			border-color: @green;
			color: @grayDarker;
		}
	}
}

legend {
	border-bottom: none;
	color: @grayDarker;
}

.form-actions {
	border-top: none;
	background-color: @grayLighter;
}

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

.dropdown-menu {
	.border-radius(0);
}

// ALERTS, LABELS, BADGES
// -----------------------------------------------------

.alert {
	.border-radius(0);
	text-shadow: none;

	&-heading, h1, h2, h3, h4, h5, h6 {
		color: @white;
	}
}

.label {
484
485
	min-width: 80px;
	min-height: 80px;
Thomas Park's avatar
Thomas Park committed
486
	.border-radius(0);
487
	font-weight: 300;
Thomas Park's avatar
Thomas Park committed
488
489
490
491
492
493
494
495
496
497
498
	text-shadow: none;

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

	&-important {
		background-color: @red;
	}

	&-info {
499
		background-color: @purple;
Thomas Park's avatar
Thomas Park committed
500
501
502
	}

	&-inverse {
503
		background-color: @black;
Thomas Park's avatar
Thomas Park committed
504
505
506
507
508
509
	}
}

.badge {

	.border-radius(0);
510
511
	font-weight: 300;
	text-shadow: none;
Thomas Park's avatar
Thomas Park committed
512
513
514
515
516
517
518
519
520
521

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

	&-important {
		background-color: @red;
	}

	&-info {
522
		background-color: @purple;
Thomas Park's avatar
Thomas Park committed
523
524
525
	}

	&-inverse {
526
		background-color: @black;
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
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
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
	}
}

// MISC
// -----------------------------------------------------

.hero-unit {
	border: none;
	.border-radius(0);
	.box-shadow(none);
}

.well {
	border: none;
	.border-radius(0);
	.box-shadow(none);
}

[class^="icon-"], [class*=" icon-"] {
	margin: 0 2px;
	vertical-align: -2px;
}

a.thumbnail {
	background-color: @grayLight;

	&:hover {
		background-color: @gray;
		border-color: transparent;
	}
}

.progress {
	height: 6px;
	.border-radius(0);
	.box-shadow(none);
	background-color: @grayLighter;
	background-image: none;

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

	&-info {
		background-color: @purple;
	}

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

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

	&-danger {
		background-color: @red;
	}
}

.modal {
	.border-radius(0);

	&-header {
		border-bottom: none;
	}

	&-footer {
		border-top: none;
		background-color: transparent;
	}
}

.popover {
	.border-radius(0);
	color: @white;

	&-title {
		border-bottom: none;
		color: @white;
	}

}

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