Chromium Code Reviews| 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 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 500ms ease-in-out, | |
| 40 padding 500ms ease-in-out, | |
| 41 top 500ms ease-in-out, | |
| 42 width 500ms ease-in-out; | |
|
xiyuan
2016/06/24 21:19:09
Why 500ms? Feel kind of slow. Do we have UX stampe
sammiequon
2016/06/24 22:06:39
we don't have UX stamp. 500ms was a guess.
sammiequon
2016/06/24 22:06:39
Done.
xiyuan
2016/06/24 22:13:16
180ms is better. But check with UX about all anima
| |
| 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; | |
| 59 } | |
| 60 | |
| 61 #account-picker { | |
|
xiyuan
2016/06/24 21:19:09
move this into screen_account_picker.css ?
sammiequon
2016/06/24 22:06:39
Done.
sammiequon
2016/06/24 22:06:39
removed.
| |
| 62 height: 100%; | |
| 63 width: 100%; | |
| 40 } | 64 } |
| 41 | 65 |
| 42 .pod.faded { | 66 .pod.faded { |
| 43 opacity: .75; | 67 opacity: .75; |
| 44 } | 68 } |
| 45 | 69 |
| 46 podrow[ncolumns='6'] .pod { | 70 podrow[ncolumns='6'] .pod { |
| 47 transform: scale3d(0.8, 0.8, 0.8); | 71 transform: scale3d(0.8, 0.8, 0.8); |
| 48 } | 72 } |
| 49 | 73 |
| 50 .pod.focused { | 74 .pod.focused { |
| 51 /* Focused pod has the same size no matter how many pods. */ | 75 /* Focused pod has the same size no matter how many pods. */ |
| 52 cursor: default; | 76 cursor: default; |
| 53 transform: scale3d(1, 1, 1) !important; | 77 transform: scale3d(1, 1, 1) !important; |
| 54 z-index: 1; | 78 z-index: 1; |
| 55 } | 79 } |
| 56 | 80 |
| 57 .pod.focused[auth-type='userClick'] { | 81 .pod.focused[auth-type='userClick'] { |
| 58 cursor: pointer; | 82 cursor: pointer; |
| 59 } | 83 } |
| 60 | 84 |
| 61 .user-image-pane { | 85 .user-image-pane { |
| 62 background-color: white; | 86 background-color: white; |
| 63 height: 160px; | |
| 64 left: 10px; | |
| 65 position: absolute; | |
| 66 top: 10px; | |
| 67 width: 160px; | |
| 68 z-index: 3; | |
| 69 } | 87 } |
| 70 | 88 |
| 71 html[dir=rtl] .user-image-pane { | 89 html[dir=rtl] .user-image-pane { |
| 72 left: auto; | 90 left: auto; |
| 73 right: 10px; | 91 right: 10px; |
| 74 } | 92 } |
| 75 | 93 |
| 76 .user-image-container { | 94 .user-image-container { |
| 77 align-items: center; | 95 align-items: center; |
| 78 display: flex; | 96 display: flex; |
| 79 height: 100%; | 97 height: 100%; |
| 80 justify-content: center; | 98 justify-content: center; |
| 81 width: 100%; | 99 width: 100%; |
| 82 } | 100 } |
| 83 | 101 |
| 84 .pod .user-image { | 102 .pod .user-image { |
| 85 flex: none; | 103 flex: none; |
| 86 } | 104 } |
| 87 | 105 |
| 88 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the | 106 /* 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 */ | 107 style rule once it is included on CrOS only. crbug.com/397638 */ |
| 90 html:not([screen=login-add-user]) .pod .user-image { | 108 html:not([screen=login-add-user]) .pod .user-image { |
| 91 max-height: 160px; | 109 max-height: 160px; |
| 92 max-width: 160px; | 110 max-width: 160px; |
| 93 opacity: 0.7; | 111 opacity: 0.7; |
| 112 position: absolute; | |
| 113 top: 10px; | |
| 114 transition: max-height 500ms ease-in-out, | |
| 115 max-width 500ms ease-in-out; | |
| 116 } | |
| 117 | |
| 118 html:not([screen=login-add-user]) .pod .user-image.pin-enabled { | |
| 119 max-height: 256px; | |
| 120 max-width: 256px; | |
| 94 } | 121 } |
| 95 | 122 |
| 96 html:not([screen=login-add-user]) .pod.focused .user-image { | 123 html:not([screen=login-add-user]) .pod.focused .user-image { |
| 97 opacity: 1; | 124 opacity: 1; |
| 98 } | 125 } |
| 99 | 126 |
| 100 .pod.multiprofiles-policy-applied .user-image { | 127 .pod.multiprofiles-policy-applied .user-image { |
| 101 -webkit-filter: grayscale(100%); | 128 -webkit-filter: grayscale(100%); |
| 102 } | 129 } |
| 103 | 130 |
| 104 .signed-in-indicator { | 131 .signed-in-indicator { |
| 105 display: none; | 132 display: none; |
| 106 } | 133 } |
| 107 | 134 |
| 108 .pod.signed-in .signed-in-indicator { | 135 .pod.signed-in .signed-in-indicator { |
| 109 background-color: rgba(0, 0, 0, 0.5); | 136 background-color: rgba(0, 0, 0, 0.5); |
| 110 color: white; | 137 color: white; |
| 111 display: block; | 138 display: block; |
| 112 font-size: small; | 139 font-size: small; |
| 113 padding: 3px 0; | 140 left: 10px; |
| 114 position: absolute; | 141 position: absolute; |
| 115 text-align: center; | 142 text-align: center; |
| 116 top: 0; | 143 top: 10px; |
| 117 width: 100%; | 144 transition: width 500ms ease-in-out; |
| 145 width: 160px; | |
| 146 } | |
| 147 | |
| 148 .pod.signed-in .signed-in-indicator.pin-enabled { | |
| 149 width: 256px; | |
| 118 } | 150 } |
| 119 | 151 |
| 120 .main-pane { | 152 .main-pane { |
| 121 left: 10px; | 153 left: 10px; |
| 122 position: absolute; | 154 position: absolute; |
| 123 top: 10px; | 155 top: 10px; |
| 124 z-index: 2; | 156 z-index: 2; |
| 125 } | 157 } |
| 126 | 158 |
| 127 html[dir=rtl] .main-pane { | 159 html[dir=rtl] .main-pane { |
| 128 left: auto; | 160 left: auto; |
| 129 right: 10px; | 161 right: 10px; |
| 130 } | 162 } |
| 131 | 163 |
| 132 .name-container, | 164 .name-container, |
| 133 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { | 165 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { |
| 134 background-color: white; | 166 background-color: white; |
| 135 display: flex; | 167 display: flex; |
| 136 position: absolute; | 168 position: absolute; |
| 137 top: 160px; | 169 top: 160px; |
| 138 width: 160px; | 170 width: 160px; |
| 139 } | 171 } |
| 140 | 172 |
| 173 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { | |
| 174 background-color: white; | |
| 175 position: absolute; | |
| 176 top: 160px; | |
| 177 width: 160px; | |
| 178 } | |
| 179 | |
| 180 .auth-container.pin-disabled { | |
| 181 opacity: 1; | |
| 182 transition: opacity 200ms ease-in-out 500ms, | |
| 183 visibility 200ms ease-in-out 500ms; | |
| 184 visibility: visible; | |
| 185 } | |
| 186 | |
| 187 .auth-container.pin-enabled { | |
| 188 opacity: 0; | |
| 189 transition: none; | |
| 190 visibility: hidden; | |
|
xiyuan
2016/06/24 21:19:09
Why we need to use visibility? Do we need to reser
sammiequon
2016/06/24 22:06:39
i use visibility to prevent people from tabbing to
xiyuan
2016/06/24 22:13:17
Do you need to keep the element's space while it i
sammiequon
2016/06/24 22:39:01
i think i do because the pin-keyboard is considere
xiyuan
2016/06/24 22:43:54
Okay then.
jdufault
2016/06/24 22:57:05
Add a comment noting that?
| |
| 191 } | |
| 192 | |
| 141 .name-container { | 193 .name-container { |
| 142 transition: transform 180ms; | 194 transition: transform 180ms; |
| 143 } | 195 } |
| 144 | 196 |
| 145 .pod.focused .name-container { | 197 .pod.focused .name-container { |
| 146 display: none; | 198 display: none; |
| 147 } | 199 } |
| 148 | 200 |
| 149 .pod.focused.multiprofiles-policy-applied .name-container { | 201 .pod.focused.multiprofiles-policy-applied .name-container { |
| 150 display: flex; | 202 display: flex; |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 830 -webkit-animation: ellipsis-component2 1.5s infinite; | 882 -webkit-animation: ellipsis-component2 1.5s infinite; |
| 831 } | 883 } |
| 832 | 884 |
| 833 @-webkit-keyframes ellipsis-component2 { | 885 @-webkit-keyframes ellipsis-component2 { |
| 834 0% { opacity: 0; } | 886 0% { opacity: 0; } |
| 835 25% { opacity: 0; } | 887 25% { opacity: 0; } |
| 836 50% { opacity: 0; } | 888 50% { opacity: 0; } |
| 837 75% { opacity: 1; } | 889 75% { opacity: 1; } |
| 838 100% { opacity: 0; } | 890 100% { opacity: 0; } |
| 839 } | 891 } |
| OLD | NEW |