Thu, 22 Jan 2015 13:21:57 +0100
Incorporate requested changes from Mozilla in review:
https://bugzilla.mozilla.org/show_bug.cgi?id=1123480#c6
michael@0 | 1 | /* This Source Code Form is subject to the terms of the Mozilla Public |
michael@0 | 2 | * License, v. 2.0. If a copy of the MPL was not distributed with this |
michael@0 | 3 | * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ |
michael@0 | 4 | |
michael@0 | 5 | /* |
michael@0 | 6 | * This defines the look-and-feel styling of the error pages. |
michael@0 | 7 | * (see: netError.xhtml) |
michael@0 | 8 | * |
michael@0 | 9 | * Original styling by William Price <bugzilla@mob.rice.edu> |
michael@0 | 10 | * Updated by: Michael Ventnor <m.ventnor@gmail.com> |
michael@0 | 11 | */ |
michael@0 | 12 | |
michael@0 | 13 | html { |
michael@0 | 14 | background: -moz-Dialog; |
michael@0 | 15 | } |
michael@0 | 16 | |
michael@0 | 17 | body { |
michael@0 | 18 | margin: 0; |
michael@0 | 19 | padding: 0 1em; |
michael@0 | 20 | color: -moz-FieldText; |
michael@0 | 21 | font: message-box; |
michael@0 | 22 | } |
michael@0 | 23 | |
michael@0 | 24 | h1 { |
michael@0 | 25 | margin: 0 0 .6em 0; |
michael@0 | 26 | border-bottom: 1px solid ThreeDLightShadow; |
michael@0 | 27 | font-size: 160%; |
michael@0 | 28 | } |
michael@0 | 29 | |
michael@0 | 30 | ul, ol { |
michael@0 | 31 | margin: 0; |
michael@0 | 32 | -moz-margin-start: 1.5em; |
michael@0 | 33 | padding: 0; |
michael@0 | 34 | } |
michael@0 | 35 | |
michael@0 | 36 | ul > li, ol > li { |
michael@0 | 37 | margin-bottom: .5em; |
michael@0 | 38 | } |
michael@0 | 39 | |
michael@0 | 40 | ul { |
michael@0 | 41 | list-style: square; |
michael@0 | 42 | } |
michael@0 | 43 | |
michael@0 | 44 | #errorPageContainer { |
michael@0 | 45 | position: relative; |
michael@0 | 46 | min-width: 13em; |
michael@0 | 47 | max-width: 52em; |
michael@0 | 48 | margin: 4em auto; |
michael@0 | 49 | border: 1px solid ThreeDShadow; |
michael@0 | 50 | border-radius: 10px; |
michael@0 | 51 | padding: 3em; |
michael@0 | 52 | -moz-padding-start: 30px; |
michael@0 | 53 | background: url("moz-icon://stock/gtk-dialog-warning?size=dialog") left 0 no-repeat -moz-Field; |
michael@0 | 54 | background-origin: content-box; |
michael@0 | 55 | } |
michael@0 | 56 | |
michael@0 | 57 | #errorPageContainer.certerror { |
michael@0 | 58 | background-image: url("chrome://global/skin/icons/sslWarning.png"); |
michael@0 | 59 | } |
michael@0 | 60 | |
michael@0 | 61 | #errorPageContainer:-moz-dir(rtl) { |
michael@0 | 62 | background-position: right 0; |
michael@0 | 63 | } |
michael@0 | 64 | |
michael@0 | 65 | #errorTitle { |
michael@0 | 66 | -moz-margin-start: 80px; |
michael@0 | 67 | } |
michael@0 | 68 | |
michael@0 | 69 | #errorLongContent { |
michael@0 | 70 | -moz-margin-start: 80px; |
michael@0 | 71 | } |
michael@0 | 72 | |
michael@0 | 73 | #errorShortDesc > p { |
michael@0 | 74 | overflow: auto; |
michael@0 | 75 | border-bottom: 1px solid ThreeDLightShadow; |
michael@0 | 76 | padding-bottom: 1em; |
michael@0 | 77 | font-size: 130%; |
michael@0 | 78 | white-space: pre-wrap; |
michael@0 | 79 | } |
michael@0 | 80 | |
michael@0 | 81 | #errorLongDesc { |
michael@0 | 82 | -moz-padding-end: 3em; |
michael@0 | 83 | font-size: 110%; |
michael@0 | 84 | } |
michael@0 | 85 | |
michael@0 | 86 | #errorLongDesc > p { |
michael@0 | 87 | } |
michael@0 | 88 | |
michael@0 | 89 | #errorTryAgain { |
michael@0 | 90 | margin-top: 2em; |
michael@0 | 91 | -moz-margin-start: 80px; |
michael@0 | 92 | } |
michael@0 | 93 | |
michael@0 | 94 | #brand { |
michael@0 | 95 | position: absolute; |
michael@0 | 96 | right: 0; |
michael@0 | 97 | bottom: -1.5em; |
michael@0 | 98 | -moz-margin-end: 10px; |
michael@0 | 99 | opacity: .4; |
michael@0 | 100 | } |
michael@0 | 101 | |
michael@0 | 102 | #brand:-moz-dir(rtl) { |
michael@0 | 103 | right: auto; |
michael@0 | 104 | left: 0; |
michael@0 | 105 | } |
michael@0 | 106 | |
michael@0 | 107 | #brand > p { |
michael@0 | 108 | margin: 0; |
michael@0 | 109 | } |
michael@0 | 110 | |
michael@0 | 111 | #errorContainer { |
michael@0 | 112 | display: none; |
michael@0 | 113 | } |
michael@0 | 114 | |
michael@0 | 115 | #securityOverrideDiv { |
michael@0 | 116 | padding-top: 10px; |
michael@0 | 117 | } |
michael@0 | 118 | |
michael@0 | 119 | #securityOverrideContent { |
michael@0 | 120 | background-color: InfoBackground; |
michael@0 | 121 | color: InfoText; |
michael@0 | 122 | padding: 10px; |
michael@0 | 123 | border-radius: 10px; |
michael@0 | 124 | } |
michael@0 | 125 | |
michael@0 | 126 | /* Custom styling for 'blacklist' error class */ |
michael@0 | 127 | :root.blacklist #errorTitle, :root.blacklist #errorLongContent, |
michael@0 | 128 | :root.blacklist #errorShortDesc, :root.blacklist #errorLongDesc, |
michael@0 | 129 | :root.blacklist a { |
michael@0 | 130 | background-color: #722; /* Dark red */ |
michael@0 | 131 | color: white; |
michael@0 | 132 | } |
michael@0 | 133 | |
michael@0 | 134 | :root.blacklist #errorPageContainer { |
michael@0 | 135 | background-image: url("chrome://global/skin/icons/blacklist_large.png"); |
michael@0 | 136 | background-color: #722; |
michael@0 | 137 | } |
michael@0 | 138 | |
michael@0 | 139 | :root.blacklist { |
michael@0 | 140 | background: #333; |
michael@0 | 141 | } |
michael@0 | 142 | |
michael@0 | 143 | :root.blacklist #errorTryAgain { |
michael@0 | 144 | display: none; |
michael@0 | 145 | } |