-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
128 lines (109 loc) · 2.31 KB
/
Copy pathstyles.css
File metadata and controls
128 lines (109 loc) · 2.31 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
* {
box-sizing: border-box;
margin: 0;
padding: 0;
}
body {
min-height: 100vh;
background: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
color: #fff;
font-family: -apple-system, BlinkMacSystemFont, Segoe UI, Roboto, sans-serif;
display: flex;
justify-content: center;
padding: 2rem;
}
chat-app {
max-width: 500px;
width: 100%;
}
.chat-container {
background: rgba(255, 255, 255, 0.05);
border-radius: 20px;
overflow: hidden;
box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}
.header {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1rem 1.5rem;
background: rgba(255, 255, 255, 0.1);
}
.title {
font-size: 1.25rem;
font-weight: bold;
background: linear-gradient(90deg, #00d2ff, #3a7bd5);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}
.user-badge {
font-size: 0.85rem;
color: #0f0;
font-weight: bold;
}
.messages {
height: 350px;
overflow-y: auto;
padding: 1rem;
}
.messages::-webkit-scrollbar {
width: 6px;
}
.messages::-webkit-scrollbar-track {
background: rgba(255, 255, 255, 0.05);
}
.messages::-webkit-scrollbar-thumb {
background: rgba(255, 255, 255, 0.2);
border-radius: 3px;
}
.empty-state {
text-align: center;
color: #666;
margin-top: 140px;
}
.message {
display: flex;
flex-direction: column;
gap: 0.25rem;
padding: 0.75rem 1rem;
margin-bottom: 0.5rem;
background: rgba(255, 255, 255, 0.05);
border-radius: 12px;
border-left: 3px solid #3a7bd5;
}
.message.mine {
background: rgba(0, 210, 255, 0.15);
border-left-color: #00d2ff;
}
.message .username {
color: #00d2ff;
font-size: 0.85rem;
font-weight: bold;
}
.message .text {
color: #fff;
}
.input-area {
display: flex;
gap: 0.5rem;
padding: 1rem;
border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.message-input {
flex: 1;
padding: 0.75rem 1rem;
font-size: 1rem;
border: none;
border-radius: 50px;
background: rgba(255, 255, 255, 0.1);
color: #fff;
outline: none;
transition: background 0.2s;
}
.message-input::placeholder {
color: rgba(255, 255, 255, 0.5);
}
.message-input:focus {
background: rgba(255, 255, 255, 0.15);
}