Spaces:
Sleeping
Sleeping
Arrcttacsrks
commited on
Update style.css
Browse files
style.css
CHANGED
@@ -1,79 +1,131 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
body {
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
4 |
}
|
5 |
|
6 |
.chat-container {
|
7 |
-
width:
|
8 |
-
max-width:
|
9 |
-
|
10 |
-
background-color: white;
|
11 |
-
border-radius: 10px;
|
12 |
-
box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
|
13 |
-
padding: 20px;
|
14 |
display: flex;
|
15 |
flex-direction: column;
|
|
|
|
|
|
|
|
|
16 |
}
|
17 |
|
18 |
-
|
|
|
|
|
|
|
19 |
text-align: center;
|
20 |
-
|
|
|
21 |
}
|
22 |
|
23 |
-
|
24 |
-
|
|
|
25 |
overflow-y: auto;
|
26 |
-
|
27 |
-
|
28 |
-
|
29 |
-
|
30 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
31 |
}
|
32 |
|
33 |
.user-message {
|
34 |
-
|
35 |
-
background-color: #
|
36 |
-
|
37 |
-
border-radius:
|
38 |
-
|
39 |
-
|
40 |
-
|
41 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
42 |
}
|
43 |
|
44 |
-
|
45 |
-
|
46 |
-
|
47 |
padding: 10px;
|
48 |
-
|
49 |
-
|
50 |
-
display: inline-block;
|
51 |
-
max-width: 80%;
|
52 |
-
animation: fadeIn 0.5s;
|
53 |
}
|
54 |
|
55 |
-
input
|
56 |
-
|
57 |
-
border-radius: 5px;
|
58 |
padding: 10px;
|
59 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
60 |
}
|
61 |
|
62 |
-
button {
|
63 |
-
background-color: #
|
64 |
color: white;
|
65 |
border: none;
|
66 |
-
|
67 |
-
|
|
|
68 |
cursor: pointer;
|
69 |
-
|
|
|
|
|
|
|
|
|
70 |
}
|
71 |
|
72 |
-
|
73 |
-
background-color: #
|
74 |
}
|
75 |
|
76 |
-
|
77 |
-
|
78 |
-
to { opacity: 1; }
|
79 |
}
|
|
|
1 |
+
/* Reset */
|
2 |
+
* {
|
3 |
+
margin: 0;
|
4 |
+
padding: 0;
|
5 |
+
box-sizing: border-box;
|
6 |
+
}
|
7 |
+
|
8 |
body {
|
9 |
+
display: flex;
|
10 |
+
justify-content: center;
|
11 |
+
align-items: center;
|
12 |
+
height: 100vh;
|
13 |
+
margin: 0;
|
14 |
+
font-family: Arial, sans-serif;
|
15 |
+
background-color: #f4f4f9;
|
16 |
}
|
17 |
|
18 |
.chat-container {
|
19 |
+
width: 100%;
|
20 |
+
max-width: 450px;
|
21 |
+
height: 90vh;
|
|
|
|
|
|
|
|
|
22 |
display: flex;
|
23 |
flex-direction: column;
|
24 |
+
border-radius: 12px;
|
25 |
+
overflow: hidden;
|
26 |
+
box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
|
27 |
+
background-color: #ffffff;
|
28 |
}
|
29 |
|
30 |
+
.chat-header {
|
31 |
+
padding: 16px;
|
32 |
+
background-color: #00796b;
|
33 |
+
color: white;
|
34 |
text-align: center;
|
35 |
+
font-weight: bold;
|
36 |
+
font-size: 1.2em;
|
37 |
}
|
38 |
|
39 |
+
.chat-box {
|
40 |
+
flex-grow: 1;
|
41 |
+
padding: 20px;
|
42 |
overflow-y: auto;
|
43 |
+
display: flex;
|
44 |
+
flex-direction: column;
|
45 |
+
gap: 10px;
|
46 |
+
background-color: #e5e5e5;
|
47 |
+
}
|
48 |
+
|
49 |
+
.chat-box .user-message, .chat-box .bot-message {
|
50 |
+
max-width: 75%;
|
51 |
+
padding: 12px 16px;
|
52 |
+
border-radius: 12px;
|
53 |
+
line-height: 1.4;
|
54 |
+
display: flex;
|
55 |
+
align-items: center;
|
56 |
+
position: relative;
|
57 |
+
font-size: 0.9em;
|
58 |
}
|
59 |
|
60 |
.user-message {
|
61 |
+
align-self: flex-end;
|
62 |
+
background-color: #00796b;
|
63 |
+
color: white;
|
64 |
+
border-bottom-right-radius: 2px;
|
65 |
+
border-bottom-left-radius: 12px;
|
66 |
+
}
|
67 |
+
|
68 |
+
.bot-message {
|
69 |
+
align-self: flex-start;
|
70 |
+
background-color: #f1f0f0;
|
71 |
+
color: #333;
|
72 |
+
border-bottom-left-radius: 2px;
|
73 |
+
border-bottom-right-radius: 12px;
|
74 |
+
}
|
75 |
+
|
76 |
+
.bot-message span, .user-message span {
|
77 |
+
font-size: 0.75em;
|
78 |
+
color: #999;
|
79 |
+
margin-right: 8px;
|
80 |
+
}
|
81 |
+
|
82 |
+
#typing-indicator {
|
83 |
+
font-style: italic;
|
84 |
+
color: #777;
|
85 |
+
display: none;
|
86 |
}
|
87 |
|
88 |
+
#chat-form {
|
89 |
+
display: flex;
|
90 |
+
gap: 5px;
|
91 |
padding: 10px;
|
92 |
+
background-color: #ffffff;
|
93 |
+
border-top: 1px solid #ddd;
|
|
|
|
|
|
|
94 |
}
|
95 |
|
96 |
+
#chat-form input {
|
97 |
+
flex: 1;
|
|
|
98 |
padding: 10px;
|
99 |
+
font-size: 1em;
|
100 |
+
border: 1px solid #ddd;
|
101 |
+
border-radius: 8px;
|
102 |
+
outline: none;
|
103 |
+
transition: border-color 0.2s;
|
104 |
+
}
|
105 |
+
|
106 |
+
#chat-form input:focus {
|
107 |
+
border-color: #00796b;
|
108 |
}
|
109 |
|
110 |
+
#chat-form button {
|
111 |
+
background-color: #00796b;
|
112 |
color: white;
|
113 |
border: none;
|
114 |
+
padding: 0 15px;
|
115 |
+
font-size: 1em;
|
116 |
+
border-radius: 8px;
|
117 |
cursor: pointer;
|
118 |
+
transition: background-color 0.2s;
|
119 |
+
}
|
120 |
+
|
121 |
+
#chat-form button:hover {
|
122 |
+
background-color: #005b4f;
|
123 |
}
|
124 |
|
125 |
+
#chat-form #clear-chat {
|
126 |
+
background-color: #ff5f5f;
|
127 |
}
|
128 |
|
129 |
+
#chat-form #clear-chat:hover {
|
130 |
+
background-color: #cc4a4a;
|
|
|
131 |
}
|