From e81f21d8485811981cab84e14053316829f862bc Mon Sep 17 00:00:00 2001 From: Kane York Date: Tue, 18 Aug 2015 15:02:41 -0700 Subject: [PATCH] FIX: Github oneboxes in dark theme --- .../stylesheets/common/base/code_highlighting.scss | 10 +++++----- app/assets/stylesheets/common/base/onebox.scss | 8 +++++--- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/app/assets/stylesheets/common/base/code_highlighting.scss b/app/assets/stylesheets/common/base/code_highlighting.scss index c5fe8d617c6..25c8a72f001 100644 --- a/app/assets/stylesheets/common/base/code_highlighting.scss +++ b/app/assets/stylesheets/common/base/code_highlighting.scss @@ -14,7 +14,7 @@ github.com style (c) Vasily Polovnyov .hljs-template_comment, .diff .hljs-header, .hljs-javadoc { - color: #998; + color: dark-light-choose(#998, #bba); font-style: italic; } @@ -33,14 +33,14 @@ github.com style (c) Vasily Polovnyov .hljs-number, .hljs-hexcolor, .ruby .hljs-constant { - color: #099; + color: dark-light-choose(#099, #aff); } .hljs-string, .hljs-tag .hljs-value, .hljs-phpdoc, .tex .hljs-formula { - color: dark-light-choose(#d14, #f66); + color: dark-light-choose(#d14, #f99); } .hljs-title, @@ -62,7 +62,7 @@ github.com style (c) Vasily Polovnyov .haskell .hljs-type, .vhdl .hljs-literal, .tex .hljs-command { - color: #458; + color: dark-light-choose(#458, #9AE); font-weight: bold; } @@ -89,7 +89,7 @@ github.com style (c) Vasily Polovnyov .lisp .hljs-keyword, .tex .hljs-special, .hljs-prompt { - color: #990073; + color: dark-light-choose(#990073, #fbe); } .hljs-built_in, diff --git a/app/assets/stylesheets/common/base/onebox.scss b/app/assets/stylesheets/common/base/onebox.scss index c2072b81187..a533a15f1b5 100644 --- a/app/assets/stylesheets/common/base/onebox.scss +++ b/app/assets/stylesheets/common/base/onebox.scss @@ -159,7 +159,7 @@ pre.onebox code ol.lines li:before { display:inline-block; width:35px; left: -40px; - background: #F7F7F7; + background: dark-light-choose(#F7F7F7, #070707); color:#AFAFAF; text-align:right; padding-right:5px; @@ -174,8 +174,10 @@ pre.onebox code ol{ margin-left:0px; line-height:1.5em; } +pre.onebox code { + background-color: dark-light-choose(#fff, #000); +} pre.onebox code li{ - background-color:#fff; padding-left:5px; } @@ -194,7 +196,7 @@ pre.onebox code ol.lines li { } pre.onebox code li.selected{ - background-color:#F8EEC7 + background-color: dark-light-choose(#F8EEC7, #541); } pre.onebox code {