blob: 2e2ef7f080550d74e9f0bbadc4bb1987c1927260 (
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
|
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
.logged-out-view,
.logged-in-view {
display: flex;
align-items: center;
}
.fxaccounts-extra-text {
/* Only show at most 3 lines of text to limit the
text from overflowing the header. */
display: -webkit-box;
-webkit-box-orient: vertical;
-webkit-line-clamp: 3;
overflow: hidden;
color: var(--text-color-deemphasized);
text-align: end;
}
.fxaccounts-extra-text,
.fxaccount-email,
.fxaccounts-enable-button {
font-size: 13px;
}
@media (max-width: 830px) {
.fxaccounts-extra-text,
.fxaccount-email {
display: none;
}
}
.fxaccount-avatar,
.fxaccounts-enable-button {
margin-inline-start: 9px;
}
.fxaccounts-enable-button {
min-width: 120px;
padding-inline: 16px;
/* See bug 1626764: The width of button could go lesser than 120px in small window size which could wrap the texts into two lines in systems with different default fonts */
flex-shrink: 0;
}
.fxaccounts-avatar-button {
cursor: pointer;
white-space: nowrap;
text-overflow: ellipsis;
overflow: hidden;
}
.fxaccount-email {
vertical-align: middle;
}
.fxaccount-avatar {
display: inline-block;
vertical-align: middle;
background-image: var(--avatar-url,
url(chrome://browser/skin/fxa/avatar-color.svg));
background-position: center;
background-repeat: no-repeat;
background-size: cover;
border-radius: 1000px;
width: 32px;
height: 32px;
}
@media not (prefers-contrast) {
.fxaccounts-avatar-button:hover {
background-color: transparent !important;
}
.fxaccounts-avatar-button:hover > .fxaccount-email {
text-decoration: underline;
}
}
|