From b1b0bd47a0cebbff9fffc6d1363d0a6e8288fc87 Mon Sep 17 00:00:00 2001 From: Simon Kornblith Date: Thu, 9 Apr 2009 07:58:29 +0000 Subject: [PATCH] add a platform attribute to the Zotero pane and make border fix work with Firefox 3.1 --- chrome/content/zotero/overlay.js | 3 +++ chrome/skin/default/zotero/overlay.css | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/chrome/content/zotero/overlay.js b/chrome/content/zotero/overlay.js index 3869e2df6c..d1029baf29 100644 --- a/chrome/content/zotero/overlay.js +++ b/chrome/content/zotero/overlay.js @@ -137,6 +137,9 @@ var ZoteroPane = new function() if (Zotero.isMac) { document.getElementById('zotero-tb-actions-zeroconf-update').setAttribute('hidden', false); + document.getElementById('zotero-pane').setAttribute('platform', 'mac'); + } else if(Zotero.isWin) { + document.getElementById('zotero-pane').setAttribute('platform', 'win'); } //Initialize collections view diff --git a/chrome/skin/default/zotero/overlay.css b/chrome/skin/default/zotero/overlay.css index 14ae535f3c..06e1329bdb 100644 --- a/chrome/skin/default/zotero/overlay.css +++ b/chrome/skin/default/zotero/overlay.css @@ -25,12 +25,12 @@ } /* these are hacks do display a window separator in full screen mode on OS X */ -window[activetitlebarcolor] #zotero-pane[fullscreenmode="true"] +window #zotero-pane[fullscreenmode="true"][platform="mac"] { border-top: 1px solid #A3A3A3; } -window[active="true"][activetitlebarcolor] #zotero-pane[fullscreenmode="true"] +window[active="true"] #zotero-pane[fullscreenmode="true"][platform="mac"] { border-top: 1px solid black; }