From d410303d93340429c83502bbe5a936ad3b1f3b0d Mon Sep 17 00:00:00 2001 From: Mottie Date: Fri, 5 Dec 2014 20:05:40 -0600 Subject: [PATCH] Themes: Add full support for remaining themes --- README.markdown | 10 +- _custom-theme-template.css | 14 +-- index.html | 30 +++--- themes/ambiance.min.css | 2 +- themes/chaos.min.css | 2 +- themes/clouds-midnight.min.css | 2 +- themes/cobalt.min.css | 2 +- themes/kr-theme.min.css | 2 +- themes/merbivore-soft.min.css | 2 +- themes/merbivore.min.css | 2 +- themes/mono-industrial.min.css | 2 +- themes/solarized-dark.min.css | 2 +- themes/src/ambiance.css | 156 +++++++++++-------------------- themes/src/chaos.css | 152 ++++++++++-------------------- themes/src/clouds-midnight.css | 154 ++++++++++-------------------- themes/src/cobalt.css | 159 +++++++++++-------------------- themes/src/kr-theme.css | 158 +++++++++++-------------------- themes/src/merbivore-soft.css | 161 ++++++++++++-------------------- themes/src/merbivore.css | 162 ++++++++++++-------------------- themes/src/mono-industrial.css | 161 ++++++++++++-------------------- themes/src/solarized-dark.css | 16 ++-- themes/src/terminal.css | 164 ++++++++++++-------------------- themes/src/twilight.css | 2 +- themes/src/vibrant-ink.css | 166 +++++++++++++-------------------- themes/terminal.min.css | 2 +- themes/vibrant-ink.min.css | 2 +- 26 files changed, 619 insertions(+), 1068 deletions(-) diff --git a/README.markdown b/README.markdown index 9e249680c..123c6df7a 100644 --- a/README.markdown +++ b/README.markdown @@ -12,12 +12,10 @@ | | | | | | | --- | --- | --- | --- | --- | -| Ambiance* | Chaos* | Clouds Midnight* | Cobalt* | Idle Fingers | -| Kr Theme* | Merbivore* | Merbivore Soft* | Mono Industrial* | Monokai | -| Pastel on Dark | Solarized Dark | Terminal* | Tomorrow Night | Tomorrow Night Blue | -| Tomorrow Night Bright | Tomorrow Night Eigthies | Twilight | Vibrant Ink* | | - -\* These themes currently only provide partial support (Editor only) +| Ambiance | Chaos | Clouds Midnight | Cobalt | Idle Fingers | +| Kr Theme | Merbivore | Merbivore Soft | Mono Industrial | Monokai | +| Pastel on Dark | Solarized Dark | Terminal | Tomorrow Night | Tomorrow Night Blue | +| Tomorrow Night Bright | Tomorrow Night Eigthies | Twilight | Vibrant Ink | | ## Notes diff --git a/_custom-theme-template.css b/_custom-theme-template.css index 88b42022e..12975868c 100644 --- a/_custom-theme-template.css +++ b/_custom-theme-template.css @@ -10,8 +10,6 @@ .pl-e { color: #795da3 !important; } /* entity */ .pl-en { color: #795da3 !important; } /* entity.name */ .pl-ent { color: #63a35c !important; } /* entity.name.tag */ -.pl-id { color: #b52a1d !important; } /* invalid.deprecated */ -.pl-ii { background-color: #b52a1d !important; color: #f8f8f8 !important; } /* invalid.illegal */ .pl-k { color: #a71d5d !important; } /* keyword */ .pl-mb { color: #333333 !important; font-weight: bold !important; } /* markup.bold */ .pl-mdh { color: #0086b3 !important; } /* meta.diff.header */ @@ -48,11 +46,13 @@ .pl-vo { color: #333333 !important; } /* variable.other */ .pl-vpf { color: #333333 !important; } /* variable.parameter.function */ -/* diff colors */ -.pl-mi1 { background-color: #eaffea !important; color: #55a532 !important; } /* markup.inserted */ -.pl-mdht { background-color: #eaffea !important; color: #55a532 !important; } /* meta.diff.header.to-file */ -.pl-md { background-color: #ffecec !important; color: #bd2c00 !important; } /* markup.deleted */ -.pl-mdhf { background-color: #ffecec !important; color: #bd2c00 !important; } /* meta.diff.header.from-file */ +/* Diff - Example: https://gist.github.com/silverwind/904159f1e71e2e626375 */ +.pl-mi1 { background: #eaffea !important; color: #f8f8f8 !important; } /* markup.inserted */ +.pl-mdht { background: #eaffea !important; color: #f8f8f8 !important; } /* meta.diff.header.to-file */ +.pl-md { background: #bd2c00 !important; color: #f8f8f8 !important; } /* markup.deleted */ +.pl-mdhf { background: #bd2c00 !important; color: #f8f8f8 !important; } /* meta.diff.header.from-file */ +.pl-id { background: #bd2c00 !important; color: #f8f8f8 !important; } /* invalid.deprecated */ +.pl-ii { background: #bd2c00 !important; color: #f8f8f8 !important; } /* invalid.illegal */ /* Ace editor styling */ .ace_comment { color: #969896 !important; } diff --git a/index.html b/index.html index 99d95bf29..5dd3c29e1 100644 --- a/index.html +++ b/index.html @@ -5,25 +5,25 @@ GitHub Dark Syntax Highlighting Themes - - - - + + + + - - - - + + + + - + - + @@ -44,7 +44,6 @@ h3 + .highlight { border: #555 1px solid; text-align: left; height: 350px; overflow-y: auto; font-size: 10px; position: relative; z-index: -1; } h3 + .highlight table { width: 100%; } h3 + .highlight table.file-code, h3 + .highlight table.file-code td { line-height: 0; border-collapse: collapse; } - h3 small { color: #DD8F00; } pre { padding: 0 5px; font-family: Consolas, "Liberation Mono", Menlo, Courier, monospace; } .popup { display: none; } .popup:checked ~ .highlight { @@ -66,7 +65,8 @@ } /* Gist styles from github-dark.css; slightly tweaked to match GitHub */ .highlight .file-diff-line:hover td, .highlight:not(.lines) tr:not(.inline-comments):hover td:not(.line-age), - pre div:hover, .diff-table tr:hover pre { + pre div:hover, .diff-table tr:hover > pre, .blob-num[colspan], + .highlight:not(.lines) tr:not(.inline-comments):hover td:not(.line-age) { background: linear-gradient(to bottom, #282828, #181818) !important; border-color: #333 !important; } @@ -145,6 +145,11 @@ } /* diff extras copied from GitHub */ + .diff-table { + width: 100%; + border-collapse: collapse; + border-spacing: 0; + } a.diff-expander { text-decoration: none; text-align: center; @@ -290,7 +295,6 @@

Select a syntax highlighting theme: -
Patially supported themes fallback to the Twilight Syntax code highlighter