Commit | Line | Data |
---|---|---|
57d23eae | 1 | /* |
2 | * This defines the look-and-feel styling of the error pages. | |
3 | * (see: netError.xhtml) | |
4 | * | |
5 | * Original styling by William Price <bugzilla@mob.rice.edu> | |
6 | * Updated by: Steven Garrity <steven@silverorange.com> | |
7 | * Henrik Skupin <mozilla@hskupin.info> | |
8 | */ | |
9 | ||
10 | html { | |
11 | background: #000000; | |
12 | } | |
13 | ||
14 | body { | |
15 | margin: 0; | |
16 | padding: 0 1em; | |
17 | color: #FF9F00; | |
4ed82c79 | 18 | font: 11px "Liberation Sans",Arial,Tahoma,Helvetica,sans-serif; |
57d23eae | 19 | } |
20 | ||
21 | h1 { | |
02920d2b | 22 | margin: 0 0 .6em; |
57d23eae | 23 | border-bottom: 1px solid #008484; |
24 | font-size: 160%; | |
25 | } | |
26 | ||
27 | ul, ol { | |
28 | margin: 0; | |
29 | -moz-margin-start: 1.5em; | |
30 | padding: 0; | |
31 | } | |
32 | ||
33 | ul > li, ol > li { | |
34 | margin-bottom: .5em; | |
35 | } | |
36 | ||
37 | ul { | |
38 | list-style: square; | |
39 | } | |
40 | ||
41 | #errorPageContainer { | |
42 | position: relative; | |
43 | min-width: 13em; | |
44 | max-width: 52em; | |
45 | margin: 4em auto; | |
46 | border: 1px solid #9C9FFF; | |
47 | -moz-border-radius: 10px; | |
48 | padding: 3em; | |
49 | -moz-padding-start: 30px; | |
50 | background: url("chrome://global/skin/icons/alert-exclam.gif") left 0 no-repeat #000000; | |
d15f39a1 | 51 | background-origin: content-box; |
57d23eae | 52 | } |
53 | ||
f98e9249 RK |
54 | #errorPageContainer.certerror { |
55 | background-image: url("chrome://global/skin/icons/sslWarning.png"); | |
56 | } | |
57 | ||
57d23eae | 58 | body[dir="rtl"] #errorPageContainer { |
59 | background-position: right 0; | |
60 | } | |
61 | ||
62 | #errorTitle { | |
63 | -moz-margin-start: 64px; | |
64 | } | |
65 | ||
66 | #errorLongContent { | |
67 | -moz-margin-start: 64px; | |
68 | } | |
69 | ||
70 | #errorShortDesc > p { | |
6046f027 | 71 | overflow: auto; |
57d23eae | 72 | border-bottom: 1px solid #008484; |
73 | padding-bottom: 1em; | |
74 | font-size: 130%; | |
f98e9249 | 75 | white-space: pre-wrap; |
57d23eae | 76 | } |
77 | ||
78 | #errorLongDesc { | |
79 | -moz-padding-end: 3em; | |
80 | font-size: 110%; | |
81 | } | |
82 | ||
83 | #errorLongDesc > p { | |
84 | } | |
85 | ||
86 | #errorTryAgain { | |
87 | margin-top: 2em; | |
88 | -moz-margin-start: 64px; | |
89 | } | |
90 | ||
91 | #brand { | |
92 | position: absolute; | |
93 | right: 0; | |
94 | bottom: -1.5em; | |
95 | -moz-margin-end: 10px; | |
96 | opacity: .4; | |
97 | } | |
98 | ||
99 | body[dir="rtl"] #brand { | |
100 | right: auto; | |
101 | left: 0; | |
102 | } | |
103 | ||
104 | #brand > p { | |
105 | margin: 0; | |
106 | } | |
6046f027 | 107 | |
108 | #errorContainer { | |
109 | display: none; | |
110 | } | |
f98e9249 RK |
111 | |
112 | #securityOverrideDiv { | |
113 | padding-top: 10px; | |
114 | } | |
115 | ||
116 | #securityOverrideContent { | |
117 | background-color: #FFCF00; | |
118 | color: #000000; | |
119 | padding: 10px; | |
120 | -moz-border-radius: 10px; | |
121 | } | |
122 | ||
123 | /* Custom styling for 'blacklist' error class */ | |
124 | ||
125 | :root.blacklist #errorTitle, :root.blacklist #errorLongContent, | |
126 | :root.blacklist #errorShortDesc, :root.blacklist #errorLongDesc, | |
127 | :root.blacklist a { | |
128 | background-color: #FF0000; /* red */ | |
129 | color: #000000; | |
130 | } | |
131 | ||
132 | :root.blacklist #errorPageContainer { | |
133 | background-image: url("chrome://global/skin/icons/blacklist_large.png"); | |
134 | background-color: #FF0000; | |
135 | } | |
136 | ||
137 | :root.blacklist { | |
138 | background: #000000; | |
139 | } | |
140 | ||
141 | :root.blacklist #errorTryAgain { | |
142 | display: none; | |
143 | } |