Commit 1e38588e authored by Zack Cuddy's avatar Zack Cuddy Committed by Brandon Labuschagne

Code Highlight - Address a11y contrast issues

parent 58e133b3
...@@ -45,12 +45,12 @@ ...@@ -45,12 +45,12 @@
} }
} }
@mixin line-number-hover($color) { @mixin line-number-hover {
background-color: $color; background-color: $purple-100;
border-color: darken($color, 5%); border-color: $purple-200;
a { a {
color: darken($color, 15%); color: $gray-600;
} }
} }
......
...@@ -22,7 +22,6 @@ $dark-highlight-bg: #ffe792; ...@@ -22,7 +22,6 @@ $dark-highlight-bg: #ffe792;
$dark-highlight-color: $black; $dark-highlight-color: $black;
$dark-pre-hll-bg: #373b41; $dark-pre-hll-bg: #373b41;
$dark-hll-bg: #373b41; $dark-hll-bg: #373b41;
$dark-over-bg: #9f9ab5;
$dark-expanded-bg: #3e3e3e; $dark-expanded-bg: #3e3e3e;
$dark-coverage: #b3e841; $dark-coverage: #b3e841;
$dark-no-coverage: #ff4f33; $dark-no-coverage: #ff4f33;
...@@ -171,14 +170,14 @@ $dark-il: #de935f; ...@@ -171,14 +170,14 @@ $dark-il: #de935f;
.diff-grid-left:hover, .diff-grid-left:hover,
.diff-grid-right:hover { .diff-grid-right:hover {
.diff-line-num:not(.empty-cell) { .diff-line-num:not(.empty-cell) {
@include line-number-hover($dark-over-bg); @include line-number-hover;
} }
} }
.diff-line-num { .diff-line-num {
&.is-over, &.is-over,
&.hll:not(.empty-cell).is-over { &.hll:not(.empty-cell).is-over {
@include line-number-hover($dark-over-bg); @include line-number-hover;
} }
} }
......
...@@ -15,7 +15,6 @@ $monokai-line-empty-bg: #49483e; ...@@ -15,7 +15,6 @@ $monokai-line-empty-bg: #49483e;
$monokai-line-empty-border: darken($monokai-line-empty-bg, 15%); $monokai-line-empty-border: darken($monokai-line-empty-bg, 15%);
$monokai-diff-border: #808080; $monokai-diff-border: #808080;
$monokai-highlight-bg: #ffe792; $monokai-highlight-bg: #ffe792;
$monokai-over-bg: #9f9ab5;
$monokai-expanded-bg: #3e3e3e; $monokai-expanded-bg: #3e3e3e;
$monokai-coverage: #a6e22e; $monokai-coverage: #a6e22e;
$monokai-no-coverage: #fd971f; $monokai-no-coverage: #fd971f;
...@@ -172,14 +171,14 @@ $monokai-gh: #75715e; ...@@ -172,14 +171,14 @@ $monokai-gh: #75715e;
.diff-grid-left:hover, .diff-grid-left:hover,
.diff-grid-right:hover { .diff-grid-right:hover {
.diff-line-num:not(.empty-cell) { .diff-line-num:not(.empty-cell) {
@include line-number-hover($monokai-over-bg); @include line-number-hover;
} }
} }
.diff-line-num { .diff-line-num {
&.is-over, &.is-over,
&.hll:not(.empty-cell).is-over { &.hll:not(.empty-cell).is-over {
@include line-number-hover($monokai-over-bg); @include line-number-hover;
} }
} }
......
...@@ -43,7 +43,6 @@ ...@@ -43,7 +43,6 @@
} }
// Diff line // Diff line
$none-over-bg: #ded7fc;
$none-expanded-border: #e0e0e0; $none-expanded-border: #e0e0e0;
$none-expanded-bg: #e0e0e0; $none-expanded-bg: #e0e0e0;
...@@ -69,7 +68,7 @@ ...@@ -69,7 +68,7 @@
.diff-grid-left:hover, .diff-grid-left:hover,
.diff-grid-right:hover { .diff-grid-right:hover {
.diff-line-num:not(.empty-cell) { .diff-line-num:not(.empty-cell) {
@include line-number-hover($none-over-bg); @include line-number-hover;
} }
} }
...@@ -88,7 +87,7 @@ ...@@ -88,7 +87,7 @@
&.is-over, &.is-over,
&.hll:not(.empty-cell).is-over { &.hll:not(.empty-cell).is-over {
@include line-number-hover($none-over-bg); @include line-number-hover;
} }
&.hll:not(.empty-cell) { &.hll:not(.empty-cell) {
......
...@@ -19,7 +19,6 @@ $solarized-dark-line-color-new: #5a766c; ...@@ -19,7 +19,6 @@ $solarized-dark-line-color-new: #5a766c;
$solarized-dark-line-color-old: #7a6c71; $solarized-dark-line-color-old: #7a6c71;
$solarized-dark-highlight: #094554; $solarized-dark-highlight: #094554;
$solarized-dark-hll-bg: #174652; $solarized-dark-hll-bg: #174652;
$solarized-dark-over-bg: #9f9ab5;
$solarized-dark-expanded-bg: #010d10; $solarized-dark-expanded-bg: #010d10;
$solarized-dark-coverage: #859900; $solarized-dark-coverage: #859900;
$solarized-dark-no-coverage: #cb4b16; $solarized-dark-no-coverage: #cb4b16;
...@@ -151,7 +150,7 @@ $solarized-dark-il: #2aa198; ...@@ -151,7 +150,7 @@ $solarized-dark-il: #2aa198;
.diff-grid-left:hover, .diff-grid-left:hover,
.diff-grid-right:hover { .diff-grid-right:hover {
.diff-line-num:not(.empty-cell) { .diff-line-num:not(.empty-cell) {
@include line-number-hover($solarized-dark-over-bg); @include line-number-hover;
} }
} }
...@@ -182,7 +181,7 @@ $solarized-dark-il: #2aa198; ...@@ -182,7 +181,7 @@ $solarized-dark-il: #2aa198;
.diff-line-num { .diff-line-num {
&.is-over, &.is-over,
&.hll:not(.empty-cell).is-over { &.hll:not(.empty-cell).is-over {
@include line-number-hover($solarized-dark-over-bg); @include line-number-hover;
} }
} }
......
...@@ -20,7 +20,6 @@ $solarized-light-line-color-new: #a1a080; ...@@ -20,7 +20,6 @@ $solarized-light-line-color-new: #a1a080;
$solarized-light-line-color-old: #ad9186; $solarized-light-line-color-old: #ad9186;
$solarized-light-highlight: #eee8d5; $solarized-light-highlight: #eee8d5;
$solarized-light-hll-bg: #ddd8c5; $solarized-light-hll-bg: #ddd8c5;
$solarized-light-over-bg: #ded7fc;
$solarized-light-expanded-border: #d2cdbd; $solarized-light-expanded-border: #d2cdbd;
$solarized-light-expanded-bg: #ece6d4; $solarized-light-expanded-bg: #ece6d4;
$solarized-light-coverage: #859900; $solarized-light-coverage: #859900;
...@@ -171,7 +170,7 @@ $solarized-light-il: #2aa198; ...@@ -171,7 +170,7 @@ $solarized-light-il: #2aa198;
.diff-grid-left:hover, .diff-grid-left:hover,
.diff-grid-right:hover { .diff-grid-right:hover {
.diff-line-num:not(.empty-cell) { .diff-line-num:not(.empty-cell) {
@include line-number-hover($solarized-light-over-bg); @include line-number-hover;
} }
} }
...@@ -190,7 +189,7 @@ $solarized-light-il: #2aa198; ...@@ -190,7 +189,7 @@ $solarized-light-il: #2aa198;
.diff-line-num { .diff-line-num {
&.is-over, &.is-over,
&.hll:not(.empty-cell).is-over { &.hll:not(.empty-cell).is-over {
@include line-number-hover($solarized-light-over-bg); @include line-number-hover;
} }
} }
......
...@@ -9,7 +9,6 @@ $white-code-color: $gl-text-color; ...@@ -9,7 +9,6 @@ $white-code-color: $gl-text-color;
$white-highlight: #fafe3d; $white-highlight: #fafe3d;
$white-pre-hll-bg: #f8eec7; $white-pre-hll-bg: #f8eec7;
$white-hll-bg: #f8f8f8; $white-hll-bg: #f8f8f8;
$white-over-bg: #ded7fc;
$white-expanded-border: #e0e0e0; $white-expanded-border: #e0e0e0;
$white-expanded-bg: #f7f7f7; $white-expanded-bg: #f7f7f7;
$white-c: #998; $white-c: #998;
...@@ -131,7 +130,7 @@ pre.code, ...@@ -131,7 +130,7 @@ pre.code,
.diff-grid-left:hover, .diff-grid-left:hover,
.diff-grid-right:hover { .diff-grid-right:hover {
.diff-line-num:not(.empty-cell):not(.conflict_marker_their):not(.conflict_marker_our) { .diff-line-num:not(.empty-cell):not(.conflict_marker_their):not(.conflict_marker_our) {
@include line-number-hover($white-over-bg); @include line-number-hover;
} }
} }
...@@ -156,7 +155,7 @@ pre.code, ...@@ -156,7 +155,7 @@ pre.code,
&.is-over, &.is-over,
&.hll:not(.empty-cell).is-over { &.hll:not(.empty-cell).is-over {
@include line-number-hover($white-over-bg); @include line-number-hover;
} }
&.hll:not(.empty-cell) { &.hll:not(.empty-cell) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment