school44s commited on
Commit
9c84a93
·
verified ·
1 Parent(s): eca564a

Update style.css

Browse files
Files changed (1) hide show
  1. style.css +402 -399
style.css CHANGED
@@ -1,399 +1,402 @@
1
- * {
2
- box-sizing: border-box;
3
- font-family: 'Roboto', sans-serif;
4
- }
5
-
6
- body {
7
- margin: 0;
8
- background: #f0f2f5;
9
- display: flex;
10
- justify-content: center;
11
- align-items: center;
12
- min-height: 100vh;
13
- }
14
-
15
- .container {
16
- width: 100%;
17
- max-width: 500px;
18
- background: white;
19
- padding: 1rem;
20
- border-radius: 10px;
21
- box-shadow: 0 4px 10px rgba(0,0,0,0.1);
22
- }
23
-
24
- .hidden {
25
- display: none;
26
- }
27
-
28
- .form-group {
29
- display: flex;
30
- flex-direction: column;
31
- margin-bottom: 1rem;
32
- }
33
-
34
- input {
35
- padding: 10px;
36
- margin-top: 4px;
37
- border: 1px solid #ccc;
38
- border-radius: 6px;
39
- }
40
-
41
- button {
42
- padding: 10px;
43
- background: #4CAF50;
44
- color: white;
45
- border: none;
46
- border-radius: 6px;
47
- cursor: pointer;
48
- }
49
-
50
- .chat-box {
51
- height: 300px;
52
- overflow-y: auto;
53
- margin-bottom: 10px;
54
- background: #f9f9f9;
55
- padding: 10px;
56
- border-radius: 6px;
57
- }
58
-
59
- .message {
60
- margin: 5px 0;
61
- max-width: 80%;
62
- padding: 8px 12px;
63
- border-radius: 12px;
64
- clear: both;
65
- }
66
-
67
- .mine {
68
- background-color: #d2f8d2;
69
- float: right;
70
- }
71
-
72
- .other {
73
- background-color: #f0d4d4;
74
- float: left;
75
- }
76
-
77
- .switch {
78
- text-align: center;
79
- margin-top: 1rem;
80
- }
81
-
82
- .google-btn {
83
- background-color: #4285f4;
84
- margin-top: 5px;
85
- }
86
-
87
- /* Media upload styles */
88
- #inputArea {
89
- display: flex;
90
- padding: 10px;
91
- background: #fff;
92
- border-top: 1px solid #ccc;
93
- gap: 8px;
94
- align-items: center;
95
- }
96
-
97
- #inputArea input[type="text"] {
98
- flex: 1;
99
- padding: 10px;
100
- border-radius: 20px;
101
- border: 1px solid #ccc;
102
- }
103
-
104
- input[type="file"] {
105
- display: none;
106
- }
107
-
108
- .media-btn {
109
- background: none;
110
- border: none;
111
- font-size: 20px;
112
- cursor: pointer;
113
- padding: 5px;
114
- border-radius: 50%;
115
- }
116
-
117
- .media-btn:hover {
118
- background: #f0f0f0;
119
- }
120
-
121
- #mediaPreview {
122
- padding: 10px;
123
- display: flex;
124
- flex-wrap: wrap;
125
- gap: 10px;
126
- border-top: 1px solid #ccc;
127
- background: #fafafa;
128
- }
129
-
130
- #mediaPreview img, #mediaPreview video {
131
- max-width: 80px;
132
- max-height: 80px;
133
- border-radius: 8px;
134
- cursor: pointer;
135
- }
136
-
137
- .message img {
138
- max-width: 200px;
139
- border-radius: 8px;
140
- margin-top: 5px;
141
- }
142
-
143
- .message video {
144
- max-width: 200px;
145
- border-radius: 8px;
146
- margin-top: 5px;
147
- }
148
-
149
- .upload-progress {
150
- background: #e0e0e0;
151
- border-radius: 10px;
152
- overflow: hidden;
153
- margin: 5px 0;
154
- }
155
-
156
- .upload-progress-bar {
157
- height: 20px;
158
- background: #4CAF50;
159
- transition: width 0.3s ease;
160
- display: flex;
161
- align-items: center;
162
- justify-content: center;
163
- color: white;
164
- font-size: 12px;
165
- }
166
-
167
- /* Chat room styles */
168
- .chat-header {
169
- display: flex;
170
- align-items: center;
171
- padding: 10px;
172
- background: #4CAF50;
173
- color: white;
174
- gap: 10px;
175
- }
176
-
177
- .chat-header h2 {
178
- margin: 0;
179
- flex: 1;
180
- }
181
-
182
- .menu-btn {
183
- background: none;
184
- border: none;
185
- color: white;
186
- font-size: 18px;
187
- cursor: pointer;
188
- padding: 5px;
189
- border-radius: 3px;
190
- }
191
-
192
- .menu-btn:hover {
193
- background: rgba(255,255,255,0.2);
194
- }
195
-
196
- #current-room-name {
197
- font-size: 14px;
198
- opacity: 0.8;
199
- background: rgba(255,255,255,0.2);
200
- padding: 4px 8px;
201
- border-radius: 10px;
202
- }
203
-
204
- .chat-container {
205
- display: flex;
206
- height: 400px;
207
- position: relative;
208
- }
209
-
210
- .room-sidebar {
211
- width: 250px;
212
- background: #f8f9fa;
213
- border-right: 1px solid #ddd;
214
- transform: translateX(-100%);
215
- transition: transform 0.3s ease;
216
- overflow-y: auto;
217
- }
218
-
219
- .room-sidebar.show {
220
- transform: translateX(0);
221
- }
222
-
223
- .sidebar-header {
224
- padding: 15px;
225
- border-bottom: 1px solid #ddd;
226
- background: white;
227
- }
228
-
229
- .sidebar-header h3 {
230
- margin: 0 0 10px 0;
231
- font-size: 16px;
232
- }
233
-
234
- .room-search-input {
235
- width: 100%;
236
- padding: 8px 12px;
237
- border: 1px solid #ddd;
238
- border-radius: 5px;
239
- margin-bottom: 10px;
240
- font-size: 14px;
241
- }
242
-
243
- .room-search-input:focus {
244
- outline: none;
245
- border-color: #4CAF50;
246
- }
247
-
248
- .room-actions {
249
- display: flex;
250
- gap: 5px;
251
- }
252
-
253
- .create-room-btn, .join-room-btn {
254
- background: #007bff;
255
- color: white;
256
- border: none;
257
- padding: 8px 12px;
258
- border-radius: 5px;
259
- cursor: pointer;
260
- font-size: 12px;
261
- flex: 1;
262
- }
263
-
264
- .join-room-btn {
265
- background: #28a745;
266
- }
267
-
268
- .create-room-btn:hover {
269
- background: #0056b3;
270
- }
271
-
272
- .join-room-btn:hover {
273
- background: #1e7e34;
274
- }
275
-
276
- .search-results {
277
- border-top: 1px solid #ddd;
278
- margin-top: 10px;
279
- padding-top: 10px;
280
- }
281
-
282
- .search-results h4 {
283
- margin: 0 0 10px 10px;
284
- font-size: 14px;
285
- color: #666;
286
- }
287
-
288
- .search-results.hidden {
289
- display: none;
290
- }
291
-
292
- .room-list {
293
- padding: 10px;
294
- }
295
-
296
- .room-item {
297
- display: flex;
298
- align-items: center;
299
- padding: 10px;
300
- margin-bottom: 5px;
301
- background: white;
302
- border: 1px solid #e0e0e0;
303
- border-radius: 8px;
304
- cursor: pointer;
305
- transition: all 0.2s;
306
- }
307
-
308
- .room-item:hover {
309
- background: #f0f0f0;
310
- border-color: #4CAF50;
311
- }
312
-
313
- .room-item.active {
314
- background: #e8f5e8;
315
- border-color: #4CAF50;
316
- }
317
-
318
- .room-info {
319
- flex: 1;
320
- }
321
-
322
- .room-name {
323
- font-weight: 500;
324
- margin-bottom: 2px;
325
- }
326
-
327
- .room-last-message {
328
- font-size: 12px;
329
- color: #666;
330
- white-space: nowrap;
331
- overflow: hidden;
332
- text-overflow: ellipsis;
333
- }
334
-
335
- .room-unread {
336
- background: #ff4444;
337
- color: white;
338
- border-radius: 10px;
339
- padding: 2px 6px;
340
- font-size: 10px;
341
- margin-left: 5px;
342
- }
343
-
344
- .room-item.search-result {
345
- border-left: 3px solid #007bff;
346
- }
347
-
348
- .room-item.search-result .room-info {
349
- position: relative;
350
- }
351
-
352
- .room-join-btn {
353
- background: #28a745;
354
- color: white;
355
- border: none;
356
- padding: 4px 8px;
357
- border-radius: 3px;
358
- font-size: 10px;
359
- cursor: pointer;
360
- margin-left: 5px;
361
- }
362
-
363
- .room-join-btn:hover {
364
- background: #1e7e34;
365
- }
366
-
367
- .room-member-count {
368
- font-size: 11px;
369
- color: #888;
370
- margin-top: 2px;
371
- }
372
-
373
- .no-results {
374
- padding: 20px;
375
- text-align: center;
376
- color: #666;
377
- font-style: italic;
378
- }
379
-
380
- .chat-main {
381
- flex: 1;
382
- display: flex;
383
- flex-direction: column;
384
- }
385
-
386
- @media (max-width: 768px) {
387
- .room-sidebar {
388
- position: absolute;
389
- top: 0;
390
- left: 0;
391
- height: 100%;
392
- z-index: 1000;
393
- box-shadow: 2px 0 5px rgba(0,0,0,0.1);
394
- }
395
-
396
- .chat-container {
397
- height: 350px;
398
- }
399
- }
 
 
 
 
1
+ * {
2
+ box-sizing: border-box;
3
+ font-family: 'Roboto', sans-serif;
4
+ }
5
+
6
+ body {
7
+ margin: 0;
8
+ background-image: https://th.bing.com/th/id/R.5703545e7adb856bbb7f70acf1881184?rik=E7MaJ3%2fN93efGA&riu=http%3a%2f%2fmedia.techeblog.com%2fimages%2fblack-hole-event-horizon.jpg&ehk=BzpbiGJNjqV3OG4GIUxCQubYD1PsEpgP5IyCs0T4eVY%3d&risl=&pid=ImgRaw&r=0&sres=1&sresct=1;
9
+ background-size: cover;
10
+ background-repeat: no-repeat;
11
+ background-position: center;
12
+ display: flex;
13
+ justify-content: center;
14
+ align-items: center;
15
+ min-height: 100vh;
16
+ }
17
+
18
+ .container {
19
+ width: 100%;
20
+ max-width: 500px;
21
+ background: white;
22
+ padding: 1rem;
23
+ border-radius: 10px;
24
+ box-shadow: 0 4px 10px rgba(0,0,0,0.1);
25
+ }
26
+
27
+ .hidden {
28
+ display: none;
29
+ }
30
+
31
+ .form-group {
32
+ display: flex;
33
+ flex-direction: column;
34
+ margin-bottom: 1rem;
35
+ }
36
+
37
+ input {
38
+ padding: 10px;
39
+ margin-top: 4px;
40
+ border: 1px solid #ccc;
41
+ border-radius: 6px;
42
+ }
43
+
44
+ button {
45
+ padding: 10px;
46
+ background: #4CAF50;
47
+ color: white;
48
+ border: none;
49
+ border-radius: 6px;
50
+ cursor: pointer;
51
+ }
52
+
53
+ .chat-box {
54
+ height: 300px;
55
+ overflow-y: auto;
56
+ margin-bottom: 10px;
57
+ background: #f9f9f9;
58
+ padding: 10px;
59
+ border-radius: 6px;
60
+ }
61
+
62
+ .message {
63
+ margin: 5px 0;
64
+ max-width: 80%;
65
+ padding: 8px 12px;
66
+ border-radius: 12px;
67
+ clear: both;
68
+ }
69
+
70
+ .mine {
71
+ background-color: #d2f8d2;
72
+ float: right;
73
+ }
74
+
75
+ .other {
76
+ background-color: #f0d4d4;
77
+ float: left;
78
+ }
79
+
80
+ .switch {
81
+ text-align: center;
82
+ margin-top: 1rem;
83
+ }
84
+
85
+ .google-btn {
86
+ background-color: #4285f4;
87
+ margin-top: 5px;
88
+ }
89
+
90
+ /* Media upload styles */
91
+ #inputArea {
92
+ display: flex;
93
+ padding: 10px;
94
+ background: #fff;
95
+ border-top: 1px solid #ccc;
96
+ gap: 8px;
97
+ align-items: center;
98
+ }
99
+
100
+ #inputArea input[type="text"] {
101
+ flex: 1;
102
+ padding: 10px;
103
+ border-radius: 20px;
104
+ border: 1px solid #ccc;
105
+ }
106
+
107
+ input[type="file"] {
108
+ display: none;
109
+ }
110
+
111
+ .media-btn {
112
+ background: none;
113
+ border: none;
114
+ font-size: 20px;
115
+ cursor: pointer;
116
+ padding: 5px;
117
+ border-radius: 50%;
118
+ }
119
+
120
+ .media-btn:hover {
121
+ background: #f0f0f0;
122
+ }
123
+
124
+ #mediaPreview {
125
+ padding: 10px;
126
+ display: flex;
127
+ flex-wrap: wrap;
128
+ gap: 10px;
129
+ border-top: 1px solid #ccc;
130
+ background: #fafafa;
131
+ }
132
+
133
+ #mediaPreview img, #mediaPreview video {
134
+ max-width: 80px;
135
+ max-height: 80px;
136
+ border-radius: 8px;
137
+ cursor: pointer;
138
+ }
139
+
140
+ .message img {
141
+ max-width: 200px;
142
+ border-radius: 8px;
143
+ margin-top: 5px;
144
+ }
145
+
146
+ .message video {
147
+ max-width: 200px;
148
+ border-radius: 8px;
149
+ margin-top: 5px;
150
+ }
151
+
152
+ .upload-progress {
153
+ background: #e0e0e0;
154
+ border-radius: 10px;
155
+ overflow: hidden;
156
+ margin: 5px 0;
157
+ }
158
+
159
+ .upload-progress-bar {
160
+ height: 20px;
161
+ background: #4CAF50;
162
+ transition: width 0.3s ease;
163
+ display: flex;
164
+ align-items: center;
165
+ justify-content: center;
166
+ color: white;
167
+ font-size: 12px;
168
+ }
169
+
170
+ /* Chat room styles */
171
+ .chat-header {
172
+ display: flex;
173
+ align-items: center;
174
+ padding: 10px;
175
+ background: #4CAF50;
176
+ color: white;
177
+ gap: 10px;
178
+ }
179
+
180
+ .chat-header h2 {
181
+ margin: 0;
182
+ flex: 1;
183
+ }
184
+
185
+ .menu-btn {
186
+ background: none;
187
+ border: none;
188
+ color: white;
189
+ font-size: 18px;
190
+ cursor: pointer;
191
+ padding: 5px;
192
+ border-radius: 3px;
193
+ }
194
+
195
+ .menu-btn:hover {
196
+ background: rgba(255,255,255,0.2);
197
+ }
198
+
199
+ #current-room-name {
200
+ font-size: 14px;
201
+ opacity: 0.8;
202
+ background: rgba(255,255,255,0.2);
203
+ padding: 4px 8px;
204
+ border-radius: 10px;
205
+ }
206
+
207
+ .chat-container {
208
+ display: flex;
209
+ height: 400px;
210
+ position: relative;
211
+ }
212
+
213
+ .room-sidebar {
214
+ width: 250px;
215
+ background: #f8f9fa;
216
+ border-right: 1px solid #ddd;
217
+ transform: translateX(-100%);
218
+ transition: transform 0.3s ease;
219
+ overflow-y: auto;
220
+ }
221
+
222
+ .room-sidebar.show {
223
+ transform: translateX(0);
224
+ }
225
+
226
+ .sidebar-header {
227
+ padding: 15px;
228
+ border-bottom: 1px solid #ddd;
229
+ background: white;
230
+ }
231
+
232
+ .sidebar-header h3 {
233
+ margin: 0 0 10px 0;
234
+ font-size: 16px;
235
+ }
236
+
237
+ .room-search-input {
238
+ width: 100%;
239
+ padding: 8px 12px;
240
+ border: 1px solid #ddd;
241
+ border-radius: 5px;
242
+ margin-bottom: 10px;
243
+ font-size: 14px;
244
+ }
245
+
246
+ .room-search-input:focus {
247
+ outline: none;
248
+ border-color: #4CAF50;
249
+ }
250
+
251
+ .room-actions {
252
+ display: flex;
253
+ gap: 5px;
254
+ }
255
+
256
+ .create-room-btn, .join-room-btn {
257
+ background: #007bff;
258
+ color: white;
259
+ border: none;
260
+ padding: 8px 12px;
261
+ border-radius: 5px;
262
+ cursor: pointer;
263
+ font-size: 12px;
264
+ flex: 1;
265
+ }
266
+
267
+ .join-room-btn {
268
+ background: #28a745;
269
+ }
270
+
271
+ .create-room-btn:hover {
272
+ background: #0056b3;
273
+ }
274
+
275
+ .join-room-btn:hover {
276
+ background: #1e7e34;
277
+ }
278
+
279
+ .search-results {
280
+ border-top: 1px solid #ddd;
281
+ margin-top: 10px;
282
+ padding-top: 10px;
283
+ }
284
+
285
+ .search-results h4 {
286
+ margin: 0 0 10px 10px;
287
+ font-size: 14px;
288
+ color: #666;
289
+ }
290
+
291
+ .search-results.hidden {
292
+ display: none;
293
+ }
294
+
295
+ .room-list {
296
+ padding: 10px;
297
+ }
298
+
299
+ .room-item {
300
+ display: flex;
301
+ align-items: center;
302
+ padding: 10px;
303
+ margin-bottom: 5px;
304
+ background: white;
305
+ border: 1px solid #e0e0e0;
306
+ border-radius: 8px;
307
+ cursor: pointer;
308
+ transition: all 0.2s;
309
+ }
310
+
311
+ .room-item:hover {
312
+ background: #f0f0f0;
313
+ border-color: #4CAF50;
314
+ }
315
+
316
+ .room-item.active {
317
+ background: #e8f5e8;
318
+ border-color: #4CAF50;
319
+ }
320
+
321
+ .room-info {
322
+ flex: 1;
323
+ }
324
+
325
+ .room-name {
326
+ font-weight: 500;
327
+ margin-bottom: 2px;
328
+ }
329
+
330
+ .room-last-message {
331
+ font-size: 12px;
332
+ color: #666;
333
+ white-space: nowrap;
334
+ overflow: hidden;
335
+ text-overflow: ellipsis;
336
+ }
337
+
338
+ .room-unread {
339
+ background: #ff4444;
340
+ color: white;
341
+ border-radius: 10px;
342
+ padding: 2px 6px;
343
+ font-size: 10px;
344
+ margin-left: 5px;
345
+ }
346
+
347
+ .room-item.search-result {
348
+ border-left: 3px solid #007bff;
349
+ }
350
+
351
+ .room-item.search-result .room-info {
352
+ position: relative;
353
+ }
354
+
355
+ .room-join-btn {
356
+ background: #28a745;
357
+ color: white;
358
+ border: none;
359
+ padding: 4px 8px;
360
+ border-radius: 3px;
361
+ font-size: 10px;
362
+ cursor: pointer;
363
+ margin-left: 5px;
364
+ }
365
+
366
+ .room-join-btn:hover {
367
+ background: #1e7e34;
368
+ }
369
+
370
+ .room-member-count {
371
+ font-size: 11px;
372
+ color: #888;
373
+ margin-top: 2px;
374
+ }
375
+
376
+ .no-results {
377
+ padding: 20px;
378
+ text-align: center;
379
+ color: #666;
380
+ font-style: italic;
381
+ }
382
+
383
+ .chat-main {
384
+ flex: 1;
385
+ display: flex;
386
+ flex-direction: column;
387
+ }
388
+
389
+ @media (max-width: 768px) {
390
+ .room-sidebar {
391
+ position: absolute;
392
+ top: 0;
393
+ left: 0;
394
+ height: 100%;
395
+ z-index: 1000;
396
+ box-shadow: 2px 0 5px rgba(0,0,0,0.1);
397
+ }
398
+
399
+ .chat-container {
400
+ height: 350px;
401
+ }
402
+ }