From: Robert Kaiser Date: Thu, 21 Aug 2014 21:21:44 +0000 (+0200) Subject: try more mac-specific toolbar adjustments X-Git-Tag: LCARStrek-2.29~19 X-Git-Url: https://git-public.kairo.at/?a=commitdiff_plain;h=8d154261b30ff6943f76d43b4a9cffce302ae776;p=themes.git try more mac-specific toolbar adjustments --- 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 */