diff options
author | SkyArrow <tommy351@gmail.com> | 2012-01-24 18:25:14 +0100 |
---|---|---|
committer | SkyArrow <tommy351@gmail.com> | 2012-01-24 18:25:14 +0100 |
commit | d894d4434c59381cc3fb834ac8ddccf9120b4ac2 (patch) | |
tree | 053ae6b361acacdac55db429a410bcc13b3dc2ea /sass | |
parent | ee892b908a7e1b3b8c1fccb1c4d8b8d54c94f174 (diff) | |
download | octopress-theme-jeyzu-d894d4434c59381cc3fb834ac8ddccf9120b4ac2.zip octopress-theme-jeyzu-d894d4434c59381cc3fb834ac8ddccf9120b4ac2.tar.gz |
syntax highlight
Diffstat (limited to 'sass')
-rw-r--r-- | sass/parts/_article.scss | 9 | ||||
-rw-r--r-- | sass/parts/_syntax.scss | 9 |
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; |