2013-02-12 12:51:25 -08:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This defines the look-and-feel styling of the error pages.
|
|
|
|
* (see: netError.xhtml)
|
|
|
|
*
|
|
|
|
* Original styling by William Price <bugzilla@mob.rice.edu>
|
|
|
|
* Updated for mobile by: Wes Johnston <wjohnston@mozilla.com>
|
|
|
|
*/
|
|
|
|
|
2014-01-16 09:36:31 -08:00
|
|
|
%filter substitution
|
|
|
|
%include defines.inc
|
|
|
|
%include platform.css
|
|
|
|
|
|
|
|
/*
|
|
|
|
* In-browser content styles,
|
|
|
|
* XXX: should be extracted and consolidated into a shared stylesheet for all in-browser content
|
|
|
|
*/
|
2013-02-12 12:51:25 -08:00
|
|
|
body {
|
2014-01-16 09:36:31 -08:00
|
|
|
background-color: #F4F4F4;
|
|
|
|
color: rgb(51,51,51);
|
|
|
|
font-family: "Segoe UI", sans-serif;
|
|
|
|
font-size: @font_normal@;
|
|
|
|
line-height: 23px;
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
h1 {
|
2014-01-16 09:36:31 -08:00
|
|
|
font-size: @metro_font_xlarge@;
|
|
|
|
font-weight: normal;
|
|
|
|
line-height: @metro_spacing_large@;
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|
|
|
|
h2 {
|
2014-01-16 09:36:31 -08:00
|
|
|
font-size: @metro_font_large@;
|
|
|
|
line-height: @metro_spacing_xxxnormal@;
|
|
|
|
font-weight: normal;
|
|
|
|
}
|
|
|
|
h3 {
|
|
|
|
font-size: @font_normal@;
|
|
|
|
line-height: @metro_spacing_xxnormal@;
|
|
|
|
}
|
|
|
|
h4 {
|
|
|
|
font-size: @font_normal@;
|
|
|
|
line-height: @metro_spacing_xxnormal@;
|
|
|
|
font-style: italic;
|
|
|
|
display: inline;
|
|
|
|
}
|
|
|
|
|
|
|
|
/*
|
|
|
|
* Net error page styles
|
|
|
|
*/
|
|
|
|
|
|
|
|
a {
|
|
|
|
text-decoration: none;
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
ul {
|
|
|
|
margin: 0px;
|
|
|
|
padding: 0px 0px 0px 1em;
|
|
|
|
}
|
|
|
|
|
|
|
|
li {
|
|
|
|
margin: 0px;
|
|
|
|
padding: 8px 0px;
|
|
|
|
}
|
|
|
|
|
2014-01-31 13:54:13 -08:00
|
|
|
#errorPage.certerror, #errorPage.blockedsite {
|
|
|
|
background-color: @error_page_background_color@;
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|
|
|
|
|
2014-01-31 13:54:13 -08:00
|
|
|
#errorPage button {
|
|
|
|
margin: 5px 10px 5px 0;
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorPage > .top-decoration {
|
|
|
|
position: absolute;
|
|
|
|
top: 0;
|
|
|
|
left: 0;
|
|
|
|
width: 100%;
|
|
|
|
height: 25px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorPage.certerror > .top-decoration {
|
|
|
|
background: linear-gradient(-45deg,
|
|
|
|
@error_page_background_color@ 25%,
|
|
|
|
@error_page_warning_color@ 25%,
|
|
|
|
@error_page_warning_color@ 50%,
|
|
|
|
@error_page_background_color@ 50%,
|
|
|
|
@error_page_background_color@ 75%,
|
|
|
|
@error_page_warning_color@ 75%,
|
|
|
|
@error_page_warning_color@) repeat scroll 0% 0% /
|
|
|
|
80px 80px transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorPage.blockedsite > .top-decoration {
|
|
|
|
background: linear-gradient(-45deg,
|
|
|
|
@error_page_background_color@ 25%,
|
|
|
|
@error_page_error_color@ 25%,
|
|
|
|
@error_page_error_color@ 50%,
|
|
|
|
@error_page_background_color@ 50%,
|
|
|
|
@error_page_background_color@ 75%,
|
|
|
|
@error_page_error_color@ 75%,
|
|
|
|
@error_page_error_color@) repeat scroll 0% 0% /
|
|
|
|
80px 80px transparent;
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorPage #cert_domain_link {
|
|
|
|
color: #0095dd;
|
2014-01-16 09:36:31 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
#errorPage.certerror #errorPageContainer > .section-header,
|
|
|
|
#errorPage.blockedsite #errorPageContainer > .section-header {
|
|
|
|
border-bottom: @metro_border_thin@ solid rgb(133,137,140);
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorPageContainer {
|
|
|
|
max-width: 628px;
|
|
|
|
margin-left: auto;
|
|
|
|
margin-right: auto;
|
|
|
|
margin-top: 60px;
|
|
|
|
-moz-padding-start: 40px;
|
|
|
|
-moz-padding-end: 24px;
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|
|
|
|
|
2014-01-16 09:36:31 -08:00
|
|
|
#errorTitleIcon {
|
|
|
|
background-image: url("chrome://browser/skin/images/errorpage-warning.png");
|
|
|
|
background-position: center center;
|
|
|
|
background-repeat: no-repeat;
|
2013-02-12 12:51:25 -08:00
|
|
|
background-size: 40px 40px;
|
|
|
|
background-origin: content-box;
|
2014-01-16 09:36:31 -08:00
|
|
|
display: inline-block;
|
|
|
|
-moz-margin-start: -64px;
|
|
|
|
-moz-margin-end: 24px;
|
|
|
|
height: 40px;
|
|
|
|
vertical-align: middle;
|
|
|
|
width: 40px;
|
|
|
|
}
|
|
|
|
|
2014-01-31 13:54:13 -08:00
|
|
|
#errorPage.certerror #errorTitleIcon, #errorPage.blockedsite #errorTitleIcon {
|
|
|
|
background-size: 60px 60px;
|
|
|
|
width: 60px;
|
|
|
|
height: 60px;
|
|
|
|
-moz-margin-start: -80px;
|
|
|
|
-moz-margin-end: 10px;
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorPage.certerror #errorTitleIcon {
|
|
|
|
background-image: url("chrome://browser/skin/images/errorpage-cert-untrusted.png");
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorPage.blockedsite #errorTitleIcon {
|
|
|
|
background-image: url("chrome://browser/skin/images/errorpage-blocked-site.png");
|
|
|
|
}
|
|
|
|
|
2014-01-16 09:36:31 -08:00
|
|
|
@media (min-resolution: @min_res_140pc@) {
|
|
|
|
/* Load 140% image when scaled by 140% */
|
|
|
|
#errorTitleIcon {
|
|
|
|
background-image: url("chrome://browser/skin/images/errorpage-warning@1.4x.png");
|
|
|
|
}
|
2014-01-31 13:54:13 -08:00
|
|
|
|
|
|
|
#errorPage.certerror #errorTitleIcon {
|
|
|
|
background-image: url("chrome://browser/skin/images/errorpage-cert-untrusted@1.4x.png");
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorPage.blockedsite #errorTitleIcon {
|
|
|
|
background-image: url("chrome://browser/skin/images/errorpage-blocked-site@1.4x.png");
|
|
|
|
}
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|
|
|
|
|
2014-01-16 09:36:31 -08:00
|
|
|
@media (min-resolution: @min_res_180pc@) {
|
|
|
|
/* Load 180% image when scaled by 180% */
|
|
|
|
#errorTitleIcon {
|
|
|
|
background-image: url("chrome://browser/skin/images/errorpage-warning@1.8x.png");
|
|
|
|
}
|
|
|
|
|
2014-01-31 13:54:13 -08:00
|
|
|
#errorPage.certerror #errorTitleIcon {
|
|
|
|
background-image: url("chrome://browser/skin/images/errorpage-cert-untrusted@1.8x.png");
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorPage.blockedsite #errorTitleIcon {
|
|
|
|
background-image: url("chrome://browser/skin/images/errorpage-blocked-site@1.8x.png");
|
|
|
|
}
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|
|
|
|
|
2014-01-31 13:54:13 -08:00
|
|
|
@media (max-width: 760px) {
|
|
|
|
#errorPage.certerror #errorTitleIcon, #errorPage.blockedsite #errorTitleIcon {
|
|
|
|
display: block;
|
|
|
|
-moz-margin-start: 0;
|
|
|
|
-moz-margin-end: 0;
|
|
|
|
}
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
.errorTitleText {
|
2014-01-16 09:36:31 -08:00
|
|
|
padding: 0;
|
2013-02-12 12:51:25 -08:00
|
|
|
display: inline-block;
|
2014-01-16 09:36:31 -08:00
|
|
|
vertical-align: middle;
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|
|
|
|
|
2014-01-16 09:36:31 -08:00
|
|
|
#errorPageContainer > .section-header {
|
|
|
|
border-bottom: @metro_border_thin@ solid @border_color@;
|
|
|
|
margin-top: @metro_spacing_xxxnormal@;
|
|
|
|
padding-bottom: @metro_spacing_snormal@;
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorPageContainer > .section-details {
|
|
|
|
margin-top: @metro_spacing_xxxnormal@;
|
|
|
|
padding-bottom: @metro_spacing_xxxnormal@;
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorPageContainer > .section-footer {
|
|
|
|
padding-bottom: @metro_spacing_xxxnormal@;
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
#errorShortDesc > p:empty {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
|
|
|
#errorShortDesc > p {
|
|
|
|
overflow: auto;
|
|
|
|
padding-bottom: 1em;
|
2014-01-16 09:36:31 -08:00
|
|
|
margin: 0;
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
#errorPage.blockedsite #errorShortDesc > p {
|
|
|
|
font-weight: bold;
|
|
|
|
border-bottom: none;
|
|
|
|
padding-bottom: 0px;
|
|
|
|
}
|
|
|
|
|
2014-01-16 09:36:31 -08:00
|
|
|
|
|
|
|
#detailsLink {
|
|
|
|
color: black;
|
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
|
|
|
|
#detailsGrid {
|
|
|
|
display: table;
|
|
|
|
}
|
|
|
|
|
|
|
|
#detailsContainer {
|
|
|
|
display: table-row;
|
|
|
|
}
|
|
|
|
|
|
|
|
#detailsLinkLabel {
|
|
|
|
display: table-cell;
|
|
|
|
}
|
|
|
|
|
|
|
|
.detailsSpacer {
|
|
|
|
display: table-cell;
|
|
|
|
padding-right: 8px;
|
|
|
|
}
|
|
|
|
|
2013-02-12 12:51:25 -08:00
|
|
|
#securityOverrideDiv {
|
|
|
|
padding-top: 10px;
|
|
|
|
}
|
|
|
|
|
2014-01-31 13:54:13 -08:00
|
|
|
.expandable-section {
|
|
|
|
background: url("chrome://browser/skin/images/arrowdown-16.png") no-repeat left 0.6em;
|
2013-02-12 12:51:25 -08:00
|
|
|
background-size: 11px 11px;
|
|
|
|
}
|
|
|
|
|
2014-01-31 13:54:13 -08:00
|
|
|
.expandable-section[collapsed] {
|
2013-02-12 12:51:25 -08:00
|
|
|
background-image: url("chrome://browser/skin/images/arrowright-16.png");
|
|
|
|
}
|
|
|
|
|
2014-01-31 13:54:13 -08:00
|
|
|
.expandable-section[collapsed] > .expandable-content {
|
|
|
|
display: none;
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|
|
|
|
|
2014-01-31 13:54:13 -08:00
|
|
|
.expandable-section > .expandable-heading {
|
|
|
|
cursor: pointer;
|
|
|
|
-moz-padding-start: 15px;
|
|
|
|
-moz-user-select: none;
|
2013-02-12 12:51:25 -08:00
|
|
|
}
|