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