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

Side by Side Diff: chrome/browser/resources/chromeos/login/oobe.css

Issue 10532048: [cros] Initial WebRTC-enabled implementation of user image picker on OOBE. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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 | Annotate | Revision Log
OLDNEW
1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 /* Copyright (c) 2012 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 * This is the stylesheet used by the Out of the box experience (OOBE) flow, 5 * This is the stylesheet used by the Out of the box experience (OOBE) flow,
6 * sign in and lock screens. 6 * sign in and lock screens.
7 */ 7 */
8 8
9 html, 9 html,
10 body { 10 body {
(...skipping 468 matching lines...) Expand 10 before | Expand all | Expand 10 after
479 top: 14px; 479 top: 14px;
480 } 480 }
481 481
482 #user-image-preview { 482 #user-image-preview {
483 border-radius: 4px; 483 border-radius: 4px;
484 float: right; 484 float: right;
485 margin: 4px; 485 margin: 4px;
486 max-width: 220px; 486 max-width: 220px;
487 } 487 }
488 488
489 /**
490 * #user-image-preview can have the following classes:
491 * .default-image: one of the default images is selected (including the grey
492 * silhouette);
493 * .profile-image: profile image is selected;
494 * .profile-image-loading: profile image is being loaded;
495 * .online: camera is streaming video;
Nikita (slow) 2012/06/07 15:26:55 How online / live are different?
Ivan Korotkov 2012/06/09 14:19:01 .online means that camera is working (i.e. present
496 * .camera: camera (live or photo) is selected;
497 * .live: camera is in live mode (no photo taken yet/last photo removed).
498 */
499
489 html[dir=rtl] #user-image-preview { 500 html[dir=rtl] #user-image-preview {
490 float: left; 501 float: left;
491 } 502 }
492 503
493 #user-image-preview-img { 504 #user-image-preview-img {
505 display: block;
Nikita (slow) 2012/06/07 15:26:55 Please make sure that doesn't affect existing layo
Ivan Korotkov 2012/06/09 14:19:01 Done.
494 max-height: 220px; 506 max-height: 220px;
495 max-width: 220px; 507 max-width: 220px;
496 } 508 }
497 509
510 html[camera=webrtc] .camera.live #user-image-preview-img {
511 display: none;
512 }
513
498 .default-image #user-image-preview-img { 514 .default-image #user-image-preview-img {
499 background: white; 515 background: white;
500 border: solid 1px #cacaca; 516 border: solid 1px #cacaca;
501 } 517 }
502 518
519 #user-image-stream-area {
520 display: none;
521 height: 220px;
Nikita (slow) 2012/06/07 15:26:55 Btw, why w-h is 220x220 when we capture 160x160?
522 overflow: hidden;
523 position: relative;
524 width: 220px;
525 }
526
527 html[camera=webrtc] .camera.live #user-image-stream-area {
528 display: block;
Nikita (slow) 2012/06/07 15:26:55 nit: May as well add separate style that defines d
Ivan Korotkov 2012/06/09 14:19:01 It should already be display: none in base style (
529 }
530
531 /* TODO(ivankr): specify dimensions from real capture size. */
532 #user-image-stream {
533 border: solid 1px #cacaca;
534 height: 220px;
535 /* Center image for 4:3 aspect ratio. */
536 left: -16.6%;
Nikita (slow) 2012/06/07 15:26:55 -webkit-margin-start
Ivan Korotkov 2012/06/09 14:19:01 No need in RTL support as this is symmetric (left
537 position: absolute;
538 visibility: hidden;
539 }
540
541 .online #user-image-stream {
542 visibility: visible;
543 }
544
545 #user-image-stream-area .spinner {
546 display: none;
547 left: 14px;
Nikita (slow) 2012/06/07 15:26:55 -webkit-margin-start
Ivan Korotkov 2012/06/09 14:19:01 Done.
548 position: absolute;
549 top: 14px;
Nikita (slow) 2012/06/07 15:26:55 -webkit-margin-before for consistency
Ivan Korotkov 2012/06/09 14:19:01 Done.
550 }
551
552 .camera.live:not(.online) #user-image-stream-area .spinner {
553 display: block;
554 }
555
503 #user-image-preview-caption { 556 #user-image-preview-caption {
504 color: dimGray; 557 color: dimGray;
505 font-size: smaller; 558 font-size: smaller;
506 margin: 8px 4px; 559 margin: 8px 4px;
507 } 560 }
508 561
562 .camera #user-image-preview-caption {
563 display: none;
564 }
565
566 #discard-photo,
567 #take-photo {
568 display: none;
569 height: 25px;
570 margin: 4px 1px;
571 padding: 0;
572 width: 220px;
573 }
574
575 html[camera=webrtc] .camera:not(.live) #discard-photo {
576 background: url('chrome://theme/IDR_USER_IMAGE_RECYCLE')
577 no-repeat center 0;
578 display: block;
Nikita (slow) 2012/06/07 15:26:55 nit: Same here, makes sense to define "display: no
Ivan Korotkov 2012/06/09 14:19:01 Same reasoning
579 }
580
581 html[camera=webrtc] .camera.live.online #take-photo {
582 background: url('chrome://theme/IDR_USER_IMAGE_CAPTURE')
583 no-repeat center -1px;
584 display: block;
585 }
586
509 /* TODO(nkostylev): Remove footer, button-strip styles. */ 587 /* TODO(nkostylev): Remove footer, button-strip styles. */
510 #footer { 588 #footer {
511 height: 28px; /* Same as button height */ 589 height: 28px; /* Same as button height */
512 } 590 }
513 591
514 #footer button { 592 #footer button {
515 display: none; 593 display: none;
516 height: 28px; 594 height: 28px;
517 } 595 }
518 596
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 } 1132 }
1055 1133
1056 #notification-area a { 1134 #notification-area a {
1057 color: rgb(37, 79, 155); 1135 color: rgb(37, 79, 155);
1058 } 1136 }
1059 1137
1060 #notification-area .butter-bar { 1138 #notification-area .butter-bar {
1061 margin: 0 auto; 1139 margin: 0 auto;
1062 max-width: 850px; 1140 max-width: 850px;
1063 } 1141 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698