OLD | NEW |
| (Empty) |
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 | |
3 * found in the LICENSE file. */ | |
4 | |
5 body { | |
6 background-color: #eee; | |
7 } | |
8 | |
9 /* Overrides for the desktop user manager screen. */ | |
10 | |
11 #outer-container { | |
12 min-height: 0; | |
13 } | |
14 | |
15 .bubble.faded { | |
16 opacity: 0; | |
17 } | |
18 | |
19 .pod { | |
20 box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1); | |
21 height: 226px; | |
22 /* On non-retina desktop, the text is blurry if we use the scale3d() | |
23 inherited from user_pod_row.js */ | |
24 transform: scale(0.9); | |
25 } | |
26 | |
27 podrow[ncolumns='6'] .pod { | |
28 transform: scale(0.8); | |
29 } | |
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 { | |
35 opacity: 1; | |
36 } | |
37 | |
38 .pod.faded .user-image-pane, | |
39 .pod.faded .main-pane { | |
40 opacity: .4; | |
41 } | |
42 | |
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 } | |
51 | |
52 .pod.focused.locked { | |
53 box-shadow: 0 12px 21px rgba(0, 0, 0, 0.2); | |
54 height: 220px; | |
55 } | |
56 | |
57 .user-image-pane { | |
58 border-top-left-radius: 2px; | |
59 border-top-right-radius: 2px; | |
60 height: 180px; | |
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 } | |
73 | |
74 .pod .user-image { | |
75 height: 180px; | |
76 width: 180px; | |
77 } | |
78 | |
79 .pod input[type='password'] { | |
80 height: 45px; /* 1px shorter as to not overlap the pod's rounded corners */ | |
81 top: 1px; | |
82 } | |
83 | |
84 .pod .indicator-container { | |
85 background-color: rgba(255, 255, 255, 0.85); | |
86 border-radius: 16px; | |
87 height: 32px; | |
88 left: 8px; | |
89 position: absolute; | |
90 top: 8px; | |
91 } | |
92 | |
93 html[dir=rtl] .pod .indicators { | |
94 left: auto; | |
95 right: 8px; | |
96 } | |
97 | |
98 .pod .indicator { | |
99 background-position: center; | |
100 background-repeat: no-repeat; | |
101 background-size: 18px; | |
102 display: none; | |
103 float: left; | |
104 height: 32px; | |
105 width: 32px; | |
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 } | |
114 | |
115 .pod.locked .locked-indicator { | |
116 -webkit-mask-image: url(../../../../ui/webui/resources/images/lock.svg); | |
117 background-color: var(--paper-grey-600); | |
118 display: initial; | |
119 } | |
120 | |
121 .pod.legacy-supervised .legacy-supervised-indicator { | |
122 -webkit-mask-image: | |
123 url(../../../../ui/webui/resources/images/supervisor_account.svg); | |
124 background-color: var(--google-blue-500); | |
125 display: initial; | |
126 } | |
127 | |
128 .pod.child .child-indicator { | |
129 -webkit-mask-image: | |
130 url(../../../../ui/webui/resources/images/account_child_invert.svg); | |
131 background-color: var(--google-blue-500); | |
132 display: initial; | |
133 } | |
134 | |
135 .main-pane { | |
136 left: 0; | |
137 top: 0; | |
138 } | |
139 | |
140 html[dir=rtl] .main-pane { | |
141 right: 0; | |
142 } | |
143 | |
144 .name-container, | |
145 .pod.focused:not(.multiprofiles-policy-applied) .auth-container { | |
146 top: 180px; | |
147 width: 180px; | |
148 } | |
149 | |
150 .pod.focused:not(.locked) .name-container { | |
151 display: block; | |
152 } | |
153 | |
154 .pod .name { | |
155 color: var(--paper-grey-800); | |
156 font-size: 15px; | |
157 margin-top: 11px; | |
158 } | |
159 | |
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 { | |
181 background-image: none; | |
182 border-left: 6px solid transparent; | |
183 border-right: 6px solid transparent; | |
184 border-top: 6px solid #989898; | |
185 height: 0; | |
186 left: 6px; | |
187 margin: 0; | |
188 position: absolute; | |
189 top: 9px; | |
190 width: 0; | |
191 } | |
192 | |
193 .action-box-button:hover, | |
194 .action-box-area.active .action-box-button { | |
195 border-top: 6px solid #4c4c4c; | |
196 } | |
197 | |
198 .action-box-remove-user-warning .remove-warning-button { | |
199 height: 30px; | |
200 } | |
201 | |
202 .action-box-remove-user-warning .remove-warning-button:focus { | |
203 /* Override the default blue border inherited from | |
204 button.custom-appearance:focus. */ | |
205 border: 1px solid transparent !important; | |
206 box-shadow: inset 0 0 0 1px #fff; | |
207 } | |
OLD | NEW |