bootswatch.less 5.2 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.0
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
12
h1, h2, h3, h4, h5, h6 {
	line-height: 1.5em;
13
14
15
16

	a {
		color: @headingsColor;
	}
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
}

h1 {
	font-size: 48px;
}

h2 {
	font-size: 36px;
}

h3 {
	font-size: 28px;
}

h4 {
	font-size: 20px;
}

h5 {
	font-size: 13px;
}

h6 {
	color: @black;
	font-weight: bold;
Thomas Park's avatar
Thomas Park committed
42
43
}

Thomas Park's avatar
Thomas Park committed
44
45
46
// SCAFFOLDING
// -----------------------------------------------------

47
48
49
50
51
52
53
54
55
56
57
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
58
59
}

60
61
.page-header {
	border-bottom: 2px solid @grayLighter;
Thomas Park's avatar
Thomas Park committed
62
63
}

Thomas Park's avatar
Thomas Park committed
64
65
66
// NAVBAR
// -----------------------------------------------------

67
.navbar {
Thomas Park's avatar
Thomas Park committed
68

69
70
71
	font-family: @sansFontFamily;
	font-weight: bold;

72
	.navbar-inner {
73
74
		border-top: 2px solid @grayLighter;
		border-bottom: 2px solid @grayLighter;
75
		.border-radius(0);
76
		.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
77
	}
Thomas Park's avatar
Thomas Park committed
78

79
	.brand {
80
81
82
		padding: 16px 20px 20px;
		font-size: 24px;
		font-weight: bold;
83
		text-shadow: none;
84
		text-transform: uppercase;
Thomas Park's avatar
Thomas Park committed
85
86
	}

87
	.nav > li > a {
88
89
		padding: 20px 10px 21px;
		font-size: 18px;
Thomas Park's avatar
Thomas Park committed
90
		text-shadow: none;
91
		text-transform: uppercase;
92
	}
Thomas Park's avatar
Thomas Park committed
93

94
95
96
	.nav > li.active > a {
		background-color: transparent;
		color: @headingsColor;
97
	}
Thomas Park's avatar
Thomas Park committed
98

99
100
101
102
103
104
	.navbar-text {
		margin-top: 21px;
		padding-left: 10px;
		padding-right: 10px;
		font-size: 18px;
		line-height: 18px;
105
106
	}

Thomas Park's avatar
Thomas Park committed
107
108
109
110
111
112
	.nav > .active > a,
	.nav > .active > a:hover,
	.nav > .active > a:focus {
		.box-shadow(none);
	}

113
114
115
	.nav li.dropdown > .dropdown-toggle:hover,
	.nav li.dropdown.active > .dropdown-toggle:hover {
		color: @black;
116
	}
Thomas Park's avatar
Thomas Park committed
117

118
119
120
121
	.nav li.dropdown > .dropdown-toggle .caret,
	.nav li.dropdown.open > .dropdown-toggle:hover .caret {
		border-top-color: @headingsColor;
		border-bottom-color: @headingsColor;
122
	}
Thomas Park's avatar
Thomas Park committed
123

124
	.dropdown-menu {
125
126

		top: 85%;
127
128
129
130
131
132
		.border-radius(0);

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

135
136
137
138
139
140
141
142
143
144
145
146
147
	.nav-collapse.collapse {

		.nav li > a {
			color: @headingsColor;

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

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

150
151
	.navbar-search .search-query,
	.navbar-search .search-query:hover {
152
		border: 2px solid @grayLighter;
153
154
155
		color: @textColor;
		.placeholder(@gray);
	}
Thomas Park's avatar
Thomas Park committed
156
157
158
}

div.subnav {
159
160

	height: 54px;
Thomas Park's avatar
Thomas Park committed
161
	background-color: @bodyBackground;
Thomas Park's avatar
Thomas Park committed
162
	background-image: none;
163
164
165
166
	.box-shadow(none);
	border: 2px solid @grayLighter;
	border-left: none;
	border-right: none;
167
	.border-radius(0);
Thomas Park's avatar
Thomas Park committed
168
169
170
171
172

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

173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
	.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;
		}
192
	}
Thomas Park's avatar
Thomas Park committed
193

194
195
196
197
198
199
200
201
202
203
204
205
	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
206
	}
Thomas Park's avatar
Thomas Park committed
207
208
209
210
211
}

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

Thomas Park's avatar
Thomas Park committed
212
[class^="icon-"], [class*=" icon-"] {
213
	vertical-align: baseline;
Thomas Park's avatar
Thomas Park committed
214
215
}

Thomas Park's avatar
Thomas Park committed
216
217
218
219
.btn-inverse {
	.buttonBackground(@grayDarker, @black);
}

Thomas Park's avatar
Thomas Park committed
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
// MODALS
// -----------------------------------------------------

.modal {
 	.border-radius(0px);
	background: @bodyBackground;
}

.modal-header {
	border-bottom: none;
}

.modal-footer {
	background: transparent;
	.box-shadow(none);
	border-top: none;
}

238
239
240
241
.close,
.close:hover {
	border-bottom: none;
}
Thomas Park's avatar
Thomas Park committed
242
243
244
245

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

246
247
248
249
250
251
252
253
254
255
256
257
258
259
.hero-unit {
	.box-shadow(none);
	border: 1px solid rgba(0,0,0,.05);
	.border-radius(0);

	h1 {
		line-height: 1.5em;
	}
}

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

Thomas Park's avatar
Thomas Park committed
260
}
Thomas Park's avatar
Thomas Park committed
261

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

Thomas Park's avatar
Thomas Park committed
267
268
269
270
271
272
273
274

legend {
	border-bottom: 2px solid @grayLighter;
	font-family: @headingsFontFamily;
	font-weight: @headingsFontWeight;
	color: @headingsColor;
}

275
276
277
278
279
280
a.thumbnail:hover {
	.box-shadow(0 1px 3px 1px rgba(0, 0, 0, 0.3));
	border-color: #ddd;
}

code, pre, pre.prettyprint {
Thomas Park's avatar
Thomas Park committed
281
	.border-radius(0);
282
283
	background-color: @grayLighter;
	.box-shadow(none);
Thomas Park's avatar
Thomas Park committed
284
}
285

286
287
288
289
hr {
	border-bottom: 1px solid @grayLighter;
}

290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
@media (max-width: 768px) {

	div.subnav {
		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;
	}
313
314
315
316
317
318
319
320
321
322
323
324
}

@media (max-width: 979px) {

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

}