From 8d154261b30ff6943f76d43b4a9cffce302ae776 Mon Sep 17 00:00:00 2001 From: Robert Kaiser Date: Thu, 21 Aug 2014 23:21:44 +0200 Subject: [PATCH] try more mac-specific toolbar adjustments --- LCARStrek/browser/browser.css | 22 +++++++++++++++++++--- 1 file changed, 19 insertions(+), 3 deletions(-) diff --git a/LCARStrek/browser/browser.css b/LCARStrek/browser/browser.css index 98f50ad4..617944a4 100644 --- a/LCARStrek/browser/browser.css +++ b/LCARStrek/browser/browser.css @@ -74,8 +74,11 @@ menubar { /* margin-top: 15px;*/ } -#toolbar-menubar:not([autohide="true"]) { - -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-drag-browsercustom"); +@supports ( not(-moz-appearance: -moz-mac-unified-toolbar) ) { + /* this is a usable workaround to detect we're on Mac OS */ + #toolbar-menubar:not([autohide="true"]) { + -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-drag-browsercustom"); + } } #main-window[tabsintitlebar] #toolbar-menubar .toolbar-endcap { @@ -103,7 +106,9 @@ menubar { #navigator-toolbox > toolbar:not(:-moz-lwtheme) { } -/* indent due to non-applicable aero rule */ +@supports ( not(-moz-appearance: -moz-mac-unified-toolbar) ) { + /* this is a usable workaround to detect we're not on Mac OS */ + /* indent also due to non-applicable aero rule */ #toolbar-menubar { background-color: transparent !important; } @@ -137,6 +142,17 @@ menubar { -moz-binding: url("chrome://global/content/bindings/general.xml#windowdragbox"); visibility: visible; } +} + +@supports ( -moz-appearance: -moz-mac-unified-toolbar ) { + /* this is a usable workaround to detect we're on Mac OS */ + #titlebar-buttonbox > .titlebar-button { + display: none; + } + #titlebar-buttonbox { + margin-top: 1px; + } +} #nav-bar { /* Position the toolbar above the bottom of background tabs */ -- 2.43.0