X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fbrowser.css;h=482251308704659e05a3ef431a899292607f87d8;hp=8d384a7772c03b66ca3b78ce60d93c79f4ffecb4;hb=861be9975f09030ab7ac8ba61fbbb25ec4bb20ed;hpb=2299146f21ac8201bf43ec817baf9ec62a2e2aa3 diff --git a/LCARStrek/browser/browser.css b/LCARStrek/browser/browser.css index 8d384a77..48225130 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 X. */ + 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,18 @@ 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 not on Mac OS X. */ + #toolbar-menubar:not([autohide="true"]) { + -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-drag-browsercustom"); + } +} + +@supports ( -moz-appearance: -moz-mac-unified-toolbar ) { + /* This is a usable workaround to detect we're on Mac OS X. */ + #main-window[tabsintitlebar]:not([inFullscreen="true"]) #TabsToolbar { + padding-left: 60px; + } } #main-window[tabsintitlebar] #toolbar-menubar .toolbar-endcap { @@ -96,12 +113,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 X. */ + /* indent also due to non-applicable aero rule */ #toolbar-menubar { background-color: transparent !important; } @@ -135,6 +149,14 @@ 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 X. */ + #titlebar-buttonbox > .titlebar-button { + display: none; + } +} #nav-bar { /* Position the toolbar above the bottom of background tabs */ @@ -174,6 +196,15 @@ menubar { margin-top: 4px; } +@supports ( -moz-appearance: -moz-mac-unified-toolbar ) { + /* This is a usable workaround to detect we're on Mac OS X. */ + #main-window[sizemode="normal"] > #titlebar, + #main-window[sizemode="maximized"] > #titlebar { + margin-top: 19px; + /* There is a margin-bottom set to -23 by code. */ + } +} + /* The button box must appear on top of the navigator-toolbox in order for * click and hover mouse events to work properly for the button in the restored * window state. Otherwise, elements in the navigator-toolbox, like the menubar, @@ -230,6 +261,31 @@ menubar { list-style-image: url("chrome://navigator/skin/icons/win-close-hover.gif"); } +@supports ( -moz-appearance: -moz-mac-unified-toolbar ) { + /* This is a usable workaround to detect we're on Mac OS X. */ + #titlebar-fullscreen-button { + -moz-appearance: none; + list-style-image: url("chrome://browser/skin/icons/mac-fullscreen-icon.png"); + -moz-image-region: rect(0px, 16px, 16px, 0px); + } + + #titlebar-fullscreen-button:hover { + -moz-image-region: rect(0px, 32px, 16px, 16px); + } + + @media (min-resolution: 2dppx) { + #titlebar-fullscreen-button { + list-style-image: url("chrome://browser/skin/icons/mac-fullscreen-icon@2x.png"); + -moz-image-region: rect(0px, 32px, 32px, 0px); + } + + #titlebar-fullscreen-button:hover { + -moz-image-region: rect(0px, 64px, 32px, 32px); + } + } +} + + /* ::::: bookmark buttons ::::: */ toolbarbutton.bookmark-item:not(.subviewbutton),