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