X-Git-Url: https://git-public.kairo.at/?a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fbrowser.css;h=617944a485b3e7d76eae541e9f28ff41cced6940;hb=8d154261b30ff6943f76d43b4a9cffce302ae776;hp=8d384a7772c03b66ca3b78ce60d93c79f4ffecb4;hpb=2299146f21ac8201bf43ec817baf9ec62a2e2aa3;p=themes.git diff --git a/LCARStrek/browser/browser.css b/LCARStrek/browser/browser.css index 8d384a77..617944a4 100644 --- a/LCARStrek/browser/browser.css +++ b/LCARStrek/browser/browser.css @@ -17,6 +17,13 @@ toolbar[customizable="true"] { -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-browsercustom"); } +@supports ( -moz-appearance: -moz-mac-unified-toolbar ) { + /* this is a usable workaround to detect we're on Mac OS */ + toolbar[customizable="true"]:not([nowindowdrag="true"]) { + -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-drag-browsercustom"); + } +} + toolbar[type="menubar"][autohide="true"] { -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-menubar-autohide"); } @@ -67,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 { @@ -96,12 +106,9 @@ menubar { #navigator-toolbox > toolbar:not(:-moz-lwtheme) { } -@supports ( -moz-appearance:-moz-mac-unified-toolbar ){ - #navigator-toolbox { - background-color: rebeccapurple; - } -} -/* 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; } @@ -135,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 */