browser/metro/theme/netError.css

Wed, 31 Dec 2014 06:55:50 +0100

author
Michael Schloh von Bennewitz <michael@schloh.com>
date
Wed, 31 Dec 2014 06:55:50 +0100
changeset 2
7e26c7da4463
permissions
-rw-r--r--

Added tag UPSTREAM_283F7C6 for changeset ca08bd8f51b2

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 for mobile by: Wes Johnston <wjohnston@mozilla.com>
michael@0 11 */
michael@0 12
michael@0 13 %filter substitution
michael@0 14 %include defines.inc
michael@0 15 %include platform.css
michael@0 16
michael@0 17 /*
michael@0 18 * In-browser content styles,
michael@0 19 * XXX: should be extracted and consolidated into a shared stylesheet for all in-browser content
michael@0 20 */
michael@0 21 body {
michael@0 22 background-color: #F4F4F4;
michael@0 23 color: rgb(51,51,51);
michael@0 24 font-family: "Segoe UI", sans-serif;
michael@0 25 font-size: @font_normal@;
michael@0 26 line-height: 23px;
michael@0 27 }
michael@0 28
michael@0 29 h1 {
michael@0 30 font-size: @metro_font_xlarge@;
michael@0 31 font-weight: normal;
michael@0 32 line-height: @metro_spacing_large@;
michael@0 33 }
michael@0 34 h2 {
michael@0 35 font-size: @metro_font_large@;
michael@0 36 line-height: @metro_spacing_xxxnormal@;
michael@0 37 font-weight: normal;
michael@0 38 }
michael@0 39 h3 {
michael@0 40 font-size: @font_normal@;
michael@0 41 line-height: @metro_spacing_xxnormal@;
michael@0 42 }
michael@0 43 h4 {
michael@0 44 font-size: @font_normal@;
michael@0 45 line-height: @metro_spacing_xxnormal@;
michael@0 46 font-style: italic;
michael@0 47 display: inline;
michael@0 48 }
michael@0 49
michael@0 50 /*
michael@0 51 * Net error page styles
michael@0 52 */
michael@0 53
michael@0 54 a {
michael@0 55 text-decoration: none;
michael@0 56 }
michael@0 57
michael@0 58 ul {
michael@0 59 margin: 0px;
michael@0 60 padding: 0px 0px 0px 1em;
michael@0 61 }
michael@0 62
michael@0 63 li {
michael@0 64 margin: 0px;
michael@0 65 padding: 8px 0px;
michael@0 66 }
michael@0 67
michael@0 68 #errorPage.certerror, #errorPage.blockedsite {
michael@0 69 background-color: @error_page_background_color@;
michael@0 70 }
michael@0 71
michael@0 72 #errorPage button {
michael@0 73 margin: 5px 10px 5px 0;
michael@0 74 }
michael@0 75
michael@0 76 #errorPage > .top-decoration {
michael@0 77 position: absolute;
michael@0 78 top: 0;
michael@0 79 left: 0;
michael@0 80 width: 100%;
michael@0 81 height: 25px;
michael@0 82 }
michael@0 83
michael@0 84 #errorPage.certerror > .top-decoration {
michael@0 85 background: linear-gradient(-45deg,
michael@0 86 @error_page_background_color@ 25%,
michael@0 87 @error_page_warning_color@ 25%,
michael@0 88 @error_page_warning_color@ 50%,
michael@0 89 @error_page_background_color@ 50%,
michael@0 90 @error_page_background_color@ 75%,
michael@0 91 @error_page_warning_color@ 75%,
michael@0 92 @error_page_warning_color@) repeat scroll 0% 0% /
michael@0 93 80px 80px transparent;
michael@0 94 }
michael@0 95
michael@0 96 #errorPage.blockedsite > .top-decoration {
michael@0 97 background: linear-gradient(-45deg,
michael@0 98 @error_page_background_color@ 25%,
michael@0 99 @error_page_error_color@ 25%,
michael@0 100 @error_page_error_color@ 50%,
michael@0 101 @error_page_background_color@ 50%,
michael@0 102 @error_page_background_color@ 75%,
michael@0 103 @error_page_error_color@ 75%,
michael@0 104 @error_page_error_color@) repeat scroll 0% 0% /
michael@0 105 80px 80px transparent;
michael@0 106 }
michael@0 107
michael@0 108 #errorPage #cert_domain_link {
michael@0 109 color: #0095dd;
michael@0 110 }
michael@0 111
michael@0 112 #errorPage.certerror #errorPageContainer > .section-header,
michael@0 113 #errorPage.blockedsite #errorPageContainer > .section-header {
michael@0 114 border-bottom: @metro_border_thin@ solid rgb(133,137,140);
michael@0 115 }
michael@0 116
michael@0 117 #errorPageContainer {
michael@0 118 max-width: 628px;
michael@0 119 margin-left: auto;
michael@0 120 margin-right: auto;
michael@0 121 margin-top: 60px;
michael@0 122 -moz-padding-start: 40px;
michael@0 123 -moz-padding-end: 24px;
michael@0 124 }
michael@0 125
michael@0 126 #errorTitleIcon {
michael@0 127 background-image: url("chrome://browser/skin/images/errorpage-warning.png");
michael@0 128 background-position: center center;
michael@0 129 background-repeat: no-repeat;
michael@0 130 background-size: 40px 40px;
michael@0 131 background-origin: content-box;
michael@0 132 display: inline-block;
michael@0 133 -moz-margin-start: -64px;
michael@0 134 -moz-margin-end: 24px;
michael@0 135 height: 40px;
michael@0 136 vertical-align: middle;
michael@0 137 width: 40px;
michael@0 138 }
michael@0 139
michael@0 140 #errorPage.certerror #errorTitleIcon, #errorPage.blockedsite #errorTitleIcon {
michael@0 141 background-size: 60px 60px;
michael@0 142 width: 60px;
michael@0 143 height: 60px;
michael@0 144 -moz-margin-start: -80px;
michael@0 145 -moz-margin-end: 10px;
michael@0 146 }
michael@0 147
michael@0 148 #errorPage.certerror #errorTitleIcon {
michael@0 149 background-image: url("chrome://browser/skin/images/errorpage-cert-untrusted.png");
michael@0 150 }
michael@0 151
michael@0 152 #errorPage.blockedsite #errorTitleIcon {
michael@0 153 background-image: url("chrome://browser/skin/images/errorpage-blocked-site.png");
michael@0 154 }
michael@0 155
michael@0 156 @media (min-resolution: @min_res_140pc@) {
michael@0 157 /* Load 140% image when scaled by 140% */
michael@0 158 #errorTitleIcon {
michael@0 159 background-image: url("chrome://browser/skin/images/errorpage-warning@1.4x.png");
michael@0 160 }
michael@0 161
michael@0 162 #errorPage.certerror #errorTitleIcon {
michael@0 163 background-image: url("chrome://browser/skin/images/errorpage-cert-untrusted@1.4x.png");
michael@0 164 }
michael@0 165
michael@0 166 #errorPage.blockedsite #errorTitleIcon {
michael@0 167 background-image: url("chrome://browser/skin/images/errorpage-blocked-site@1.4x.png");
michael@0 168 }
michael@0 169 }
michael@0 170
michael@0 171 @media (min-resolution: @min_res_180pc@) {
michael@0 172 /* Load 180% image when scaled by 180% */
michael@0 173 #errorTitleIcon {
michael@0 174 background-image: url("chrome://browser/skin/images/errorpage-warning@1.8x.png");
michael@0 175 }
michael@0 176
michael@0 177 #errorPage.certerror #errorTitleIcon {
michael@0 178 background-image: url("chrome://browser/skin/images/errorpage-cert-untrusted@1.8x.png");
michael@0 179 }
michael@0 180
michael@0 181 #errorPage.blockedsite #errorTitleIcon {
michael@0 182 background-image: url("chrome://browser/skin/images/errorpage-blocked-site@1.8x.png");
michael@0 183 }
michael@0 184 }
michael@0 185
michael@0 186 @media (max-width: 760px) {
michael@0 187 #errorPage.certerror #errorTitleIcon, #errorPage.blockedsite #errorTitleIcon {
michael@0 188 display: block;
michael@0 189 -moz-margin-start: 0;
michael@0 190 -moz-margin-end: 0;
michael@0 191 }
michael@0 192 }
michael@0 193
michael@0 194 .errorTitleText {
michael@0 195 padding: 0;
michael@0 196 display: inline-block;
michael@0 197 vertical-align: middle;
michael@0 198 }
michael@0 199
michael@0 200 #errorPageContainer > .section-header {
michael@0 201 border-bottom: @metro_border_thin@ solid @border_color@;
michael@0 202 margin-top: @metro_spacing_xxxnormal@;
michael@0 203 padding-bottom: @metro_spacing_snormal@;
michael@0 204 }
michael@0 205
michael@0 206 #errorPageContainer > .section-details {
michael@0 207 margin-top: @metro_spacing_xxxnormal@;
michael@0 208 padding-bottom: @metro_spacing_xxxnormal@;
michael@0 209 }
michael@0 210
michael@0 211 #errorPageContainer > .section-footer {
michael@0 212 padding-bottom: @metro_spacing_xxxnormal@;
michael@0 213 }
michael@0 214
michael@0 215 #errorShortDesc > p:empty {
michael@0 216 display: none;
michael@0 217 }
michael@0 218
michael@0 219 #errorShortDesc > p {
michael@0 220 overflow: auto;
michael@0 221 padding-bottom: 1em;
michael@0 222 margin: 0;
michael@0 223 }
michael@0 224
michael@0 225 #errorPage.blockedsite #errorShortDesc > p {
michael@0 226 font-weight: bold;
michael@0 227 border-bottom: none;
michael@0 228 padding-bottom: 0px;
michael@0 229 }
michael@0 230
michael@0 231
michael@0 232 #detailsLink {
michael@0 233 color: black;
michael@0 234 display: table-row;
michael@0 235 }
michael@0 236
michael@0 237 #detailsGrid {
michael@0 238 display: table;
michael@0 239 }
michael@0 240
michael@0 241 #detailsContainer {
michael@0 242 display: table-row;
michael@0 243 }
michael@0 244
michael@0 245 #detailsLinkLabel {
michael@0 246 display: table-cell;
michael@0 247 }
michael@0 248
michael@0 249 .detailsSpacer {
michael@0 250 display: table-cell;
michael@0 251 padding-right: 8px;
michael@0 252 }
michael@0 253
michael@0 254 #securityOverrideDiv {
michael@0 255 padding-top: 10px;
michael@0 256 }
michael@0 257
michael@0 258 .expandable-section {
michael@0 259 background: url("chrome://browser/skin/images/arrowdown-16.png") no-repeat left 0.6em;
michael@0 260 background-size: 11px 11px;
michael@0 261 }
michael@0 262
michael@0 263 .expandable-section[collapsed] {
michael@0 264 background-image: url("chrome://browser/skin/images/arrowright-16.png");
michael@0 265 }
michael@0 266
michael@0 267 .expandable-section[collapsed] > .expandable-content {
michael@0 268 display: none;
michael@0 269 }
michael@0 270
michael@0 271 .expandable-section > .expandable-heading {
michael@0 272 cursor: pointer;
michael@0 273 -moz-padding-start: 15px;
michael@0 274 -moz-user-select: none;
michael@0 275 }

mercurial