37
|
1 body {
|
|
2 position: fixed;
|
|
3 top: 0;
|
|
4 bottom: 0;
|
|
5 left: 0;
|
|
6 right: 0;
|
|
7 }
|
|
8
|
48
|
9 div[chat_content] {
|
10
|
10 display: flex;
|
37
|
11 height: calc(100% - 32px);
|
10
|
12 }
|
|
13
|
|
14 div[chats] > div {
|
|
15 margin-top: 2px;
|
|
16 margin-bottom: 2px;
|
|
17 padding-top: 16px;
|
|
18 padding-bottom: 16px;
|
|
19 padding-left: 8px;
|
|
20 padding-right: 8px;
|
|
21 border-radius: 4px;
|
11
|
22 cursor: pointer;
|
10
|
23 }
|
|
24
|
|
25 div[chats] > div:hover,
|
|
26 div[chats] > div[selected] {
|
|
27 background-color: LightBlue;
|
|
28 }
|
|
29
|
|
30 div[posts] {
|
|
31 width: 100%;
|
|
32 display: flex;
|
|
33 flex-direction: column;
|
34
|
34 justify-content: space-between;
|
10
|
35 }
|
|
36
|
60
|
37 div[chat_content][show="intro"] div[posts] {
|
|
38 display: none;
|
|
39 }
|
|
40
|
10
|
41 div[posts] > * {
|
|
42 padding-right: 3vw;
|
|
43 }
|
|
44
|
|
45 div[top] {
|
|
46 display: flex;
|
|
47 justify-content: space-between;
|
|
48 align-items: center;
|
|
49 }
|
|
50
|
41
|
51 div[top] h3 a {
|
|
52 display: inline-block;
|
|
53 margin-bottom: -5px;
|
|
54 }
|
|
55 div[top] h3 a img {
|
|
56 display: block;
|
|
57 }
|
|
58
|
10
|
59 div[main] {
|
|
60 overflow-y: auto;
|
|
61 }
|
|
62
|
|
63 div[post] {
|
|
64 margin-top: 16px;
|
|
65 margin-bottom: 16px;
|
|
66 }
|
|
67
|
60
|
68 div[intro] {
|
|
69 width: 100%;
|
56
|
70 display: flex;
|
|
71 flex-direction: column;
|
|
72 align-items: center;
|
|
73 }
|
|
74
|
60
|
75 div[intro] form {
|
|
76 max-width: 100%;
|
|
77 }
|
|
78 div[intro] input[type=email] {
|
56
|
79 width: 250px;
|
60
|
80 max-width: 100%;
|
34
|
81 }
|
|
82
|
75
|
83 div[unread] {
|
|
84 font-size: 12px;
|
|
85 color: grey;
|
|
86 text-align: right;
|
|
87 }
|
|
88
|
34
|
89 div[who] {
|
|
90 display: flex;
|
|
91 justify-content: space-between;
|
|
92 font-size: 12px;
|
|
93 color: grey;
|
|
94 }
|
|
95
|
22
|
96 span[pulldown] {
|
|
97 position: relative;
|
68
|
98 }
|
|
99
|
|
100 div[who] span[pulldown] {
|
35
|
101 width: 16px;
|
|
102 display: inline-block;
|
36
|
103 vertical-align: middle;
|
22
|
104 }
|
|
105
|
|
106 span[pulldown] > div {
|
|
107 display: none;
|
34
|
108 right: 100%;
|
22
|
109 z-index: 2;
|
|
110 position: absolute;
|
|
111 border: 1px solid #cccccc;
|
|
112 border-radius: 4px;
|
|
113 text-align: left;
|
|
114 background-color: #eeeeee;
|
|
115 padding: 5px 0;
|
|
116 }
|
|
117
|
68
|
118 div[who] span[pulldown] > div {
|
|
119 top: 0;
|
|
120 }
|
|
121
|
|
122 div[top] span[pulldown] > div {
|
|
123 right: 0;
|
|
124 }
|
|
125
|
22
|
126 span[pulldown] > div > span {
|
|
127 white-space: nowrap;
|
|
128 display: block;
|
74
|
129 padding: 8px 16px;
|
22
|
130 cursor: pointer;
|
|
131 }
|
|
132
|
|
133 span[pulldown] > div > span:hover {
|
|
134 color: #ffffff;
|
|
135 background-color: #428bca;
|
|
136 }
|
|
137
|
10
|
138 div[text] {
|
34
|
139 white-space: pre-wrap;
|
10
|
140 }
|
|
141
|
|
142 div[input] {
|
|
143 padding-top: 1em;
|
|
144 padding-bottom: 1em;
|
|
145 display: flex;
|
|
146 gap: 8px;
|
|
147 align-items: flex-end;
|
|
148 }
|
|
149
|
|
150 div[input] textarea {
|
|
151 flex-grow: 1;
|
|
152 max-height: 150px;
|
|
153 resize: none;
|
|
154 }
|
24
|
155
|
|
156 dialog textarea {
|
|
157 width: 600px;
|
|
158 max-width: 80vw;
|
|
159 }
|
27
|
160
|
33
|
161 span[online] {
|
|
162 display: inline-block;
|
|
163 aspect-ratio: 1;
|
|
164 background-color: grey;
|
34
|
165 height: 0.6em;
|
33
|
166 border-radius: 50%;
|
|
167 margin-left: 4px;
|
|
168 }
|
|
169
|
72
|
170 span[is_online=true] {
|
|
171 background-color: green;
|
|
172 }
|
|
173
|
53
|
174 span[unread] {
|
|
175 font-size: small;
|
|
176 display: inline-block;
|
|
177 background-color: DodgerBlue;
|
|
178 color: white;
|
|
179 padding: 2px;
|
|
180 border-radius: calc(1em + 4px);
|
|
181 min-width: calc(1em + 4px);
|
|
182 text-align: center;
|
|
183 line-height: 1;
|
|
184 }
|
|
185 span[unread="0"] {
|
|
186 display: none;
|
|
187 }
|
27
|
188
|
63
|
189 input[type="file"] {
|
|
190 display: none;
|
|
191 }
|
|
192
|
65
|
193 div[people] {
|
|
194 margin-bottom: 40px;
|
|
195 }
|
|
196
|
|
197 div[people] img[phone] {
|
|
198 display: inline-block;
|
|
199 height: 1em;
|
|
200 }
|
|
201
|
27
|
202 @media (min-width: 700px) {
|
48
|
203 div[chat_content] {
|
27
|
204 margin-left: calc(3% - 8px);
|
|
205 margin-right: 0;
|
|
206 }
|
|
207
|
60
|
208 div[chat_content][show="chats"] div[intro],
|
|
209 div[chat_content][show="posts"] div[intro] {
|
|
210 display: none;
|
|
211 }
|
|
212
|
27
|
213 div[chats] {
|
60
|
214 overflow-y: auto;
|
27
|
215 width: 250px;
|
|
216 padding-right: 8px;
|
|
217 flex-shrink: 0;
|
|
218 }
|
|
219
|
60
|
220 div[intro],
|
27
|
221 div[posts] {
|
|
222 padding-left: 8px;
|
34
|
223 border-left: 1px solid grey;
|
27
|
224 }
|
|
225
|
41
|
226 div[top] img[back] {
|
27
|
227 display: none;
|
|
228 }
|
|
229 }
|
|
230
|
|
231 @media (max-width: 699px) {
|
60
|
232 div[chat_content][show="intro"],
|
|
233 div[chat_content][show="chats"] {
|
|
234 flex-direction: column;
|
|
235 overflow-y: auto;
|
|
236 }
|
|
237 div[chat_content][show="posts"] {
|
|
238 margin-left: 3%;
|
|
239 }
|
|
240
|
48
|
241 div[chat_content][show="chats"] div[posts],
|
60
|
242 div[chat_content][show="posts"] div[intro],
|
48
|
243 div[chat_content][show="posts"] div[chats] {
|
27
|
244 display: none;
|
|
245 }
|
|
246
|
60
|
247 div[chats],
|
|
248 div[intro] {
|
|
249 padding-left: 3%;
|
|
250 padding-right: 3%;
|
|
251 }
|
|
252
|
27
|
253 div[chats] {
|
|
254 width: 100%;
|
|
255 }
|
|
256
|
60
|
257 div[intro] {
|
|
258 margin-top: 20px;
|
|
259 border-top: 1px solid grey;
|
|
260 }
|
|
261
|
|
262 div[intro] [or] {
|
|
263 display: none;
|
|
264 }
|
|
265
|
48
|
266 div[chat_content][show="posts"] {
|
27
|
267 margin-right: 0;
|
|
268 }
|
|
269
|
|
270 div[top] h3 {
|
|
271 display: flex;
|
|
272 gap: 6px;
|
|
273 }
|
|
274 }
|