| OLD | NEW |
| 1 /* Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 /* Copyright (c) 2012 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 -webkit-box-align: center; | 9 -webkit-box-align: center; |
| 10 -webkit-box-pack: center; | 10 -webkit-box-pack: center; |
| 11 -webkit-transition: all 200ms ease-in-out; | 11 -webkit-transition: all 200ms ease-in-out; |
| 12 display: -webkit-box; | 12 display: -webkit-box; |
| 13 height: 225px; | 13 height: 225px; |
| 14 position: relative; | 14 position: relative; |
| 15 } | 15 } |
| 16 | 16 |
| 17 .pod { | 17 .pod { |
| 18 -webkit-transition: all 230ms ease; | 18 -webkit-transition: all 230ms ease; |
| 19 border-radius: 2px; | 19 border-radius: 2px; |
| 20 cursor: pointer; | 20 cursor: pointer; |
| 21 margin: 0 10px; | 21 margin: 0 10px; |
| 22 outline: none; | 22 outline: none; |
| 23 padding: 10px; | 23 padding: 10px; |
| 24 position: relative; | 24 position: relative; |
| 25 text-align: center; | 25 text-align: center; |
| 26 width: 170px; | 26 width: 170px; |
| 27 } | 27 } |
| 28 | 28 |
| 29 .pod .user-image { | 29 .pod .user-image { |
| 30 -webkit-box-shadow: 0 3px 12px #ccc; | |
| 31 -webkit-transition: all 140ms ease; | 30 -webkit-transition: all 140ms ease; |
| 32 background-color: #fff; | 31 background-color: #fff; |
| 33 border: 1px solid #ccc; | 32 border: 1px solid #ccc; |
| 34 border-radius: 2px; | 33 border-radius: 2px; |
| 34 box-shadow: 0 3px 12px #ccc; |
| 35 height: 160px; | 35 height: 160px; |
| 36 margin-bottom: 10px; | 36 margin-bottom: 10px; |
| 37 padding: 4px; | 37 padding: 4px; |
| 38 width: 160px; | 38 width: 160px; |
| 39 } | 39 } |
| 40 | 40 |
| 41 .pod.focused { | 41 .pod.focused { |
| 42 cursor: default; | 42 cursor: default; |
| 43 } | 43 } |
| 44 | 44 |
| 45 .pod.faded { | 45 .pod.faded { |
| 46 opacity: .75; | 46 opacity: .75; |
| 47 } | 47 } |
| 48 | 48 |
| 49 .pod.focused .user-image { | 49 .pod.focused .user-image { |
| 50 -webkit-box-shadow: 0 6px 16px #a4a4a4; | |
| 51 -webkit-transform: translateY(-1px); | 50 -webkit-transform: translateY(-1px); |
| 51 box-shadow: 0 6px 16px #a4a4a4; |
| 52 } | 52 } |
| 53 | 53 |
| 54 .pod.init { | 54 .pod.init { |
| 55 -webkit-transform: scale(2.4); |
| 55 opacity: 0; | 56 opacity: 0; |
| 56 -webkit-transform: scale(2.4); | |
| 57 } | 57 } |
| 58 | 58 |
| 59 .pod.left { | 59 .pod.left { |
| 60 -webkit-transform: translateX(-25px); | 60 -webkit-transform: translateX(-25px); |
| 61 opacity: 0; | 61 opacity: 0; |
| 62 } | 62 } |
| 63 | 63 |
| 64 .pod.right { | 64 .pod.right { |
| 65 -webkit-transform: translateX(25px); | 65 -webkit-transform: translateX(25px); |
| 66 opacity: 0; | 66 opacity: 0; |
| 67 } | 67 } |
| 68 | 68 |
| 69 .pod.zoom { | 69 .pod.zoom { |
| 70 -webkit-transform: scale(2.2); | 70 -webkit-transform: scale(2.2); |
| 71 opacity: 0; | 71 opacity: 0; |
| 72 } | 72 } |
| 73 | 73 |
| 74 .name { | 74 .name { |
| 75 -webkit-transition: opacity 800ms ease; | 75 -webkit-transition: opacity 800ms ease; |
| 76 color: #565656; | 76 color: #565656; |
| 77 font-size: 15px; |
| 77 font-weight: bold; | 78 font-weight: bold; |
| 78 font-size: 15px; | |
| 79 margin: 4px 0; | 79 margin: 4px 0; |
| 80 overflow: hidden; | 80 overflow: hidden; |
| 81 text-overflow: ellipsis; | 81 text-overflow: ellipsis; |
| 82 } | 82 } |
| 83 | 83 |
| 84 .name.init { | 84 .name.init { |
| 85 opacity: 0; | 85 opacity: 0; |
| 86 } | 86 } |
| 87 | 87 |
| 88 .pod.focused .name { | 88 .pod.focused .name { |
| 89 display: none; | 89 display: none; |
| 90 } | 90 } |
| 91 | 91 |
| 92 .pod input[type='password'] { | 92 .pod input[type='password'] { |
| 93 -webkit-border-radius: 2px; | 93 -webkit-border-radius: 2px; |
| 94 -webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, .1), | 94 -webkit-transition: box-shadow 100ms, background 100ms, border 500ms; |
| 95 0 1px 0 white, | |
| 96 0 0 1px transparent, | |
| 97 0 0 1px transparent, | |
| 98 0 0 1px transparent; | |
| 99 -webkit-transition: -webkit-box-shadow 100ms, background 100ms, border 500ms;
| |
| 100 border: 1px solid #aaa; | 95 border: 1px solid #aaa; |
| 96 box-shadow: inset 0 2px 2px rgba(0, 0, 0, .1), |
| 97 0 1px 0 white, |
| 98 0 0 1px transparent, |
| 99 0 0 1px transparent, |
| 100 0 0 1px transparent; |
| 101 box-sizing: border-box; | 101 box-sizing: border-box; |
| 102 height: 26px; | 102 height: 26px; |
| 103 padding: 4px 6px; | 103 padding: 4px 6px; |
| 104 width: 100%; | 104 width: 100%; |
| 105 } | 105 } |
| 106 | 106 |
| 107 .pod:not(.focused) input[type='password'] { | 107 .pod:not(.focused) input[type='password'] { |
| 108 display: none; | 108 display: none; |
| 109 } | 109 } |
| 110 | 110 |
| 111 .pod input[type='password']:focus { | 111 .pod input[type='password']:focus { |
| 112 -webkit-box-shadow: inset 0 2px 2px rgba(0, 0, 0, .15), | 112 -webkit-transition: box-shadow 200ms, background 200ms, border 200ms; |
| 113 0 1px 0 transparent, | |
| 114 0 0 1px #c0c0c0, | |
| 115 0 0 1px #c0c0c0, | |
| 116 0 0 1px #c0c0c0; | |
| 117 -webkit-transition: -webkit-box-shadow 200ms, background 200ms, border 200ms; | |
| 118 background: #f8f8f8; | 113 background: #f8f8f8; |
| 119 border-color: #4080fa; | 114 border-color: rgb(64, 128, 250); |
| 115 box-shadow: inset 0 2px 2px rgba(0, 0, 0, .15), |
| 116 0 1px 0 transparent, |
| 117 0 0 1px #c0c0c0, |
| 118 0 0 1px #c0c0c0, |
| 119 0 0 1px #c0c0c0; |
| 120 outline: none; | 120 outline: none; |
| 121 } | 121 } |
| 122 | 122 |
| 123 .pod .enter-guest-button, | 123 .pod .enter-guest-button, |
| 124 .pod .signin-button { | 124 .pod .signin-button { |
| 125 box-sizing: border-box; | 125 box-sizing: border-box; |
| 126 display: inline-block; | 126 display: inline-block; |
| 127 height: 26px; | 127 height: 26px; |
| 128 max-width: 100%; |
| 129 min-width: 94px; |
| 128 padding: 4px 8px; | 130 padding: 4px 8px; |
| 129 min-width: 94px; | |
| 130 max-width: 100%; | |
| 131 } | 131 } |
| 132 | 132 |
| 133 .pod:not(.focused) .enter-guest-button, | 133 .pod:not(.focused) .enter-guest-button, |
| 134 .pod:not(.focused) .signin-button { | 134 .pod:not(.focused) .signin-button { |
| 135 display: none; | 135 display: none; |
| 136 } | 136 } |
| 137 | 137 |
| 138 /* TODO(ivankr): this element is anchored to .pod while should be to | 138 /* TODO(ivankr): this element is anchored to .pod while should be to |
| 139 * .password. Perhaps add a DIV container for both .password and .password-hint. | 139 * .password. Perhaps add a DIV container for both .password and .password-hint. |
| 140 */ | 140 */ |
| (...skipping 17 matching lines...) Expand all Loading... |
| 158 .pod.focused input[type='password']:not([hidden]).empty + .password-hint { | 158 .pod.focused input[type='password']:not([hidden]).empty + .password-hint { |
| 159 visibility: visible; | 159 visibility: visible; |
| 160 } | 160 } |
| 161 | 161 |
| 162 .pod .capslock-hint { | 162 .pod .capslock-hint { |
| 163 cursor: text; | 163 cursor: text; |
| 164 padding: 4px 8px; | 164 padding: 4px 8px; |
| 165 position: absolute; | 165 position: absolute; |
| 166 right: 10px; | 166 right: 10px; |
| 167 top: 194px; | 167 top: 194px; |
| 168 visibility: hidden; |
| 168 z-index: 1; | 169 z-index: 1; |
| 169 visibility: hidden; | |
| 170 } | 170 } |
| 171 | 171 |
| 172 html[dir=rtl] .pod .capslock-hint { | 172 html[dir=rtl] .pod .capslock-hint { |
| 173 left: 10px; | 173 left: 10px; |
| 174 right: auto; | 174 right: auto; |
| 175 } | 175 } |
| 176 | 176 |
| 177 .capslock-on .pod.focused input[type='password']:not([hidden]) ~ .capslock-hint
{ | 177 .capslock-on .pod.focused input[type='password']:not([hidden]) ~ .capslock-hint
{ |
| 178 visibility: visible; | 178 visibility: visible; |
| 179 } | 179 } |
| 180 | 180 |
| 181 .remove-user-button { | 181 .remove-user-button { |
| 182 -webkit-transition: width 100ms ease-in-out, background 200ms ease-in-out; | 182 -webkit-transition: width 100ms ease-in-out, background 200ms ease-in-out; |
| 183 -webkit-box-shadow: none; | |
| 184 background: url('../../../../../ui/resources/close_bar.png') center center no-
repeat; | 183 background: url('../../../../../ui/resources/close_bar.png') center center no-
repeat; |
| 185 border: 0; | 184 border: 0; |
| 185 box-shadow: none; |
| 186 height: 16px; | 186 height: 16px; |
| 187 margin: 0; | 187 margin: 0; |
| 188 min-width: 16px; | 188 min-width: 16px; |
| 189 padding: 0; | 189 padding: 0; |
| 190 position: absolute; | 190 position: absolute; |
| 191 right: 14px; | 191 right: 14px; |
| 192 top: 14px; | 192 top: 14px; |
| 193 width: 16px; | 193 width: 16px; |
| 194 } | 194 } |
| 195 | 195 |
| 196 .remove-user-button:hover { | 196 .remove-user-button:hover { |
| 197 -webkit-box-shadow: none; | |
| 198 background: url('../../../../../ui/resources/close_bar_h.png') center center n
o-repeat; | 197 background: url('../../../../../ui/resources/close_bar_h.png') center center n
o-repeat; |
| 198 box-shadow: none; |
| 199 } | 199 } |
| 200 | 200 |
| 201 .remove-user-button.active { | 201 .remove-user-button.active { |
| 202 background-color: #e94949; | 202 background-color: rgb(233, 73, 73); |
| 203 background-image: none; | 203 background-image: none; |
| 204 border-radius: 4px; | 204 border-radius: 4px; |
| 205 color: white; | 205 color: white; |
| 206 font-size: 10px; | 206 font-size: 10px; |
| 207 height: initial; | 207 height: initial; |
| 208 padding: 2px 4px; | 208 padding: 2px 4px; |
| 209 width: initial; | 209 width: initial; |
| 210 } | 210 } |
| 211 | 211 |
| 212 .signed-in-indicator { | 212 .signed-in-indicator { |
| 213 -webkit-transition: all 140ms ease; | 213 -webkit-transition: all 140ms ease; |
| 214 background: rgba(0, 0, 0, 0.5); | 214 background: rgba(0, 0, 0, 0.5); |
| 215 color: white; | 215 color: white; |
| 216 font-size: small; | 216 font-size: small; |
| 217 margin: 5px; | 217 margin: 5px; |
| 218 padding: 3px 0; | 218 padding: 3px 0; |
| 219 position: absolute; | 219 position: absolute; |
| 220 /* Width of .user-image. */ | 220 /* Width of .user-image. */ |
| 221 width: 160px; | 221 width: 160px; |
| 222 z-index: 1; | 222 z-index: 1; |
| 223 } | 223 } |
| 224 | 224 |
| 225 .pod.focused .signed-in-indicator { | 225 .pod.focused .signed-in-indicator { |
| 226 /* Track shifting of .user-image on pod focus. */ | 226 /* Track shifting of .user-image on pod focus. */ |
| 227 -webkit-transform: translateY(-1px); | 227 -webkit-transform: translateY(-1px); |
| 228 } | 228 } |
| OLD | NEW |