| OLD | NEW |
| (Empty) |
| 1 /* Copyright 2014 The Chromium Authors. All rights reserved. | |
| 2 Use of this source code is governed by a BSD-style license that can be | |
| 3 found in the LICENSE file. */ | |
| 4 | |
| 5 .bad-clock .icon { | |
| 6 background-image: -webkit-image-set( | |
| 7 url(images/1x/clock.png) 1x, | |
| 8 url(images/2x/clock.png) 2x); | |
| 9 } | |
| 10 | |
| 11 body.safe-browsing { | |
| 12 background-color: rgb(206, 52, 38); | |
| 13 color: white; | |
| 14 } | |
| 15 | |
| 16 button { | |
| 17 -webkit-user-select: none; | |
| 18 background: rgb(66, 133, 244); | |
| 19 border: 0; | |
| 20 border-radius: 2px; | |
| 21 box-sizing: border-box; | |
| 22 color: #fff; | |
| 23 cursor: pointer; | |
| 24 float: right; | |
| 25 font-size: .875em; | |
| 26 margin: 0; | |
| 27 padding: 10px 24px; | |
| 28 transition: box-shadow 200ms cubic-bezier(0.4, 0, 0.2, 1); | |
| 29 } | |
| 30 | |
| 31 [dir='rtl'] button { | |
| 32 float: left; | |
| 33 } | |
| 34 | |
| 35 button:active { | |
| 36 background: rgb(50, 102, 213); | |
| 37 outline: 0; | |
| 38 } | |
| 39 | |
| 40 button:hover { | |
| 41 box-shadow: 0 1px 3px rgba(0, 0, 0, .50); | |
| 42 } | |
| 43 | |
| 44 #debugging { | |
| 45 display: inline; | |
| 46 overflow: auto; | |
| 47 } | |
| 48 | |
| 49 .debugging-content { | |
| 50 line-height: 1em; | |
| 51 margin-bottom: 0; | |
| 52 margin-top: 1em; | |
| 53 } | |
| 54 | |
| 55 .debugging-content-fixed-width { | |
| 56 display: block; | |
| 57 font-family: monospace; | |
| 58 font-size: 1.2em; | |
| 59 margin-top: 0.5em; | |
| 60 } | |
| 61 | |
| 62 .debugging-title { | |
| 63 font-weight: bold; | |
| 64 } | |
| 65 | |
| 66 #details { | |
| 67 color: #696969; | |
| 68 margin: 0 0 50px; | |
| 69 } | |
| 70 | |
| 71 #details p:not(:first-of-type) { | |
| 72 margin-top: 20px; | |
| 73 } | |
| 74 | |
| 75 #details-button:hover { | |
| 76 box-shadow: inherit; | |
| 77 text-decoration: underline; | |
| 78 } | |
| 79 | |
| 80 .error-code { | |
| 81 color: #646464; | |
| 82 font-size: .86667em; | |
| 83 text-transform: uppercase; | |
| 84 } | |
| 85 | |
| 86 #error-debugging-info { | |
| 87 font-size: 0.8em; | |
| 88 } | |
| 89 | |
| 90 h1 { | |
| 91 color: #333; | |
| 92 font-size: 1.6em; | |
| 93 font-weight: normal; | |
| 94 line-height: 1.25em; | |
| 95 margin-bottom: 16px; | |
| 96 } | |
| 97 | |
| 98 h2 { | |
| 99 font-size: 1.2em; | |
| 100 font-weight: normal; | |
| 101 } | |
| 102 | |
| 103 .icon { | |
| 104 height: 72px; | |
| 105 margin: 0 0 40px; | |
| 106 width: 72px; | |
| 107 } | |
| 108 | |
| 109 input[type=checkbox] { | |
| 110 opacity: 0; | |
| 111 } | |
| 112 | |
| 113 input[type=checkbox]:focus ~ .checkbox { | |
| 114 outline: -webkit-focus-ring-color auto 5px; | |
| 115 } | |
| 116 | |
| 117 .interstitial-wrapper { | |
| 118 box-sizing: border-box; | |
| 119 font-size: 1em; | |
| 120 line-height: 1.6em; | |
| 121 margin: 100px auto 0; | |
| 122 max-width: 600px; | |
| 123 width: 100%; | |
| 124 } | |
| 125 | |
| 126 #main-message > p { | |
| 127 display: inline; | |
| 128 } | |
| 129 | |
| 130 #extended-reporting-opt-in { | |
| 131 font-size: .875em; | |
| 132 margin-top: 39px; | |
| 133 } | |
| 134 | |
| 135 #extended-reporting-opt-in label { | |
| 136 position: relative; | |
| 137 display: flex; | |
| 138 align-items: flex-start; | |
| 139 } | |
| 140 | |
| 141 .nav-wrapper { | |
| 142 margin-top: 51px; | |
| 143 } | |
| 144 | |
| 145 .nav-wrapper::after { | |
| 146 clear: both; | |
| 147 content: ''; | |
| 148 display: table; | |
| 149 width: 100%; | |
| 150 } | |
| 151 | |
| 152 .safe-browsing :-webkit-any( | |
| 153 a, #details, #details-button, h1, h2, p, .small-link) { | |
| 154 color: white; | |
| 155 } | |
| 156 | |
| 157 .safe-browsing button { | |
| 158 background-color: rgba(255, 255, 255, .15); | |
| 159 } | |
| 160 | |
| 161 .safe-browsing button:active { | |
| 162 background-color: rgba(255, 255, 255, .25); | |
| 163 } | |
| 164 | |
| 165 .safe-browsing button:hover { | |
| 166 box-shadow: 0 2px 3px rgba(0, 0, 0, .5); | |
| 167 } | |
| 168 | |
| 169 .safe-browsing .error-code { | |
| 170 display: none; | |
| 171 } | |
| 172 | |
| 173 .safe-browsing .icon { | |
| 174 background-image: -webkit-image-set( | |
| 175 url(images/1x/triangle_white.png) 1x, | |
| 176 url(images/2x/triangle_white.png) 2x); | |
| 177 } | |
| 178 | |
| 179 .small-link { | |
| 180 color: #696969; | |
| 181 font-size: .875em; | |
| 182 } | |
| 183 | |
| 184 .ssl .icon { | |
| 185 background-image: -webkit-image-set( | |
| 186 url(images/1x/triangle_red.png) 1x, | |
| 187 url(images/2x/triangle_red.png) 2x); | |
| 188 } | |
| 189 | |
| 190 .captive-portal .icon { | |
| 191 background-image: -webkit-image-set( | |
| 192 url(images/1x/captive_portal_page_icon.png) 1x, | |
| 193 url(images/2x/captive_portal_page_icon.png) 2x); | |
| 194 } | |
| 195 | |
| 196 .checkboxes { | |
| 197 flex: 0 0 24px; | |
| 198 } | |
| 199 | |
| 200 .checkbox { | |
| 201 background: transparent; | |
| 202 border: 1px solid white; | |
| 203 border-radius: 2px; | |
| 204 display: block; | |
| 205 height: 14px; | |
| 206 left: 0; | |
| 207 position: absolute; | |
| 208 right: 0; | |
| 209 top: 3px; | |
| 210 width: 14px; | |
| 211 } | |
| 212 | |
| 213 .checkbox::before { | |
| 214 background: transparent; | |
| 215 border: 2px solid white; | |
| 216 border-right-width: 0; | |
| 217 border-top-width: 0; | |
| 218 content: ''; | |
| 219 height: 4px; | |
| 220 left: 2px; | |
| 221 opacity: 0; | |
| 222 position: absolute; | |
| 223 top: 3px; | |
| 224 transform: rotate(-45deg); | |
| 225 width: 9px; | |
| 226 } | |
| 227 | |
| 228 .ssl-opt-in .checkbox { | |
| 229 border-color: #696969; | |
| 230 } | |
| 231 | |
| 232 .ssl-opt-in .checkbox::before { | |
| 233 border-color: #696969; | |
| 234 } | |
| 235 | |
| 236 input[type=checkbox]:checked ~ .checkbox::before { | |
| 237 opacity: 1; | |
| 238 } | |
| 239 | |
| 240 @media (max-width: 700px) { | |
| 241 .interstitial-wrapper { | |
| 242 padding: 0 10%; | |
| 243 } | |
| 244 | |
| 245 #error-debugging-info { | |
| 246 overflow: auto; | |
| 247 } | |
| 248 } | |
| 249 | |
| 250 @media (max-height: 600px) { | |
| 251 .error-code { | |
| 252 margin-top: 10px; | |
| 253 } | |
| 254 } | |
| 255 | |
| 256 @media (max-width: 420px) { | |
| 257 button, | |
| 258 [dir='rtl'] button, | |
| 259 .small-link { | |
| 260 float: none; | |
| 261 font-size: .825em; | |
| 262 font-weight: 400; | |
| 263 margin: 0; | |
| 264 text-transform: uppercase; | |
| 265 width: 100%; | |
| 266 } | |
| 267 | |
| 268 #details { | |
| 269 margin: 20px 0 20px 0; | |
| 270 } | |
| 271 | |
| 272 #details p:not(:first-of-type) { | |
| 273 margin-top: 10px; | |
| 274 } | |
| 275 | |
| 276 #details-button { | |
| 277 display: block; | |
| 278 margin-top: 20px; | |
| 279 text-align: center; | |
| 280 width: 100%; | |
| 281 } | |
| 282 | |
| 283 .interstitial-wrapper { | |
| 284 padding: 0 5%; | |
| 285 } | |
| 286 | |
| 287 #extended-reporting-opt-in { | |
| 288 margin-top: 24px; | |
| 289 } | |
| 290 | |
| 291 .nav-wrapper { | |
| 292 margin-top: 30px; | |
| 293 } | |
| 294 } | |
| 295 | |
| 296 /** | |
| 297 * Mobile specific styling. | |
| 298 * Navigation buttons are anchored to the bottom of the screen. | |
| 299 * Details message replaces the top content in its own scrollable area. | |
| 300 */ | |
| 301 | |
| 302 @media (max-width: 420px) { | |
| 303 #details-button { | |
| 304 border: 0; | |
| 305 margin: 28px 0 0; | |
| 306 } | |
| 307 | |
| 308 .secondary-button { | |
| 309 -webkit-margin-end: 0; | |
| 310 margin-top: 16px; | |
| 311 } | |
| 312 } | |
| 313 | |
| 314 /* Fixed nav. */ | |
| 315 @media (min-width: 240px) and (max-width: 420px) and | |
| 316 (min-height: 401px), | |
| 317 (min-width: 421px) and (min-height: 240px) and | |
| 318 (max-height: 560px) { | |
| 319 body .nav-wrapper { | |
| 320 background: #f7f7f7; | |
| 321 bottom: 0; | |
| 322 box-shadow: 0 -22px 40px rgb(247, 247, 247); | |
| 323 margin: 0; | |
| 324 max-width: 736px; | |
| 325 padding-left: 0px; | |
| 326 padding-right: 48px; | |
| 327 position: fixed; | |
| 328 z-index: 2; | |
| 329 } | |
| 330 | |
| 331 body.safe-browsing .nav-wrapper { | |
| 332 background: rgb(206, 52, 38); | |
| 333 box-shadow: 0 -22px 40px rgb(206, 52, 38); | |
| 334 } | |
| 335 | |
| 336 .interstitial-wrapper { | |
| 337 max-width: 736px; | |
| 338 } | |
| 339 | |
| 340 #details, | |
| 341 #main-content { | |
| 342 padding-bottom: 40px; | |
| 343 } | |
| 344 | |
| 345 #details { | |
| 346 padding-top: 5.5vh; | |
| 347 } | |
| 348 } | |
| 349 | |
| 350 @media (max-width: 420px) and (orientation: portrait), | |
| 351 (max-height: 560px) { | |
| 352 body { | |
| 353 margin: 0 auto; | |
| 354 } | |
| 355 | |
| 356 button, | |
| 357 [dir='rtl'] button, | |
| 358 button.small-link { | |
| 359 font-family: Roboto-Regular,Helvetica; | |
| 360 font-size: .933em; | |
| 361 font-weight: 600; | |
| 362 margin: 6px 0; | |
| 363 text-transform: uppercase; | |
| 364 transform: translatez(0); | |
| 365 } | |
| 366 | |
| 367 .nav-wrapper { | |
| 368 box-sizing: border-box; | |
| 369 padding-bottom: 8px; | |
| 370 width: 100%; | |
| 371 } | |
| 372 | |
| 373 .error-code { | |
| 374 margin-top: 0; | |
| 375 } | |
| 376 | |
| 377 #details { | |
| 378 box-sizing: border-box; | |
| 379 height: auto; | |
| 380 margin: 0; | |
| 381 opacity: 1; | |
| 382 transition: opacity 250ms cubic-bezier(0.4, 0, 0.2, 1); | |
| 383 } | |
| 384 | |
| 385 #details.hidden, | |
| 386 #main-content.hidden { | |
| 387 display: block; | |
| 388 height: 0; | |
| 389 opacity: 0; | |
| 390 overflow: hidden; | |
| 391 padding-bottom: 0; | |
| 392 transition: none; | |
| 393 } | |
| 394 | |
| 395 #details-button { | |
| 396 padding-bottom: 16px; | |
| 397 padding-top: 16px; | |
| 398 } | |
| 399 | |
| 400 h1 { | |
| 401 font-size: 1.5em; | |
| 402 margin-bottom: 8px; | |
| 403 } | |
| 404 | |
| 405 .icon { | |
| 406 margin-bottom: 5.69vh; | |
| 407 } | |
| 408 | |
| 409 .interstitial-wrapper { | |
| 410 box-sizing: border-box; | |
| 411 margin: 7vh auto 12px; | |
| 412 padding: 0 24px; | |
| 413 position: relative; | |
| 414 } | |
| 415 | |
| 416 .interstitial-wrapper p { | |
| 417 font-size: .95em; | |
| 418 line-height: 1.61em; | |
| 419 margin-top: 8px; | |
| 420 } | |
| 421 | |
| 422 #main-content { | |
| 423 margin: 0; | |
| 424 transition: opacity 100ms cubic-bezier(0.4, 0, 0.2, 1); | |
| 425 } | |
| 426 | |
| 427 .small-link { | |
| 428 border: 0; | |
| 429 } | |
| 430 | |
| 431 .suggested-left > #control-buttons, | |
| 432 .suggested-right > #control-buttons { | |
| 433 float: none; | |
| 434 margin: 0; | |
| 435 } | |
| 436 } | |
| 437 | |
| 438 @media (min-width: 421px) and (min-height: 500px) and (max-height: 560px) { | |
| 439 .interstitial-wrapper { | |
| 440 margin-top: 10vh; | |
| 441 } | |
| 442 } | |
| 443 | |
| 444 @media (min-height: 400px) and (orientation:portrait) { | |
| 445 .interstitial-wrapper { | |
| 446 margin-bottom: 145px; | |
| 447 } | |
| 448 } | |
| 449 | |
| 450 @media (min-height: 299px) { | |
| 451 .nav-wrapper { | |
| 452 padding-bottom: 16px; | |
| 453 } | |
| 454 } | |
| 455 | |
| 456 @media (min-height: 500px) and (max-height: 650px) and (max-width: 414px) and | |
| 457 (orientation: portrait) { | |
| 458 .interstitial-wrapper { | |
| 459 margin-top: 7vh; | |
| 460 } | |
| 461 } | |
| 462 | |
| 463 @media (min-height: 650px) and (max-width: 414px) and (orientation: portrait) { | |
| 464 .interstitial-wrapper { | |
| 465 margin-top: 10vh; | |
| 466 } | |
| 467 } | |
| 468 | |
| 469 /* Small mobile screens. No fixed nav. */ | |
| 470 @media (max-height: 400px) and (orientation: portrait), | |
| 471 (max-height: 239px) and (orientation: landscape), | |
| 472 (max-width: 419px) and (max-height: 399px) { | |
| 473 .interstitial-wrapper { | |
| 474 display: flex; | |
| 475 flex-direction: column; | |
| 476 margin-bottom: 0; | |
| 477 } | |
| 478 | |
| 479 #details { | |
| 480 flex: 1 1 auto; | |
| 481 order: 0; | |
| 482 } | |
| 483 | |
| 484 #main-content { | |
| 485 flex: 1 1 auto; | |
| 486 order: 0; | |
| 487 } | |
| 488 | |
| 489 .nav-wrapper { | |
| 490 flex: 0 1 auto; | |
| 491 margin-top: 8px; | |
| 492 order: 1; | |
| 493 padding-left: 0; | |
| 494 padding-right: 0; | |
| 495 position: relative; | |
| 496 width: 100%; | |
| 497 } | |
| 498 } | |
| 499 | |
| 500 @media (max-width: 239px) and (orientation: portrait) { | |
| 501 .nav-wrapper { | |
| 502 padding-left: 0; | |
| 503 padding-right: 0; | |
| 504 } | |
| 505 } | |
| OLD | NEW |