Spaces:
Sleeping
Sleeping
Update static/styles.css
Browse files- static/styles.css +70 -4
static/styles.css
CHANGED
@@ -22,6 +22,7 @@ body {
|
|
22 |
background-color: white;
|
23 |
display: flex;
|
24 |
flex-direction: column;
|
|
|
25 |
}
|
26 |
|
27 |
.chat-header {
|
@@ -36,7 +37,7 @@ body {
|
|
36 |
.chat-messages {
|
37 |
flex: 1; /* Allow messages to take available space */
|
38 |
overflow-y: auto;
|
39 |
-
padding:
|
40 |
box-sizing: border-box;
|
41 |
}
|
42 |
|
@@ -47,6 +48,7 @@ body {
|
|
47 |
border-radius: 5px;
|
48 |
max-width: 70%;
|
49 |
word-wrap: break-word;
|
|
|
50 |
}
|
51 |
|
52 |
.user-message {
|
@@ -58,6 +60,7 @@ body {
|
|
58 |
margin-left: auto;
|
59 |
text-align: right;
|
60 |
word-wrap: break-word;
|
|
|
61 |
}
|
62 |
|
63 |
.chat-input {
|
@@ -69,14 +72,16 @@ body {
|
|
69 |
|
70 |
.chat-input input {
|
71 |
flex: 1;
|
72 |
-
padding:
|
73 |
border: 1px solid #ccc;
|
74 |
border-radius: 5px;
|
75 |
box-sizing: border-box;
|
|
|
|
|
76 |
}
|
77 |
|
78 |
.chat-input button {
|
79 |
-
padding:
|
80 |
margin-left: 10px;
|
81 |
background-color: #f28c38;
|
82 |
color: white;
|
@@ -84,6 +89,8 @@ body {
|
|
84 |
border-radius: 5px;
|
85 |
cursor: pointer;
|
86 |
transition: background-color 0.3s;
|
|
|
|
|
87 |
}
|
88 |
|
89 |
.chat-input button:hover {
|
@@ -92,7 +99,7 @@ body {
|
|
92 |
|
93 |
.option-button {
|
94 |
display: inline-block;
|
95 |
-
padding: 10px
|
96 |
margin: 5px;
|
97 |
background-color: #9c27b0;
|
98 |
color: white;
|
@@ -100,6 +107,9 @@ body {
|
|
100 |
border-radius: 5px;
|
101 |
cursor: pointer;
|
102 |
transition: background-color 0.3s;
|
|
|
|
|
|
|
103 |
}
|
104 |
|
105 |
.option-button.green {
|
@@ -112,4 +122,60 @@ body {
|
|
112 |
|
113 |
.option-button:hover {
|
114 |
opacity: 0.9;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
115 |
}
|
|
|
22 |
background-color: white;
|
23 |
display: flex;
|
24 |
flex-direction: column;
|
25 |
+
margin: 10px; /* Add margin for better spacing on mobile */
|
26 |
}
|
27 |
|
28 |
.chat-header {
|
|
|
37 |
.chat-messages {
|
38 |
flex: 1; /* Allow messages to take available space */
|
39 |
overflow-y: auto;
|
40 |
+
padding: 15px; /* Reduced padding for mobile */
|
41 |
box-sizing: border-box;
|
42 |
}
|
43 |
|
|
|
48 |
border-radius: 5px;
|
49 |
max-width: 70%;
|
50 |
word-wrap: break-word;
|
51 |
+
font-size: 14px; /* Smaller font for mobile */
|
52 |
}
|
53 |
|
54 |
.user-message {
|
|
|
60 |
margin-left: auto;
|
61 |
text-align: right;
|
62 |
word-wrap: break-word;
|
63 |
+
font-size: 14px; /* Smaller font for mobile */
|
64 |
}
|
65 |
|
66 |
.chat-input {
|
|
|
72 |
|
73 |
.chat-input input {
|
74 |
flex: 1;
|
75 |
+
padding: 8px; /* Slightly larger padding for better touch targets on mobile */
|
76 |
border: 1px solid #ccc;
|
77 |
border-radius: 5px;
|
78 |
box-sizing: border-box;
|
79 |
+
font-size: 14px; /* Smaller font for mobile */
|
80 |
+
min-height: 40px; /* Ensure input is tappable on mobile */
|
81 |
}
|
82 |
|
83 |
.chat-input button {
|
84 |
+
padding: 8px 15px; /* Larger padding for better touch targets on mobile */
|
85 |
margin-left: 10px;
|
86 |
background-color: #f28c38;
|
87 |
color: white;
|
|
|
89 |
border-radius: 5px;
|
90 |
cursor: pointer;
|
91 |
transition: background-color 0.3s;
|
92 |
+
font-size: 14px; /* Smaller font for mobile */
|
93 |
+
min-height: 40px; /* Ensure button is tappable on mobile */
|
94 |
}
|
95 |
|
96 |
.chat-input button:hover {
|
|
|
99 |
|
100 |
.option-button {
|
101 |
display: inline-block;
|
102 |
+
padding: 10px 15px; /* Adjusted padding for mobile */
|
103 |
margin: 5px;
|
104 |
background-color: #9c27b0;
|
105 |
color: white;
|
|
|
107 |
border-radius: 5px;
|
108 |
cursor: pointer;
|
109 |
transition: background-color 0.3s;
|
110 |
+
font-size: 14px; /* Smaller font for mobile */
|
111 |
+
min-width: 100px; /* Minimum width for readability */
|
112 |
+
text-align: center;
|
113 |
}
|
114 |
|
115 |
.option-button.green {
|
|
|
122 |
|
123 |
.option-button:hover {
|
124 |
opacity: 0.9;
|
125 |
+
}
|
126 |
+
|
127 |
+
/* Media Queries for Responsiveness */
|
128 |
+
@media (max-width: 768px) {
|
129 |
+
.chat-container {
|
130 |
+
max-width: 100%; /* Full width on mobile */
|
131 |
+
height: 90vh; /* Use more of the viewport on mobile */
|
132 |
+
margin: 5px; /* Reduced margin on mobile */
|
133 |
+
}
|
134 |
+
|
135 |
+
.chat-header {
|
136 |
+
font-size: 18px; /* Slightly smaller header on mobile */
|
137 |
+
}
|
138 |
+
|
139 |
+
.chat-messages {
|
140 |
+
padding: 10px; /* Further reduced padding for mobile */
|
141 |
+
}
|
142 |
+
|
143 |
+
.chat-input input,
|
144 |
+
.chat-input button {
|
145 |
+
padding: 6px; /* Smaller padding on mobile */
|
146 |
+
font-size: 12px; /* Even smaller font on mobile */
|
147 |
+
min-height: 35px; /* Adjusted for mobile touch */
|
148 |
+
}
|
149 |
+
|
150 |
+
.option-button {
|
151 |
+
padding: 8px 12px; /* Smaller padding for option buttons */
|
152 |
+
font-size: 12px; /* Smaller font for option buttons */
|
153 |
+
min-width: 90px; /* Adjusted minimum width */
|
154 |
+
}
|
155 |
+
}
|
156 |
+
|
157 |
+
@media (min-width: 769px) {
|
158 |
+
.chat-container {
|
159 |
+
margin: 20px; /* Increased margin on larger screens */
|
160 |
+
}
|
161 |
+
|
162 |
+
.chat-header {
|
163 |
+
font-size: 22px; /* Slightly larger header on desktop */
|
164 |
+
}
|
165 |
+
|
166 |
+
.bot-message,
|
167 |
+
.user-message {
|
168 |
+
font-size: 16px; /* Larger font for desktop */
|
169 |
+
}
|
170 |
+
|
171 |
+
.chat-input input,
|
172 |
+
.chat-input button {
|
173 |
+
font-size: 16px; /* Larger font for desktop */
|
174 |
+
min-height: 45px; /* Adjusted for desktop */
|
175 |
+
}
|
176 |
+
|
177 |
+
.option-button {
|
178 |
+
font-size: 16px; /* Larger font for desktop */
|
179 |
+
min-width: 120px; /* Adjusted minimum width */
|
180 |
+
}
|
181 |
}
|