Skip to content

Commit

Permalink
Make image compare higher contrast
Browse files Browse the repository at this point in the history
The color used (forest green) is arbitrary and just works; I'm not sure what would be the best universal color.
  • Loading branch information
TrialDragon committed Feb 16, 2024
1 parent 374ea40 commit ec59445
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions sass/components/_image_compare.scss
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,13 @@ div.image-compare {
width: calc(100% - var(--text-padding));
text-shadow: 0 0 2px $color-black;
}

$before-after-color: forestgreen;

&::before {
@include image-title;

color: $before-after-color;
content: attr(data-title-a);
padding-left: var(--text-padding);
clip-path: var(--clip-L-geo);
Expand All @@ -39,6 +43,7 @@ div.image-compare {
&::after {
@include image-title;

color: $before-after-color;
content: attr(data-title-b);
padding-right: var(--text-padding);
clip-path: var(--clip-R-geo);
Expand Down

0 comments on commit ec59445

Please sign in to comment.