-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
Missing notification icons in other platforms Was applied only to windows/notification.css Remove redundant close icon attributes and selectors Above may have been done in the past but applies only to tab-close, see 820ee4f New 2x close icon has been created for mac (and other uses, ie. HiDPI) Remove background images from mac notifications
- Loading branch information
Showing
12 changed files
with
75 additions
and
128 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -64,6 +64,7 @@ window.dialog { | |
list-style-image: url("chrome://global/skin/icons/information-32.png"); | ||
} | ||
|
||
.alert-dialog #info\.icon, | ||
.alert-icon { | ||
list-style-image: url("chrome://global/skin/icons/Warning.png"); | ||
} | ||
|
@@ -343,4 +344,19 @@ label[disabled="true"]:-moz-system-metric(windows-classic) { | |
|
||
.close-icon:hover:active { | ||
-moz-image-region: rect(0, 48px, 16px, 32px); | ||
} | ||
|
||
@media (min-resolution: 2dppx) { | ||
.close-icon { | ||
list-style-image: url("chrome://global/skin/icons/[email protected]"); | ||
-moz-image-region: rect(0, 32px, 32px, 0); | ||
} | ||
|
||
.close-icon:hover { | ||
-moz-image-region: rect(0, 64px, 32px, 32px); | ||
} | ||
|
||
.close-icon:hover:active { | ||
-moz-image-region: rect(0, 96px, 32px, 64px); | ||
} | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,46 +11,47 @@ notification { | |
|
||
notification[type="info"] { | ||
color: rgba(255,255,255,0.95); | ||
background: url("chrome://global/skin/notification/info-bar-background.png") #404040 repeat-x top left; | ||
background: #404040 repeat-x top left; | ||
border-top: 1px solid #707070; | ||
border-bottom: 1px solid #2a2a2a; | ||
} | ||
|
||
notification[type="warning"] { | ||
color: rgba(0,0,0,0.95); | ||
background: url("chrome://global/skin/notification/warning-bar-background.png") #ffc703 repeat-x top left; | ||
background: #ffc703 repeat-x top left; | ||
border-top: 1px solid #ffe970; | ||
border-bottom: 1px solid #bf8a01; | ||
} | ||
|
||
notification[type="critical"] { | ||
color: rgba(255,255,255,0.95); | ||
background: url("chrome://global/skin/notification/critical-bar-background.png") #980000 repeat-x top left; | ||
background: #980000 repeat-x top left; | ||
border-top: 1px solid #e35959; | ||
border-bottom: 1px solid #5d0000; | ||
} | ||
|
||
.messageText > .text-link { | ||
color: inherit !important; | ||
text-decoration: underline; | ||
} | ||
|
||
.messageImage { | ||
width: 16px; | ||
height: 16px; | ||
margin: 0 4px; | ||
} | ||
|
||
.popup-notification-learnmore-link:not([href]) { | ||
display: none; | ||
} | ||
|
||
/* Default icons for notifications */ | ||
|
||
.messageImage[type="info"] { | ||
notification[type="info"] .messageImage { | ||
list-style-image: url("chrome://global/skin/notification/info-icon.png"); | ||
} | ||
|
||
.messageImage[type="warning"] { | ||
notification[type="warning"] .messageImage { | ||
list-style-image: url("chrome://global/skin/notification/warning-icon.png"); | ||
} | ||
|
||
.messageImage[type="critical"] { | ||
notification[type="critical"] .messageImage { | ||
list-style-image: url("chrome://global/skin/notification/error-icon.png"); | ||
} | ||
|
||
|
@@ -68,43 +69,20 @@ notification[type="critical"] { | |
-moz-appearance: none; | ||
padding: 0; | ||
margin: 0 2px; | ||
list-style-image: url("chrome://global/skin/icons/close.png"); | ||
border: none; | ||
-moz-image-region: rect(0, 16px, 16px, 0); | ||
} | ||
|
||
.messageCloseButton > .toolbarbutton-text { | ||
display: none; | ||
} | ||
|
||
.messageCloseButton:hover { | ||
-moz-image-region: rect(0, 32px, 16px, 16px); | ||
} | ||
|
||
.messageCloseButton:hover:active { | ||
-moz-image-region: rect(0, 48px, 16px, 32px); | ||
} | ||
|
||
.messageCloseButton:-moz-focusring > .toolbarbutton-icon { | ||
border-radius: 10000px; | ||
box-shadow: 0 0 2px 1px -moz-mac-focusring, | ||
0 0 0 2px -moz-mac-focusring inset; | ||
} | ||
|
||
@media (min-resolution: 2dppx) { | ||
.messageCloseButton { | ||
list-style-image: url("chrome://global/skin/icons/[email protected]"); | ||
-moz-image-region: rect(0, 32px, 32px, 0); | ||
} | ||
|
||
.messageCloseButton:hover { | ||
-moz-image-region: rect(0, 64px, 32px, 32px); | ||
} | ||
|
||
.messageCloseButton:hover:active { | ||
-moz-image-region: rect(0, 96px, 32px, 64px); | ||
} | ||
|
||
.messageCloseButton > .toolbarbutton-icon { | ||
width: 16px; | ||
} | ||
|
@@ -116,6 +94,15 @@ notification[type="critical"] { | |
max-width: 24em; | ||
} | ||
|
||
.popup-notification-learnmore-link { | ||
margin-top: 1em !important; | ||
-moz-margin-start: 0 !important; /* override default label margin to match description margin */ | ||
} | ||
|
||
.popup-notification-learnmore-link:not([href]) { | ||
display: none; | ||
} | ||
|
||
.popup-notification-button-container { | ||
margin-top: 17px; | ||
} | ||
|
Oops, something went wrong.