Skip to content

Commit

Permalink
Merge pull request mozilla#5282 from CodingFabian/nicer-overlapping-t…
Browse files Browse the repository at this point in the history
…ext-selection

TextLayer selection coloring improvement for overlap.
  • Loading branch information
brendandahl committed Sep 23, 2014
2 parents 678fb0e + 931b444 commit a2e8a5e
Showing 1 changed file with 10 additions and 4 deletions.
14 changes: 10 additions & 4 deletions web/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -1327,7 +1327,7 @@ canvas {
margin: -1px;
padding: 1px;

background-color: rgba(180, 0, 170, 0.2);
background-color: rgb(180, 0, 170);
border-radius: 4px;
}

Expand All @@ -1344,14 +1344,20 @@ canvas {
}

.textLayer .highlight.selected {
background-color: rgba(0, 100, 0, 0.2);
background-color: rgb(0, 100, 0);
}

/* TODO: file FF bug to support ::-moz-selection:window-inactive
so we can override the opaque grey background when the window is inactive;
see https://bugzilla.mozilla.org/show_bug.cgi?id=706209 */
::selection { background:rgba(0,0,255,0.3); }
::-moz-selection { background:rgba(0,0,255,0.3); }
::selection { background: rgba(0,0,255,0.3); }
::-moz-selection { background: rgba(0,0,255,0.3); }

.textLayer ::selection { background: rgb(0,0,255); }
.textLayer ::-moz-selection { background: rgb(0,0,255); }
.textLayer {
opacity: 0.2;
}

.annotationHighlight {
position: absolute;
Expand Down

0 comments on commit a2e8a5e

Please sign in to comment.