| 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
| 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
| 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
| 4 | |
| 5 | /* ===== alert.css ===================================================== |
| 6 | == Styles specific to the alerts dialog. |
| 7 | ======================================================================= */ |
| 8 | |
| 9 | @import url("chrome://global/skin/"); |
| 10 | |
| 11 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 12 | |
| 13 | .alertBox { |
| 14 | border: 1px solid #9C9CFF; |
| 15 | border-radius: 3px; |
| 16 | background-color: #000000; |
| 17 | } |
| 18 | |
| 19 | .alertImageBox { |
| 20 | padding: 8px 0; |
| 21 | width: 64px; |
| 22 | -moz-border-end: 1px solid #9C9CFF; |
| 23 | } |
| 24 | |
| 25 | .alertTextBox { |
| 26 | padding: 8px; |
| 27 | -moz-padding-start: 16px; |
| 28 | width: 255px; |
| 29 | } |
| 30 | |
| 31 | .alertTextBox, |
| 32 | .alertCloseBox { |
| 33 | } |
| 34 | |
| 35 | .alertBox[orient="horizontal"] > .alertImageBox { |
| 36 | -moz-margin-end: 8px; |
| 37 | } |
| 38 | |
| 39 | .alertBox[orient="vertical"] > .alertImageBox { |
| 40 | margin-bottom: 8px; |
| 41 | } |
| 42 | |
| 43 | .alertTitle { |
| 44 | font-weight: bold; |
| 45 | font-size: 110%; |
| 46 | } |
| 47 | |
| 48 | #alertImage { |
| 49 | max-width: 48px; |
| 50 | max-height: 48px; |
| 51 | list-style-image: url("chrome://global/skin/alerts/notification-48.png"); |
| 52 | } |
| 53 | |
| 54 | #alertNotification[clickable="true"] { |
| 55 | cursor: pointer; |
| 56 | } |
| 57 | |
| 58 | label { |
| 59 | cursor: inherit; |
| 60 | } |
| 61 | |
| 62 | .alertText[clickable="true"] { |
| 63 | color: #3333FF; |
| 64 | text-decoration: underline; |
| 65 | } |
| 66 | |
| 67 | .alertText[clickable="true"]:hover:active { |
| 68 | color: red; |
| 69 | } |
| 70 | |
| 71 | @keyframes alert-animation { |
| 72 | from { |
| 73 | opacity: 0; |
| 74 | } |
| 75 | 6.25% { |
| 76 | opacity: 1; |
| 77 | } |
| 78 | 93.75% { |
| 79 | opacity: 1; |
| 80 | } |
| 81 | to { |
| 82 | opacity: 0; |
| 83 | } |
| 84 | } |
| 85 | |
| 86 | .alertCloseButton { |
| 87 | list-style-image: url("chrome://global/skin/icons/close.png"); |
| 88 | -moz-image-region: rect(0, 16px, 16px, 0); |
| 89 | padding: 4px 2px; |
| 90 | } |
| 91 | |
| 92 | .alertCloseButton > .toolbarbutton-text { |
| 93 | display: none; |
| 94 | } |
| 95 | |
| 96 | .alertCloseButton:hover, |
| 97 | .alertCloseButton:hover:active { |
| 98 | -moz-image-region: rect(0, 32px, 16px, 16px); |
| 99 | } |