From 5cbcc0378a18200cc595f442b7ac41063c0a7ee1 Mon Sep 17 00:00:00 2001 From: MrOtherGuy Date: Tue, 7 Jan 2020 12:17:01 +0200 Subject: [PATCH] Add support for sidebar on left/right & RTL combinations --- chrome/autohide_sidebar.css | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/chrome/autohide_sidebar.css b/chrome/autohide_sidebar.css index 9dd9a44..68b211b 100644 --- a/chrome/autohide_sidebar.css +++ b/chrome/autohide_sidebar.css @@ -11,6 +11,12 @@ z-index:1; } +#sidebar-box[positionend]{ direction: rtl } +#sidebar-box[positionend] > *{ direction: ltr } + +#sidebar-box[positionend]:-moz-locale-dir(rtl){ direction: ltr } +#sidebar-box[positionend]:-moz-locale-dir(rtl) > *{ direction: rtl } + #main-window[sizemode="fullscreen"] #sidebar-box{ --uc-sidebar-width: 1px; } #sidebar-splitter{ display: none } @@ -41,5 +47,11 @@ #sidebar, #sidebar-header{ background-color: var(--toolbar-bgcolor) !important; - border-right: 1px solid rgb(80,80,80); + border-inline: 1px solid rgb(80,80,80); + border-inline-width: 0px 1px; +} + +#sidebar-box:not([positionend]) > :-moz-locale-dir(rtl), +#sidebar-box[positionend] > *{ + border-inline-width: 1px 0px; } \ No newline at end of file