Bug 709578 - Replace :-moz-system-metric with @media blocks. r=dao

This commit is contained in:
Jason Yeo 2011-12-28 00:49:17 +01:00
parent 3f61c157e0
commit 389c1d619d
4 changed files with 34 additions and 26 deletions

View File

@ -294,21 +294,23 @@
}
@media not all and (-moz-windows-compositor) {
#main-window:-moz-system-metric(windows-default-theme) {
background-color: rgb(185,209,234);
}
#main-window:-moz-system-metric(windows-default-theme):-moz-window-inactive {
background-color: rgb(215,228,242);
}
@media (-moz-windows-default-theme) {
#main-window {
background-color: rgb(185,209,234);
}
#main-window:-moz-window-inactive {
background-color: rgb(215,228,242);
}
#toolbar-menubar:not([autohide=true]):not(:-moz-lwtheme):-moz-system-metric(windows-default-theme),
#TabsToolbar[tabsontop=true]:not(:-moz-lwtheme):-moz-system-metric(windows-default-theme),
#navigator-toolbox[tabsontop=false] > toolbar:not(#toolbar-menubar):not(:-moz-lwtheme):-moz-system-metric(windows-default-theme) {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag");
background-color: transparent;
}
#toolbar-menubar[autohide=true]:-moz-system-metric(windows-default-theme) {
background-color: transparent;
#toolbar-menubar:not([autohide=true]):not(:-moz-lwtheme),
#TabsToolbar[tabsontop=true]:not(:-moz-lwtheme),
#navigator-toolbox[tabsontop=false] > toolbar:not(#toolbar-menubar):not(:-moz-lwtheme) {
-moz-binding: url("chrome://global/content/bindings/toolbar.xml#toolbar-drag");
background-color: transparent;
}
#toolbar-menubar[autohide=true] {
background-color: transparent !important;
}
}
#print-preview-toolbar:not(:-moz-lwtheme) {

View File

@ -1551,9 +1551,11 @@ html|*.urlbar-input:-moz-lwtheme:-moz-placeholder,
}
%ifndef WINSTRIPE_AERO
.ac-url-text:-moz-system-metric(windows-default-theme),
.ac-action-text:-moz-system-metric(windows-default-theme) {
color: #006600;
@media (-moz-windows-default-theme) {
.ac-url-text,
.ac-action-text {
color: #006600;
}
}
%endif

View File

@ -1,12 +1,14 @@
%include places.css
/* Style Places sidebars as Vista media collection */
#bookmarksPanel:-moz-system-metric(windows-default-theme),
#history-panel:-moz-system-metric(windows-default-theme) {
background-color: #EEF3FA;
}
@media (-moz-windows-default-theme) {
#bookmarksPanel,
#history-panel {
background-color: #EEF3FA;
}
.sidebar-placesTree:-moz-system-metric(windows-default-theme) {
background-color: transparent;
border-top: none;
.sidebar-placesTree {
background-color: transparent;
border-top: none;
}
}

View File

@ -1,6 +1,8 @@
%include textbox.css
textbox html|*.textbox-input:-moz-placeholder:-moz-system-metric(windows-default-theme) {
font-style: italic;
@media (-moz-windows-default-theme) {
textbox html|*.textbox-input:-moz-placeholder {
font-style: italic;
}
}