| 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 | @namespace url("http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"); |
| 6 | |
| 7 | /* Hide selected items by default and display them based on the page status */ |
| 8 | |
| 9 | #warningBox:not(.private) .private, |
| 10 | #warningBox:not(.normal) .normal { |
| 11 | display: none; |
| 12 | } |
| 13 | |
| 14 | /* Pick the desired icons depending on the window's context */ |
| 15 | |
| 16 | #warningBox.private > #warningBoxIcon { |
| 17 | list-style-image: url("chrome://global/skin/icons/information-48.png"); |
| 18 | width: 48px; |
| 19 | height: 48px; |
| 20 | -moz-margin-end: 3em; |
| 21 | } |
| 22 | |
| 23 | #warningBox.normal > #warningBoxIcon { |
| 24 | list-style-image: url("chrome://global/skin/icons/question-48.png"); |
| 25 | width: 48px; |
| 26 | height: 48px; |
| 27 | -moz-margin-end: 3em; |
| 28 | } |
| 29 | |
| 30 | #trackWarnBox { |
| 31 | margin-top: 0.6em; |
| 32 | -moz-margin-end: 7em; |
| 33 | -moz-box-align: center; |
| 34 | } |
| 35 | |
| 36 | #trackWarnIcon { |
| 37 | list-style-image: url("chrome://global/skin/icons/warning-24.png"); |
| 38 | width: 24px; |
| 39 | height: 24px; |
| 40 | } |
| 41 | |
| 42 | /* Define additional styles to look similar to the netError/certError pages */ |
| 43 | |
| 44 | #warningTitle { |
| 45 | font-weight: bold; |
| 46 | } |
| 47 | |
| 48 | #warningStatus { |
| 49 | margin: 0.4em 0 1.2em 0; |
| 50 | padding-bottom: 1.2em; |
| 51 | border-bottom: 1px solid #808080; |
| 52 | font-size: 135%; |
| 53 | } |
| 54 | |
| 55 | #warningInnerBox > button { |
| 56 | margin: 0.8em 0 1em 0; |
| 57 | } |
| 58 | |
| 59 | #warningOuterBox > vbox > label, |
| 60 | #warningInnerBox > description { |
| 61 | -moz-margin-start: 0; |
| 62 | } |