diff options
author | SkyArrow <tommy351@gmail.com> | 2012-03-17 02:54:07 +0100 |
---|---|---|
committer | SkyArrow <tommy351@gmail.com> | 2012-03-17 03:00:26 +0100 |
commit | f8481b9c59c18b35a0b920c2bd44edde9e1ac8c7 (patch) | |
tree | 6c4530cca7571eb09c1b17129de617524754b1fd /sass/parts | |
parent | 5f2e7804ffd9a3858e7899115cc543bf21dca35f (diff) | |
download | octopress-theme-jeyzu-f8481b9c59c18b35a0b920c2bd44edde9e1ac8c7.zip octopress-theme-jeyzu-f8481b9c59c18b35a0b920c2bd44edde9e1ac8c7.tar.gz |
modify syntax style
Diffstat (limited to 'sass/parts')
-rw-r--r-- | sass/parts/_article.scss | 21 | ||||
-rw-r--r-- | sass/parts/_syntax.scss | 65 |
2 files changed, 49 insertions, 37 deletions
diff --git a/sass/parts/_article.scss b/sass/parts/_article.scss index 79553f4..a17ddcd 100644 --- a/sass/parts/_article.scss +++ b/sass/parts/_article.scss @@ -71,27 +71,6 @@ article{ margin-top: 10px; border: none; } - ol, ul, p, blockquote{ - code{ - background: $gray04; - border: 1px solid $gray03; - padding: 1px 3px; - margin: 0 3px; - @include border-radius(5px); - } - } - code{ - font: $meta-size $monospace; - } - >pre{ - background: $gray04; - padding: 5px 15px; - margin-top: 10px; - border: 1px solid $gray03; - line-height: 1.5; - overflow-x: auto; - @include border-radius(5px); - } table{ background: $gray04; border: 1px solid $gray03; diff --git a/sass/parts/_syntax.scss b/sass/parts/_syntax.scss index 9cb2ea1..0cf307e 100644 --- a/sass/parts/_syntax.scss +++ b/sass/parts/_syntax.scss @@ -38,17 +38,42 @@ $solarized: light !default; $base3: $_base03; } -/* non highlighted code colors */ -$pre-bg: $base03 !default; -$pre-border: darken($base02, 5) !default; -$pre-color: $base1 !default; +$pre-bg: $gray04; +$pre-border: $gray03; + +article{ + code, pre{ + background: $pre-bg; + border: 1px solid $pre-border; + font-family: $monospace; + } + code{ + font-size: $meta-size; + padding: 1px 3px; + margin: 0 3px; + @include border-radius(5px); + } + pre{ + font-size: 1 / 0.9em; + line-height: 1.5; + margin-top: 10px; + padding: 5px 15px; + @include border-radius(5px); + code{ + background: none; + border: none; + padding: 0; + margin: 0; + @include border-radius(0); + } + } +} figure.code{ - background: $gray04; - padding: 5px 15px; + background: $pre-bg; + border: 1px solid $pre-border; margin-top: 10px; - border: 1px solid $gray03; - line-height: 1.5; + padding: 5px 15px; @include border-radius(5px); figcaption{ font-size: $meta-size; @@ -57,7 +82,7 @@ figure.code{ margin: -5px -15px 0; padding: 5px 15px; display: block; - @include background(linear-gradient(top, $gray03, $gray04)); + @include background(linear-gradient(top, $pre-border, $pre-bg)); &:empty{ display: none; } @@ -68,15 +93,23 @@ figure.code{ right: 0; } } + code, pre{ + background: none; + border: none; + padding: 0; + margin: 0; + @include border-radius(0); + } .highlight{ overflow-x: auto; } .line-numbers{ - border-right: 1px solid $gray03; - color: #000; + border-right: 1px solid $pre-border; + font-family: $monospace; padding-right: 15px; + text-align: right; } - table { + table{ border: none; text-align: left; margin-top: 0; @@ -91,11 +124,11 @@ figure.code{ } } .entry .gist{ - background: $gray04; + background: $pre-bg; color: $gray01; padding: 30px 15px 5px; margin-top: 10px; - border: 1px solid $gray03; + border: 1px solid $pre-border; position: relative; overflow: hidden; @include border-radius(5px); @@ -114,7 +147,7 @@ figure.code{ line-height: 1.5; margin: 0 -16px -6px; padding: 5px 15px; - @include background(linear-gradient(top, $gray04, $gray03)); + @include background(linear-gradient(top, $pre-bg, $pre-border)); a{ color: $main; &:first-of-type{ @@ -129,7 +162,7 @@ figure.code{ left: 0; padding: 5px 15px; width: 100%; - @include background(linear-gradient(top, $gray03, $gray04)); + @include background(linear-gradient(top, $pre-border, $pre-bg)); } } } |