toolkit/themes/windows/global/netError.css

Thu, 22 Jan 2015 13:21:57 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Thu, 22 Jan 2015 13:21:57 +0100
branch
TOR_BUG_9701
changeset 15
b8a032363ba2
permissions
-rw-r--r--

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: Steven Garrity <steven@silverorange.com>
michael@0 11 * Henrik Skupin <mozilla@hskupin.info>
michael@0 12 */
michael@0 13
michael@0 14 html {
michael@0 15 background: -moz-Dialog;
michael@0 16 }
michael@0 17
michael@0 18 body {
michael@0 19 margin: 0;
michael@0 20 padding: 0 1em;
michael@0 21 color: -moz-FieldText;
michael@0 22 font: message-box;
michael@0 23 }
michael@0 24
michael@0 25 h1 {
michael@0 26 margin: 0 0 .6em 0;
michael@0 27 border-bottom: 1px solid ThreeDLightShadow;
michael@0 28 font-size: 160%;
michael@0 29 }
michael@0 30
michael@0 31 ul, ol {
michael@0 32 margin: 0;
michael@0 33 -moz-margin-start: 1.5em;
michael@0 34 padding: 0;
michael@0 35 }
michael@0 36
michael@0 37 ul > li, ol > li {
michael@0 38 margin-bottom: .5em;
michael@0 39 }
michael@0 40
michael@0 41 ul {
michael@0 42 list-style: square;
michael@0 43 }
michael@0 44
michael@0 45 #errorPageContainer {
michael@0 46 position: relative;
michael@0 47 min-width: 13em;
michael@0 48 max-width: 52em;
michael@0 49 margin: 4em auto;
michael@0 50 border: 1px solid ThreeDShadow;
michael@0 51 border-radius: 10px;
michael@0 52 padding: 3em;
michael@0 53 -moz-padding-start: 30px;
michael@0 54 background: url("chrome://global/skin/icons/warning-large.png") left 0 no-repeat -moz-Field;
michael@0 55 background-origin: content-box;
michael@0 56 }
michael@0 57
michael@0 58 #errorPageContainer.certerror {
michael@0 59 background-image: url("chrome://global/skin/icons/sslWarning.png");
michael@0 60 }
michael@0 61
michael@0 62 #errorPageContainer:-moz-dir(rtl) {
michael@0 63 background-position: right 0;
michael@0 64 }
michael@0 65
michael@0 66 #errorTitle {
michael@0 67 -moz-margin-start: 80px;
michael@0 68 }
michael@0 69
michael@0 70 #errorLongContent {
michael@0 71 -moz-margin-start: 80px;
michael@0 72 }
michael@0 73
michael@0 74 #errorShortDesc > p {
michael@0 75 overflow: auto;
michael@0 76 border-bottom: 1px solid ThreeDLightShadow;
michael@0 77 padding-bottom: 1em;
michael@0 78 font-size: 130%;
michael@0 79 white-space: pre-wrap;
michael@0 80 }
michael@0 81
michael@0 82 #errorLongDesc {
michael@0 83 -moz-padding-end: 3em;
michael@0 84 font-size: 110%;
michael@0 85 }
michael@0 86
michael@0 87 #errorLongDesc > p {
michael@0 88 }
michael@0 89
michael@0 90 #errorTryAgain {
michael@0 91 margin-top: 2em;
michael@0 92 -moz-margin-start: 80px;
michael@0 93 }
michael@0 94
michael@0 95 #brand {
michael@0 96 position: absolute;
michael@0 97 right: 0;
michael@0 98 bottom: -1.5em;
michael@0 99 -moz-margin-end: 10px;
michael@0 100 opacity: .4;
michael@0 101 }
michael@0 102
michael@0 103 #brand:-moz-dir(rtl) {
michael@0 104 right: auto;
michael@0 105 left: 0;
michael@0 106 }
michael@0 107
michael@0 108 #brand > p {
michael@0 109 margin: 0;
michael@0 110 }
michael@0 111
michael@0 112 #errorContainer {
michael@0 113 display: none;
michael@0 114 }
michael@0 115
michael@0 116 #securityOverrideDiv {
michael@0 117 padding-top: 10px;
michael@0 118 }
michael@0 119
michael@0 120 #securityOverrideContent {
michael@0 121 background-color: InfoBackground;
michael@0 122 color: InfoText;
michael@0 123 padding: 10px;
michael@0 124 border-radius: 10px;
michael@0 125 }
michael@0 126
michael@0 127 /* Custom styling for 'blacklist' error class */
michael@0 128 :root.blacklist #errorTitle, :root.blacklist #errorLongContent,
michael@0 129 :root.blacklist #errorShortDesc, :root.blacklist #errorLongDesc,
michael@0 130 :root.blacklist a {
michael@0 131 background-color: #722; /* Dark red */
michael@0 132 color: white;
michael@0 133 }
michael@0 134
michael@0 135 :root.blacklist #errorPageContainer {
michael@0 136 background-image: url("chrome://global/skin/icons/blacklist_large.png");
michael@0 137 background-color: #722;
michael@0 138 }
michael@0 139
michael@0 140 :root.blacklist {
michael@0 141 background: #333;
michael@0 142 }
michael@0 143
michael@0 144 :root.blacklist #errorTryAgain {
michael@0 145 display: none;
michael@0 146 }

mercurial