summaryrefslogtreecommitdiff
path: root/app/assets/stylesheets/highlight/solarized_dark.scss
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/stylesheets/highlight/solarized_dark.scss')
-rw-r--r--app/assets/stylesheets/highlight/solarized_dark.scss49
1 files changed, 23 insertions, 26 deletions
diff --git a/app/assets/stylesheets/highlight/solarized_dark.scss b/app/assets/stylesheets/highlight/solarized_dark.scss
index fdfac6cd249..0aab580bd3c 100644
--- a/app/assets/stylesheets/highlight/solarized_dark.scss
+++ b/app/assets/stylesheets/highlight/solarized_dark.scss
@@ -1,20 +1,35 @@
/* https://gist.github.com/qguv/7936275 */
.code.solarized-dark {
+ // Line numbers
+ .line-numbers, .diff-line-num {
+ background-color: #002b36;
+ }
- background-color: #002b36 !important;
- color: #93a1a1 !important;
-
- pre.highlight,
- .line-numbers,
- .line-numbers a {
- background-color: #002b36 !important;
- color: #93a1a1 !important;
+ .diff-line-num, .diff-line-num a {
+ color: #93a1a1;
}
+ // Code itself
pre.code {
border-left: 1px solid #113b46;
}
+ &, pre.code, .line_holder .line_content {
+ background-color: #002b36;
+ color: #93a1a1;
+ }
+
+ // Diff line
+ .line_holder {
+ .diff-line-num.new, .line_content.new {
+ @include diff_background(255, 255, 255, #808080);
+ }
+
+ .diff-line-num.old, .line_content.old {
+ @include diff_background(255, 51, 51, #808080);
+ }
+ }
+
// highlight line via anchor
pre .hll {
background-color: #174652 !important;
@@ -111,22 +126,4 @@
.vg { color: #268bd2 } /* Name.Variable.Global */
.vi { color: #268bd2 } /* Name.Variable.Instance */
.il { color: #2aa198 } /* Literal.Number.Integer.Long */
-
- .line_holder {
- &.parallel .new.new_line,
- &.parallel .new.line_content,
- &.new .old_line,
- &.new .new_line,
- &.new .line_content {
- @include diff_background(255, 255, 255, #808080);
- }
-
- &.parallel .old.old_line,
- &.parallel .old.line_content,
- &.old .old_line,
- &.old .new_line,
- &.old .line_content {
- @include diff_background(255, 51, 51, #808080);
- }
- }
}