X-Git-Url: https://git-public.kairo.at/?p=themes.git;a=blobdiff_plain;f=LCARStrek%2Fbrowser%2Fbrowser.css;h=ab4d54d213c1a10fc48b1746d8c37a4a94688336;hp=2c0adee851b7ad607a437b27ca5f7366ddacf082;hb=ee49f520102b39e3559c8d4fda2f3487e5195038;hpb=54d92f0593d9fc131ef534e4dd0e27c5043d78e5 diff --git a/LCARStrek/browser/browser.css b/LCARStrek/browser/browser.css index 2c0adee8..ab4d54d2 100644 --- a/LCARStrek/browser/browser.css +++ b/LCARStrek/browser/browser.css @@ -17,8 +17,8 @@ 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 */ +@media (-moz-mac-graphite-theme), (-moz-mac-lion-theme), (-moz-mac-yosemite-theme) { + /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */ toolbar[customizable="true"]:not([nowindowdrag="true"]) { -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-drag-browsercustom"); } @@ -74,12 +74,16 @@ menubar { /* margin-top: 15px;*/ } -@supports ( not(-moz-appearance: -moz-mac-unified-toolbar) ) { - /* this is a usable workaround to detect we're not on Mac OS */ +@media (-moz-mac-graphite-theme: 0) and (-moz-mac-lion-theme: 0) { + /* This is a hackish workaround to exclude most of Mac OS until bug 1060941 gets fixed. */ #toolbar-menubar:not([autohide="true"]) { -moz-binding: url("chrome://global/skin/globalBindings.xml#toolbar-drag-browsercustom"); } - #main-window[tabsintitlebar]:not([inFullscreen]) #TabsToolbar { +} + +@media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) { + /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */ + #main-window[tabsintitlebar]:not([inFullscreen="true"]) #TabsToolbar { padding-left: 60px; } } @@ -109,9 +113,9 @@ menubar { #navigator-toolbox > toolbar:not(:-moz-lwtheme) { } -@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 */ +@media (-moz-mac-graphite-theme: 0) and (-moz-mac-lion-theme: 0) { + /* This is a hackish workaround to exclude most of Mac OS until bug 1060941 gets fixed. */ + /* Indent also due to non-applicable aero rule in original Windows theme. */ #toolbar-menubar { background-color: transparent !important; } @@ -147,8 +151,8 @@ menubar { } } -@supports ( -moz-appearance: -moz-mac-unified-toolbar ) { - /* this is a usable workaround to detect we're on Mac OS */ +@media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) { + /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */ #titlebar-buttonbox > .titlebar-button { display: none; } @@ -192,11 +196,12 @@ menubar { margin-top: 4px; } -@supports ( -moz-appearance: -moz-mac-unified-toolbar ) { - /* this is a usable workaround to detect we're on Mac OS */ - #main-window[sizemode="normal"] > #titlebar { - margin-top: 4px; - margin-bottom: 0; +@media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) { + /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */ + #main-window[sizemode="normal"] > #titlebar, + #main-window[sizemode="maximized"] > #titlebar { + margin-top: 19px; + /* There is a margin-bottom set to -23 by code. */ } } @@ -256,8 +261,8 @@ 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 */ +@media (-moz-mac-graphite-theme), (-moz-mac-lion-theme) { + /* This is a hackish workaround to cover most of Mac OS until bug 1060941 gets fixed. */ #titlebar-fullscreen-button { -moz-appearance: none; list-style-image: url("chrome://browser/skin/icons/mac-fullscreen-icon.png");