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
3 * found in the LICENSE file. */
10 -webkit-user-drag: none
;
11 -webkit-user-select: none
;
15 /* Necessary for correct metrics calculation by grid.js. */
26 #user-image-grid img
{
27 background-color: white
;
29 vertical-align: middle
;
33 #user-image-grid > li
{
34 border: 1px solid rgba
(0, 0, 0, 0.15);
36 display: inline-block
;
41 #user-image-grid [selected
] {
42 border: 2px solid rgb
(0, 102, 204);
47 * #user-image-preview can have the following classes:
48 * .default-image: one of the default images is selected (including the grey
50 * .profile-image: profile image is selected;
51 * .online: camera is streaming video;
52 * .camera: camera (live or photo) is selected;
53 * .live: camera is in live mode (no photo taken yet/last photo removed).
57 margin: 20px 10px 0 0;
62 #user-image-preview .perspective-box
{
63 -webkit-perspective: 600px;
66 #user-image-preview-img {
68 border: solid
1px #cacaca;
75 .camera.live #user-image-preview-img {
79 .animation #user-image-preview-img {
80 -webkit-transition: -webkit-transform
200ms linear
;
83 .camera.flip-x #user-image-preview-img {
84 -webkit-transform: rotateY
(180deg);
87 .user-image-stream-area {
92 .camera.live .user-image-stream-area {
96 #user-image-stream-crop {
97 /* TODO(ivankr): temporary workaround for crbug.com/142347. */
98 -webkit-transform: rotateY
(360deg);
99 -webkit-transition: -webkit-transform
200ms linear
;
106 .flip-x #user-image-stream-crop {
107 -webkit-transform: rotateY
(180deg);
110 /* TODO(ivankr): specify dimensions from real capture size. */
112 border: solid
1px #cacaca;
114 /* Center image for 4:3 aspect ratio. */
120 .online .user-image-stream {
124 .user-image-stream-area .spinner {
128 margin: -22px 0 0 -22px;
134 .camera.live:not(.online) .user-image-stream-area .spinner {
139 -webkit-transition: opacity
75ms linear
;
140 background: url
('chrome://theme/IDR_MIRROR_FLIP') no-repeat
;
142 bottom: 44px; /* 8px + image bottom. */
151 /* TODO(merkulova): remove when webkit crbug.com/126479 is fixed. */
153 -webkit-transform: translateZ
(1px);
156 html
[dir
=rtl
] #flip-photo
{
161 /* "Flip photo" button is hidden during flip animation. */
162 .camera
.online:not
(.animation
) #flip-photo
,
163 .camera:not(.live):not(.animation) #flip-photo {
176 .camera:not(.live) #discard-photo {
177 background: url
('chrome://theme/IDR_USER_IMAGE_RECYCLE')
182 .camera.live.online #take-photo {
183 background: url
('chrome://theme/IDR_USER_IMAGE_CAPTURE')
184 no-repeat center
-1px;
188 #user-image-attribution {
189 -webkit-padding-start: 34px;
193 #user-image-author-website {
194 -webkit-padding-start: 5px;