Skip to content

Commit 179f3e3

Browse files
committed
Merge pull request mozilla#2511 from Snuffleupagus/fix-RTL-outline
Fixes the Outline view in RTL languages, follow up of mozilla#2510
2 parents bf1a4ad + d3836c0 commit 179f3e3

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

web/viewer.css

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -967,16 +967,19 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
967967
-moz-user-select:none;
968968
}
969969

970-
.outlineItem > .outlineItems {
970+
html[dir='ltr'] .outlineItem > .outlineItems {
971971
margin-left: 20px;
972972
}
973973

974+
html[dir='rtl'] .outlineItem > .outlineItems {
975+
margin-right: 20px;
976+
}
977+
974978
.outlineItem > a {
975979
text-decoration: none;
976980
display: inline-block;
977981
min-width: 95%;
978982
height: auto;
979-
padding: 2px 0 5px 10px;
980983
margin-bottom: 1px;
981984
border-radius: 2px;
982985
color: hsla(0,0%,100%,.8);
@@ -987,6 +990,14 @@ a:focus > .thumbnail > .thumbnailSelectionRing,
987990
white-space: normal;
988991
}
989992

993+
html[dir='ltr'] .outlineItem > a {
994+
padding: 2px 0 5px 10px;
995+
}
996+
997+
html[dir='rtl'] .outlineItem > a {
998+
padding: 2px 10px 5px 0;
999+
}
1000+
9901001
.outlineItem > a:hover {
9911002
background-color: hsla(0,0%,100%,.02);
9921003
background-image: -moz-linear-gradient(hsla(0,0%,100%,.05), hsla(0,0%,100%,0));

0 commit comments

Comments
 (0)