[Pkg-javascript-commits] [pdf.js] 77/109: Adjust the `min-width` of outline items and use more consistent `border-radius` (PR 6242 follow-up)

David Prévot taffit at moszumanska.debian.org
Fri Sep 25 03:04:20 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to branch master
in repository pdf.js.

commit da1b9df74aa9b1aa716dc729f4ea0555260bd5fe
Author: Jonas Jenwald <jonas.jenwald at gmail.com>
Date:   Thu Sep 3 15:22:48 2015 +0200

    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 081117b..9229eaa 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);
 }
 

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-javascript/pdf.js.git



More information about the Pkg-javascript-commits mailing list