diff options
author | Brandon Mathis <brandon@imathis.com> | 2011-09-27 00:57:45 -0500 |
---|---|---|
committer | Brandon Mathis <brandon@imathis.com> | 2011-09-27 00:58:07 -0500 |
commit | 04586299b178840ddb64268e925de6d8aadf16cb (patch) | |
tree | b0e0b52fbf7fe2fc999da5254b70e60e51d251d9 | |
parent | 02433114c53d2fb95ebbda6179cd058c2057f142 (diff) | |
download | my_new_personal_website-04586299b178840ddb64268e925de6d8aadf16cb.tar.xz my_new_personal_website-04586299b178840ddb64268e925de6d8aadf16cb.zip |
fixed github line numbering issue, fixed a few bugs in code block styling
-rw-r--r-- | .themes/classic/sass/partials/_syntax.scss | 31 | ||||
-rw-r--r-- | .themes/classic/source/javascripts/octopress.js | 2 |
2 files changed, 19 insertions, 14 deletions
diff --git a/.themes/classic/sass/partials/_syntax.scss b/.themes/classic/sass/partials/_syntax.scss index 713d46e5..2ae61643 100644 --- a/.themes/classic/sass/partials/_syntax.scss +++ b/.themes/classic/sass/partials/_syntax.scss @@ -1,4 +1,5 @@ .highlight, html .gist .gist-file .gist-syntax .gist-highlight { + table td.code { width: 100%; } .line-numbers { text-align: right; font-size: 13px; @@ -85,19 +86,21 @@ h3.filename { + pre { @include border-top-radius(0px); } } -p code, -li code { - @extend .mono; - display: inline-block; - white-space: no-wrap; - background: #fff; - font-size: .8em; - line-height: 1.5em; - color: #555; - border: 1px solid #ddd; - @include border-radius(.4em); - padding: 0 .3em; - margin: -1px 0; +p, li { + code { + @extend .mono; + display: inline-block; + white-space: no-wrap; + background: #fff; + font-size: .8em; + line-height: 1.5em; + color: #555; + border: 1px solid #ddd; + @include border-radius(.4em); + padding: 0 .3em; + margin: -1px 0; + } + pre code { font-size: 1em !important; background: none; border: none; } } .pre-code { @@ -216,6 +219,7 @@ figure.code { margin-bottom: 0; } } + .code-title { text-align: center; font-size: 13px; @@ -243,3 +247,4 @@ figure.code { text-shadow: #cbcccc 0 1px 0; padding-left: 3em; } + diff --git a/.themes/classic/source/javascripts/octopress.js b/.themes/classic/source/javascripts/octopress.js index c369625e..f6259f63 100644 --- a/.themes/classic/source/javascripts/octopress.js +++ b/.themes/classic/source/javascripts/octopress.js @@ -58,7 +58,7 @@ function addCodeLineNumbers() { lineNumbers = '<pre class="line-numbers">', tableMiddle = '</pre></td><td class="code">', tableEnd = '</td></tr></tbody></table>', - count = $('span.line', code).length; + count = $('.line', code).length; for (var i=1;i<=count; i++) { lineNumbers += '<span class="line-number">'+i+'</span>\n'; } |