зеркало из https://github.com/mozilla/pjs.git
Bug 590072 - XP specific styling of menu buttons in popup notifications. r=dao a=gavin
This commit is contained in:
Родитель
9008af5560
Коммит
1830f094b5
|
@ -63,13 +63,16 @@ notification[type="critical"] .messageImage {
|
|||
margin-top: 17px;
|
||||
}
|
||||
|
||||
%ifdef WINSTRIPE_AERO
|
||||
%ifdef XP_WIN
|
||||
@media all and (-moz-windows-default-theme) {
|
||||
.popup-notification-menubutton {
|
||||
-moz-appearance: none;
|
||||
border: 1px solid rgba(0,0,0,.35);
|
||||
border-radius: 3px;
|
||||
padding: 0;
|
||||
%ifndef WINSTRIPE_AERO
|
||||
background-color: rgba(250,250,250,.3);
|
||||
%endif
|
||||
}
|
||||
|
||||
.popup-notification-menubutton:hover:active {
|
||||
|
@ -80,12 +83,23 @@ notification[type="critical"] .messageImage {
|
|||
.popup-notification-menubutton > .button-menubutton-dropmarker {
|
||||
-moz-appearance: none;
|
||||
margin: 0;
|
||||
%ifdef WINSTRIPE_AERO
|
||||
background-image: -moz-linear-gradient(top, rgba(250,250,250,.6), rgba(175,175,175,.25) 49%, rgba(0,0,0,.12) 51%, rgba(0,0,0,.09) 60%, rgba(0,0,0,.05));
|
||||
box-shadow: 0 0 1px 1px rgba(255,255,255,.75) inset;
|
||||
%else
|
||||
box-shadow: 0 1px 0 rgba(255,255,255,.5) inset,
|
||||
0 2px 2px rgba(255,255,255,.35) inset,
|
||||
0 -1px 2px rgba(0,0,0,.1) inset,
|
||||
0 1px 0 rgba(255,255,255,.35);
|
||||
%endif
|
||||
}
|
||||
|
||||
.popup-notification-menubutton > .button-menubutton-button {
|
||||
%ifdef WINSTRIPE_AERO
|
||||
padding: 0;
|
||||
%else
|
||||
padding: 2px 0;
|
||||
%endif
|
||||
-moz-padding-start: 8px;
|
||||
-moz-padding-end: 5px;
|
||||
-moz-border-end: 1px solid rgba(0,0,0,.35);
|
||||
|
@ -98,6 +112,7 @@ notification[type="critical"] .messageImage {
|
|||
list-style-image: url("chrome://global/skin/arrow/arrow-dn-sharp.gif");
|
||||
}
|
||||
|
||||
%ifdef WINSTRIPE_AERO
|
||||
.popup-notification-menubutton > .button-menubutton-button:-moz-locale-dir(ltr),
|
||||
.popup-notification-menubutton > .button-menubutton-dropmarker:-moz-locale-dir(rtl) {
|
||||
border-radius: 2px 0 0 2px;
|
||||
|
@ -107,18 +122,27 @@ notification[type="critical"] .messageImage {
|
|||
.popup-notification-menubutton > .button-menubutton-dropmarker:-moz-locale-dir(ltr) {
|
||||
border-radius: 0 2px 2px 0;
|
||||
}
|
||||
%endif
|
||||
|
||||
.popup-notification-menubutton > .button-menubutton-button:hover,
|
||||
.popup-notification-menubutton > .button-menubutton-dropmarker:hover {
|
||||
%ifdef WINSTRIPE_AERO
|
||||
background-image: -moz-linear-gradient(top, rgba(250,250,250,.9), rgba(200,200,200,.6) 49%, rgba(0,0,0,.23) 51%, rgba(0,0,0,.17) 60%, rgba(0,0,0,.05));
|
||||
box-shadow: 0 0 0 1px white inset,
|
||||
0 0 2px 1px rgba(255,255,255,.75) inset;
|
||||
%else
|
||||
background-color: rgba(250,250,250,.6);
|
||||
%endif
|
||||
}
|
||||
|
||||
.popup-notification-menubutton > .button-menubutton-button:hover:active,
|
||||
.popup-notification-menubutton > .button-menubutton-dropmarker:hover:active,
|
||||
.popup-notification-menubutton[open="true"] > .button-menubutton-dropmarker {
|
||||
%ifdef WINSTRIPE_AERO
|
||||
background-image: -moz-linear-gradient(top, rgba(250,250,250,.9), rgba(200,200,200,.6) 49%, rgba(0,0,0,.23) 51%, rgba(0,0,0,.17) 60%, rgba(0,0,0,.05));
|
||||
%else
|
||||
background-color: rgba(0,0,0,.05);
|
||||
%endif
|
||||
box-shadow: 0 0 2px rgba(0,0,0,.65) inset;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -81,8 +81,8 @@ panel[type="arrow"] {
|
|||
0 0 0 1px rgba(0,0,0,.75),
|
||||
0 1px 3px 2px rgba(0,0,0,.65);
|
||||
%else
|
||||
background: -moz-linear-gradient(rgba(248,250,253,1), rgba(248,250,253,1) 20px, rgba(248,250,253,.97));
|
||||
padding: 6px;
|
||||
background: -moz-linear-gradient(rgba(250,251,253,.95), rgba(250,251,253,.95) 20px, rgba(250,251,253,.95));
|
||||
padding: 14px;
|
||||
margin: 3px;
|
||||
box-shadow: 0 0 5px 1px rgba(184,205,232,1) inset,
|
||||
0 0 0 1px rgba(0,0,0,.25),
|
||||
|
|
Загрузка…
Ссылка в новой задаче