Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(65)

Side by Side Diff: chrome/browser/resources/security_warnings/interstitial_v2.css

Issue 935663004: Add checkbox for reporting invalid TLS/SSL cert chains (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add report-sending callback for browser tests Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* Copyright 2014 The Chromium Authors. All rights reserved. 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 2 Use of this source code is governed by a BSD-style license that can be
3 found in the LICENSE file. */ 3 found in the LICENSE file. */
4 4
5 a { 5 a {
6 color: #585858; 6 color: #585858;
7 } 7 }
8 8
9 .bad-clock .icon { 9 .bad-clock .icon {
10 background-image: -webkit-image-set( 10 background-image: -webkit-image-set(
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 134
135 .interstitial-wrapper { 135 .interstitial-wrapper {
136 box-sizing: border-box; 136 box-sizing: border-box;
137 font-size: 1em; 137 font-size: 1em;
138 line-height: 1.6em; 138 line-height: 1.6em;
139 margin: 100px auto 0; 139 margin: 100px auto 0;
140 max-width: 600px; 140 max-width: 600px;
141 width: 100%; 141 width: 100%;
142 } 142 }
143 143
144 #malware-opt-in { 144 #extended-reporting-opt-in {
145 font-size: .875em; 145 font-size: .875em;
146 margin-top: 39px; 146 margin-top: 39px;
147 } 147 }
148 148
149 .nav-wrapper { 149 .nav-wrapper {
150 margin-top: 51px; 150 margin-top: 51px;
151 } 151 }
152 152
153 .nav-wrapper::after { 153 .nav-wrapper::after {
154 clear: both; 154 clear: both;
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
214 position: relative; 214 position: relative;
215 width: 16px; 215 width: 16px;
216 } 216 }
217 217
218 [dir='rtl'] .styled-checkbox { 218 [dir='rtl'] .styled-checkbox {
219 float: right; 219 float: right;
220 } 220 }
221 221
222 .styled-checkbox label { 222 .styled-checkbox label {
223 background: transparent; 223 background: transparent;
224 border: white solid 1px;
225 border-radius: 2px; 224 border-radius: 2px;
226 height: 14px; 225 height: 14px;
227 left: 0; 226 left: 0;
228 position: absolute; 227 position: absolute;
229 right: 0; 228 right: 0;
230 top: 0; 229 top: 0;
231 width: 14px; 230 width: 14px;
232 } 231 }
233 232
234 .styled-checkbox .checkbox-tick { 233 .styled-checkbox .checkbox-tick {
235 background: transparent; 234 background: transparent;
236 border: 2px solid white;
237 border-right-width: 0;
238 border-top-width: 0;
239 content: ''; 235 content: '';
240 height: 4px; 236 height: 4px;
241 left: 2px; 237 left: 2px;
242 opacity: 0.3; 238 opacity: 0.3;
243 position: absolute; 239 position: absolute;
244 top: 3px; 240 top: 3px;
245 transform: rotate(-45deg); 241 transform: rotate(-45deg);
246 width: 9px; 242 width: 9px;
247 } 243 }
248 244
245 .safe-browsing-opt-in .styled-checkbox label {
246 border: white solid 1px;
247 }
248
249 .safe-browsing-opt-in .styled-checkbox .checkbox-tick {
250 border: white solid 1px;
251 border-right-width: 0;
252 border-top-width: 0;
253 }
254
255 .ssl-opt-in .styled-checkbox label {
256 border: #696969 solid 1px;
257 }
258
259 .ssl-opt-in .styled-checkbox .checkbox-tick {
260 border: #696969 solid 1px;
261 border-right-width: 0;
262 border-top-width: 0;
263 }
264
249 .styled-checkbox input[type=checkbox]:checked ~ .checkbox-tick { 265 .styled-checkbox input[type=checkbox]:checked ~ .checkbox-tick {
250 opacity: 1; 266 opacity: 1;
251 } 267 }
252 268
253 @media (max-width: 700px) { 269 @media (max-width: 700px) {
254 .interstitial-wrapper { 270 .interstitial-wrapper {
255 padding: 0 10%; 271 padding: 0 10%;
256 } 272 }
257 } 273 }
258 274
(...skipping 25 matching lines...) Expand all
284 #details-button { 300 #details-button {
285 display: block; 301 display: block;
286 text-align: center; 302 text-align: center;
287 width: 100%; 303 width: 100%;
288 } 304 }
289 305
290 .interstitial-wrapper { 306 .interstitial-wrapper {
291 padding: 0 5%; 307 padding: 0 5%;
292 } 308 }
293 309
294 #malware-opt-in { 310 #extended-reporting-opt-in {
295 margin-top: 24px; 311 margin-top: 24px;
296 } 312 }
297 313
298 .nav-wrapper { 314 .nav-wrapper {
299 margin-top: 30px; 315 margin-top: 30px;
300 } 316 }
301 } 317 }
302 318
303 /** 319 /**
304 * Mobile specific styling. 320 * Mobile specific styling.
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
412 } 428 }
413 429
414 .suggested-left > #control-buttons, 430 .suggested-left > #control-buttons,
415 .suggested-right > #control-buttons { 431 .suggested-right > #control-buttons {
416 float: none; 432 float: none;
417 margin: 0; 433 margin: 0;
418 } 434 }
419 } 435 }
420 436
421 @media (min-height: 400px) and (orientation:portrait) { 437 @media (min-height: 400px) and (orientation:portrait) {
422 body:not(.safe-browsing-has-checkbox) .interstitial-wrapper { 438 body:not(.extended-reporting-has-checkbox) .interstitial-wrapper {
423 margin-bottom: 145px; 439 margin-bottom: 145px;
424 } 440 }
425 } 441 }
426 442
427 @media (min-height: 299px) and (orientation:portrait) { 443 @media (min-height: 299px) and (orientation:portrait) {
428 .nav-wrapper { 444 .nav-wrapper {
429 padding-bottom: 16px; 445 padding-bottom: 16px;
430 } 446 }
431 } 447 }
432 448
(...skipping 13 matching lines...) Expand all
446 .icon { 462 .icon {
447 margin-bottom: 24px; 463 margin-bottom: 24px;
448 } 464 }
449 465
450 .nav-wrapper { 466 .nav-wrapper {
451 padding: 16px 24px 24px; 467 padding: 16px 24px 24px;
452 } 468 }
453 } 469 }
454 470
455 @media (min-height: 500px) and (max-width: 414px) and (orientation: portrait) { 471 @media (min-height: 500px) and (max-width: 414px) and (orientation: portrait) {
456 :not(.safe-browsing-has-checkbox) .interstitial-wrapper { 472 :not(.extended-reporting-has-checkbox) .interstitial-wrapper {
457 margin-top: 96px; 473 margin-top: 96px;
458 } 474 }
459 } 475 }
460 476
461 /* Phablet sizing */ 477 /* Phablet sizing */
462 @media (min-width: 375px) and (min-height: 641px) and 478 @media (min-width: 375px) and (min-height: 641px) and
463 (max-width: 414px) and (orientation: portrait) { 479 (max-width: 414px) and (orientation: portrait) {
464 button, 480 button,
465 [dir='rtl'] button, 481 [dir='rtl'] button,
466 .small-link { 482 .small-link {
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
527 } 543 }
528 544
529 .interstitial-wrapper { 545 .interstitial-wrapper {
530 margin-bottom: 70px; 546 margin-bottom: 70px;
531 } 547 }
532 548
533 .nav-wrapper { 549 .nav-wrapper {
534 margin-top: 0; 550 margin-top: 0;
535 } 551 }
536 552
537 #malware-opt-in { 553 #extended-reporting-opt-in {
538 margin-top: 0; 554 margin-top: 0;
539 } 555 }
540 556
541 #reload-button, 557 #reload-button,
542 #primary-button { 558 #primary-button {
543 margin: 6px 0; 559 margin: 6px 0;
544 } 560 }
545 } 561 }
546 562
547 /* Phablet landscape */ 563 /* Phablet landscape */
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
602 .nav-wrapper { 618 .nav-wrapper {
603 flex: 0 1 auto; 619 flex: 0 1 auto;
604 margin-top: 0; 620 margin-top: 0;
605 order: 1; 621 order: 1;
606 padding-left: 0; 622 padding-left: 0;
607 padding-right: 0; 623 padding-right: 0;
608 position: relative; 624 position: relative;
609 } 625 }
610 } 626 }
611 627
612 /* Malware opt-in. No fixed nav. */ 628 /* Extended reporting opt-in. No fixed nav. */
613 @media (max-height: 600px) and (orientation: portrait), 629 @media (max-height: 600px) and (orientation: portrait),
614 (max-height: 360px) and (orientation: landscape) { 630 (max-height: 360px) and (orientation: landscape) {
615 .safe-browsing-has-checkbox .interstitial-wrapper { 631 .extended-reporting-has-checkbox .interstitial-wrapper {
616 display: flex; 632 display: flex;
617 flex-direction: column; 633 flex-direction: column;
618 margin-bottom: 0; 634 margin-bottom: 0;
619 } 635 }
620 636
621 .safe-browsing-has-checkbox #details { 637 .extended-reporting-has-checkbox #details {
622 flex: 1 1 auto; 638 flex: 1 1 auto;
623 order: 0; 639 order: 0;
624 } 640 }
625 641
626 .safe-browsing-has-checkbox #main-content { 642 .extended-reporting-has-checkbox #main-content {
627 flex: 1 1 auto; 643 flex: 1 1 auto;
628 order: 0; 644 order: 0;
629 } 645 }
630 646
631 .safe-browsing-has-checkbox #malware-opt-in { 647 .extended-reporting-has-checkbox #extended-reporting-opt-in {
632 margin-bottom: 8px; 648 margin-bottom: 8px;
633 } 649 }
634 650
635 body.safe-browsing-has-checkbox .nav-wrapper { 651 body.extended-reporting-has-checkbox .nav-wrapper {
636 flex: 0 1 auto; 652 flex: 0 1 auto;
637 margin-top: 0; 653 margin-top: 0;
638 order: 1; 654 order: 1;
639 padding-left: 0; 655 padding-left: 0;
640 padding-right: 0; 656 padding-right: 0;
641 position: relative; 657 position: relative;
642 } 658 }
643 } 659 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698