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

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: rebase, css overview, bug fix Created 4 years, 9 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 body { 5 body {
6 background-color: #eee; 6 background-color: #eee;
tommycli 2016/03/11 18:59:14 can this also be a paper-grey?
Moe 2016/03/15 21:28:20 Done.
7 } 7 }
8 8
9 /* Overrides for the desktop user manager screen. */ 9 /* Overrides for the desktop user manager screen. */
10 10
11 #scroll-container {
12 bottom: 57px; /* Leave space for the control-bar */
13 }
14
11 #outer-container { 15 #outer-container {
12 min-height: 0; 16 min-height: 0;
13 } 17 }
14 18
19 #oobe {
20 margin-bottom: 10px;
21 margin-top: 40px;
22 }
23
15 .bubble.faded { 24 .bubble.faded {
16 opacity: 0; 25 opacity: 0;
17 } 26 }
18 27
28 #login-header-bar.shadow {
29 box-shadow: 0 -1px 3px rgba(0, 0, 0, .2);
30 }
31
19 .pod { 32 .pod {
20 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); 33 box-shadow:
21 height: 226px; 34 0 2px 2px 0 rgba(0, 0, 0, .24),
22 /* On non-retina desktop, the text is blurry if we use the scale3d() 35 0 0 2px 0 rgba(0, 0, 0, .12);
23 inherited from user_pod_row.js */ 36 color: var(--paper-grey-800);
24 transform: scale(0.9); 37 cursor: default;
25 } 38 height: auto;
26 39 transform: none;
27 podrow[ncolumns='6'] .pod { 40 width: auto;
28 transform: scale(0.8); 41 }
29 } 42
30
31 /* Because of crbug.com/406529, the text in the .name div is janky if there's
32 both a transform:scale and a transition:opacity applied to a div, so we must
33 apply the opacity change to the children instead. */
34 .pod.faded { 43 .pod.faded {
35 opacity: 1; 44 opacity: 1;
36 } 45 }
37 46
38 .pod.faded .user-image-pane, 47 .pod.focused,
39 .pod.faded .main-pane { 48 .pod.hovered {
40 opacity: .4; 49 box-shadow:
41 } 50 0 10px 10px 0 rgba(0, 0, 0, .26),
42 51 0 14px 28px 0 rgba(0, 0, 0, .25) !important;
43 .pod.hovered:not(.focused) {
44 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
45 }
46
47 .pod.focused {
48 box-shadow: 0 16px 21px rgba(0, 0, 0, 0.2);
49 transform: scale(1) !important;
50 } 52 }
51 53
52 .pod.focused.locked { 54 .pod.focused.locked {
53 box-shadow: 0 12px 21px rgba(0, 0, 0, 0.2); 55 box-shadow: 0 12px 21px rgba(0, 0, 0, .2);
54 height: 220px; 56 height: auto;
55 } 57 }
56 58
57 .user-image-pane { 59 .pod .user-image-pane {
58 border-top-left-radius: 2px; 60 border-top-left-radius: 2px;
59 border-top-right-radius: 2px; 61 border-top-right-radius: 2px;
60 height: 180px; 62 position: static;
61 left: 0;
62 top: 0;
63 width: 180px;
64 }
65
66 html[dir=rtl] .user-image-pane {
67 right: 0;
68 }
69
70 .pod .name {
71 margin-top: 12px;
72 } 63 }
73 64
74 .pod .user-image { 65 .pod .user-image {
75 height: 180px; 66 height: 160px;
76 width: 180px; 67 width: 160px;
77 } 68 }
78 69
79 .pod input[type='password'] { 70 .pod .main-pane {
80 height: 45px; /* 1px shorter as to not overlap the pod's rounded corners */ 71 line-height: 20px;
81 top: 1px; 72 padding: 10px;
73 position: static;
74 }
75
76 .pod .main-pane .name-container {
77 display: block;
78 position: static;
79 width: auto;
80 }
81
82 .pod .main-pane .name-container .name {
83 color: inherit;
84 font-size: inherit;
85 margin: 0;
86 padding: 0;
87 text-align: initial;
88 width: 118px;
82 } 89 }
83 90
84 .pod .indicator-container { 91 .pod .indicator-container {
85 background-color: rgba(255, 255, 255, 0.85); 92 background-color: rgba(255, 255, 255, .85);
86 border-radius: 16px; 93 border-radius: 0;
87 height: 32px; 94 bottom: 10px;
88 left: 8px; 95 height: 20px;
96 left: auto;
89 position: absolute; 97 position: absolute;
90 top: 8px; 98 right: 10px;
91 } 99 top: auto;
92 100 width: 20px;
93 html[dir=rtl] .pod .indicators { 101 }
94 left: auto; 102
95 right: 8px; 103 html[dir='rtl'] .pod .indicator-container {
96 } 104 left: 10px;
97 105 right: auto;
98 .pod .indicator { 106 }
107
108 /* Using -webkit-mask on the indicators allows us to tweak the color. */
109 .pod .indicator-container > .indicator {
110 -webkit-mask-position: center;
111 -webkit-mask-repeat: no-repeat;
112 -webkit-mask-size: 20px;
113 background-color: var(--paper-grey-600);
99 background-position: center; 114 background-position: center;
100 background-repeat: no-repeat; 115 background-repeat: no-repeat;
101 background-size: 18px; 116 background-size: 18px;
102 display: none; 117 display: none;
103 float: left; 118 float: left;
104 height: 32px; 119 height: 20px;
105 width: 32px; 120 width: 20px;
106 }
107
108 /* Using -webkit-mask on the indicators allows us to tweak the color. */
109 .pod .indicator-container > div {
110 -webkit-mask-position: center;
111 -webkit-mask-repeat: no-repeat;
112 -webkit-mask-size: 24px;
113 } 121 }
114 122
115 .pod.locked .locked-indicator { 123 .pod.locked .locked-indicator {
116 -webkit-mask-image: url(../../../../ui/webui/resources/images/lock.svg); 124 -webkit-mask-image: url(../../../../ui/webui/resources/images/lock.svg);
117 background-color: var(--paper-grey-600);
118 display: initial; 125 display: initial;
119 } 126 }
120 127
121 .pod.legacy-supervised .legacy-supervised-indicator { 128 .pod.legacy-supervised .legacy-supervised-indicator {
122 -webkit-mask-image: 129 -webkit-mask-image:
123 url(../../../../ui/webui/resources/images/supervisor_account.svg); 130 url(../../../../ui/webui/resources/images/supervisor_account.svg);
124 background-color: var(--google-blue-500);
125 display: initial; 131 display: initial;
126 } 132 }
127 133
128 .pod.child .child-indicator { 134 .pod.child .child-indicator {
129 -webkit-mask-image: 135 -webkit-mask-image:
130 url(../../../../ui/webui/resources/images/account_child_invert.svg); 136 url(../../../../ui/webui/resources/images/account_child_invert.svg);
131 background-color: var(--google-blue-500); 137 display: initial;
132 display: initial; 138 }
133 } 139
134 140 .action-box-area:focus ~ .user-image-gradient-area,
135 .main-pane { 141 .action-box-area.hovered ~ .user-image-gradient-area {
142 background-image: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0) 100%);
143 display: initial;
144 height: 56px;
145 position: absolute;
146 top: 0;
147 width: 100%;
148 }
149
150 .action-box-area {
151 background-color: transparent;
152 }
153
154 .action-box-area.menu-moved-up {
155 -webkit-transform: none;
156 }
157
158 .action-box-area .action-box-button {
159 display: none;
160 }
161
162 .action-box-area .action-box-icon {
163 color: white;
164 display: inline-flex;
165 margin-top: 4px;
166 }
167
168 .pod.focused:not(.locked) .auth-container {
169 display: none;
170 }
171
172 .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
136 left: 0; 173 left: 0;
174 }
175
176 .pod .auth-container input[type='password'] {
177 line-height: inherit;
178 padding: 10px;
137 top: 0; 179 top: 0;
138 } 180 width: 140px;
139 181 }
140 html[dir=rtl] .main-pane { 182
141 right: 0; 183 .pod .auth-container input[type='password']:focus {
142 } 184 outline: 0;
143 185 }
144 .name-container, 186
145 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { 187 .pod[auth-type='onlineSignIn'] .reauth-hint-container {
146 top: 180px; 188 margin: 0;
147 width: 180px; 189 padding: 10px 0;
148 } 190 }
149 191
150 .pod.focused:not(.locked) .name-container { 192 .reauth-hint-container .reauth-warning {
151 display: block; 193 height: 20px;
152 } 194 width: 20px;
153 195 }
154 .pod .name { 196
155 color: var(--paper-grey-800); 197 .reauth-hint-container .reauth-name-hint {
156 font-size: 15px; 198 color: inherit;
157 margin-top: 11px; 199 font-size: inherit;
158 } 200 }
159 201
160 .pod.focused:not(.locked) .auth-container {
161 display: none;
162 }
163
164 .pod[auth-type='offlinePassword'].focused.locked .password-entry-container {
165 display: flex;
166 flex: auto;
167 }
168
169 .action-box-area {
170 background-color: var(--google-grey-100);
171 height: 24px;
172 /* Because of crbug.com/406529, the text in the .name div is janky if there's
173 an opacity transition in this div. */
174 transition: none;
175 width: 24px;
176 }
177
178 .action-box-button,
179 .action-box-button:hover,
180 .action-box-area.active .action-box-button { 202 .action-box-area.active .action-box-button {
181 background-image: none; 203 display: none;
182 border-left: 6px solid transparent; 204 }
183 border-right: 6px solid transparent; 205
184 border-top: 6px solid #989898; 206 .action-box-area.active ~ .action-box-menu:not(.menu-moved-up) {
185 height: 0; 207 top: 8px;
186 left: 6px; 208 }
187 margin: 0; 209
188 position: absolute; 210 .action-box-area.active ~ .action-box-menu {
189 top: 9px; 211 border: none;
190 width: 0; 212 box-shadow: 0 10px 20px 0 rgba(0, 0, 0, .19);
191 } 213 right: 8px;
192 214 width: 224px;
193 .action-box-button:hover, 215 }
194 .action-box-area.active .action-box-button { 216
195 border-top: 6px solid #4c4c4c; 217 html[dir=rtl] .action-box-area.active ~ .action-box-menu {
196 } 218 /* forcing the menu to be positioned as in ltr */
197 219 left: auto;
198 .action-box-remove-user-warning .remove-warning-button { 220 right: 8px;
199 height: 30px; 221 }
200 } 222
201 223 .action-box-menu-title {
202 .action-box-remove-user-warning .remove-warning-button:focus { 224 color: inherit;
203 /* Override the default blue border inherited from 225 padding: 16px 12px;
204 button.custom-appearance:focus. */ 226 }
205 border: 1px solid transparent !important; 227
206 box-shadow: inset 0 0 0 1px #fff; 228 .action-box-menu-title-name,
207 } 229 .action-box-menu-title-email {
230 height: auto;
231 }
232
233 .action-box-menu-title-email {
234 color: var(--paper-grey-600);
235 }
236
237 .action-box-menu-remove {
238 border-top: 1px solid rgba(0, 0, 0, .12);
239 line-height: 32px;
240 padding: 8px 12px;
241 }
242
243 .action-box-remove-user-warning {
244 border-top: 1px solid rgba(0, 0, 0, .12);
245 font-size: inherit;
246 line-height: 20px;
247 padding: 12px;
248 text-align: center;
249 }
250
251 .action-box-remove-user-warning > * {
252 text-align: initial;
253 word-wrap: break-word;
254 }
255
256 .pod:not(.synced) .action-box-remove-user-warning-text {
257 font-weight: bold;
258 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698