Skip to content

Commit

Permalink
Remove unnecessary toolbarButton icon-flipping in RTL mode (PR 11077 …
Browse files Browse the repository at this point in the history
…follow-up)

With the updated default viewer UI, a couple of the toolbarButton icons are now *vertically* symmetrical; hence we can remove some now unneeded `transform: scaleX(-1);` rules from the viewer CSS.
  • Loading branch information
Snuffleupagus committed Jan 2, 2021
1 parent c3e02b3 commit 5cb31a7
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions web/viewer.css
Original file line number Diff line number Diff line change
Expand Up @@ -1000,33 +1000,21 @@ html[dir="rtl"] .toolbarButton#secondaryToolbarToggle::before {
-webkit-mask-image: var(--findbarButton-previous-icon);
mask-image: var(--findbarButton-previous-icon);
}
html[dir="rtl"] .toolbarButton.findPrevious::before {
transform: scaleX(-1);
}

.toolbarButton.findNext::before {
-webkit-mask-image: var(--findbarButton-next-icon);
mask-image: var(--findbarButton-next-icon);
}
html[dir="rtl"] .toolbarButton.findNext::before {
transform: scaleX(-1);
}

.toolbarButton.pageUp::before {
-webkit-mask-image: var(--toolbarButton-pageUp-icon);
mask-image: var(--toolbarButton-pageUp-icon);
}
html[dir="rtl"] .toolbarButton.pageUp::before {
transform: scaleX(-1);
}

.toolbarButton.pageDown::before {
-webkit-mask-image: var(--toolbarButton-pageDown-icon);
mask-image: var(--toolbarButton-pageDown-icon);
}
html[dir="rtl"] .toolbarButton.pageDown::before {
transform: scaleX(-1);
}

.toolbarButton.zoomOut::before {
-webkit-mask-image: var(--toolbarButton-zoomOut-icon);
Expand Down

0 comments on commit 5cb31a7

Please sign in to comment.