From da1b9df74aa9b1aa716dc729f4ea0555260bd5fe Mon Sep 17 00:00:00 2001 From: Jonas Jenwald Date: Thu, 3 Sep 2015 15:22:48 +0200 Subject: [PATCH] Adjust the `min-width` of outline items and use more consistent `border-radius` (PR 6242 follow-up) Prior to PR 6242, the width of all outline items was set such that their right (or left, in RTL locales) edges lined up vertically. In my opinion that looked more consistent, therefore this patch adjusts the CSS to make sure that this will be the case again. The patch also makes the `border-radius` values of outline items a bit more consistent. --- web/viewer.css | 3 +++ 1 file changed, 3 insertions(+) diff --git a/web/viewer.css b/web/viewer.css index 081117b91..9229eaa90 100644 --- a/web/viewer.css +++ b/web/viewer.css @@ -1206,6 +1206,8 @@ html[dir='rtl'] .outlineItem > .outlineItems { text-decoration: none; display: inline-block; min-width: 95%; + min-width: calc(100% - 4px); /* Subtract the right padding (left, in RTL mode) + of the container. */ height: auto; margin-bottom: 1px; border-radius: 2px; @@ -1280,6 +1282,7 @@ html[dir='rtl'] .outlineItemToggler::before { box-shadow: 0 1px 0 hsla(0,0%,100%,.05) inset, 0 0 1px hsla(0,0%,100%,.2) inset, 0 0 1px hsla(0,0%,0%,.2); + border-radius: 2px; color: hsla(0,0%,100%,.9); }