Bug 713822 - Simplify @media queries. r=dao

This commit is contained in:
Thomas Prip Vestergaard 2012-01-06 11:38:39 +01:00
parent e3ae415a2f
commit 0d29408f55
16 changed files with 34 additions and 34 deletions

View File

@ -37,7 +37,7 @@
}
}
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
#navigator-toolbox > toolbar:not(:-moz-lwtheme),
#browser-bottombox:not(:-moz-lwtheme) {
background-color: @customToolbarColor@;
@ -82,7 +82,7 @@
}
}
@media all and (-moz-windows-compositor) {
@media (-moz-windows-compositor) {
/* These should be hidden w/ glass enabled. Windows draws its own buttons. */
.titlebar-button {
display: none;
@ -348,7 +348,7 @@
}
/* ::::: splitmenu highlight style that imitates Windows 7 start menu ::::: */
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
.splitmenu-menuitem,
.splitmenu-menu {
-moz-appearance: none;

View File

@ -165,14 +165,14 @@
margin: 0 0 2px;
}
@media all and (-moz-windows-classic) {
@media (-moz-windows-classic) {
#appmenu-button {
margin-bottom: 1px;
}
}
%ifndef WINSTRIPE_AERO
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
#main-window[sizemode="normal"] #appmenu-button {
margin-bottom: 5px;
}
@ -315,7 +315,7 @@
-moz-border-end: 1px solid ThreeDShadow;
}
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
#appmenu-popup {
-moz-appearance: none;
background: white;
@ -483,7 +483,7 @@
-moz-appearance: -moz-window-titlebar-maximized;
}
@media all and (-moz-windows-classic) {
@media (-moz-windows-classic) {
#main-window[sizemode="normal"] > #titlebar > #titlebar-content > #appmenu-button-container {
margin-top: 4px;
}
@ -1214,7 +1214,7 @@ toolbar[mode="full"] .toolbarbutton-1 > .toolbarbutton-menubutton-button {
-moz-padding-end: 2px;
}
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
#urlbar,
.searchbar-textbox {
@navbarTextboxCustomBorder@
@ -1712,7 +1712,7 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-
margin: 16px 0 -2px;
}
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
.panel-promo-box {
margin: 8px -16px -16px;
padding: 8px 16px;
@ -1795,7 +1795,7 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-
}
%ifndef WINSTRIPE_AERO
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
#main-window[sizemode=normal] #TabsToolbar {
padding-left: 2px;
padding-right: 2px;
@ -1827,7 +1827,7 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-
}
%ifndef WINSTRIPE_AERO
@media all and (-moz-windows-theme: luna-blue) {
@media (-moz-windows-theme: luna-blue) {
.tabbrowser-tab,
.tabs-newtab-button {
background-image: @toolbarShadowOnTab@,
@ -1956,7 +1956,7 @@ richlistitem[type~="action"][actiontype="switchtab"] > .ac-url-box > .ac-action-
/* Tab scrollbox arrow, tabstrip new tab and all-tabs buttons */
@media all and (-moz-touch-enabled) {
@media (-moz-touch-enabled) {
.tabbrowser-arrowscrollbox > .scrollbutton-up,
.tabbrowser-arrowscrollbox > .scrollbutton-down,
#TabsToolbar .toolbarbutton-1 {

View File

@ -21,7 +21,7 @@
}
}
@media all and (-moz-windows-compositor) {
@media (-moz-windows-compositor) {
#placesToolbox {
border-top: none;
}
@ -31,7 +31,7 @@
}
}
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
#placesView,
#searchModifiers,
#infoPane,

View File

@ -66,7 +66,7 @@
min-height: 41px;
}
@media all and (max-width: 600px) {
@media (max-width: 600px) {
.global-warning-text {
display: none;
}
@ -206,7 +206,7 @@
}
/* Maximize the size of the viewport when the window is small */
@media all and (max-width: 800px) {
@media (max-width: 800px) {
.category-name {
display: none;
}

View File

@ -73,7 +73,7 @@
border-bottom: 1px solid rgba(50, 65, 92, 0.4);
}
@media all and (max-width: 600px) {
@media (max-width: 600px) {
.global-warning-text {
display: none;
}
@ -239,7 +239,7 @@
}
/* Maximize the size of the viewport when the window is small */
@media all and (max-width: 800px) {
@media (max-width: 800px) {
.category-name {
display: none;
}

View File

@ -61,7 +61,7 @@ html|html {
}
%ifdef WINSTRIPE_AERO
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
*|*:root {
color: #000;
background-color: #CCD9EA;
@ -72,7 +72,7 @@ html|html {
}
}
@media all and (-moz-windows-compositor) {
@media (-moz-windows-compositor) {
*|*:root {
color: #000;
/* Blame shorlander for this monstrosity. */
@ -117,7 +117,7 @@ html|html {
}
%ifdef WINSTRIPE_AERO
@media all and (-moz-windows-compositor) {
@media (-moz-windows-compositor) {
/* Buttons */
*|button,
menulist,

View File

@ -1,6 +1,6 @@
%include menu.css
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
menubar > menu:-moz-lwtheme {
-moz-appearance: menuitem;
}

View File

@ -69,7 +69,7 @@ menuitem[_moz-menuactive="true"][disabled="true"],
text-shadow: none;
}
@media all and (-moz-windows-classic) {
@media (-moz-windows-classic) {
menu[disabled="true"],
menubar > menu[disabled="true"][_moz-menuactive="true"],
menuitem[disabled="true"],

View File

@ -70,7 +70,7 @@ notification[type="critical"] .messageImage {
%ifdef XP_WIN
/*
XXX: apply styles to all themes until bug 509642 is fixed
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
*/
.popup-notification-menubutton[type="menu-button"] {
-moz-appearance: none;

View File

@ -131,7 +131,7 @@ panel[type="arrow"] {
%endif
%ifdef XP_WIN
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
panel[type="arrow"][side="top"],
panel[type="arrow"][side="bottom"] {
margin-left: -25px;

View File

@ -1,6 +1,6 @@
%include toolbarbutton.css
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
toolbarbutton:-moz-lwtheme:not([disabled="true"]) {
color: inherit;
text-shadow: inherit;

View File

@ -96,7 +96,7 @@ toolbarbutton[disabled="true"] {
text-shadow: none;
}
@media all and (-moz-windows-classic) {
@media (-moz-windows-classic) {
toolbarbutton[disabled="true"] {
color: ThreeDShadow;
text-shadow: 1px 1px ThreeDHighlight;
@ -113,7 +113,7 @@ toolbarbutton[checked="true"]:not([disabled="true"]) {
color: ButtonText;
}
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
toolbarbutton:-moz-lwtheme {
text-shadow: none;
}

View File

@ -1,6 +1,6 @@
%include downloads.css
@media all and (-moz-windows-compositor) {
@media (-moz-windows-compositor) {
#downloadManager {
-moz-appearance: -moz-win-glass;
background: transparent;

View File

@ -10,7 +10,7 @@
color: -moz-DialogText;
}
@media all and (-moz-windows-compositor) {
@media (-moz-windows-compositor) {
#genericAbout {
-moz-appearance: -moz-win-glass;
background: transparent;

View File

@ -87,7 +87,7 @@
border-bottom: 1px solid #CAD4E0;
}
@media all and (max-width: 600px) {
@media (max-width: 600px) {
.global-warning-text {
display: none;
}
@ -251,7 +251,7 @@
}
/* Maximize the size of the viewport when the window is small */
@media all and (max-width: 800px) {
@media (max-width: 800px) {
.category-name {
display: none;
}
@ -319,7 +319,7 @@
margin: 0;
}
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
#header-search {
-moz-appearance: none;
border: 1px solid rgba(0, 0, 0, 0.32);

View File

@ -207,7 +207,7 @@
}
%ifdef WINSTRIPE_AERO
@media all and (-moz-windows-default-theme) {
@media (-moz-windows-default-theme) {
#footer {
background-color: #f1f5fb;
box-shadow: 0px 1px 2px rgb(204,214,234) inset;