Permalink
Browse files

Fixes the Outline view in RTL languages, follow up of #2510

  • Loading branch information...
1 parent 956d5b0 commit d3836c0173dbeeadc02586acb7edce18fe3b2d4a Snuffleupagus committed Dec 28, 2012
Showing with 13 additions and 2 deletions.
  1. +13 −2 web/viewer.css
View
@@ -967,16 +967,19 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
-moz-user-select:none;
}
-.outlineItem > .outlineItems {
+html[dir='ltr'] .outlineItem > .outlineItems {
margin-left: 20px;
}
+html[dir='rtl'] .outlineItem > .outlineItems {
+ margin-right: 20px;
+}
+
.outlineItem > a {
text-decoration: none;
display: inline-block;
min-width: 95%;
height: auto;
- padding: 2px 0 5px 10px;
margin-bottom: 1px;
border-radius: 2px;
color: hsla(0,0%,100%,.8);
@@ -987,6 +990,14 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
white-space: normal;
}
+html[dir='ltr'] .outlineItem > a {
+ padding: 2px 0 5px 10px;
+}
+
+html[dir='rtl'] .outlineItem > a {
+ padding: 2px 10px 5px 0;
+}
+
.outlineItem > a:hover {
background-color: hsla(0,0%,100%,.02);
background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));

0 comments on commit d3836c0

Please sign in to comment.