From 507a5a2bdfba9f699a01b10013ba3600c385a419 Mon Sep 17 00:00:00 2001 From: YUKI Hiroshi Date: Wed, 20 Nov 2013 20:36:33 +0900 Subject: [PATCH] Show navigation toolbar on OS X without custom background, for Australis --- chrome.manifest | 1 + skin/classic/treestyletab/Darwin-base.css | 28 +++++++++++++++++++++++ 2 files changed, 29 insertions(+) create mode 100644 skin/classic/treestyletab/Darwin-base.css diff --git a/chrome.manifest b/chrome.manifest index 25d1a925..18f9d60b 100644 --- a/chrome.manifest +++ b/chrome.manifest @@ -34,6 +34,7 @@ skin treestyletab-group classic/1.0 skin/classic/treestyletab-group-basic/ skin treestyletab-group classic/1.0 skin/classic/treestyletab-group-aero/ os=WINNT osversion>=6 override chrome://treestyletab/skin/platform-base.css chrome://treestyletab/skin/dummy.css os=Darwin +override chrome://treestyletab/skin/platform-base.css chrome://treestyletab/skin/Darwin-base.css os=Darwin appversion>=28.0a1 override chrome://treestyletab/skin/platform-base.css chrome://treestyletab/skin/Linux-base.css os=Linux override chrome://treestyletab/skin/platform-base.css chrome://treestyletab/skin/dummy.css os=WINNT override chrome://treestyletab/skin/platform-styled.css chrome://treestyletab/skin/Darwin-styled.css os=Darwin diff --git a/skin/classic/treestyletab/Darwin-base.css b/skin/classic/treestyletab/Darwin-base.css new file mode 100644 index 00000000..a00b1f33 --- /dev/null +++ b/skin/classic/treestyletab/Darwin-base.css @@ -0,0 +1,28 @@ +@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); + +/** + * Cancel "tabs on top" appearance on Australis. + * This is possibly moved to /skin/base.css for all platforms. + */ +:root:not([treestyletab-tabbar-position="top"]) + #nav-bar:not(:-moz-lwtheme), +:root:not([treestyletab-tabbar-position="top"]) + #nav-bar:not(:-moz-lwtheme):-moz-window-inactive { + background: transparent; + border-top: none; + border-left: none; + border-right: none; + box-shadow: none; +} + +/** + * With Australis, the "back" button in the navigation toolbar is + * unexpectedly overwrapped on the border of the expanded titlebar. + * This negative margin solves the overwrapping. + */ +:root:not([treestyletab-tabbar-position="top"]) + #nav-bar:not(:-moz-lwtheme), +:root:not([treestyletab-tabbar-position="top"]) + #nav-bar:not(:-moz-lwtheme):-moz-window-inactive { + margin-top: -4px; +}