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

Side by Side Diff: chrome/browser/resources/md_user_manager/user_manager_styles.html

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

Powered by Google App Engine
This is Rietveld 408576698