Bug 616680 - Clean up app button styling in browser-aero.css. r=gavin

This commit is contained in:
Dão Gottwald 2010-12-07 12:59:51 +01:00
parent 06aa4cba58
commit f3999b3854

View File

@ -7,29 +7,17 @@
%define glassActiveBorderColor rgb(37, 44, 51) %define glassActiveBorderColor rgb(37, 44, 51)
%define glassInactiveBorderColor rgb(102, 102, 102) %define glassInactiveBorderColor rgb(102, 102, 102)
@media all and (-moz-windows-default-theme) { @media not all and (-moz-windows-classic) {
#navigator-toolbox > toolbar:not(:-moz-lwtheme) {
background-color: @customToolbarColor@;
}
.tabbrowser-tab[selected="true"]:not(:-moz-lwtheme) {
background-image: -moz-linear-gradient(white, @toolbarHighlight@ 30%),
-moz-linear-gradient(@customToolbarColor@, @customToolbarColor@);
}
/* App menu button */
#main-window[sizemode="normal"] > #titlebar > #titlebar-content > #appmenu-button-container { #main-window[sizemode="normal"] > #titlebar > #titlebar-content > #appmenu-button-container {
margin-top: 1px; margin-top: 1px;
} }
#appmenu-button { #appmenu-button {
border: 2px solid; border-width: 2px;
border-top: none;
-moz-border-left-colors: rgba(255,255,255,.5) rgba(83,42,6,.9); -moz-border-left-colors: rgba(255,255,255,.5) rgba(83,42,6,.9);
-moz-border-bottom-colors: rgba(255,255,255,.5) rgba(83,42,6,.9); -moz-border-bottom-colors: rgba(255,255,255,.5) rgba(83,42,6,.9);
-moz-border-right-colors: rgba(255,255,255,.5) rgba(83,42,6,.9); -moz-border-right-colors: rgba(255,255,255,.5) rgba(83,42,6,.9);
margin-bottom: -1px; /* compensate white outer border */ margin-bottom: 1px; /* compensate white outer border */
box-shadow: 0 1px 0 rgba(255,255,255,.25) inset, box-shadow: 0 1px 0 rgba(255,255,255,.25) inset,
0 0 2px 1px rgba(255,255,255,.25) inset; 0 0 2px 1px rgba(255,255,255,.25) inset;
} }
@ -44,6 +32,17 @@
margin-top: -1px; margin-top: -1px;
-moz-margin-start: 1px; -moz-margin-start: 1px;
} }
}
@media all and (-moz-windows-default-theme) {
#navigator-toolbox > toolbar:not(:-moz-lwtheme) {
background-color: @customToolbarColor@;
}
.tabbrowser-tab[selected="true"]:not(:-moz-lwtheme) {
background-image: -moz-linear-gradient(white, @toolbarHighlight@ 30%),
-moz-linear-gradient(@customToolbarColor@, @customToolbarColor@);
}
#sidebar-splitter { #sidebar-splitter {
border: 0; border: 0;
@ -57,13 +56,6 @@
} }
} }
@media not all and (-moz-windows-compositor) {
/* aero basic, which is a default windows theme */
#appmenu-button:-moz-system-metric(windows-theme-aero) {
margin-bottom: 1px;
}
}
@media all and (-moz-windows-compositor) { @media all and (-moz-windows-compositor) {
/* these should be hidden w/glass enabled. windows draws it's own buttons. */ /* these should be hidden w/glass enabled. windows draws it's own buttons. */
.titlebar-button { .titlebar-button {
@ -101,6 +93,10 @@
margin-top: -2px; margin-top: -2px;
} }
#appmenu-button {
margin-bottom: -1px; /* compensate white outer border */
}
#main-window:not(:-moz-lwtheme)[inFullscreen="true"] { #main-window:not(:-moz-lwtheme)[inFullscreen="true"] {
-moz-appearance: none; -moz-appearance: none;
background-color: #556; background-color: #556;