-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy pathmain.css
100 lines (86 loc) · 1.52 KB
/
main.css
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
body {
margin: 0;
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
background-color: rgb(180, 216, 255);
}
.chat-container {
max-width: 800px;
margin: 0 auto;
background: white;
border-radius: 12px;
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
display: flex;
flex-direction: column;
height: 80vh;
}
.room-header {
padding: 20px;
border-bottom: 1px solid #eee;
}
.room-header h3 {
margin: 0;
color: #333;
}
.messages {
flex: 1;
overflow-y: auto;
padding: 20px;
}
.message {
margin-bottom: 15px;
padding: 10px;
background: #f8f9fa;
border-radius: 8px;
position: relative;
}
.message b {
color: #2c5282;
margin-right: 8px;
}
.timestamp {
font-size: 0.8em;
color: #666;
position: absolute;
right: 10px;
top: 10px;
}
.empty-message {
text-align: center;
color: #666;
padding: 20px;
font-style: italic;
}
.input-area {
padding: 20px;
border-top: 1px solid #eee;
display: flex;
gap: 10px;
}
.input-area input {
flex: 1;
padding: 12px;
border: 1px solid #ddd;
border-radius: 6px;
font-size: 16px;
outline: none;
transition: border-color 0.2s;
}
.input-area input:focus {
border-color: #4299e1;
}
.input-area button {
padding: 12px 24px;
background: #4299e1;
color: white;
border: none;
border-radius: 6px;
font-size: 16px;
cursor: pointer;
transition: background-color 0.2s;
}
.input-area button:hover {
background: #3182ce;
}
.input-area button:active {
background: #2b6cb0;
}