bootswatch.less 5.38 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
// Journal 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=News+Cycle:400,700');
Thomas Park's avatar
Thomas Park committed
10

11
h1, h2, h3, h4, h5, h6 {
Thomas Park's avatar
Thomas Park committed
12

13
14
	margin: 0 0 10px;
	line-height: 1.2;
15
16
17
18

	a {
		color: @headingsColor;
	}
19
20
}

Thomas Park's avatar
Thomas Park committed
21
h1 { font-size: 48px; }
22

Thomas Park's avatar
Thomas Park committed
23
h2 { font-size: 36px; }
24

Thomas Park's avatar
Thomas Park committed
25
h3 { font-size: 28px; }
26

Thomas Park's avatar
Thomas Park committed
27
h4 { font-size: 20px; }
Thomas Park's avatar
Thomas Park committed
28

Thomas Park's avatar
Thomas Park committed
29
h5 { font-size: 13px; }
Thomas Park's avatar
Thomas Park committed
30

31
32
33
34
35
36
37
38
39
40
41
p > a,
address > a,
.breadcrumb a,
abbr[title] {
	text-decoration: none;
	border-bottom: 1px dotted;

	&:hover {
		text-decoration: none;
		border-bottom: 1px solid;
	}
Thomas Park's avatar
Thomas Park committed
42
43
}

Thomas Park's avatar
Thomas Park committed
44
45
46
47
48
49
50
51
52
code, pre {
	.border-radius(0);
	background-color: @grayLighter;
	.box-shadow(none);
}

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

53
54
.page-header {
	border-bottom: 2px solid @grayLighter;
Thomas Park's avatar
Thomas Park committed
55
56
}

Thomas Park's avatar
Thomas Park committed
57
58
59
60
hr {
	border-bottom: 1px solid @grayLighter;
}

Thomas Park's avatar
Thomas Park committed
61
62
63
// NAVBAR
// -----------------------------------------------------

64
.navbar {
Thomas Park's avatar
Thomas Park committed
65

66
67
68
	font-family: @sansFontFamily;
	font-weight: bold;

69
	.navbar-inner {
70
		border-bottom: 2px solid @grayLighter;
71
		.border-radius(0);
72
		.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
73
	}
Thomas Park's avatar
Thomas Park committed
74

75
	.brand {
76
		padding: 19px 20px 21px;
77
78
		font-size: 24px;
		font-weight: bold;
79
		text-shadow: none;
80
		text-transform: uppercase;
Thomas Park's avatar
Thomas Park committed
81
82
	}

83
	.nav > li > a {
84
		padding: 20px 10px 20px;
85
		font-size: 18px;
Thomas Park's avatar
Thomas Park committed
86
		text-shadow: none;
87
		text-transform: uppercase;
88
	}
Thomas Park's avatar
Thomas Park committed
89

90
	.nav > .active > a {
91
		background-color: transparent;
92
	}
Thomas Park's avatar
Thomas Park committed
93

94
	.navbar-text {
95
		margin-top: 20px;
96
97
98
		padding-left: 10px;
		padding-right: 10px;
		font-size: 18px;
99
		line-height: 20px;
100
101
	}

Thomas Park's avatar
Thomas Park committed
102
103
104
105
106
107
	.nav > .active > a,
	.nav > .active > a:hover,
	.nav > .active > a:focus {
		.box-shadow(none);
	}

108
109
110
111
112
	.divider-vertical {
		border-left-color: @grayLighter;
		border-right-color: @grayLighter;
	}

113
	.dropdown-menu {
114
115

		top: 85%;
116
117
118
119
120
121
		.border-radius(0);

		a {
			font-size: 15px;
			font-weight: bold;
		}
122
	}
Thomas Park's avatar
Thomas Park committed
123

124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
	.navbar-search .search-query,
	.navbar-search .search-query:hover {
		border: 2px solid @grayLighter;
		color: @textColor;
		.placeholder(@gray);
	}
}

@media (max-width: @navbarCollapseWidth) {

	.nav-collapse .navbar-form,
	.nav-collapse .navbar-search {
		margin-bottom: 0;
		border-top: 2px solid @grayLighter;
		border-bottom: 2px solid @grayLighter;
	} 



	.navbar .nav-collapse {
144
145

		.nav li > a {
146
			color: @navbarLinkColor;
147
148
149
150
151
152
153
154
155

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

		.navbar-text {
			margin-top: 0;
		}
Thomas Park's avatar
Thomas Park committed
156
157
	}

158
159
160
161
162
163
164
165
166
167
168
	.navbar-inverse .nav-collapse {

		.nav li > a {
			color: @navbarInverseLinkColor;

			&:hover {
				background-color: #111;
				background-image: none;
			}
		}

169
	}
Thomas Park's avatar
Thomas Park committed
170
171
172
}

div.subnav {
173

174
	margin: 0 1px;
175
	height: 54px;
176
	background: @bodyBackground none;
177
178
179
180
	.box-shadow(none);
	border: 2px solid @grayLighter;
	border-left: none;
	border-right: none;
181
	.border-radius(0);
Thomas Park's avatar
Thomas Park committed
182
183

	&.subnav-fixed {
184
185
		top: @navbarHeight + 1;
		margin: 0;
Thomas Park's avatar
Thomas Park committed
186
187
	}

188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
	.nav > li > a,
	.nav > li:first-child > a,
	.nav > li.active > a {
		padding: 20px 15px;
		border-left: none;
		border-right: none;
		background-color: transparent;
		.box-shadow(none);
		font-family: @sansFontFamily;
		color: @headingsColor;
		font-size: 15px;
		font-weight: bold;

		&:hover {
			padding: 20px 15px;
			background-color: transparent;
			.box-shadow(none);
			color: @headingsColor;
		}
207
	}
Thomas Park's avatar
Thomas Park committed
208

209
210
211
212
213
214
215
216
217
218
219
220
	li.dropdown > .dropdown-toggle .caret ,
	li.dropdown > .dropdown-toggle:hover .caret,
	li.dropdown.open > .dropdown-toggle .caret {
		border-top-color: @headingsColor;
		border-bottom-color: @headingsColor;
		opacity: 1;
	}

	li.dropdown.open .dropdown-toggle,
	li.dropdown.open .dropdown-toggle:hover {
		background-color: @bodyBackground;
		color: @headingsColor;
Thomas Park's avatar
Thomas Park committed
221
	}
Thomas Park's avatar
Thomas Park committed
222
223
}

Thomas Park's avatar
Thomas Park committed
224
225
226
// NAV
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
227
228
229
// BUTTONS
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
230
[class^="icon-"], [class*=" icon-"] {
231
	vertical-align: baseline;
Thomas Park's avatar
Thomas Park committed
232
233
}

Thomas Park's avatar
Thomas Park committed
234
235
236
237
.btn-inverse {
	.buttonBackground(@grayDarker, @black);
}

Thomas Park's avatar
Thomas Park committed
238
// TABLES
Thomas Park's avatar
Thomas Park committed
239
240
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
241
242
243
.table-bordered {
	.border-radius(0);
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
244
245
}

Thomas Park's avatar
Thomas Park committed
246
247
// FORMS
// -----------------------------------------------------
Thomas Park's avatar
Thomas Park committed
248

Thomas Park's avatar
Thomas Park committed
249
250
251
252
253
legend {
	border-bottom: 2px solid @grayLighter;
	font-family: @headingsFontFamily;
	font-weight: @headingsFontWeight;
	color: @headingsColor;
Thomas Park's avatar
Thomas Park committed
254
255
}

Thomas Park's avatar
Thomas Park committed
256
257
// DROPDOWNS
// -----------------------------------------------------
Thomas Park's avatar
Thomas Park committed
258
259
260
261

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

262
263
264
.well {
	.border-radius(0);
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
265
}
Thomas Park's avatar
Thomas Park committed
266

Thomas Park's avatar
Thomas Park committed
267
.hero-unit {
268
	padding: 30px 60px;
Thomas Park's avatar
Thomas Park committed
269
	border: 1px solid rgba(0,0,0,.05);
Thomas Park's avatar
Thomas Park committed
270
	.border-radius(0);
271
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
272
273

	h1 {
274
275
		margin: 0 0 10px;
		line-height: 1.2;
Thomas Park's avatar
Thomas Park committed
276
	}
Thomas Park's avatar
Thomas Park committed
277
278
}

Thomas Park's avatar
Thomas Park committed
279
280
281
282
// a.thumbnail:hover {
// 	.box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.3));
// 	border-color: #ddd;
// }
Thomas Park's avatar
Thomas Park committed
283

Thomas Park's avatar
Thomas Park committed
284
285
286
.modal {
 	.border-radius(0px);
	background: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
287
288
}

Thomas Park's avatar
Thomas Park committed
289
290
.modal-header {
	border-bottom: none;
291
292
}

Thomas Park's avatar
Thomas Park committed
293
294
295
.modal-footer {
	border-top: none;
	background: transparent;
296
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
297
}
298

Thomas Park's avatar
Thomas Park committed
299
300
301
.close,
.close:hover {
	border-bottom: none;
302
303
}

Thomas Park's avatar
Thomas Park committed
304
305
306
// MEDIA QUERIES
// -----------------------------------------------------

307
308
309
@media (max-width: 768px) {

	div.subnav {
Thomas Park's avatar
Thomas Park committed
310

311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
		height: auto;

		.nav > li.active > a {
			border-top: none;
		}

		.nav > li:hover > a,
		.nav > li:first-child:hover > a,
		.nav > li.active:hover > a,
		.nav > li.dropdown.open .dropdown-toggle, 
		.nav > li.dropdown.open .dropdown-toggle:hover {
			background-color: @dropdownLinkBackgroundHover;
		}
	}

	.nav-tabs .open .dropdown-toggle,
	.nav-pills .open .dropdown-toggle,
	.nav > li.dropdown.open.active > a:hover {
		border-color: #e5e5e5;
	}
331
}