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: 18px 10px 0 0;
62 #user-image-preview .perspective-box
{
63 -webkit-perspective: 600px;
64 border: solid
1px #cacaca;
70 #user-image-preview-img {
72 border: solid
1px #cacaca;
79 .camera.live #user-image-preview-img {
83 .animation #user-image-preview-img {
84 -webkit-transition: -webkit-transform
200ms linear
;
87 .camera.flip-x #user-image-preview-img {
88 -webkit-transform: rotateY
(180deg);
91 .user-image-stream-area {
96 .camera.live .user-image-stream-area {
100 #user-image-stream-crop {
101 /* TODO(ivankr): temporary workaround for crbug.com/142347. */
102 -webkit-transform: rotateY
(360deg);
103 -webkit-transition: -webkit-transform
200ms linear
;
110 .flip-x #user-image-stream-crop {
111 -webkit-transform: rotateY
(180deg);
114 /* TODO(ivankr): specify dimensions from real capture size. */
116 border: solid
1px #cacaca;
118 /* Center image for 4:3 aspect ratio. */
124 .online .user-image-stream {
128 .user-image-stream-area .spinner {
132 margin: -22px 0 0 -22px;
138 .camera.live:not(.online) .user-image-stream-area .spinner {
143 -webkit-transition: opacity
75ms linear
;
144 background: url
(chrome://theme
/IDR_MIRROR_FLIP
) no-repeat
;
146 bottom: 44px; /* 8px + image bottom. */
155 /* TODO(merkulova): remove when webkit crbug.com/126479 is fixed. */
157 -webkit-transform: translateZ
(1px);
160 html
[dir
=rtl
] #flip-photo
{
165 /* "Flip photo" button is hidden during flip animation. */
166 .camera
.online:not
(.animation
) #flip-photo
,
167 .camera:not(.live):not(.animation) #flip-photo {
180 .camera:not(.live) #discard-photo {
181 background: url
(chrome://theme
/IDR_USER_IMAGE_RECYCLE
)
182 no-repeat center center
;
186 .camera.live.online #take-photo {
187 background: url
(chrome://theme
/IDR_USER_IMAGE_CAPTURE
)
188 no-repeat center
-1px;
192 #user-image-attribution {
193 -webkit-padding-start: 34px;
197 #user-image-author-website {
198 -webkit-padding-start: 5px;