| 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 #666699; |
| 15 | background-color: #CCD0DD; |
| 16 | } |
| 17 | |
| 18 | .alertImageBox { |
| 19 | padding: 8px 0; |
| 20 | width: 64px; |
| 21 | -moz-border-end: 1px solid #9999CC; |
| 22 | } |
| 23 | |
| 24 | .alertTextBox { |
| 25 | padding: 8px; |
| 26 | -moz-padding-start: 16px; |
| 27 | width: 255px; |
| 28 | } |
| 29 | |
| 30 | .alertTextBox, |
| 31 | .alertCloseBox { |
| 32 | } |
| 33 | |
| 34 | .alertBox[orient="horizontal"] > .alertImageBox { |
| 35 | -moz-margin-end: 8px; |
| 36 | } |
| 37 | |
| 38 | .alertBox[orient="vertical"] > .alertImageBox { |
| 39 | margin-bottom: 8px; |
| 40 | } |
| 41 | |
| 42 | .alertTitle { |
| 43 | font-weight: bold; |
| 44 | font-size: 110%; |
| 45 | } |
| 46 | |
| 47 | #alertImage { |
| 48 | max-width: 48px; |
| 49 | max-height: 48px; |
| 50 | list-style-image: url("chrome://global/skin/alerts/notification-48.png"); |
| 51 | } |
| 52 | |
| 53 | #alertNotification[clickable="true"] { |
| 54 | cursor: pointer; |
| 55 | } |
| 56 | |
| 57 | label { |
| 58 | cursor: inherit; |
| 59 | } |
| 60 | |
| 61 | .alertText[clickable="true"] { |
| 62 | color: blue; |
| 63 | text-decoration: underline; |
| 64 | } |
| 65 | |
| 66 | .alertText[clickable="true"]:hover:active { |
| 67 | color: red; |
| 68 | } |
| 69 | |
| 70 | @keyframes alert-animation { |
| 71 | from { |
| 72 | opacity: 0; |
| 73 | } |
| 74 | 6.25% { |
| 75 | opacity: 1; |
| 76 | } |
| 77 | 93.75% { |
| 78 | opacity: 1; |
| 79 | } |
| 80 | to { |
| 81 | opacity: 0; |
| 82 | } |
| 83 | } |
| 84 | |
| 85 | .alertCloseButton { |
| 86 | list-style-image: url("chrome://global/skin/icons/close-button.gif"); |
| 87 | padding: 4px 2px; |
| 88 | } |
| 89 | |
| 90 | .alertCloseButton > .toolbarbutton-text { |
| 91 | display: none; |
| 92 | } |