From d3836c0173dbeeadc02586acb7edce18fe3b2d4a Mon Sep 17 00:00:00 2001 From: Snuffleupagus Date: Fri, 28 Dec 2012 13:26:30 +0100 Subject: [PATCH] Fixes the Outline view in RTL languages, follow up of #2510 --- web/viewer.css | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/web/viewer.css b/web/viewer.css index 91f4d51a0..c73581062 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -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));