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/. */
6 * This defines the look-and-feel styling of the error pages.
7 * (see: netError.xhtml)
9 * Original styling by William Price <bugzilla@mob.rice.edu>
10 * Updated for mobile by: Wes Johnston <wjohnston@mozilla.com>
18 * In-browser content styles,
19 * XXX: should be extracted and consolidated into a shared stylesheet for all in-browser content
22 background-color: #F4F4F4;
24 font-family: "Segoe UI", sans-serif
;
25 font-size: @font_normal@
;
30 font-size: @metro_font_xlarge@
;
32 line-height: @metro_spacing_large@
;
35 font-size: @metro_font_large@
;
36 line-height: @metro_spacing_xxxnormal@
;
40 font-size: @font_normal@
;
41 line-height: @metro_spacing_xxnormal@
;
44 font-size: @font_normal@
;
45 line-height: @metro_spacing_xxnormal@
;
51 * Net error page styles
55 text-decoration: none
;
60 padding: 0px 0px 0px 1em;
68 #errorPage.certerror
, #errorPage
.blockedsite
{
69 background-color: @error_page_background_color@
;
73 margin: 5px 10px 5px 0;
76 #errorPage > .top-decoration
{
84 #errorPage.certerror
> .top-decoration
{
85 background: linear-gradient
(-45deg,
86 @error_page_background_color@
25%,
87 @error_page_warning_color@
25%,
88 @error_page_warning_color@
50%,
89 @error_page_background_color@
50%,
90 @error_page_background_color@
75%,
91 @error_page_warning_color@
75%,
92 @error_page_warning_color@
) repeat scroll
0% 0% /
93 80px 80px transparent
;
96 #errorPage.blockedsite
> .top-decoration
{
97 background: linear-gradient
(-45deg,
98 @error_page_background_color@
25%,
99 @error_page_error_color@
25%,
100 @error_page_error_color@
50%,
101 @error_page_background_color@
50%,
102 @error_page_background_color@
75%,
103 @error_page_error_color@
75%,
104 @error_page_error_color@
) repeat scroll
0% 0% /
105 80px 80px transparent
;
108 #errorPage #cert_domain_link
{
112 #errorPage.certerror #errorPageContainer
> .section-header
,
113 #errorPage.blockedsite #errorPageContainer
> .section-header
{
114 border-bottom: @metro_border_thin@ solid rgb
(133,137,140);
117 #errorPageContainer {
122 -moz-padding-start: 40px;
123 -moz-padding-end: 24px;
127 background-image: url
("chrome://browser/skin/images/errorpage-warning.png");
128 background-position: center center
;
129 background-repeat: no-repeat
;
130 background-size: 40px 40px;
131 background-origin: content-box
;
132 display: inline-block
;
133 -moz-margin-start: -64px;
134 -moz-margin-end: 24px;
136 vertical-align: middle
;
140 #errorPage.certerror #errorTitleIcon
, #errorPage
.blockedsite #errorTitleIcon
{
141 background-size: 60px 60px;
144 -moz-margin-start: -80px;
145 -moz-margin-end: 10px;
148 #errorPage.certerror #errorTitleIcon
{
149 background-image: url
("chrome://browser/skin/images/errorpage-cert-untrusted.png");
152 #errorPage.blockedsite #errorTitleIcon
{
153 background-image: url
("chrome://browser/skin/images/errorpage-blocked-site.png");
156 @media (min-resolution: @min_res_140pc@
) {
157 /* Load 140% image when scaled by 140% */
159 background-image: url
("chrome://browser/skin/images/errorpage-warning@1.4x.png");
162 #errorPage.certerror #errorTitleIcon
{
163 background-image: url
("chrome://browser/skin/images/errorpage-cert-untrusted@1.4x.png");
166 #errorPage.blockedsite #errorTitleIcon
{
167 background-image: url
("chrome://browser/skin/images/errorpage-blocked-site@1.4x.png");
171 @media (min-resolution: @min_res_180pc@
) {
172 /* Load 180% image when scaled by 180% */
174 background-image: url
("chrome://browser/skin/images/errorpage-warning@1.8x.png");
177 #errorPage.certerror #errorTitleIcon
{
178 background-image: url
("chrome://browser/skin/images/errorpage-cert-untrusted@1.8x.png");
181 #errorPage.blockedsite #errorTitleIcon
{
182 background-image: url
("chrome://browser/skin/images/errorpage-blocked-site@1.8x.png");
186 @media (max-width: 760px) {
187 #errorPage.certerror #errorTitleIcon
, #errorPage
.blockedsite #errorTitleIcon
{
189 -moz-margin-start: 0;
196 display: inline-block
;
197 vertical-align: middle
;
200 #errorPageContainer > .section-header
{
201 border-bottom: @metro_border_thin@ solid @border_color@
;
202 margin-top: @metro_spacing_xxxnormal@
;
203 padding-bottom: @metro_spacing_snormal@
;
206 #errorPageContainer > .section-details
{
207 margin-top: @metro_spacing_xxxnormal@
;
208 padding-bottom: @metro_spacing_xxxnormal@
;
211 #errorPageContainer > .section-footer
{
212 padding-bottom: @metro_spacing_xxxnormal@
;
215 #errorShortDesc > p:empty
{
219 #errorShortDesc > p
{
225 #errorPage.blockedsite #errorShortDesc
> p
{
254 #securityOverrideDiv {
258 .expandable-section {
259 background: url
("chrome://browser/skin/images/arrowdown-16.png") no-repeat left
0.6em;
260 background-size: 11px 11px;
263 .expandable-section[collapsed] {
264 background-image: url
("chrome://browser/skin/images/arrowright-16.png");
267 .expandable-section[collapsed] > .expandable-content {
271 .expandable-section > .expandable-heading {
273 -moz-padding-start: 15px;
274 -moz-user-select: none
;