Bug 430449 - Notification bar alignment fixes. Also fixes bug 462606. ui-r=faaborg, r=dao, a191=beltzner

This commit is contained in:
Markus Stange 2008-11-27 23:14:35 +01:00
Родитель 11c0388758
Коммит 73f42535f6
2 изменённых файлов: 31 добавлений и 29 удалений

Просмотреть файл

@ -297,6 +297,23 @@ description {
-moz-user-focus: ignore !important;
}
notification > button {
-moz-appearance: none;
background: url("chrome://global/skin/icons/white-gray-gradient.gif") transparent repeat-x center center;
-moz-background-clip: padding;
border: 1px solid rgba(0, 0, 0, 0.5);
-moz-border-radius: 10px;
-moz-box-shadow: rgba(255, 255, 255, 0.4) 0 1px 0;
padding: 0 5px;
margin: 0 3px;
min-width: 79px;
min-height: 16px;
}
notification > button:hover:active {
background-image: url("chrome://global/skin/icons/white-gray-gradient-active.gif");
}
/* ::::: XXX - stuff that should live elsewhere ::::: */
/* embedding/components/ui/progressDlg/nsProgressDialog.xul */

Просмотреть файл

@ -1,7 +1,7 @@
@namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul");
notification {
min-height: 24px;
padding: 4px 3px 5px;
}
notification[type="info"] {
@ -28,7 +28,7 @@ notification[type="critical"] {
.messageImage {
width: 16px;
height: 16px;
margin: 0px 1px 0px 6px;
margin: 0 4px;
}
/* Default icons for notifications */
@ -45,39 +45,20 @@ notification[type="critical"] .messageImage {
list-style-image: url("chrome://global/skin/icons/error-16.png");
}
.messageText {
margin-top: 2px;
font-weight: bold;
-moz-margin-start: 5px;
}
button {
-moz-appearance: none;
background: url("chrome://global/skin/icons/white-gray-gradient.gif") transparent repeat-x center center;
-moz-background-clip: padding;
border: 1px solid;
border-bottom-width: 2px;
-moz-border-radius: 10px;
-moz-border-top-colors: rgba(0,0,0,0.5);
-moz-border-right-colors: rgba(0,0,0,0.5);
-moz-border-bottom-colors: rgba(255,255,255,0.35) rgba(0,0,0,0.5);
-moz-border-left-colors: rgba(0,0,0,0.5);
padding: 0 5px;
min-width: 79px;
min-height: 17px;
}
button:hover:active {
background-image: url("chrome://global/skin/icons/white-gray-gradient-active.gif");
}
.notification-inner {
border: 0 !important;
}
.messageText {
margin: 0 3px !important;
padding: 0;
font-weight: bold;
}
.messageCloseButton {
-moz-appearance: none;
-moz-padding-end: 4px;
padding: 0;
margin: 0 2px;
list-style-image: url("chrome://global/skin/icons/closetab.png") !important;
border: none;
}
@ -86,6 +67,10 @@ button:hover:active {
display: none;
}
.messageCloseButton > .toolbarbutton-icon {
padding: 0;
}
.messageCloseButton:hover {
list-style-image: url("chrome://global/skin/icons/closetab-hover.png") !important;
}