From 4662ea88a6cb238ee02a6b0e761539d63d6a4665 Mon Sep 17 00:00:00 2001 From: Alexandre Perrin Date: Fri, 23 Jan 2015 12:05:10 +0100 Subject: [PATCH] Try to fix the Gist integration. Not perfect, but unbroken. --- sass/partials/_syntax.scss | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/sass/partials/_syntax.scss b/sass/partials/_syntax.scss index 34b1da0..9bae536 100644 --- a/sass/partials/_syntax.scss +++ b/sass/partials/_syntax.scss @@ -1,6 +1,7 @@ .gist-file table.highlight { width: 100%; } + .highlight { table td.code { width: 100%; } //border: 1px solid $pre-border !important; @@ -10,7 +11,7 @@ figcaption + .highlight { @include border-top-radius(0); } -.highlight .line-numbers, .gist-file .line-numbers { +.highlight .line-numbers { text-align: right; font-size: 13px; line-height: 1.45em; @@ -26,9 +27,13 @@ figcaption + .highlight { text-shadow: darken($base02, 10) 0 -1px; } span { color: $base01 !important; } - padding: 1em .8em .8em .8em !important; + padding: 1em .8em .8em .8em; @include border-radius(0); } +.gist-file .highlight .line-numbers { + font-size: inherit; + padding-top: .5em !important; +} figure.code, .gist, pre { @include box-shadow(rgba(#000, .06) 0 0 10px); @@ -266,7 +271,7 @@ figure.code:not(.panel), .gist { color: #333; background-color: #f5f5f5; @include border-radius(5px); - span, a[href*='#file'] { + a[href*='#file'] { font-size: 16px; line-height: 1.45em; font-weight: bold;