diff options
Diffstat (limited to '_sass/_syntax.scss')
-rw-r--r-- | _sass/_syntax.scss | 57 |
1 files changed, 42 insertions, 15 deletions
diff --git a/_sass/_syntax.scss b/_sass/_syntax.scss index 2203e24..d63a41c 100644 --- a/_sass/_syntax.scss +++ b/_sass/_syntax.scss @@ -2,24 +2,51 @@ Syntax Highlighting ========================================================================== */ -pre.highlight { - padding: 1em; +div.highlighter-rouge, +figure.highlight { + position: relative; + margin-bottom: 1.5em; + color: #d0d0d0; + @include font-rem(12); + line-height: 1.5; + border: 1px solid darken($body-color, 5); + border-radius: 3px; + background-color: #272822; + + .highlight { + margin: 0; + padding: 1em; + } +} + +figure.highlight { + padding-left: 1em; + padding-right: 1em; +} + +.highlight table { + font-size: 1em; + border: 0; + + td { + padding: 5px; + border: 0; + + // line numbers + &.gutter { + padding-right: 1em; + color: #ccc; + } + } + + pre { + margin: 0; + } } -.highlight { - margin-bottom: 1.5em; - @include font-rem(12); - line-height: 1.5; - color: #d0d0d0; - border: 1px solid darken($body-color, 5); - background-color: #272822; - border-radius: 3px; +.highlight pre { width: 100%; } - pre { - position: relative; - margin: 0; - padding: 1em; - } +.highlight { .lineno { padding-right: 24px; color: #8f908a;} .hll { background-color: #49483e } |