summaryrefslogtreecommitdiff
path: root/chromium/chrome/browser/resources/user_manager/user_manager.css
blob: a9d911c80642e74990b96899eab76610ccfc8b6e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
/* Copyright 2013 The Chromium Authors. All rights reserved.
 * Use of this source code is governed by a BSD-style license that can be
 * found in the LICENSE file. */

/* Overrides for the desktop user manager screen. */

.oobe-display {
  background-color: #eee;
}

#outer-container {
  min-height: 0;
}

.bubble.faded {
  opacity: 0;
}

.pod {
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
  height: 226px;
  /* On non-retina desktop, the text is blurry if we use the scale3d()
  inherited from user_pod_row.js */
  transform: scale(0.9);
}

podrow[ncolumns='6'] .pod {
  transform: scale(0.8);
}

/* Because of crbug.com/406529, the text in the .name div is janky if there's
both a transform:scale and a transition:opacity applied to a div, so we must
apply the opacity change to the children instead. */
.pod.faded {
  opacity: 1;
}

.pod.faded .user-image-pane,
.pod.faded .main-pane {
  opacity: .4;
}

.pod.hovered:not(.focused) {
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.pod.focused {
  box-shadow: 0 16px 21px rgba(0, 0, 0, 0.2);
  transform: scale(1) !important;
}

.pod.focused.locked {
  box-shadow: 0 12px 21px rgba(0, 0, 0, 0.2);
  height: 220px;
}

.user-image-pane {
  border-top-left-radius: 2px;
  border-top-right-radius: 2px;
  height: 180px;
  left: 0;
  top: 0;
  width: 180px;
}

html[dir=rtl] .user-image-pane {
  right: 0;
}

.pod .name {
  margin-top: 12px;
}

.pod .user-image {
  height: 180px;
  width: 180px;
}

.pod input[type='password'] {
  height: 45px;  /* 1px shorter as to not overlap the pod's rounded corners */
  top: 1px;
}

.pod .indicator-container {
  background-color: rgba(255, 255, 255, 0.85);
  border-radius: 16px;
  height: 32px;
  left: 8px;
  position: absolute;
  top: 8px;
}

html[dir=rtl] .pod .indicators {
  left: auto;
  right: 8px;
}

.pod .indicator {
  background-position: center;
  background-repeat: no-repeat;
  background-size: 18px;
  display: none;
  float: left;
  height: 32px;
  width: 32px;
}

/* Using -webkit-mask on the indicators allows us to tweak the color. */
.pod .indicator-container > div {
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: 24px;
}

.pod.locked .locked-indicator {
  -webkit-mask-image: url(../../../../ui/webui/resources/images/lock.svg);
  background-color: #757575;
  display: initial;
}

.pod.legacy-supervised .legacy-supervised-indicator {
  -webkit-mask-image:
      url(../../../../ui/webui/resources/images/supervisor_account.svg);
  background-color: rgb(66, 133, 244);
  display: initial;
}

.pod.child .child-indicator {
  -webkit-mask-image:
      url(../../../../ui/webui/resources/images/account_child_invert.svg);
  background-color: rgb(66, 133, 244);
  display: initial;
}

.main-pane {
  left: 0;
  top: 0;
}

html[dir=rtl] .main-pane {
  right: 0;
}

.name-container,
.pod.focused:not(.multiprofiles-policy-applied) .auth-container {
  top: 180px;
  width: 180px;
}

.pod.focused:not(.locked) .name-container {
  display: block;
}

.pod .name {
  color: #363636;
  font-size: 15px;
  margin-top: 11px;
}

.pod.focused:not(.locked) .auth-container {
  display: none;
}

.pod[auth-type='offlinePassword'].focused.locked .password-entry-container {
  display: flex;
  flex: auto;
}

.action-box-area {
  background-color: #f5f5f5;
  height: 24px;
  /* Because of crbug.com/406529, the text in the .name div is janky if there's
  an opacity transition in this div. */
  transition: none;
  width: 24px;
}

.action-box-button,
.action-box-button:hover,
.action-box-area.active .action-box-button {
  background-image: none;
  border-left: 6px solid transparent;
  border-right: 6px solid transparent;
  border-top: 6px solid #989898;
  height: 0;
  left: 6px;
  margin: 0;
  position: absolute;
  top: 9px;
  width: 0;
}

.action-box-button:hover,
.action-box-area.active .action-box-button {
  border-top: 6px solid #4c4c4c;
}

.action-box-remove-user-warning .remove-warning-button {
  background: rgb(197, 57, 41);
  border-radius: 2px;
  color: white;
  font-weight: 500;
  line-height: 32px;
  padding: 0 16px;
  width: 100%;
}

.action-box-remove-user-warning .remove-warning-button[focused] {
  background: rgb(173, 50, 36);
  font-weight: 500;
}