summaryrefslogtreecommitdiffstats
path: root/sass
diff options
context:
space:
mode:
authorSkyArrow <tommy351@gmail.com>2012-01-24 18:25:14 +0100
committerSkyArrow <tommy351@gmail.com>2012-01-24 18:25:14 +0100
commitd894d4434c59381cc3fb834ac8ddccf9120b4ac2 (patch)
tree053ae6b361acacdac55db429a410bcc13b3dc2ea /sass
parentee892b908a7e1b3b8c1fccb1c4d8b8d54c94f174 (diff)
downloadoctopress-theme-jeyzu-d894d4434c59381cc3fb834ac8ddccf9120b4ac2.zip
octopress-theme-jeyzu-d894d4434c59381cc3fb834ac8ddccf9120b4ac2.tar.gz
syntax highlight
Diffstat (limited to 'sass')
-rw-r--r--sass/parts/_article.scss9
-rw-r--r--sass/parts/_syntax.scss9
2 files changed, 18 insertions, 0 deletions
diff --git a/sass/parts/_article.scss b/sass/parts/_article.scss
index 29355ba..953a337 100644
--- a/sass/parts/_article.scss
+++ b/sass/parts/_article.scss
@@ -83,6 +83,15 @@ article{
code{
font: $meta-size $monospace;
}
+ >pre{
+ background: $border;
+ padding: 5px 15px;
+ margin-top: 10px;
+ border: 1px solid #ccc;
+ line-height: 1.5;
+ overflow-x: auto;
+ @include border-radius(5px);
+ }
.caption{
background: image-url('caption.png') 0 4px no-repeat;
display: block;
diff --git a/sass/parts/_syntax.scss b/sass/parts/_syntax.scss
index 54f5242..15632dc 100644
--- a/sass/parts/_syntax.scss
+++ b/sass/parts/_syntax.scss
@@ -51,6 +51,15 @@ figure.code{
line-height: 1.5;
overflow-x: auto;
@include border-radius(5px);
+ figcaption{
+ font-size: $meta-size;
+ margin: -10px -15px 0;
+ padding: 10px 15px;
+ @include background(linear-gradient(top, #ccc, #ddd));
+ a{
+ float: right;
+ }
+ }
.line-numbers{
border-right: 1px solid #ccc;
color: #000;