Spaces:
Running
Running
Update static/app.css
Browse files- static/app.css +57 -59
static/app.css
CHANGED
@@ -1,11 +1,11 @@
|
|
1 |
-
|
2 |
* {
|
3 |
margin: 0;
|
4 |
padding: 0;
|
5 |
box-sizing: border-box;
|
6 |
}
|
7 |
|
8 |
-
html, body {
|
9 |
height: 100vh;
|
10 |
width: 100vw;
|
11 |
font-family: sans-serif;
|
@@ -14,16 +14,13 @@ html, body {
|
|
14 |
flex-direction: column;
|
15 |
}
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
/* Header (fixed height) */
|
20 |
header {
|
21 |
flex: 0 0 17vh;
|
22 |
display: flex;
|
23 |
align-items: center;
|
24 |
gap: 20px;
|
25 |
padding: 0 20px;
|
26 |
-
/*background-color: #f5f5f5;*/
|
27 |
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
28 |
}
|
29 |
|
@@ -41,12 +38,54 @@ em {
|
|
41 |
color: rgb(42, 42, 248);
|
42 |
}
|
43 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
44 |
|
45 |
/* Bottom input section */
|
46 |
.qtdoc {
|
47 |
flex: 0 0 auto;
|
48 |
padding: 40px 80px;
|
49 |
-
/*background-color: #f0f0f0;*/
|
50 |
display: flex;
|
51 |
justify-content: center;
|
52 |
align-items: center;
|
@@ -107,63 +146,22 @@ em {
|
|
107 |
.sendingQA:hover {
|
108 |
background-color: #2563eb;
|
109 |
}
|
|
|
|
|
110 |
.audio-toggle {
|
111 |
-
|
112 |
-
|
113 |
-
|
114 |
}
|
115 |
|
116 |
.audio-toggle:hover {
|
117 |
-
|
118 |
}
|
119 |
|
|
|
120 |
.answer-block {
|
121 |
-
|
122 |
-
|
123 |
-
|
124 |
-
|
125 |
-
}
|
126 |
-
.convo {
|
127 |
-
max-height: 70vh;
|
128 |
-
overflow-y: auto;
|
129 |
-
padding: 10px;
|
130 |
-
display: flex;
|
131 |
-
flex-direction: column;
|
132 |
-
gap: 10px;
|
133 |
-
scroll-behavior: smooth;
|
134 |
-
}
|
135 |
-
|
136 |
-
.message {
|
137 |
-
max-width: 70%;
|
138 |
-
padding: 10px;
|
139 |
-
border-radius: 12px;
|
140 |
-
display: flex;
|
141 |
-
flex-direction: column;
|
142 |
-
position: relative;
|
143 |
-
}
|
144 |
-
|
145 |
-
.user {
|
146 |
-
align-self: flex-end;
|
147 |
-
background-color: #1ec9f3;
|
148 |
-
color: white;
|
149 |
-
border: 2px solid #0080c0;
|
150 |
-
}
|
151 |
-
|
152 |
-
.ai {
|
153 |
-
align-self: flex-start;
|
154 |
-
background-color: #a7e9af;
|
155 |
-
color: black;
|
156 |
-
border: 2px solid #3b7a57;
|
157 |
-
}
|
158 |
-
|
159 |
-
.label {
|
160 |
-
font-size: 0.8rem;
|
161 |
-
font-weight: bold;
|
162 |
-
margin-bottom: 5px;
|
163 |
-
color: #333;
|
164 |
-
}
|
165 |
-
|
166 |
-
.bubble {
|
167 |
-
font-size: 1rem;
|
168 |
-
white-space: pre-wrap;
|
169 |
}
|
|
|
1 |
+
/* Reset and base styles */
|
2 |
* {
|
3 |
margin: 0;
|
4 |
padding: 0;
|
5 |
box-sizing: border-box;
|
6 |
}
|
7 |
|
8 |
+
html, body {
|
9 |
height: 100vh;
|
10 |
width: 100vw;
|
11 |
font-family: sans-serif;
|
|
|
14 |
flex-direction: column;
|
15 |
}
|
16 |
|
17 |
+
/* Header */
|
|
|
|
|
18 |
header {
|
19 |
flex: 0 0 17vh;
|
20 |
display: flex;
|
21 |
align-items: center;
|
22 |
gap: 20px;
|
23 |
padding: 0 20px;
|
|
|
24 |
box-shadow: 0 2px 4px rgba(0,0,0,0.1);
|
25 |
}
|
26 |
|
|
|
38 |
color: rgb(42, 42, 248);
|
39 |
}
|
40 |
|
41 |
+
/* Conversation area */
|
42 |
+
.convo {
|
43 |
+
max-height: 70vh;
|
44 |
+
overflow-y: auto;
|
45 |
+
padding: 10px;
|
46 |
+
display: flex;
|
47 |
+
flex-direction: column;
|
48 |
+
gap: 10px;
|
49 |
+
scroll-behavior: smooth;
|
50 |
+
}
|
51 |
+
|
52 |
+
/* Message bubbles */
|
53 |
+
.bubble {
|
54 |
+
max-width: 70%;
|
55 |
+
padding: 12px;
|
56 |
+
border-radius: 12px;
|
57 |
+
display: inline-block;
|
58 |
+
position: relative;
|
59 |
+
word-wrap: break-word;
|
60 |
+
font-size: 1rem;
|
61 |
+
white-space: pre-wrap;
|
62 |
+
}
|
63 |
+
|
64 |
+
.bubble .label {
|
65 |
+
font-weight: bold;
|
66 |
+
font-size: 0.8rem;
|
67 |
+
margin-bottom: 4px;
|
68 |
+
color: #333;
|
69 |
+
}
|
70 |
+
|
71 |
+
.bubble.left {
|
72 |
+
align-self: flex-start;
|
73 |
+
background-color: #a7e9af;
|
74 |
+
color: black;
|
75 |
+
border: 2px solid #3b7a57;
|
76 |
+
}
|
77 |
+
|
78 |
+
.bubble.right {
|
79 |
+
align-self: flex-end;
|
80 |
+
background-color: #1ec9f3;
|
81 |
+
color: white;
|
82 |
+
border: 2px solid #0080c0;
|
83 |
+
}
|
84 |
|
85 |
/* Bottom input section */
|
86 |
.qtdoc {
|
87 |
flex: 0 0 auto;
|
88 |
padding: 40px 80px;
|
|
|
89 |
display: flex;
|
90 |
justify-content: center;
|
91 |
align-items: center;
|
|
|
146 |
.sendingQA:hover {
|
147 |
background-color: #2563eb;
|
148 |
}
|
149 |
+
|
150 |
+
/* Optional audio toggle icon */
|
151 |
.audio-toggle {
|
152 |
+
margin-left: 10px;
|
153 |
+
cursor: pointer;
|
154 |
+
color: #007BFF;
|
155 |
}
|
156 |
|
157 |
.audio-toggle:hover {
|
158 |
+
color: #0056b3;
|
159 |
}
|
160 |
|
161 |
+
/* Answer block optional wrapper */
|
162 |
.answer-block {
|
163 |
+
background-color: #e1f7e1;
|
164 |
+
border-radius: 10px;
|
165 |
+
padding: 1rem;
|
166 |
+
margin: 1rem;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
167 |
}
|