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

Side by Side Diff: ui/login/account_picker/user_pod_row.css

Issue 2027683003: Pin keyboard moved to under the user profile. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Added a comment. Created 4 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
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 * This is the stylesheet used by user pods row of account picker UI. 5 * This is the stylesheet used by user pods row of account picker UI.
6 */ 6 */
7 7
8 podrow { 8 podrow {
9 /* Temporarily disabled because animation interferes with updating screen's 9 /* Temporarily disabled because animation interferes with updating screen's
10 size. */ 10 size. */
11 height: 100%; 11 height: 100%;
12 overflow: visible; 12 overflow: visible;
13 position: absolute; 13 position: absolute;
14 width: 100%; 14 width: 100%;
15 } 15 }
16 16
17 /* Hide the pod row while images are loading. */ 17 /* Hide the pod row while images are loading. */
18 podrow.images-loading { 18 podrow.images-loading {
19 visibility: hidden; 19 visibility: hidden;
20 } 20 }
21 21
22 pin-keyboard {
23 display: block;
24 }
25
22 .pod { 26 .pod {
23 -webkit-tap-highlight-color: transparent; 27 -webkit-tap-highlight-color: transparent;
24 background-color: white; 28 background-color: white;
25 border-radius: 2px; 29 border-radius: 2px;
26 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), 30 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2),
27 0 2px 6px rgba(0, 0, 0, 0.15), 31 0 2px 6px rgba(0, 0, 0, 0.15),
28 0 3px 0 rgba(0, 0, 0, 0.08); 32 0 3px 0 rgba(0, 0, 0, 0.08);
29 cursor: pointer; 33 cursor: pointer;
30 height: 213px; 34 height: 213px;
31 outline: none; 35 outline: none;
32 position: absolute; 36 position: absolute;
37 top: 0;
33 transform: scale3d(0.9, 0.9, 0.9); 38 transform: scale3d(0.9, 0.9, 0.9);
39 transition: height 180ms ease-in-out,
40 padding 180ms ease-in-out,
41 top 180ms ease-in-out,
42 width 180ms ease-in-out;
34 width: 180px; 43 width: 180px;
35 z-index: 0; 44 z-index: 0;
36 } 45 }
37 46
38 .account-picker.flying-pods .pod { 47 .pod.pin-enabled {
39 transition: all 180ms; 48 height: 600px;
49 padding: 10px;
50 top: -200px !important;
51 width: 256px;
52 }
53
54 .pod .pin-container {
55 height: 334px;
56 position: absolute;
57 top: 276px;
58 width: 256px;
40 } 59 }
41 60
42 .pod.faded { 61 .pod.faded {
43 opacity: .75; 62 opacity: .75;
44 } 63 }
45 64
46 podrow[ncolumns='6'] .pod { 65 podrow[ncolumns='6'] .pod {
47 transform: scale3d(0.8, 0.8, 0.8); 66 transform: scale3d(0.8, 0.8, 0.8);
48 } 67 }
49 68
50 .pod.focused { 69 .pod.focused {
51 /* Focused pod has the same size no matter how many pods. */ 70 /* Focused pod has the same size no matter how many pods. */
52 cursor: default; 71 cursor: default;
53 transform: scale3d(1, 1, 1) !important; 72 transform: scale3d(1, 1, 1) !important;
54 z-index: 1; 73 z-index: 1;
55 } 74 }
56 75
57 .pod.focused[auth-type='userClick'] { 76 .pod.focused[auth-type='userClick'] {
58 cursor: pointer; 77 cursor: pointer;
59 } 78 }
60 79
61 .user-image-pane { 80 .user-image-pane {
62 background-color: white; 81 background-color: white;
63 height: 160px;
64 left: 10px;
65 position: absolute;
66 top: 10px;
67 width: 160px;
68 z-index: 3;
69 } 82 }
70 83
71 html[dir=rtl] .user-image-pane { 84 html[dir=rtl] .user-image-pane {
72 left: auto; 85 left: auto;
73 right: 10px; 86 right: 10px;
74 } 87 }
75 88
76 .user-image-container { 89 .user-image-container {
77 align-items: center; 90 align-items: center;
78 display: flex; 91 display: flex;
79 height: 100%; 92 height: 100%;
80 justify-content: center; 93 justify-content: center;
81 width: 100%; 94 width: 100%;
82 } 95 }
83 96
84 .pod .user-image { 97 .pod .user-image {
85 flex: none; 98 flex: none;
86 } 99 }
87 100
88 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the 101 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the
89 style rule once it is included on CrOS only. crbug.com/397638 */ 102 style rule once it is included on CrOS only. crbug.com/397638 */
90 html:not([screen=login-add-user]) .pod .user-image { 103 html:not([screen=login-add-user]) .pod .user-image {
91 max-height: 160px; 104 max-height: 160px;
92 max-width: 160px; 105 max-width: 160px;
93 opacity: 0.7; 106 opacity: 0.7;
107 position: absolute;
108 top: 10px;
109 transition: max-height 180ms ease-in-out,
110 max-width 180ms ease-in-out;
111 }
112
113 html:not([screen=login-add-user]) .pod .user-image.pin-enabled {
114 max-height: 256px;
115 max-width: 256px;
94 } 116 }
95 117
96 html:not([screen=login-add-user]) .pod.focused .user-image { 118 html:not([screen=login-add-user]) .pod.focused .user-image {
97 opacity: 1; 119 opacity: 1;
98 } 120 }
99 121
100 .pod.multiprofiles-policy-applied .user-image { 122 .pod.multiprofiles-policy-applied .user-image {
101 -webkit-filter: grayscale(100%); 123 -webkit-filter: grayscale(100%);
102 } 124 }
103 125
104 .signed-in-indicator { 126 .signed-in-indicator {
105 display: none; 127 display: none;
106 } 128 }
107 129
108 .pod.signed-in .signed-in-indicator { 130 .pod.signed-in .signed-in-indicator {
109 background-color: rgba(0, 0, 0, 0.5); 131 background-color: rgba(0, 0, 0, 0.5);
110 color: white; 132 color: white;
111 display: block; 133 display: block;
112 font-size: small; 134 font-size: small;
113 padding: 3px 0; 135 left: 10px;
114 position: absolute; 136 position: absolute;
115 text-align: center; 137 text-align: center;
116 top: 0; 138 top: 10px;
117 width: 100%; 139 transition: width 180ms ease-in-out;
140 width: 160px;
141 }
142
143 .pod.signed-in .signed-in-indicator.pin-enabled {
144 width: 256px;
118 } 145 }
119 146
120 .main-pane { 147 .main-pane {
121 left: 10px; 148 left: 10px;
122 position: absolute; 149 position: absolute;
123 top: 10px; 150 top: 10px;
124 z-index: 2; 151 z-index: 2;
125 } 152 }
126 153
127 html[dir=rtl] .main-pane { 154 html[dir=rtl] .main-pane {
128 left: auto; 155 left: auto;
129 right: 10px; 156 right: 10px;
130 } 157 }
131 158
132 .name-container, 159 .name-container,
133 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { 160 .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
134 background-color: white; 161 background-color: white;
135 display: flex; 162 display: flex;
136 position: absolute; 163 position: absolute;
137 top: 160px; 164 top: 160px;
138 width: 160px; 165 width: 160px;
139 } 166 }
140 167
168 .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
169 background-color: white;
170 position: absolute;
171 top: 160px;
172 width: 160px;
173 }
174
175 .auth-container.pin-disabled {
176 opacity: 1;
177 transition: opacity 200ms ease-in-out 180ms,
178 visibility 200ms ease-in-out 180ms;
179 visibility: visible;
180 }
181
182 .auth-container.pin-enabled {
183 opacity: 0;
184 transition: none;
185 visibility: hidden;
186 }
187
141 .name-container { 188 .name-container {
142 transition: transform 180ms; 189 transition: transform 180ms;
143 } 190 }
144 191
145 .pod.focused .name-container { 192 .pod.focused .name-container {
146 display: none; 193 display: none;
147 } 194 }
148 195
149 .pod.focused.multiprofiles-policy-applied .name-container { 196 .pod.focused.multiprofiles-policy-applied .name-container {
150 display: flex; 197 display: flex;
(...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after
830 -webkit-animation: ellipsis-component2 1.5s infinite; 877 -webkit-animation: ellipsis-component2 1.5s infinite;
831 } 878 }
832 879
833 @-webkit-keyframes ellipsis-component2 { 880 @-webkit-keyframes ellipsis-component2 {
834 0% { opacity: 0; } 881 0% { opacity: 0; }
835 25% { opacity: 0; } 882 25% { opacity: 0; }
836 50% { opacity: 0; } 883 50% { opacity: 0; }
837 75% { opacity: 1; } 884 75% { opacity: 1; }
838 100% { opacity: 0; } 885 100% { opacity: 0; }
839 } 886 }
OLDNEW
« no previous file with comments | « ui/login/account_picker/screen_account_picker.js ('k') | ui/login/account_picker/user_pod_row.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698