bootswatch.less 6.04 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
// Bootswatch.less
Thomas Park's avatar
Thomas Park committed
2
// Swatch: Readable
Thomas Park's avatar
Thomas Park committed
3
// Version: 2.0.2
Thomas Park's avatar
Thomas Park committed
4
5
6
7
8
// -----------------------------------------------------

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

Thomas Park's avatar
Thomas Park committed
9
h1, h2, h3, h4, h5, h6 {
Thomas Park's avatar
Thomas Park committed
10
11
12
13
	line-height: 2em;
	color: @textColor;
}

Thomas Park's avatar
Thomas Park committed
14
15
16
17
h1 {
	font-size: 2em;
}

Thomas Park's avatar
Thomas Park committed
18
19
20
21
22
23
24
25
26
h2 {
	font-size: 1.5em;
}

h3, h4, h5, h6 {
	font-size: 1em;
	text-transform: none;
}

Thomas Park's avatar
Thomas Park committed
27
28
small {
	font-size: 13px;
Thomas Park's avatar
Thomas Park committed
29
30
31
32
33
34
35
36
37
38
39
40
41
}

.muted, .help-block, .uneditable-input, blockquote, small {
	color: @grayLight;
}

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

body {
	padding-top: 20px !important;
}

Thomas Park's avatar
Thomas Park committed
42
43
44
45
46
47
48
49
50
51
.page-header {
	padding-bottom: 1em;
	border-bottom: 2px solid @grayLighter;
}

footer.footer {
	padding-top: 2em;
	padding-bottom: 3em;
	border-top: 2px solid @grayLighter;
}
Thomas Park's avatar
Thomas Park committed
52
53
54
55
56
57

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

.navbar {

Thomas Park's avatar
Thomas Park committed
58
59
	margin-left: 16px;

Thomas Park's avatar
Thomas Park committed
60
61
62
63
64
	.navbar-inner {
		.box-shadow(none);
	}

	.brand {
Thomas Park's avatar
Thomas Park committed
65
		color: @linkColor;
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
98
99
100
		font-size: @baseFontSize;
		font-weight: bold;
		line-height: 1em;
		padding: 10px 10px 11px;
		
		&:hover {
			color: @linkColorHover;
		}
	}
	
	.nav > li > a {
		text-shadow: none;
		padding: 10px;
	}

	.nav > li.active > a,
	.nav > li:active > a,
	.dropdown.open .dropdown-toggle {
		color: @linkColor;
	}
	
	.search-query {
		border: 1px solid #D4D4D4;
		.border-radius(0);
		color: @textColor;
		background-color: @white;
	}

	.nav .dropdown-toggle .caret,
	.nav .open.dropdown .caret {
		border-top-color: @linkColor;
		opacity: 1;
	}
}

101
102
103
104
105
106
107
@media (max-width: 980px) {
	form.navbar-form, form.navbar-search {
		border-top: 1px solid #D4D4D4;
		border-bottom: 1px solid #D4D4D4;
	}
}

Thomas Park's avatar
Thomas Park committed
108
109
.navbar-fixed-top {
	position: static;
Thomas Park's avatar
Thomas Park committed
110
	margin-bottom: 1.6em;
Thomas Park's avatar
Thomas Park committed
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
}

div.subnav {
	.box-shadow(none);
	.border-radius(0);
	background-color: @white;
	background-image: none;

	.nav {
		padding: 0;	
	}
	
	.nav > li.active > a,
	.nav > li:active > a {
		color: @linkColor;
		.box-shadow(none);
		background-color: transparent;
	}
	
	.nav > li > a:hover,
	.nav > li.active > a:hover,
	.nav > li:active > a:hover {
		color: @linkColorHover;
		.box-shadow(none);
		background-color: transparent;
	}
}

div.subnav-fixed {
	position: static;
	left: auto;
	width: 100%;
	margin: 0;
	.box-shadow(none);
	.border-radius(4px);
	border: 1px solid #E5E5E5;
	
	.nav {
		width: auto;
		padding: 0;
	}
}

.dropdown-menu {
	border: 1px solid #D4D4D4;
	.border-radius(0);
	.box-shadow(1px 1px 1px rgba(0, 0, 0, 0.2));
	
Thomas Park's avatar
Thomas Park committed
159
160
	.divider {
		margin: 5px 1px;
Thomas Park's avatar
Thomas Park committed
161
162
163
	}
}

Thomas Park's avatar
Thomas Park committed
164
.navbar .nav-collapse.in {
Thomas Park's avatar
Thomas Park committed
165
	
Thomas Park's avatar
Thomas Park committed
166
	.nav li:first-child > a {
Thomas Park's avatar
Thomas Park committed
167
168
169
		margin-bottom: 10px;
	}
	
Thomas Park's avatar
Thomas Park committed
170
	.nav li > a {
Thomas Park's avatar
Thomas Park committed
171
172
173
174
175
176
177
178
179
		color: @linkColor;
		.border-radius(0);
		font-weight: normal;
		
		&:hover {
			color: @linkColorHover;
		}
	}
	
Thomas Park's avatar
Thomas Park committed
180
	.nav li > a:hover {
Thomas Park's avatar
Thomas Park committed
181
182
183
184
		background: transparent;
	}
}

Thomas Park's avatar
Thomas Park committed
185
186
187
188
189
190
191
192
193
194
195
196
197
198
// NAV
// -----------------------------------------------------

.nav .dropdown .caret {
	opacity: 1;
}

.nav-tabs {

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

	li > a:hover {
Thomas Park's avatar
Thomas Park committed
199
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
200
201
202
203
204
	}

	li.active > a,
	li.active > a:hover {
		color: @textColor;
Thomas Park's avatar
Thomas Park committed
205
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
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
	}
}

.nav-tabs.nav-stacked {

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

	li.active > a,
	li.active > a:hover,
	li > a:hover {
		background-color: #F5F5F5;
	}

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

.nav-pills {

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

	li > a:hover {
Thomas Park's avatar
Thomas Park committed
234
		background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
235
236
237
238
239
	}

	li.active > a,
	li.active > a:hover {
		color: @textColor;
Thomas Park's avatar
Thomas Park committed
240
		background-color: @bodyBackground;
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
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
	}
}

.nav-list {

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

	li.active > a,
	li.active > a:hover {
		color: @textColor;
	}
	
	[class^="icon-"] {
		margin-top: 3px;
		opacity: 0.8;
	}
}

.breadcrumb {
	.border-radius(0);
	background-color: @white;
	background-image: none;
}

.pagination {

	ul {
		.box-shadow(none);
	}

	li > a {
		padding: 10px 14px;
	}
	

	li.active > a,
	li.active > a:hover {
		color: @textColor;
		background-color: #F5F5F5;
	}
	
	li > a,
	li.disabled > a,
	li.disabled > a:hover {
		background-color: @white;
	}
	
	li:first-child > a,
	li:last-child > a {
		.border-radius(0);
	}
}

.pager {
	
	a {
		.border-radius(0);
	}
}

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

.btn-primary {
Thomas Park's avatar
Thomas Park committed
310
  .buttonBackground(lighten(@btnPrimaryBackground, 10%), @btnPrimaryBackground);
Thomas Park's avatar
Thomas Park committed
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
}

.btn [class^="icon-"],
.btn [class*=" icon-"] {
	margin-top: 4px;
}

.btn-large [class^="icon-"],
.btn-large [class*=" icon-"] {
	margin-top: 6px;
	margin-right: 2px;
}

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

.btn .caret {
	margin-top: 13px;
}

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

Thomas Park's avatar
Thomas Park committed
336
337
338
339
340
341
342
343
344
345
346
347
348
input, button, select, textarea {
	font-family: @baseFontFamily;
}

input, textarea, select {
	color: @textColor;
}

.form-actions {
	background-color: transparent;
	border-top: 1px solid #D4D4D4;
	padding-top: 2em;
}
Thomas Park's avatar
Thomas Park committed
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
407
408
409
410
411
412
413
414
415
416
417
418
419
420

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

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

// MISCELLANEOUS
// -----------------------------------------------------

.alert, 
.label, .label:hover {
	.border-radius(0);
	border: 1px solid #D4D4D4;
	color: @textColor;
	text-shadow: none;
}

.alert-heading {
	color: @textColor;
	text-shadow: none;
}

.label, .label:hover {
	background-color: @white;
	font-weight: normal;
	font-size: @baseFontSize;
	padding: 4px;
}

.label-important, .label-important:hover { background-color: @errorBackground; }

.label-warning, .label-warning:hover { background-color: @warningBackground; }

.label-success, .label-success:hover { background-color: @successBackground; }

.label-info, .label-info:hover { background-color: @infoBackground; }

.well {
	.box-shadow(none);
	border: 1px solid #D4D4D4;
	.border-radius(0);
	background-color: @white;
}

blockquote {
	border-left: 6px solid @grayLighter;
	
	&.pull-right {
		border-right: 6px solid @grayLighter;
	}
	
	p {
		font-size: 1em;
		line-height: 1.2em;
	}
}

.thumbnail {
	background-color: @white;
}

.thumbnail, .thumbnail > img {
	.border-radius(0);
	.box-shadow(none);
}

code, pre {
	.border-radius(0);
	background-color: @white;
}