summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSkyArrow <tommy351@gmail.com>2012-01-24 18:22:08 +0100
committerSkyArrow <tommy351@gmail.com>2012-01-24 18:22:08 +0100
commit265323688de85cd50b655b61da913e6c340f27f3 (patch)
tree9b2a776395e7293a1161eb62ee1108817dc8094f
parent5d6ddc9a053d439b8de02859c311443317a4cc60 (diff)
downloadoctopress-theme-jeyzu-265323688de85cd50b655b61da913e6c340f27f3.zip
octopress-theme-jeyzu-265323688de85cd50b655b61da913e6c340f27f3.tar.gz
syntax highlight
-rw-r--r--sass/parts/_article.scss7
-rw-r--r--sass/parts/_syntax.scss3
2 files changed, 4 insertions, 6 deletions
diff --git a/sass/parts/_article.scss b/sass/parts/_article.scss
index bea6c13..b0f49ab 100644
--- a/sass/parts/_article.scss
+++ b/sass/parts/_article.scss
@@ -76,15 +76,12 @@ article{
background: $border;
border: 1px solid #ccc;
padding: 1px 3px;
- @include border-radius(5px);
margin: 0 3px;
+ @include border-radius(5px);
}
}
code{
- font-family: $monospace;
- }
- pre{
- line-height: 1.5;
+ font: $meta-size $monospace;
}
.caption{
background: image-url('caption.png') 0 4px no-repeat;
diff --git a/sass/parts/_syntax.scss b/sass/parts/_syntax.scss
index 0ae39ad..54f5242 100644
--- a/sass/parts/_syntax.scss
+++ b/sass/parts/_syntax.scss
@@ -48,15 +48,16 @@ figure.code{
padding: 5px 15px;
margin-top: 10px;
border: 1px solid #ccc;
+ line-height: 1.5;
overflow-x: auto;
@include border-radius(5px);
.line-numbers{
border-right: 1px solid #ccc;
color: #000;
- font-family: $monospace;
padding-right: 15px;
}
td.code{
+ width: 100%;
padding-left: 15px;
overflow-x: auto;
}