bootswatch.less 5.34 KB
Newer Older
Thomas Park's avatar
Thomas Park committed
1
2
// Bootswatch.less
// Swatch: Journal
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
// -----------------------------------------------------

9
@import url('https://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
	line-height: 1.5em;
14
15
16
17

	a {
		color: @headingsColor;
	}
18
19
}

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

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

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

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

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

30
31
32
33
34
35
36
37
38
39
40
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
41
42
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

112
	.dropdown-menu {
113
114

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

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

123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
	.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 {
143
144

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

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

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

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

		.nav li > a {
			color: @navbarInverseLinkColor;

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

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

div.subnav {
172
173

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

	&.subnav-fixed {
		top: @navbarHeight;
	}

186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
	.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;
		}
205
	}
Thomas Park's avatar
Thomas Park committed
206

207
208
209
210
211
212
213
214
215
216
217
218
	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
219
	}
Thomas Park's avatar
Thomas Park committed
220
221
}

Thomas Park's avatar
Thomas Park committed
222
223
224
// NAV
// -----------------------------------------------------

Thomas Park's avatar
Thomas Park committed
225
226
227
// BUTTONS
// -----------------------------------------------------

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

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

Thomas Park's avatar
Thomas Park committed
236
// TABLES
Thomas Park's avatar
Thomas Park committed
237
238
// -----------------------------------------------------

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

Thomas Park's avatar
Thomas Park committed
244
245
// FORMS
// -----------------------------------------------------
Thomas Park's avatar
Thomas Park committed
246

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

Thomas Park's avatar
Thomas Park committed
254
255
// DROPDOWNS
// -----------------------------------------------------
Thomas Park's avatar
Thomas Park committed
256
257
258
259

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

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

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

	h1 {
		line-height: 1.5em;
	}
Thomas Park's avatar
Thomas Park committed
273
274
}

Thomas Park's avatar
Thomas Park committed
275
276
277
278
// 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
279

Thomas Park's avatar
Thomas Park committed
280
281
282
.modal {
 	.border-radius(0px);
	background: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
283
284
}

Thomas Park's avatar
Thomas Park committed
285
286
.modal-header {
	border-bottom: none;
287
288
}

Thomas Park's avatar
Thomas Park committed
289
290
291
.modal-footer {
	border-top: none;
	background: transparent;
292
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
293
}
294

Thomas Park's avatar
Thomas Park committed
295
296
297
.close,
.close:hover {
	border-bottom: none;
298
299
}

Thomas Park's avatar
Thomas Park committed
300
301
302
// MEDIA QUERIES
// -----------------------------------------------------

303
304
305
@media (max-width: 768px) {

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

307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
		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;
	}
327
}