From d894d4434c59381cc3fb834ac8ddccf9120b4ac2 Mon Sep 17 00:00:00 2001 From: SkyArrow Date: Wed, 25 Jan 2012 01:25:14 +0800 Subject: syntax highlight --- sass/parts/_article.scss | 9 +++++++++ sass/parts/_syntax.scss | 9 +++++++++ 2 files changed, 18 insertions(+) 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; -- cgit v1.1-2-g2b99