page.less 7.85 KB
Newer Older
Michael Rose's avatar
Michael Rose committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
body {
	margin: 0;
	padding: 0;
	width: 100%;
	background-color: @white;
	border-top: 5px solid @black;
	@media @medium {
		.font-rem(20);
	}
}

// Top Navigation
// --------------------------------------------------
.navigation-wrapper {
	text-align: center;
Jaisen Mathai's avatar
Jaisen Mathai committed
16
  margin-top: -5px;
Michael Rose's avatar
Michael Rose committed
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
	.clearfix();
	ul {
		display: inline-block;
		vertical-align: top;
		margin: 0 0 50px;
		padding: 4px 20px;
		background-color: @black;
		.rounded(0 0 10px 10px);
		.clearfix();
	}
	li {
		display: block;
		float: left;
		list-style: none;
		text-align: center;
		.font-rem(14);
		text-transform: uppercase;
		color: @white;
35
36
37
		a:hover {
			.box-shadow(@shadow: inset 0 0 1px @white);
		}
38
39
40
41
42
	}
	a {
		display: block;
		padding: 6px 10px;
		color: @white;
Michael Rose's avatar
Michael Rose committed
43
44
		.rounded(4px);
		&:hover {
45
			background-color: lighten(@black, 10);
Michael Rose's avatar
Michael Rose committed
46
47
48
49
50
		}
	}
}
// Responsive nav toggle stuff
#site-nav {
51
	z-index: 9000;
52
	display: none;
53
54
55
56
57
58
	@media @medium {
		-webkit-animation-duration: 1s;
		-moz-animation-duration: 1s;
		-o-animation-duration: 1s;
		animation-duration: 1s;
	}
Michael Rose's avatar
Michael Rose committed
59
60
61
62
63
64
	&.closed {
		@media @medium {
			display: block;
		}
	}
	&.opened {
65
		display: block;
Michael Rose's avatar
Michael Rose committed
66
67
68
		max-height: 100%;
		li {
			float: none;
Michael Rose's avatar
Michael Rose committed
69
70
71
			@media @medium {
				float: left;
			}
Michael Rose's avatar
Michael Rose committed
72
73
		}
	}
74
75
76
}
.no-js #site-nav {
	display: block;
Michael Rose's avatar
Michael Rose committed
77
78
}	
#nav-toggle { 
79
	z-index: 9999;
Michael Rose's avatar
Michael Rose committed
80
81
82
83
84
	display: block;
	vertical-align: top;
	margin: 0;
	padding: 4px 20px;
	background-color: @black;
85
	.rounded(0);
Michael Rose's avatar
Michael Rose committed
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
	@media @medium {
		display: none;
	}
}

// Masthead
// --------------------------------------------------
.masthead {
	margin-top: 40px;
	.clearfix();
	@media @medium {
		margin-top: 0;
	}
	.wrap {
		text-align: center;
		max-width: 27.5em;
		padding-right: 20px;
		padding-left: 20px;
		@media @medium {
			max-width: 45.5em;
			padding-right: 60px;
			padding-left: 60px;
		}
		@media @large {
			max-width: 60em;
		}
	}
}
.site-logo {
	img {
Jaisen Mathai's avatar
Jaisen Mathai committed
116
117
118
    &.site {
      border-radius: 50%;
    }
Michael Rose's avatar
Michael Rose committed
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
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
		width: 100px;
		height: 100px;
		-webkit-animation-duration: 1s;
		-moz-animation-duration: 1s;
		-o-animation-duration: 1s;
		animation-duration: 1s;
	    -webkit-animation-delay: .05s;
	    -moz-animation-delay: .05s;
	    -o-animation-delay: .05s;
	    animation-delay: .05s;
		@media @medium {
			width: 150px;
			height: 150px;
		}
		@media @large {
			width: 200px;
			height: 200px;
		}
	}
}
.site-title {
	margin-bottom: 0;
	-webkit-animation-duration: 1s;
	-moz-animation-duration: 1s;
	-o-animation-duration: 1s;
	animation-duration: 1s;
    -webkit-animation-delay: .75s;
    -moz-animation-delay: .75s;
    -o-animation-delay: .75s;
    animation-delay: .75s;	
	a { color: @black; }
}
.site-description {
	margin-top: 0;
	font-family: @alt-font;
	.font-rem(16);
	font-weight: 400;
	font-style: italic;
	-webkit-animation-duration: 1s;
	-moz-animation-duration: 1s;
	-o-animation-duration: 1s;
	animation-duration: 1s;
    -webkit-animation-delay: 1s;
    -moz-animation-delay: 1s;
    -o-animation-delay: 1s;
    animation-delay: 1s;
	@media @medium {
		.font-rem(20);
	}
}

// Main
// --------------------------------------------------
#main {
	.clearfix();
}
Michael Rose's avatar
Michael Rose committed
175
.entry,
Michael Rose's avatar
Michael Rose committed
176
177
178
179
180
181
.hentry {
	.clearfix();
	border-bottom: 1px solid lighten(@black,80);
	border-bottom: 1px solid fade(@black,10);
}
.entry-feature-image {
182
	margin: 20px 0 0;
183
	width: 100%;
184
185
186
187
	@media @medium {
		margin-top: -75px;
	}
	@media @large {
Jaisen Mathai's avatar
Jaisen Mathai committed
188
189
		//margin-top: -145px;
		margin-top: -289px;
190
	}
Michael Rose's avatar
Michael Rose committed
191
}
192
193
194
195
196
197
198
199
200
201
202
.entry-header {
	max-width: 640px;
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	@media @large {
		max-width: 100%;
		margin-right: 0;
		margin-left: 0;
	}
}
Michael Rose's avatar
Michael Rose committed
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
.entry-tags {
	display: block;
	margin-top: 2em;
	text-transform: uppercase;
	.font-rem(16);
	font-weight: 600;
	a { color: @text-color; }
}
span + .entry-title {
	margin-top: 0;
}
.entry-title {
	font-family: @alt-font;
	font-style: italic;
	.font-rem(36);
Michael Rose's avatar
Michael Rose committed
218
	font-weight: 400;
Michael Rose's avatar
Michael Rose committed
219
220
	line-height: 1;
	letter-spacing: -3px;
221
222
223
224
	a {
		color: @black;
		text-decoration: underline;
	}
Michael Rose's avatar
Michael Rose committed
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
	@media @medium {
		max-width: 600px;
		.font-rem(52);
	}
	@media @large {
		max-width: 800px;
		.font-rem(68);
	}
}
.entry-wrapper {
	margin: 0 auto 3em;
	max-width: 440px;
	padding-right: 20px;
	padding-left: 20px;
	.clearfix();
	@media @medium {
		max-width: 760px;
		padding-right: 60px;
		padding-left: 60px;
	}
	@media @large {
		max-width: 960px;
	}
}
.entry-meta {
250
251
252
	max-width: 640px;
	width: 100%;
	margin-right: auto;
253
	margin-bottom: 30px;
254
	margin-left: auto;
Michael Rose's avatar
Michael Rose committed
255
256
257
258
259
260
	display: block;
	text-transform: uppercase;
	.font-rem(14);
	a { color: @text-color; }
	@media @large {
		float: left;
261
		width: 150px;
Michael Rose's avatar
Michael Rose committed
262
263
264
265
		margin: 0 40px 40px 0;
		padding: 0;
	}
	& > span {
266
		padding: 0 20px 10px 0;
Michael Rose's avatar
Michael Rose committed
267
268
269
270
271
272
273
274
275
		display: inline-block;
		@media @large {
			display: block;
			padding: 8px 0;
			border-bottom: 1px solid lighten(@black,80);
			border-bottom: 1px solid fade(@black,10);
		}
	}
}
276
277
278
279
280
281
282
283
284
285
286
.author-photo {
	display: none;
	@media @large {
		display: block;
		width: 150px;
		height: 150px;
		margin-bottom: 10px;
		.rounded(150px);
		.clearfix();
	}
}
Michael Rose's avatar
Michael Rose committed
287
288
289
290
291
292
293
294
295
296
297
.entry-content {
	max-width: 640px;
	width: 100%;
	margin-right: auto;
	margin-left: auto;
	p:first-child {
		margin-top: 0;
	}
	@media @large {
		float: left;
	}
Michael Rose's avatar
Michael Rose committed
298
	p > a,
Michael Rose's avatar
Michael Rose committed
299
300
301
302
303
304
	li > a {
		border-bottom: 1px dotted lighten(@link-color, 50);
		&:hover {
			border-bottom-style: solid;
		}
	}
Jaisen Mathai's avatar
Jaisen Mathai committed
305
306
307
308
  .starting-note {
    color: #999;
    font-style:italic;
  }
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
  .related {
    span {
      display:block;
      position: relative;
      font-size: 30px;
      z-index: 1;
      overflow: hidden;
      text-align: center;
    }
    span:before, span:after {
      position: absolute;
      top: 51%;
      overflow: hidden;
      width: 50%;
      height: 1px;
      content: '\a0';
      background-color: #dadada;
    }
    span:before {
      margin-left: -50%;
      text-align: right;
    }
  }
Michael Rose's avatar
Michael Rose committed
332
}
Michael Rose's avatar
Michael Rose committed
333
334
335
336
337
.post-list {
	li > a {
		border-bottom-width: 0;
	}
}
338
339
340
341
// Disqus Comments
#disqus_thread {
	margin-top: 2em;
}
342
343
344
345
// Pagination
.pagination {
	text-align: center;
}
Michael Rose's avatar
Michael Rose committed
346
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
// Page layout
#home,
#page {
	.entry-title {
		text-align: center;
		max-width: 100%;
	}
	.entry-content {
		@media @large {
			float: none;
		}
	}
}
// Post index layout
.post-list {
	margin: 0;
	padding: 0;
	list-style-type: none;
	li {
		padding: 8px 0;
		border-bottom: 1px solid lighten(@black,80);
		border-bottom: 1px solid fade(@black,10);
		.clearfix();
	}
	a > span {
		float: right;
	}
	.entry-date {
		.font-rem(14);
		text-transform: uppercase;
376
377
378
379
		display: none;
		@media @medium {
			display: inline;
		}
Michael Rose's avatar
Michael Rose committed
380
381
	}
}
Michael Rose's avatar
Michael Rose committed
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
// Tag index
.tag-box {
	list-style: none;
	margin: 0;
	padding: 4px 0;
	overflow: hidden;
	.clearfix();
	&.inline li {
		float: left;
		.font-rem(14);
		line-height: 2.5;
	}
	a { 
		padding: 4px 6px;
		margin: 2px;
		background-color: lighten(@black, 90);
		.rounded(4px);
		text-decoration: none;
		span { 
			vertical-align: super;
			.font-rem(10);
		}
	}
}
406
407
408
409
410
// Search
// --------------------------------------------------
.search-wrapper {
	display: none;
	position: absolute;
411
	top: 50px;
412
413
414
415
	width: 90%;
	padding-right: 5%;
	padding-left: 5%;
	.clearfix();
416
417
418
	@media @medium {
		top: 100px;
	}
419
}
Michael Rose's avatar
Michael Rose committed
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
// Footer
// --------------------------------------------------
.footer-wrapper {
	.clearfix();
	margin: 2em auto;
	text-align: center;
	font-family: @alt-font;
	.font-rem(14);
	font-style: italic;
	color: lighten(@text-color,20);
	a {
		color: lighten(@text-color,20);
	}
}

// Social Icons
// --------------------------------------------------
.social-icons {
	margin: 1em 0 2em;
	a {
		padding: 4px 8px;
		&:hover { color:@black; }
	}
}

// Chrome Frame
// --------------------------------------------------
.upgrade {
	padding: 10px;
	text-align: center;
Michael Rose's avatar
Michael Rose committed
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
}

// Google Search
// --------------------------------------------------
#goog-fixurl {
	ul {
		list-style: none;
		margin-left: 0;
		padding-left: 0;
		li {
			list-style-type: none;
		}
	}
}
#goog-wm-qt {
	width: auto;
	margin-right: 10px;
}
#goog-wm-sb {
	display: inline-block;
	padding: 8px 20px;
	background-color: @black;
	color: @white;
	border: 2px solid @black !important;
	.rounded(20px);
	&:visited {
		color: @white;
	}
	&:hover {
		background-color: @white;
		color: @black;
	}
482
}