OLD | NEW |
---|---|
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 .pod { | 22 .pod { |
23 -webkit-tap-highlight-color: transparent; | 23 -webkit-tap-highlight-color: transparent; |
24 -webkit-transform: scale3d(0.9, 0.9, 0.9); | |
25 background-color: white; | 24 background-color: white; |
26 border-radius: 2px; | 25 border-radius: 2px; |
27 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), | 26 box-shadow: 0 4px 23px 5px rgba(0, 0, 0, 0.2), |
28 0 2px 6px rgba(0, 0, 0, 0.15), | 27 0 2px 6px rgba(0, 0, 0, 0.15), |
29 0 3px 0 rgba(0, 0, 0, 0.08); | 28 0 3px 0 rgba(0, 0, 0, 0.08); |
30 cursor: pointer; | 29 cursor: pointer; |
31 display: flex; | 30 height: 213px; |
32 flex-flow: row; | |
33 outline: none; | 31 outline: none; |
34 padding: 10px 10px 3px; | |
35 position: absolute; | 32 position: absolute; |
36 vertical-align: middle; | 33 transform: scale3d(0.9, 0.9, 0.9); |
37 width: 160px; | 34 width: 180px; |
38 z-index: 0; | 35 z-index: 0; |
39 } | 36 } |
40 | 37 |
41 html[run=firstExecAfterBoot] .pod { | 38 .account-picker.flying-pods .pod { |
42 -webkit-transition: -webkit-transform 180ms ease, | 39 transition: all 180ms; |
43 opacity 180ms ease; | |
44 } | 40 } |
45 | 41 |
46 .account-picker.flying-pods .pod { | 42 .pod.faded { |
47 -webkit-transition: all 180ms ease; | 43 opacity: .75; |
48 } | |
49 | |
50 .pod .main-pane { | |
51 position: relative; | |
52 text-align: center; | |
53 width: 160px; | |
54 } | 44 } |
55 | 45 |
56 podrow[ncolumns='6'] .pod { | 46 podrow[ncolumns='6'] .pod { |
57 -webkit-transform: scale3d(0.8, 0.8, 0.8); | 47 transform: scale3d(0.8, 0.8, 0.8); |
58 } | 48 } |
59 | 49 |
60 .pod.focused { | 50 .pod.focused { |
61 /* Focused pod has the same size no matter how many pods. */ | 51 /* Focused pod has the same size no matter how many pods. */ |
62 -webkit-transform: scale3d(1, 1, 1) !important; | |
63 cursor: default; | 52 cursor: default; |
53 transform: scale3d(1, 1, 1) !important; | |
64 z-index: 1; | 54 z-index: 1; |
65 } | 55 } |
66 | 56 |
67 .pod.focused[auth-type='userClick'] { | 57 .pod.focused[auth-type='userClick'] { |
68 cursor: pointer; | 58 cursor: pointer; |
69 } | 59 } |
70 | 60 |
71 .pod .user-image-container { | 61 .user-image-pane { |
72 align-items: center; | 62 background-color: white; |
73 display: flex; | |
74 height: 160px; | 63 height: 160px; |
75 justify-content: center; | 64 left: 10px; |
65 position: absolute; | |
66 top: 10px; | |
76 width: 160px; | 67 width: 160px; |
77 } | 68 } |
78 | 69 |
79 .pod .user-image { | 70 html[dir=rtl] .user-image-pane { |
80 height: 160px; | 71 left: auto; |
81 opacity: 0.7; | 72 right: 10px; |
82 width: 160px; | |
83 } | 73 } |
84 | 74 |
85 .pod.faded { | 75 .user-image { |
86 opacity: .75; | 76 height: 100%; |
77 opacity: 0.7; | |
78 width: 100%; | |
87 } | 79 } |
88 | 80 |
89 .pod.focused .user-image { | 81 .pod.focused .user-image { |
90 opacity: 1; | 82 opacity: 1; |
91 } | 83 } |
92 | 84 |
93 .pod.multiprofiles-policy-applied .user-image { | 85 .pod.multiprofiles-policy-applied .user-image { |
94 -webkit-filter: grayscale(100%); | 86 -webkit-filter: grayscale(100%); |
95 } | 87 } |
96 | 88 |
97 .pod.init { | 89 .signed-in-indicator { |
98 -webkit-transform: scale3d(2.4, 2.4, 2.4); | 90 display: none; |
99 opacity: 0; | |
100 } | 91 } |
101 | 92 |
102 .pod.left { | 93 .pod.signed-in .signed-in-indicator { |
103 -webkit-transform: translateX(-25px); | 94 background-color: rgba(0, 0, 0, 0.5); |
104 opacity: 0; | 95 color: white; |
96 display: block; | |
97 font-size: small; | |
98 padding: 3px 0; | |
99 position: absolute; | |
100 text-align: center; | |
101 top: 0; | |
102 width: 100%; | |
105 } | 103 } |
106 | 104 |
107 .pod.right { | 105 .main-pane { |
108 -webkit-transform: translateX(25px); | 106 left: 10px; |
109 opacity: 0; | 107 position: absolute; |
108 top: 10px; | |
110 } | 109 } |
111 | 110 |
112 .pod.zoom { | 111 html[dir=rtl] .main-pane { |
113 -webkit-transform: scale3d(2.2, 2.2, 2.2); | 112 left: auto; |
114 opacity: 0; | 113 right: 10px; |
114 } | |
115 | |
116 .name-container, | |
117 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { | |
118 display: flex; | |
119 position: absolute; | |
120 top: 160px; | |
121 width: 160px; | |
122 } | |
123 | |
124 .pod.focused .name-container { | |
125 display: none; | |
126 } | |
127 | |
128 .pod.focused.multiprofiles-policy-applied .name-container { | |
129 display: flex; | |
115 } | 130 } |
116 | 131 |
117 .name { | 132 .name { |
118 -webkit-transition: all 170ms ease; | |
119 color: #565656; | 133 color: #565656; |
120 /* Matching font-size 14px but since name is visible | 134 /* This should be 15.6px - the equivalent of 14px at 90% scale. */ |
121 when pod is not focused increase that a bit. */ | 135 flex: auto; |
122 font-size: 16px; | 136 font-size: 16px; |
123 height: 26px; | 137 margin-top: 12px; |
124 line-height: 26px; /* This vertically centers text */ | 138 outline: none; |
125 margin: 10px 0 4px; | 139 overflow: hidden; |
140 padding: 0 6px; | |
141 text-align: center; | |
142 text-overflow: ellipsis; | |
143 white-space: nowrap; | |
144 } | |
145 | |
146 .learn-more-container, | |
147 .auth-container, | |
148 .password-entry-container, | |
149 .signin-button-container { | |
150 display: none; | |
151 } | |
152 | |
153 .pod[auth-type='offlinePassword'].focused .password-entry-container { | |
154 display: flex; | |
155 flex: auto; | |
156 } | |
157 | |
158 .password-container { | |
159 flex: auto; | |
160 } | |
161 | |
162 .pod input[type='password'] { | |
163 border: none; | |
164 padding: 4px 6px; | |
165 position: relative; | |
166 top: 6px; | |
167 width: 100%; | |
168 } | |
169 | |
170 .capslock-hint-container { | |
171 display: none; | |
172 } | |
173 | |
174 .capslock-on .capslock-hint-container { | |
175 display: block; | |
176 flex: none; | |
177 } | |
178 | |
179 .capslock-hint { | |
180 -webkit-margin-end: 6px; | |
181 -webkit-margin-start: -2px; | |
182 position: relative; | |
183 top: 11px; | |
184 } | |
185 | |
186 .password-label { | |
187 display: none; | |
188 } | |
189 | |
190 .pod[auth-type='userClick'] .password-label { | |
191 display: block; | |
192 flex: auto; | |
193 margin-top: 11px; | |
126 overflow: hidden; | 194 overflow: hidden; |
127 text-overflow: ellipsis; | 195 text-overflow: ellipsis; |
128 white-space: nowrap; | 196 white-space: nowrap; |
129 } | 197 } |
130 | 198 |
131 .name.init { | |
132 opacity: 0; | |
133 } | |
134 | |
135 .pod.need-password.focused .name { | |
136 display: none; | |
137 } | |
138 | |
139 .pod.need-password.multiprofiles-policy-applied .name { | |
140 display: block; | |
141 } | |
142 | |
143 .password-area { | |
144 display: none; | |
145 } | |
146 | |
147 .password-input-container { | |
148 -webkit-box-flex: 1; | |
149 /* This relative position is so the capslock hint is positioned correctly. */ | |
150 position: relative; | |
151 } | |
152 | |
153 .password-label { | |
154 -webkit-box-align: center; | |
155 border: none; | |
156 display: none; | |
157 font-size: 14px; | |
158 height: 40px; | |
159 text-overflow: ellipsis; | |
160 } | |
161 | |
162 .pod[auth-type='userClick'] .password-label { | |
163 display: -webkit-box; | |
164 } | |
165 | |
166 .custom-icon { | 199 .custom-icon { |
167 -webkit-box-align: center; | |
168 background-position: center; | 200 background-position: center; |
169 background-repeat: no-repeat; | 201 background-repeat: no-repeat; |
202 flex: none; | |
170 height: 40px; | 203 height: 40px; |
171 width: 40px; | 204 width: 40px; |
172 } | 205 } |
173 | 206 |
174 .pod input[type='password'] { | 207 .pod[auth-type='onlineSignIn'] .signin-button-container, |
175 -webkit-transition: opacity linear 150ms; | 208 .launch-app-button-container { |
176 background: white; | 209 display: block; |
177 border: none; | 210 flex: auto; |
178 border-radius: 0; /* override widgets.css rule */ | 211 text-align: center; |
179 box-sizing: border-box; | |
180 display: none; | |
181 height: 40px; | |
182 outline: none; | |
183 padding: 4px 6px; | |
184 width: 100%; | |
185 } | 212 } |
186 | 213 |
187 .pod[auth-type='offlinePassword'] input[type='password'] { | 214 .signin-button, |
188 display: inline-block; | 215 .launch-app-button { |
216 display: inline; | |
217 margin-top: 6px !important; | |
218 max-width: 100%; | |
219 overflow: hidden; | |
220 text-overflow: ellipsis; | |
189 } | 221 } |
190 | 222 |
191 .pod.need-password.focused .password-area { | 223 .action-box-area, |
192 display: -webkit-box; | 224 .user-type-icon-area { |
225 background-color: white; | |
226 border-radius: 2px; | |
227 position: absolute; | |
228 top: 0; | |
193 } | 229 } |
194 | 230 |
195 .pod.need-password.multiprofiles-policy-applied .password-area { | 231 .action-box-area { |
196 display: none; | 232 opacity: 0; |
233 outline: none; | |
234 right: 0; | |
235 transition: opacity 100ms; | |
197 } | 236 } |
198 | 237 |
199 .pod .signin-button, | 238 html[dir=rtl] .action-box-area { |
200 .pod .launch-app-button { | 239 left: 0; |
201 box-sizing: border-box; | |
202 display: none; | |
203 height: 26px; | |
204 margin: 6px 0 !important; | |
205 max-width: 100%; | |
206 min-width: 72px !important; | |
207 padding: 4px 8px; | |
208 } | |
209 | |
210 .pod.focused .launch-app-button, | |
211 .pod.focused[auth-type='onlineSignIn'] .signin-button { | |
212 display: inline-block; | |
213 } | |
214 | |
215 .pod .capslock-hint { | |
216 bottom: 13px; | |
217 cursor: text; | |
218 position: absolute; | |
219 right: 6px; | |
220 visibility: hidden; | |
221 z-index: 1; | |
222 } | |
223 | |
224 html[dir=rtl] .pod .capslock-hint { | |
225 left: 10px; | |
226 right: auto; | 240 right: auto; |
227 } | 241 } |
228 | 242 |
229 .capslock-on .pod.focused input[type='password']:not([hidden]) ~ .capslock-hint { | |
230 visibility: visible; | |
231 } | |
232 | |
233 .capslock-on .pod.focused .password { | |
234 padding: 4px 27px 4px 6px; | |
235 } | |
236 | |
237 .action-box-area { | |
238 -webkit-transition: opacity 100ms ease-in-out; | |
239 background-color: white; | |
240 border-radius: 2px; | |
241 box-shadow: none; | |
242 height: 23px; | |
243 margin: 0; | |
244 opacity: 0; | |
245 outline: none; | |
246 padding: 0; | |
247 position: absolute; | |
248 right: 0; | |
249 top: 0; | |
250 width: 23px; | |
251 z-index: 1; | |
252 } | |
253 | |
254 .action-box-area:focus, | 243 .action-box-area:focus, |
255 .action-box-area.hovered, | 244 .action-box-area.hovered, |
256 .action-box-area.active { | 245 .action-box-area.active { |
257 opacity: 1; | 246 opacity: 1; |
258 } | 247 } |
259 | 248 |
260 .action-box-button { | 249 .action-box-button { |
261 background-color: transparent; | |
262 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL'); | 250 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_NORMAL'); |
263 border: 0; | |
264 height: 13px; | 251 height: 13px; |
265 margin: 5px; | 252 margin: 5px; |
266 padding: 0; | |
267 width: 13px; | 253 width: 13px; |
268 } | 254 } |
269 | 255 |
256 .action-box-button:hover { | |
257 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_HOVER'); | |
258 } | |
259 | |
260 .action-box-area.active .action-box-button { | |
261 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED'); | |
262 } | |
263 | |
270 .user-type-icon-area { | 264 .user-type-icon-area { |
271 background-color: white; | |
272 border-radius: 2px; | |
273 box-shadow: none; | |
274 height: 26px; | |
275 left: 0; | 265 left: 0; |
276 margin: 0; | |
277 outline: none; | |
278 padding: 0; | |
279 position: absolute; | |
280 top: 0; | |
281 width: 26px; | |
282 z-index: 1; | |
283 } | 266 } |
284 | 267 |
285 html[dir=rtl] .user-type-icon-area { | 268 html[dir=rtl] .user-type-icon-area { |
286 left: auto; | 269 left: auto; |
287 right: 0; | 270 right: 0; |
288 } | 271 } |
289 | 272 |
290 .user-type-icon-image { | 273 .user-type-icon-image { |
291 background-color: transparent; | |
292 border: 0 !important; | |
293 height: 16px; | 274 height: 16px; |
294 margin: 5px; | 275 margin: 5px; |
295 padding: 0; | |
296 width: 16px; | 276 width: 16px; |
297 } | 277 } |
298 | 278 |
299 .user-type-icon-area.supervised .user-type-icon-image { | 279 .user-type-icon-area.supervised .user-type-icon-image { |
300 background-image: url('chrome://theme/IDR_SUPERVISED_USER_ICON'); | 280 background-image: url('chrome://theme/IDR_SUPERVISED_USER_ICON'); |
301 } | 281 } |
302 | 282 |
303 .user-type-icon-area.policy .user-type-icon-image { | 283 .user-type-icon-area.policy .user-type-icon-image { |
304 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY'); | 284 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY'); |
305 } | 285 } |
306 | 286 |
307 .user-type-icon-area.app .user-type-icon-image { | 287 .user-type-icon-area.app .user-type-icon-image { |
308 background-image: url('chrome://theme/IDR_KIOSK_APP_USER_POD_ICON'); | 288 background-image: url('chrome://theme/IDR_KIOSK_APP_USER_POD_ICON'); |
309 } | 289 } |
310 | 290 |
311 .bubble-shown.user-type-bubble, | 291 .action-box-menu { |
312 .user-type-icon-area.policy:hover ~ .user-type-bubble { | 292 display: none; |
313 opacity: 1; | |
314 visibility: visible; | |
315 } | 293 } |
316 | 294 |
317 .user-type-bubble { | 295 .action-box-area.active ~ .action-box-menu { |
318 -webkit-transition: all 100ms ease-in-out; | |
319 background-color: white; | 296 background-color: white; |
320 border: 1px solid lightgray; | 297 border: 1px solid lightgray; |
321 border-radius: 2px; | 298 border-radius: 2px; |
322 box-shadow: none; | 299 display: flex; |
323 font-size: 14px; | 300 flex-direction: column; |
324 left: 5px; | |
325 margin: 0; | |
326 opacity: 0; | |
327 padding: 17px; | |
328 position: absolute; | |
329 top: 20px; | |
330 visibility: hidden; | |
331 width: 200px; | |
332 z-index: 1; | |
333 } | |
334 | |
335 html[dir=rtl] .user-type-bubble { | |
336 left: auto; | |
337 right: 5px; | |
338 } | |
339 | |
340 .user-type-bubble-header { | |
341 font-weight: bold; | |
342 margin-bottom: 14px; | |
343 } | |
344 | |
345 .easy-unlock-button-content { | |
346 width: 145px; | |
347 } | |
348 | |
349 html[dir=rtl] .action-box-area { | |
350 left: 0; | |
351 right: auto; | |
352 } | |
353 | |
354 .action-box-button:hover { | |
355 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_HOVER'); | |
356 } | |
357 | |
358 .action-box-area.active .action-box-button { | |
359 background-image: url('chrome://theme/IDR_OOBE_ACTION_BOX_BUTTON_PRESSED'); | |
360 } | |
361 | |
362 .action-box-menu { | |
363 -webkit-transition: opacity 100ms ease-in-out; | |
364 background-color: white; | |
365 border: 1px solid lightgray; | |
366 border-radius: 2px; | |
367 box-shadow: none; | |
368 display: none; | |
369 font-size: 13px; | 301 font-size: 13px; |
370 line-height: 19px; | |
371 margin: 0; | |
372 opacity: 0; | |
373 padding: 0; | |
374 position: absolute; | 302 position: absolute; |
375 right: 5px; | 303 right: 5px; |
376 top: 18px; | 304 top: 18px; |
377 /* TODO(glotov): the menu should fade out with transition */ | |
378 visibility: hidden; | |
379 width: 220px; | 305 width: 220px; |
380 z-index: 1; | |
381 } | 306 } |
382 | 307 |
383 html[dir=rtl] .action-box-menu { | 308 html[dir=rtl] .action-box-area.active ~ .action-box-menu { |
384 left: 5px; | 309 left: 5px; |
385 right: auto; | 310 right: auto; |
386 } | 311 } |
387 | 312 |
388 .action-box-area.active ~ .action-box-menu { | |
389 -webkit-box-orient: vertical; | |
390 display: -webkit-box; | |
391 opacity: 1; | |
392 visibility: visible; | |
393 } | |
394 | |
395 .action-box-menu-title { | 313 .action-box-menu-title { |
396 -webkit-box-orient: vertical; | |
397 -webkit-box-pack: center; | |
398 color: #b4b4b4; | 314 color: #b4b4b4; |
399 display: -webkit-box; | 315 display: flex; |
316 flex-direction: column; | |
400 padding: 7px 20px; | 317 padding: 7px 20px; |
401 } | 318 } |
402 | 319 |
403 .action-box-menu-title-name { | 320 .action-box-menu-title-name, |
404 display: -webkit-box; | 321 .action-box-menu-title-email { |
322 flex: none; | |
405 height: 23px; | 323 height: 23px; |
406 overflow: hidden; | 324 line-height: 19px; |
407 text-overflow: ellipsis; | |
408 white-space: nowrap; | |
409 width: 180px; | |
410 } | |
411 | |
412 .action-box-menu-title-email { | |
413 display: block; | |
414 min-height: 23px; | |
415 overflow: hidden; | 325 overflow: hidden; |
416 text-overflow: ellipsis; | 326 text-overflow: ellipsis; |
417 white-space: nowrap; | 327 white-space: nowrap; |
418 } | 328 } |
419 | 329 |
420 .action-box-menu-remove { | 330 .action-box-menu-remove { |
421 -webkit-box-align: center; | |
422 border-top: 1px solid lightgray; | 331 border-top: 1px solid lightgray; |
423 display: -webkit-box; | 332 line-height: 19px; |
424 min-height: 29px; | 333 min-height: 24px; |
425 padding: 7px 20px; | 334 outline: none; |
335 padding: 12px 20px 7px; | |
426 } | 336 } |
427 | 337 |
428 .action-box-menu-remove:hover, | 338 .action-box-menu-remove:hover, |
429 .action-box-menu-remove:focus { | 339 .action-box-menu-remove:focus { |
430 background-color: #f3f3f3; | 340 background-color: #f3f3f3; |
431 outline: none; | |
432 } | 341 } |
433 | 342 |
434 .action-box-remove-user-warning { | 343 .action-box-remove-user-warning { |
435 border-top: 1px solid lightgray; | 344 border-top: 1px solid lightgray; |
436 color: #000; | |
437 font-size: 12px; | 345 font-size: 12px; |
438 line-height: 18px; | 346 line-height: 18px; |
439 padding: 20px; | 347 padding: 20px; |
440 } | 348 } |
441 | 349 |
442 .action-box-remove-user-warning-text { | 350 .action-box-remove-user-warning-text { |
443 padding-bottom: 20px; | 351 padding-bottom: 20px; |
444 } | 352 } |
445 | 353 |
446 .action-box-remove-user-warning .remove-warning-button { | 354 .action-box-remove-user-warning .remove-warning-button { |
447 width: 100%; | 355 width: 100%; |
448 } | 356 } |
449 | 357 |
450 html[oobe=old] .pod.focused .action-box-area { | 358 .user-type-bubble { |
451 /* Track shifting of .user-image on pod focus. */ | 359 background-color: white; |
452 -webkit-transform: translateY(-1px); | 360 border: 1px solid lightgray; |
453 -webkit-transition: -webkit-transform 140ms ease; | 361 border-radius: 2px; |
454 opacity: 1; | 362 left: 5px; |
363 opacity: 0; | |
364 padding: 17px; | |
365 position: absolute; | |
366 top: 20px; | |
367 transition: all 100ms; | |
368 visibility: hidden; | |
369 width: 200px; | |
455 } | 370 } |
456 | 371 |
457 .signed-in-indicator { | 372 html[dir=rtl] .user-type-bubble { |
458 -webkit-transition: all 140ms ease; | 373 left: auto; |
459 background: rgba(0, 0, 0, 0.5); | 374 right: 5px; |
460 color: white; | 375 } |
461 font-size: small; | 376 |
462 padding: 3px 0; | 377 .bubble-shown, |
463 position: absolute; | 378 .user-type-icon-area.policy:hover ~ .user-type-bubble { |
464 /* Width of .user-image. */ | 379 opacity: 1; |
465 width: 160px; | 380 visibility: visible; |
466 z-index: 1; | 381 } |
382 | |
383 .user-type-bubble-header { | |
384 font-weight: bold; | |
385 margin-bottom: 14px; | |
386 } | |
387 | |
388 .easy-unlock-button-content { | |
389 width: 145px; | |
467 } | 390 } |
468 | 391 |
469 /**** Public account user pod rules *******************************************/ | 392 /**** Public account user pod rules *******************************************/ |
470 | 393 |
471 .pod.public-account .name { | 394 .pod.public-account.focused .name-container { |
472 width: 140px; | 395 display: flex; |
473 } | 396 } |
474 | 397 |
398 /* | |
475 .pod.public-account .name, | 399 .pod.public-account .name, |
476 .side-pane-name { | 400 .side-pane-name { |
477 -webkit-padding-end: 16px; | 401 -webkit-padding-end: 16px; |
478 max-height: 42px; | |
479 outline: none; | 402 outline: none; |
403 } | |
404 | |
405 .side-pane-name { | |
480 overflow: hidden; | 406 overflow: hidden; |
481 text-overflow: ellipsis; | 407 text-overflow: ellipsis; |
408 white-space: nowrap; | |
409 } | |
410 */ | |
411 | |
412 .pod.public-account .learn-more-container { | |
413 display: block; | |
414 flex: none; | |
482 } | 415 } |
483 | 416 |
417 .pod.public-account .learn-more { | |
418 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY'); | |
419 height: 16px; | |
420 position: relative; | |
421 top: 16px; | |
422 width: 16px; | |
423 } | |
424 | |
425 .pod.public-account .password-entry-container { | |
426 /* Public session pods have the attribute auth-type='offlinePassword' set, | |
dzhioev (left Google)
2014/07/07 10:35:42
Can't we set right type for public pods?
bartfab (slow)
2014/07/07 18:16:03
Done.
| |
427 which is wrong and causes the password field to be shown. Override this and | |
428 hide the password field. */ | |
429 display: none !important; | |
430 } | |
431 | |
432 /* | |
484 .learn-more, | 433 .learn-more, |
485 .side-pane-learn-more { | 434 .side-pane-learn-more { |
486 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY'); | 435 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY'); |
487 height: 16px; | 436 height: 16px; |
488 position: absolute; | 437 position: absolute; |
489 width: 16px; | 438 width: 16px; |
490 } | 439 } |
491 | 440 |
492 .learn-more:hover, | |
493 .side-pane-learn-more:hover { | |
494 background-image: url('chrome://theme/IDR_CONTROLLED_SETTING_MANDATORY'); | |
495 } | |
496 | |
497 .learn-more { | 441 .learn-more { |
498 right: 10px; | 442 left: 154px; |
499 top: 189px; | 443 top: 186px; |
500 } | 444 } |
501 | 445 |
502 html[dir=rtl] .learn-more { | 446 html[dir=rtl] .learn-more { |
503 left: 10px; | 447 left: auto; |
504 right: auto; | 448 right: 154px; |
505 } | 449 } |
506 | 450 |
507 .side-pane-divider, | |
508 .side-pane-container { | 451 .side-pane-container { |
509 bottom: 5px; | 452 flex-grow: 1; |
510 top: 5px; | 453 overflow: hidden; |
511 visibility: hidden; | 454 visibility: hidden; |
512 } | 455 } |
513 | 456 |
514 .side-pane-divider { | |
515 -webkit-margin-start: 10px; | |
516 border-left: 1px solid lightgray; | |
517 left: 180px; | |
518 right: auto; | |
519 width: 1px; | |
520 } | |
521 | |
522 html[dir=rtl] .side-pane-divider { | |
523 left: auto; | |
524 right: 180px; | |
525 } | |
526 | |
527 .side-pane-container { | |
528 left: 185px; | |
529 overflow: hidden; | |
530 padding: 5px; | |
531 right: auto; | |
532 } | |
533 | |
534 html[dir=rtl] .side-pane-container { | |
535 left: auto; | |
536 right: 185px; | |
537 } | |
538 | |
539 .side-pane-contents { | 457 .side-pane-contents { |
458 -webkit-margin-end: 5px; | |
459 -webkit-margin-start: 14px; | |
540 -webkit-transform: translateX(-240px); | 460 -webkit-transform: translateX(-240px); |
541 -webkit-transition: -webkit-transform 180ms ease; | 461 -webkit-transition: -webkit-transform 180ms ease; |
542 height: 100%; | 462 margin-bottom: 2px; |
463 margin-top: 5px; | |
543 width: 225px; | 464 width: 225px; |
544 } | 465 } |
545 | 466 |
546 html[dir=rtl] .side-pane-contents { | 467 html[dir=rtl] .side-pane-contents { |
547 -webkit-transform: translateX(240px); | 468 -webkit-transform: translateX(240px); |
548 } | 469 } |
549 | 470 |
550 .pod.public-account.expanded .side-pane-contents { | 471 .pod.public-account.expanded .side-pane-contents { |
551 -webkit-transform: translateX(0); | 472 -webkit-transform: translateX(0); |
552 } | 473 } |
553 | 474 |
475 .side-pane-divider { | |
476 background-color: lightgray; | |
477 height: 160px; | |
478 left: -7px; | |
479 position: absolute; | |
480 right: auto; | |
481 top: -5px; | |
482 width: 1px; | |
483 } | |
484 | |
485 html[dir=rtl] .side-pane-divider { | |
486 left: auto; | |
487 right: -7px; | |
488 } | |
489 | |
554 .side-pane-learn-more { | 490 .side-pane-learn-more { |
555 right: 0; | 491 right: 0; |
556 top: 2px; | 492 top: 2px; |
557 } | 493 } |
558 | 494 |
559 html[dir=rtl] .side-pane-learn-more { | 495 html[dir=rtl] .side-pane-learn-more { |
560 left: 2px; | 496 left: 0; |
561 right: auto; | 497 right: auto; |
562 } | 498 } |
563 | 499 |
564 .side-pane-container .info, | 500 .side-pane-container .info, |
565 .side-pane-container .reminder { | 501 .side-pane-container .reminder { |
566 font-size: 12px; | 502 font-size: 12px; |
567 } | 503 } |
568 | 504 |
569 .side-pane-container .info { | 505 .side-pane-container .info { |
570 -webkit-margin-before: 25px; | 506 -webkit-margin-before: 25px; |
571 } | 507 } |
572 | 508 |
573 .side-pane-container .reminder { | 509 .side-pane-container .reminder { |
574 font-weight: bold; | 510 font-weight: bold; |
575 } | 511 } |
576 | 512 |
577 .side-pane-container .enter-button { | 513 .enter-button-container { |
578 bottom: 5px; | 514 display: flex; |
579 display: block; | 515 justify-content: flex-end; |
580 float: right; | |
581 } | 516 } |
582 | 517 |
583 html[dir=rtl] .side-pane-container .enter-button { | 518 html[dir=rtl] .side-pane-container .enter-button { |
584 left: 5px; | 519 left: 5px; |
585 right: auto; | 520 right: auto; |
586 } | 521 } |
587 | 522 |
588 .pod.public-account.expanded { | 523 .pod.public-account.expanded { |
589 padding: 10px; | |
590 width: 400px; | 524 width: 400px; |
591 } | 525 } |
592 | 526 |
593 .pod.public-account:not(.expanded) { | 527 .pod.public-account:not(.expanded) { |
594 max-height: 204px; | 528 max-height: 204px; |
595 } | 529 } |
596 | 530 |
597 .pod.public-account.expanded .name, | 531 .pod.public-account.expanded .name, |
598 .pod.public-account.expanded .learn-more { | 532 .pod.public-account.expanded .learn-more { |
599 display: none; | 533 display: none; |
600 } | 534 } |
601 | 535 |
602 .pod.public-account.expanded .side-pane-divider, | |
603 .pod.public-account.expanded .side-pane-container, | 536 .pod.public-account.expanded .side-pane-container, |
604 .pod.public-account.animating .side-pane-container { | 537 .pod.public-account.animating .side-pane-container { |
605 visibility: inherit; | 538 visibility: inherit; |
606 } | 539 } |
540 */ | |
OLD | NEW |