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