add code highlighting stuff back in

This commit is contained in:
Coby Chapple 2013-04-04 18:09:18 +01:00
parent a765b75b5e
commit 91e66310c3
1 changed files with 29 additions and 0 deletions

View File

@ -518,6 +518,35 @@ p {
width: 100%;
}
/* Code Highlighting */
pre, code {
white-space: pre;
display: inline-block;
margin: 0;
padding: 0;
font-family: Menlo, Consolas, "Courier New", Courier, "Liberation Mono", monospace;
font-size: 16px;
padding: 0 .5em;
line-height: 1.8em;
}
.highlight, p > pre, p > code {
background: #333;
color: #fff;
border-radius: 5px;
box-shadow: inset 0 1px 10px rgba(0,0,0,.3),
0 1px 0 rgba(255,255,255,.1),
0 -1px 0 rgba(0,0,0,.5);
}
.highlight {
padding: 10px 0;
width: 100%;
overflow: scroll;
}
/* Article HTML */
article h2,