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

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

Powered by Google App Engine
This is Rietveld 408576698