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

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: User Manager MD User Pods 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;
83 } 99 }
84 100
85 .pod .indicator-container { 101 .pod .indicator-container {
86 background-color: rgba(255, 255, 255, 0.85); 102 background-color: rgba(255, 255, 255, .85);
87 border-radius: 16px; 103 border-radius: 0;
88 height: 32px; 104 bottom: 10px;
89 left: 8px; 105 height: 20px;
90 position: absolute; 106 left: auto;
91 top: 8px; 107 position: absolute;
108 right: 10px;
109 top: auto;
110 width: 20px;
92 } 111 }
93 112
94 html[dir=rtl] .pod .indicators { 113 html[dir=rtl] .pod .indicators {
95 left: auto; 114 left: 10px;
96 right: 8px; 115 right: auto;
97 } 116 }
98 117
99 .pod .indicator { 118 /* Using -webkit-mask on the indicators allows us to tweak the color. */
119 .pod .indicator-container > .indicator {
120 -webkit-mask-position: center;
121 -webkit-mask-repeat: no-repeat;
122 -webkit-mask-size: 20px;
123 background-color: rgb(150, 150, 150);
100 background-position: center; 124 background-position: center;
101 background-repeat: no-repeat; 125 background-repeat: no-repeat;
102 background-size: 18px; 126 background-size: 18px;
103 display: none; 127 display: none;
104 float: left; 128 float: left;
105 height: 32px; 129 height: 20px;
106 width: 32px; 130 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 } 131 }
115 132
116 .pod.locked .locked-indicator { 133 .pod.locked .locked-indicator {
117 -webkit-mask-image: url(../../../../ui/webui/resources/images/lock.svg); 134 -webkit-mask-image: url(../../../../ui/webui/resources/images/lock.svg);
118 background-color: rgb(117, 117, 117);
119 display: initial; 135 display: initial;
120 } 136 }
121 137
122 .pod.legacy-supervised .legacy-supervised-indicator { 138 .pod.legacy-supervised .legacy-supervised-indicator {
123 -webkit-mask-image: 139 -webkit-mask-image:
124 url(../../../../ui/webui/resources/images/supervisor_account.svg); 140 url(../../../../ui/webui/resources/images/supervisor_account.svg);
125 background-color: rgb(66, 133, 244);
126 display: initial; 141 display: initial;
127 } 142 }
128 143
129 .pod.child .child-indicator { 144 .pod.child .child-indicator {
130 -webkit-mask-image: 145 -webkit-mask-image:
131 url(../../../../ui/webui/resources/images/account_child_invert.svg); 146 url(../../../../ui/webui/resources/images/account_child_invert.svg);
132 background-color: rgb(66, 133, 244);
133 display: initial; 147 display: initial;
134 } 148 }
135 149
136 .main-pane { 150 .action-box-area {
137 left: 0; 151 background-color: transparent;
152 background-image: linear-gradient(rgba(0, 0, 0, .4), rgba(0, 0, 0, 0) 100%);
153 border-radius: 0;
154 height: 56px;
155 outline: none;
156 position: absolute;
138 top: 0; 157 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 158 /* Because of crbug.com/406529, the text in the .name div is janky if there's
174 an opacity transition in this div. */ 159 an opacity transition in this div. */
175 transition: none; 160 transition: none;
176 width: 24px; 161 width: 100%;
177 } 162 z-index: 1;
178 163 }
179 .action-box-button, 164
180 .action-box-button:hover, 165 .action-box-area .action-box-button {
166 display: none;
167 }
168
169 .action-box-area .action-box-icon {
170 border: none;
171 color: #fff;
172 display: inline-flex;
173 left: auto;
174 margin: 0;
175 position: absolute;
176 right: -1px;
177 top: 4px;
178 }
179
180 .pod.focused:not(.locked) .auth-container {
181 display: none;
182 }
183
184 .pod.focused:not(.multiprofiles-policy-applied) .auth-container {
185 left: 0;
186 }
187
188 .pod[auth-type='onlineSignIn'] .reauth-hint-container {
189 margin: 0;
190 padding: 10px 0;
191 }
192
193 .pod input[type='password'] {
194 font-family: Roboto;
195 font-size: 13px;
196 height: 40px;
197 line-height: 20px;
198 padding: 10px;
199 top: 0;
200 }
201
202 .reauth-hint-container .reauth-warning {
203 height: 20px;
204 width: 20px;
205 }
206
207 .reauth-hint-container .reauth-name-hint {
208 color: #333;
209 font-family: Roboto;
210 font-size: 13px;
211 }
212
181 .action-box-area.active .action-box-button { 213 .action-box-area.active .action-box-button {
182 background-image: none; 214 display: none;
183 border-left: 6px solid transparent; 215 }
184 border-right: 6px solid transparent; 216
185 border-top: 6px solid #989898; 217 .action-box-area.active ~ .action-box-menu:not(.menu-moved-up) {
186 height: 0; 218 top: 8px;
187 left: 6px; 219 }
188 margin: 0; 220
189 position: absolute; 221 .action-box-area.active ~ .action-box-menu {
190 top: 9px; 222 border: none;
191 width: 0; 223 box-shadow: 0 10px 20px 0 rgba(0, 0, 0, .19);
192 } 224 font-family: Roboto;
193 225 line-height: 20px;
194 .action-box-button:hover, 226 right: 8px;
195 .action-box-area.active .action-box-button { 227 width: 224px;
196 border-top: 6px solid #4c4c4c; 228 }
197 } 229
198 230 .action-box-menu-title {
199 .action-box-remove-user-warning .remove-warning-button { 231 color: #333;
200 height: 30px; 232 padding: 16px 12px 10px 12px;
201 } 233 }
202 234
203 .action-box-remove-user-warning .remove-warning-button:focus { 235 .action-box-menu-title-name,
204 /* Override the default blue border inherited from 236 .action-box-menu-title-email {
205 button.custom-appearance:focus. */ 237 height: auto;
206 border: 1px solid transparent !important; 238 line-height: 22px;
207 box-shadow: inset 0 0 0 1px #fff; 239 }
208 } 240
241 .action-box-menu-title-email {
242 color: rgb(103, 103, 103);
243 }
244
245 .action-box-menu-remove {
246 border-top: 1px solid rgba(0, 0, 0, .12);
247 color: #333;
248 line-height: 32px;
249 min-height: 0;
250 padding: 8px 12px;
251 }
252
253 .action-box-remove-user-warning {
254 border-top: 1px solid rgba(0, 0, 0, .12);
255 color: #333;
256 line-height: 20px;
257 padding: 12px;
258 }
259
260 .action-box-remove-user-warning {
261 text-align: center;
262 }
263
264 .action-box-remove-user-warning > div,
265 .action-box-remove-user-warning > table {
266 text-align: left;
267 word-wrap: break-word;
268 }
269
270 .pod:not(.synced) .action-box-remove-user-warning-text {
271 font-weight: bold;
272 }
273
274 .action-box-remove-user-warning paper-button.remove-warning-button {
275 font-size: 13px;
276 min-width: 52px;
277 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698