Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(64)

Side by Side Diff: chrome/browser/resources/md_user_manager/user_manager.css

Issue 1642323004: User Manager MD User Pods (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: addressed Roger's comments, css cleanup, rtl css tweak Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 /* Copyright 2016 The Chromium Authors. All rights reserved. 1 /* Copyright 2016 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 5
6 /* Overrides for the desktop user manager screen. */ 6 /* Overrides for the desktop user manager screen. */
7 7
8 .oobe-display { 8 .oobe-display {
9 background-color: #eee; 9 background-color: #eee;
10 } 10 }
11 11
12 #outer-container { 12 #outer-container {
13 min-height: 0; 13 min-height: 0;
14 overflow: auto;
15 }
16
17 #oobe {
18 margin-bottom: 10px;
19 margin-top: 40px;
20 }
21
22 #outer-container::-webkit-scrollbar {
23 height: 0;
24 width: 0;
14 } 25 }
15 26
16 .bubble.faded { 27 .bubble.faded {
17 opacity: 0; 28 opacity: 0;
18 } 29 }
19 30
31 control-bar {
32 bottom: 0;
33 left: 0;
34 position: absolute;
35 right: 0;
36 z-index: 1;
37 }
38
39 #login-header-bar.shadow {
40 box-shadow: 0 -1px 3px rgba(0, 0, 0, .2);
41 }
42
20 .pod { 43 .pod {
21 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); 44 box-shadow:
22 height: 226px; 45 0 2px 2px 0 rgba(0, 0, 0, .24),
23 /* On non-retina desktop, the text is blurry if we use the scale3d() 46 0 0 2px 0 rgba(0, 0, 0, .12);
24 inherited from user_pod_row.js */ 47 cursor: default;
25 transform: scale(0.9); 48 height: auto;
26 } 49 transform: none;
27 50 width: auto;
28 podrow[ncolumns='6'] .pod { 51 }
29 transform: scale(0.8); 52
30 }
31
32 /* Because of crbug.com/406529, the text in the .name div is janky if there's
33 both a transform:scale and a transition:opacity applied to a div, so we must
34 apply the opacity change to the children instead. */
35 .pod.faded { 53 .pod.faded {
36 opacity: 1; 54 opacity: 1;
37 } 55 }
38 56
39 .pod.faded .user-image-pane, 57 .pod.focused,
40 .pod.faded .main-pane { 58 .pod.hovered {
41 opacity: .4; 59 box-shadow:
42 } 60 0 10px 10px 0 rgba(0, 0, 0, .26),
43 61 0 14px 28px 0 rgba(0, 0, 0, .25) !important;
44 .pod.hovered:not(.focused) {
45 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
46 }
47
48 .pod.focused {
49 box-shadow: 0 16px 21px rgba(0, 0, 0, 0.2);
50 transform: scale(1) !important;
51 } 62 }
52 63
53 .pod.focused.locked { 64 .pod.focused.locked {
54 box-shadow: 0 12px 21px rgba(0, 0, 0, 0.2); 65 box-shadow: 0 12px 21px rgba(0, 0, 0, .2);
55 height: 220px; 66 height: auto;
56 } 67 }
57 68
58 .user-image-pane { 69 .pod .user-image-pane {
59 border-top-left-radius: 2px; 70 border-top-left-radius: 2px;
60 border-top-right-radius: 2px; 71 border-top-right-radius: 2px;
61 height: 180px; 72 position: static;
62 left: 0;
63 top: 0;
64 width: 180px;
65 }
66
67 html[dir=rtl] .user-image-pane {
68 right: 0;
69 }
70
71 .pod .name {
72 margin-top: 12px;
73 } 73 }
74 74
75 .pod .user-image { 75 .pod .user-image {
76 height: 180px; 76 height: 160px;
77 width: 180px; 77 width: 160px;
78 } 78 }
79 79
80 .pod input[type='password'] { 80 .pod .main-pane {
81 height: 45px; /* 1px shorter as to not overlap the pod's rounded corners */ 81 line-height: 20px;
82 top: 1px; 82 padding: 10px;
83 position: static;
84 }
85
86 .pod .main-pane .name-container {
87 display: block;
88 position: static;
89 width: auto;
90 }
91
92 .pod .main-pane .name-container .name {
93 color: #333;
94 font-size: 13px;
95 margin: 0;
96 padding: 0;
97 text-align: left;
98 width: 118px;
99 }
100
101 html[dir='rtl'] .pod .main-pane .name-container .name {
102 text-align: right;
83 } 103 }
84 104
85 .pod .indicator-container { 105 .pod .indicator-container {
86 background-color: rgba(255, 255, 255, 0.85); 106 background-color: rgba(255, 255, 255, .85);
87 border-radius: 16px; 107 border-radius: 0;
88 height: 32px; 108 bottom: 10px;
89 left: 8px; 109 height: 20px;
90 position: absolute;
91 top: 8px;
92 }
93
94 html[dir=rtl] .pod .indicators {
95 left: auto; 110 left: auto;
96 right: 8px; 111 position: absolute;
97 } 112 right: 10px;
98 113 top: auto;
99 .pod .indicator { 114 width: 20px;
115 }
116
117 html[dir='rtl'] .pod .indicator-container {
118 left: 10px;
119 right: auto;
120 }
121
122 /* Using -webkit-mask on the indicators allows us to tweak the color. */
123 .pod .indicator-container > .indicator {
124 -webkit-mask-position: center;
125 -webkit-mask-repeat: no-repeat;
126 -webkit-mask-size: 20px;
127 background-color: rgb(150, 150, 150);
100 background-position: center; 128 background-position: center;
101 background-repeat: no-repeat; 129 background-repeat: no-repeat;
102 background-size: 18px; 130 background-size: 18px;
103 display: none; 131 display: none;
104 float: left; 132 float: left;
105 height: 32px; 133 height: 20px;
106 width: 32px; 134 width: 20px;
107 }
108
109 /* Using -webkit-mask on the indicators allows us to tweak the color. */
110 .pod .indicator-container > div {
111 -webkit-mask-position: center;
112 -webkit-mask-repeat: no-repeat;
113 -webkit-mask-size: 24px;
114 } 135 }
115 136
116 .pod.locked .locked-indicator { 137 .pod.locked .locked-indicator {
117 -webkit-mask-image: url(../../../../ui/webui/resources/images/lock.svg); 138 -webkit-mask-image: url(../../../../ui/webui/resources/images/lock.svg);
118 background-color: rgb(117, 117, 117);
119 display: initial; 139 display: initial;
120 } 140 }
121 141
122 .pod.legacy-supervised .legacy-supervised-indicator { 142 .pod.legacy-supervised .legacy-supervised-indicator {
123 -webkit-mask-image: 143 -webkit-mask-image:
124 url(../../../../ui/webui/resources/images/supervisor_account.svg); 144 url(../../../../ui/webui/resources/images/supervisor_account.svg);
125 background-color: rgb(66, 133, 244);
126 display: initial; 145 display: initial;
127 } 146 }
128 147
129 .pod.child .child-indicator { 148 .pod.child .child-indicator {
130 -webkit-mask-image: 149 -webkit-mask-image:
131 url(../../../../ui/webui/resources/images/account_child_invert.svg); 150 url(../../../../ui/webui/resources/images/account_child_invert.svg);
132 background-color: rgb(66, 133, 244);
133 display: initial; 151 display: initial;
134 } 152 }
135 153
136 .main-pane { 154 .action-box-area {
137 left: 0; 155 background-color: transparent;
156 background-image: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0) 100%);
157 border-radius: 0;
158 height: 56px;
159 outline: none;
160 position: absolute;
138 top: 0; 161 top: 0;
139 }
140
141 html[dir=rtl] .main-pane {
142 right: 0;
143 }
144
145 .name-container,
146 .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
147 top: 180px;
148 width: 180px;
149 }
150
151 .pod.focused:not(.locked) .name-container {
152 display: block;
153 }
154
155 .pod .name {
156 color: rgb(54, 54, 54);
157 font-size: 15px;
158 margin-top: 11px;
159 }
160
161 .pod.focused:not(.locked) .auth-container {
162 display: none;
163 }
164
165 .pod[auth-type='offlinePassword'].focused.locked .password-entry-container {
166 display: flex;
167 flex: auto;
168 }
169
170 .action-box-area {
171 background-color: rgb(245, 245, 245);
172 height: 24px;
173 /* Because of crbug.com/406529, the text in the .name div is janky if there's 162 /* Because of crbug.com/406529, the text in the .name div is janky if there's
174 an opacity transition in this div. */ 163 an opacity transition in this div. */
175 transition: none; 164 transition: none;
176 width: 24px; 165 width: 100%;
177 } 166 z-index: 1;
178 167 }
179 .action-box-button, 168
180 .action-box-button:hover, 169 .action-box-area.menu-moved-up {
170 -webkit-transform: none;
171 }
172
173 .action-box-area .action-box-button {
174 display: none;
175 }
176
177 .action-box-area .action-box-icon {
178 border: none;
179 color: #fff;
180 display: inline-flex;
181 left: auto;
182 margin: 0;
183 position: absolute;
184 right: -1px;
185 top: 4px;
186 }
187
188 .pod.focused:not(.locked) .auth-container {
189 display: none;
190 }
191
192 .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
193 left: 0;
194 }
195
196 .pod[auth-type='onlineSignIn'] .reauth-hint-container {
197 margin: 0;
198 padding: 10px 0;
199 }
200
201 .pod input[type='password'] {
202 font-family: Roboto;
203 font-size: 13px;
204 height: 40px;
205 line-height: 20px;
206 padding: 10px;
207 top: 0;
208 }
209
210 .reauth-hint-container .reauth-warning {
211 height: 20px;
212 width: 20px;
213 }
214
215 .reauth-hint-container .reauth-name-hint {
216 color: #333;
217 font-family: Roboto;
218 font-size: 13px;
219 }
220
181 .action-box-area.active .action-box-button { 221 .action-box-area.active .action-box-button {
182 background-image: none; 222 display: none;
183 border-left: 6px solid transparent; 223 }
184 border-right: 6px solid transparent; 224
185 border-top: 6px solid #989898; 225 .action-box-area.active ~ .action-box-menu:not(.menu-moved-up) {
186 height: 0; 226 top: 8px;
187 left: 6px; 227 }
188 margin: 0; 228
189 position: absolute; 229 .action-box-area.active ~ .action-box-menu {
190 top: 9px; 230 border: none;
191 width: 0; 231 box-shadow: 0 10px 20px 0 rgba(0, 0, 0, .19);
192 } 232 font-family: Roboto;
193 233 line-height: 20px;
194 .action-box-button:hover, 234 right: 8px;
195 .action-box-area.active .action-box-button { 235 width: 224px;
196 border-top: 6px solid #4c4c4c; 236 }
197 } 237
198 238 html[dir=rtl] .action-box-area.active ~ .action-box-menu {
199 .action-box-remove-user-warning .remove-warning-button { 239 /* forcing the menu to be positioned as in ltr */
200 height: 30px; 240 left: auto;
201 } 241 right: 8px;
202 242 }
203 .action-box-remove-user-warning .remove-warning-button:focus { 243
204 /* Override the default blue border inherited from 244 .action-box-menu-title {
205 button.custom-appearance:focus. */ 245 color: #333;
206 border: 1px solid transparent !important; 246 padding: 16px 12px 10px 12px;
207 box-shadow: inset 0 0 0 1px #fff; 247 }
208 } 248
249 .action-box-menu-title-name,
250 .action-box-menu-title-email {
251 height: auto;
252 line-height: 22px;
253 }
254
255 .action-box-menu-title-email {
256 color: rgb(103, 103, 103);
257 }
258
259 .action-box-menu-remove {
260 border-top: 1px solid rgba(0, 0, 0, .12);
261 color: #333;
262 line-height: 32px;
263 min-height: 0;
264 padding: 8px 12px;
265 }
266
267 .action-box-remove-user-warning {
268 border-top: 1px solid rgba(0, 0, 0, .12);
269 color: #333;
270 line-height: 20px;
271 padding: 12px;
272 }
273
274 .action-box-remove-user-warning {
275 text-align: center;
276 }
277
278 .action-box-remove-user-warning > div,
279 .action-box-remove-user-warning > table {
280 text-align: left;
281 word-wrap: break-word;
282 }
283
284 html[dir='rtl'] .action-box-remove-user-warning > div,
285 html[dir='rtl'] .action-box-remove-user-warning > table {
286 text-align: right;
287 }
288
289 .pod:not(.synced) .action-box-remove-user-warning-text {
290 font-weight: bold;
291 }
292
293 .action-box-remove-user-warning paper-button.remove-warning-button {
294 font-size: 13px;
295 min-width: 52px;
296 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698