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. */ |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 23 -webkit-tap-highlight-color: transparent; | 23 -webkit-tap-highlight-color: transparent; |
| 24 background-color: white; | 24 background-color: white; |
| 25 border-radius: 2px; | 25 border-radius: 2px; |
| 26 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), |
| 27 0 2px 6px rgba(0, 0, 0, 0.15), | 27 0 2px 6px rgba(0, 0, 0, 0.15), |
| 28 0 3px 0 rgba(0, 0, 0, 0.08); | 28 0 3px 0 rgba(0, 0, 0, 0.08); |
| 29 cursor: pointer; | 29 cursor: pointer; |
| 30 height: 213px; | 30 height: 213px; |
| 31 outline: none; | 31 outline: none; |
| 32 position: absolute; | 32 position: absolute; |
| 33 top: 0; | |
| 33 transform: scale3d(0.9, 0.9, 0.9); | 34 transform: scale3d(0.9, 0.9, 0.9); |
| 35 transition: height 500ms ease-in-out, | |
| 36 padding 500ms ease-in-out, | |
| 37 top 500ms ease-in-out, | |
| 38 width 500ms ease-in-out; | |
| 34 width: 180px; | 39 width: 180px; |
| 35 z-index: 0; | 40 z-index: 0; |
| 36 } | 41 } |
| 37 | 42 |
| 38 .account-picker.flying-pods .pod { | 43 .pod.pin-enabled { |
| 39 transition: all 180ms; | 44 height: 600px; |
| 45 padding: 10px; | |
| 46 top: -200px !important; | |
| 47 width: 256px; | |
| 48 } | |
| 49 | |
| 50 .pod #pin-container { | |
| 51 display: block; | |
| 52 height: 334px; | |
| 53 position: absolute; | |
| 54 top: 276px; | |
| 55 width: 256px; | |
| 56 } | |
| 57 | |
| 58 #account-picker { | |
| 59 height: 100%; | |
| 60 width: 100%; | |
| 40 } | 61 } |
| 41 | 62 |
| 42 .pod.faded { | 63 .pod.faded { |
| 43 opacity: .75; | 64 opacity: .75; |
| 44 } | 65 } |
| 45 | 66 |
| 46 podrow[ncolumns='6'] .pod { | 67 podrow[ncolumns='6'] .pod { |
| 47 transform: scale3d(0.8, 0.8, 0.8); | 68 transform: scale3d(0.8, 0.8, 0.8); |
| 48 } | 69 } |
| 49 | 70 |
| 50 .pod.focused { | 71 .pod.focused { |
| 51 /* Focused pod has the same size no matter how many pods. */ | 72 /* Focused pod has the same size no matter how many pods. */ |
| 52 cursor: default; | 73 cursor: default; |
| 53 transform: scale3d(1, 1, 1) !important; | 74 transform: scale3d(1, 1, 1) !important; |
| 54 z-index: 1; | 75 z-index: 1; |
| 55 } | 76 } |
| 56 | 77 |
| 57 .pod.focused[auth-type='userClick'] { | 78 .pod.focused[auth-type='userClick'] { |
| 58 cursor: pointer; | 79 cursor: pointer; |
| 59 } | 80 } |
| 60 | 81 |
| 61 .user-image-pane { | 82 .user-image-pane { |
| 62 background-color: white; | 83 background-color: white; |
| 63 height: 160px; | |
| 64 left: 10px; | |
| 65 position: absolute; | |
| 66 top: 10px; | |
| 67 width: 160px; | |
| 68 z-index: 3; | |
| 69 } | 84 } |
| 70 | 85 |
| 71 html[dir=rtl] .user-image-pane { | 86 html[dir=rtl] .user-image-pane { |
| 72 left: auto; | 87 left: auto; |
| 73 right: 10px; | 88 right: 10px; |
| 74 } | 89 } |
| 75 | 90 |
| 76 .user-image-container { | 91 .user-image-container { |
| 77 align-items: center; | 92 align-items: center; |
| 78 display: flex; | 93 display: flex; |
| 79 height: 100%; | 94 height: 100%; |
| 80 justify-content: center; | 95 justify-content: center; |
| 81 width: 100%; | 96 width: 100%; |
| 82 } | 97 } |
| 83 | 98 |
| 84 .pod .user-image { | 99 .pod .user-image { |
| 85 flex: none; | 100 flex: none; |
| 86 } | 101 } |
| 87 | 102 |
| 88 /* TODO(noms): Refactor this out into a CrOS-specific file and simplify the | 103 /* 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 */ | 104 style rule once it is included on CrOS only. crbug.com/397638 */ |
| 90 html:not([screen=login-add-user]) .pod .user-image { | 105 html:not([screen=login-add-user]) .pod .user-image { |
| 91 max-height: 160px; | 106 max-height: 160px; |
| 92 max-width: 160px; | 107 max-width: 160px; |
| 93 opacity: 0.7; | 108 opacity: 0.7; |
| 109 position: absolute; | |
| 110 top: 10px; | |
| 111 transition: max-height 500ms ease-in-out, | |
| 112 max-width 500ms ease-in-out; | |
| 113 } | |
| 114 | |
| 115 html:not([screen=login-add-user]) .pod .user-image.pin-enabled { | |
| 116 max-height: 256px; | |
| 117 max-width: 256px; | |
| 94 } | 118 } |
| 95 | 119 |
| 96 html:not([screen=login-add-user]) .pod.focused .user-image { | 120 html:not([screen=login-add-user]) .pod.focused .user-image { |
| 97 opacity: 1; | 121 opacity: 1; |
| 98 } | 122 } |
| 99 | 123 |
| 100 .pod.multiprofiles-policy-applied .user-image { | 124 .pod.multiprofiles-policy-applied .user-image { |
| 101 -webkit-filter: grayscale(100%); | 125 -webkit-filter: grayscale(100%); |
| 102 } | 126 } |
| 103 | 127 |
| 104 .signed-in-indicator { | 128 .signed-in-indicator { |
| 105 display: none; | 129 display: none; |
| 106 } | 130 } |
| 107 | 131 |
| 108 .pod.signed-in .signed-in-indicator { | 132 .pod.signed-in .signed-in-indicator { |
| 109 background-color: rgba(0, 0, 0, 0.5); | 133 background-color: rgba(0, 0, 0, 0.5); |
| 110 color: white; | 134 color: white; |
| 111 display: block; | 135 display: block; |
| 112 font-size: small; | 136 font-size: small; |
| 113 padding: 3px 0; | 137 left: 10px; |
| 114 position: absolute; | 138 position: absolute; |
| 115 text-align: center; | 139 text-align: center; |
| 116 top: 0; | 140 top: 10px; |
| 117 width: 100%; | 141 transition: width 500ms ease-in-out; |
| 142 width: 160px; | |
| 143 } | |
| 144 | |
| 145 .pod.signed-in .signed-in-indicator.pin-enabled { | |
| 146 width: 256px; | |
| 118 } | 147 } |
| 119 | 148 |
| 120 .main-pane { | 149 .main-pane { |
| 121 left: 10px; | 150 left: 10px; |
| 122 position: absolute; | 151 position: absolute; |
| 123 top: 10px; | 152 top: 10px; |
| 124 z-index: 2; | 153 z-index: 2; |
| 125 } | 154 } |
| 126 | 155 |
| 127 html[dir=rtl] .main-pane { | 156 html[dir=rtl] .main-pane { |
| 128 left: auto; | 157 left: auto; |
| 129 right: 10px; | 158 right: 10px; |
| 130 } | 159 } |
| 131 | 160 |
| 132 .name-container, | 161 .name-container, |
| 133 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { | 162 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { |
| 134 background-color: white; | 163 background-color: white; |
| 135 display: flex; | 164 display: flex; |
| 136 position: absolute; | 165 position: absolute; |
| 137 top: 160px; | 166 top: 160px; |
| 138 width: 160px; | 167 width: 160px; |
| 139 } | 168 } |
| 140 | 169 |
| 170 .auth-container.pin-disabled { | |
| 171 opacity: 1; | |
| 172 transition: opacity 200ms ease-in-out 500ms; | |
| 173 } | |
| 174 | |
| 175 .auth-container.pin-enabled { | |
|
jdufault
2016/06/15 22:20:39
Can the user still access this element by tabbing
sammiequon
2016/06/17 01:00:43
Done.
| |
| 176 opacity: 0; | |
| 177 transition: none; | |
| 178 } | |
| 179 | |
| 141 .name-container { | 180 .name-container { |
| 142 transition: transform 180ms; | 181 transition: transform 180ms; |
| 143 } | 182 } |
| 144 | 183 |
| 145 .pod.focused .name-container { | 184 .pod.focused .name-container { |
| 146 display: none; | 185 display: none; |
| 147 } | 186 } |
| 148 | 187 |
| 149 .pod.focused.multiprofiles-policy-applied .name-container { | 188 .pod.focused.multiprofiles-policy-applied .name-container { |
| 150 display: flex; | 189 display: flex; |
| (...skipping 679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 830 -webkit-animation: ellipsis-component2 1.5s infinite; | 869 -webkit-animation: ellipsis-component2 1.5s infinite; |
| 831 } | 870 } |
| 832 | 871 |
| 833 @-webkit-keyframes ellipsis-component2 { | 872 @-webkit-keyframes ellipsis-component2 { |
| 834 0% { opacity: 0; } | 873 0% { opacity: 0; } |
| 835 25% { opacity: 0; } | 874 25% { opacity: 0; } |
| 836 50% { opacity: 0; } | 875 50% { opacity: 0; } |
| 837 75% { opacity: 1; } | 876 75% { opacity: 1; } |
| 838 100% { opacity: 0; } | 877 100% { opacity: 0; } |
| 839 } | 878 } |
| OLD | NEW |