Skip to content

Commit

Permalink
Expand draggable area of splitters on macOS while preserving 1px width
Browse files Browse the repository at this point in the history
(Borrowing a technique from Thunderbird.)

This only affects the splitters in standard view. The splitter between the top
and bottom panes in stacked view still has a 1px draggable area.

We can probably do a similar thing to slim down splitters on Windows, as
planned in zotero#367.
  • Loading branch information
dstillman committed Jan 12, 2017
1 parent 66549f9 commit 740795f
Showing 1 changed file with 18 additions and 12 deletions.
30 changes: 18 additions & 12 deletions chrome/content/zotero-platform/mac/overlay.css
Expand Up @@ -213,7 +213,7 @@
background: -moz-linear-gradient(top, #ededed, #cccccc);
border-style: solid;
border-width: 0 0 1px 0;
border-color: #5e5e5e;
border-color: #bdbdbd;
padding: 2px 0 2px 0;
}

Expand Down Expand Up @@ -297,28 +297,34 @@
list-style-image: url("chrome://zotero/skin/mac/twisty-selected-open.svg");
}

#zotero-collections-splitter, #zotero-items-splitter
#zotero-collections-splitter:not([state=collapsed]),
#zotero-items-splitter:not([state=collapsed])[orient=horizontal]
{
-moz-appearance: none;
-moz-border-start: none !important;
-moz-border-end: none !important;
background-color: #8b8b8b !important;
}

#zotero-collections-splitter, #zotero-items-splitter[orient=horizontal]
{
max-width: 1px !important;
min-width: 1px !important;
width: 1px !important;
border-inline-start: 1px solid #bdbdbd;
margin-inline-end: -4px;
width: 5px !important;
min-width: 5px;
position: relative;
background-image: none;
}

#zotero-items-splitter[orient=vertical]
{
-moz-border-start: none !important;
-moz-border-end: none !important;
background-color: #bdbdbd !important;
max-height: 1px !important;
min-height: 1px !important;
height: 1px !important;
}

#zotero-collections-splitter:not([state=collapsed]) > grippy,
#zotero-items-splitter:not([state=collapsed]) > grippy
{
display: none;
}

#zotero-collections-splitter[state=collapsed], #zotero-items-splitter[state=collapsed] {
border: 0 solid #d6d6d6 !important;
padding: 0;
Expand Down

0 comments on commit 740795f

Please sign in to comment.