-
-
Notifications
You must be signed in to change notification settings - Fork 3k
Expand file tree
/
Copy pathpopup_users.css
More file actions
151 lines (140 loc) · 2.92 KB
/
popup_users.css
File metadata and controls
151 lines (140 loc) · 2.92 KB
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
/* --------------- */
/* --- LAYOUT ---- */
/* --------------- */
.popup#users {
flex-direction: column;
max-height: 500px;
height: auto;
}
.popup#users #myuser {
display: flex;
flex-shrink: 0;
}
.popup#users #otherusers {
flex: 1 auto;
overflow: auto;
max-height: 200px;
}
.popup#users.chatAndUsers {
display: flex !important; /* always visible */
position: relative;
z-index: 1;
top: 0;
right: 0;
left: auto;
}
.popup#users.chatAndUsers > .popup-content {
border: none;
border-bottom: 1px solid #ccc;
border-left: 1px solid #ccc;
border-right: 0;
border-radius: 0;
box-shadow: none;
height: 200px;
min-width: 0;
padding: 5px;
}
/* --------------- */
/* --- MY USER --- */
/* --------------- */
#myswatchbox {
width: 24px;
height: 24px;
border: 1px solid #ccc;
background: transparent;
cursor: pointer;
flex-shrink: 0;
}
#myswatch {
width: 100%;
height: 100%;
background: transparent; /*...initially*/
}
#myusernameform {
margin-left: 10px;
/* Constrain the username input so the adjacent Log out button does not
get pushed off the Users popup — previously the input expanded to its
natural default width and overlapped the button. Fixes #7593. */
width: 75px;
}
input#myusernameedit {
height: 26px;
font-size: 1.3em;
padding: 3px;
border: 1px solid #ccc;
background-color: transparent;
margin: 0;
/* Keep the input inside its 75px container (border + padding included).
Without these the text field renders wider than the container on its
natural content width and overlaps the Log out button. */
width: 100%;
box-sizing: border-box;
}
input#myusernameedit:not(.editable) {
color: grey;
}
#myuser .myusernameedithoverable:hover {
background: white;
}
#myusernameform .editactive,
#myusernameform .editempty {
background: white;
border-left: 1px solid #c3c3c3;
border-top: 1px solid #c3c3c3;
border-right: 1px solid #e6e6e6;
border-bottom: 1px solid #e6e6e6;
}
#myusernameedit, #otheruserstable .swatch {
border: 1px solid #ccc;
}
#myusernameform .editempty {
opacity: .8;
}
/* --------------------------- */
/* --- MY USER COLORPICKER --- */
/* --------------------------- */
#mycolorpicker.popup {
min-width: 0;
right: calc(100% + 15px);
z-index: 101;
}
.mobile-layout #users.popup {
right: 1rem;
left: auto;
}
.mobile-layout #mycolorpicker.popup {
top: auto;
bottom: 0;
left: auto !important;
right: 0 !important;
}
#mycolorpicker.popup .btn-container {
margin-top: 10px;
}
#mycolorpickerpreview {
width: 24px;
height: 24px;
border-radius: 5px;
float: right;
}
/* ------------------- */
/* --- OTHER USERS --- */
/* ------------------- */
#otheruserstable {
display: none;
}
#otheruserstable td {
height: 26px;
padding: 0 2px;
}
#otheruserstable .swatch {
border: 1px solid #ccc;
width: 13px;
height: 13px;
overflow: hidden;
margin: 0 4px;
user-select: none;
}
.usertdname {
font-size: 1.2rem;
}