Spaces:
Running
Running
Upload style.css with huggingface_hub
Browse files
style.css
CHANGED
@@ -1,76 +1,131 @@
|
|
1 |
-
|
2 |
-
|
3 |
-
|
|
|
4 |
margin: 0;
|
5 |
-
|
|
|
|
|
|
|
|
|
|
|
6 |
}
|
7 |
|
8 |
-
|
9 |
-
|
10 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
11 |
}
|
12 |
|
13 |
-
|
14 |
-
|
|
|
15 |
}
|
16 |
|
17 |
-
|
18 |
-
|
19 |
-
|
20 |
-
flex-direction: column;
|
21 |
-
justify-content: center;
|
22 |
-
align-items: center;
|
23 |
}
|
24 |
|
25 |
-
|
26 |
-
|
27 |
-
|
|
|
28 |
|
29 |
-
|
30 |
-
|
31 |
-
|
32 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
33 |
|
34 |
-
|
35 |
-
|
36 |
-
|
37 |
-
|
38 |
-
|
|
|
39 |
|
40 |
-
|
41 |
-
background
|
42 |
-
|
43 |
-
|
|
|
44 |
}
|
45 |
|
46 |
-
|
47 |
-
|
|
|
|
|
48 |
}
|
49 |
|
50 |
-
|
51 |
-
|
|
|
52 |
}
|
53 |
|
54 |
-
#
|
55 |
-
|
56 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
57 |
cursor: pointer;
|
58 |
}
|
59 |
|
60 |
-
#
|
61 |
-
|
62 |
}
|
63 |
|
64 |
-
|
65 |
-
|
66 |
-
|
67 |
-
border: solid 2px;
|
68 |
}
|
69 |
|
70 |
-
.
|
71 |
-
|
72 |
-
|
73 |
-
|
74 |
-
|
75 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
76 |
}
|
|
|
1 |
+
/* style.css content here */
|
2 |
+
body {
|
3 |
+
font-family: Arial, sans-serif;
|
4 |
+
background-color: #f4f4f4;
|
5 |
margin: 0;
|
6 |
+
padding: 0;
|
7 |
+
display: flex;
|
8 |
+
justify-content: center;
|
9 |
+
align-items: center;
|
10 |
+
min-height: 100vh;
|
11 |
+
color: #333;
|
12 |
}
|
13 |
|
14 |
+
.container {
|
15 |
+
background: white;
|
16 |
+
border-radius: 8px;
|
17 |
+
box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
|
18 |
+
width: 90%;
|
19 |
+
max-width: 600px;
|
20 |
+
padding: 20px;
|
21 |
+
display: flex;
|
22 |
+
flex-direction: column;
|
23 |
}
|
24 |
|
25 |
+
header {
|
26 |
+
text-align: center;
|
27 |
+
margin-bottom: 20px;
|
28 |
}
|
29 |
|
30 |
+
h1 {
|
31 |
+
margin: 0;
|
32 |
+
font-size: 1.5em;
|
|
|
|
|
|
|
33 |
}
|
34 |
|
35 |
+
p {
|
36 |
+
margin: 5px 0 0;
|
37 |
+
color: #666;
|
38 |
+
}
|
39 |
|
40 |
+
.chat-container {
|
41 |
+
flex: 1;
|
42 |
+
overflow-y: auto;
|
43 |
+
border: 1px solid #ddd;
|
44 |
+
border-radius: 4px;
|
45 |
+
padding: 10px;
|
46 |
+
margin-bottom: 10px;
|
47 |
+
background: #fafafa;
|
48 |
+
max-height: 400px;
|
49 |
+
}
|
50 |
|
51 |
+
.message {
|
52 |
+
margin: 10px 0;
|
53 |
+
padding: 10px;
|
54 |
+
border-radius: 4px;
|
55 |
+
max-width: 80%;
|
56 |
+
}
|
57 |
|
58 |
+
.user-message {
|
59 |
+
background: #007bff;
|
60 |
+
color: white;
|
61 |
+
align-self: flex-end;
|
62 |
+
margin-left: auto;
|
63 |
}
|
64 |
|
65 |
+
.bot-message {
|
66 |
+
background: #e9e9e9;
|
67 |
+
color: #333;
|
68 |
+
align-self: flex-start;
|
69 |
}
|
70 |
|
71 |
+
.input-form {
|
72 |
+
display: flex;
|
73 |
+
gap: 10px;
|
74 |
}
|
75 |
|
76 |
+
#user-input {
|
77 |
+
flex: 1;
|
78 |
+
padding: 10px;
|
79 |
+
border: 1px solid #ddd;
|
80 |
+
border-radius: 4px;
|
81 |
+
}
|
82 |
+
|
83 |
+
#send-btn {
|
84 |
+
padding: 10px 20px;
|
85 |
+
background: #007bff;
|
86 |
+
color: white;
|
87 |
+
border: none;
|
88 |
+
border-radius: 4px;
|
89 |
cursor: pointer;
|
90 |
}
|
91 |
|
92 |
+
#send-btn:hover {
|
93 |
+
background: #0056b3;
|
94 |
}
|
95 |
|
96 |
+
#send-btn:disabled {
|
97 |
+
background: #ccc;
|
98 |
+
cursor: not-allowed;
|
|
|
99 |
}
|
100 |
|
101 |
+
.loading {
|
102 |
+
text-align: center;
|
103 |
+
margin: 10px 0;
|
104 |
+
color: #007bff;
|
105 |
+
}
|
106 |
+
|
107 |
+
.error {
|
108 |
+
text-align: center;
|
109 |
+
margin: 10px 0;
|
110 |
+
color: red;
|
111 |
+
}
|
112 |
+
|
113 |
+
.hidden {
|
114 |
+
display: none;
|
115 |
+
}
|
116 |
+
|
117 |
+
/* Responsive adjustments */
|
118 |
+
@media (max-width: 600px) {
|
119 |
+
.container {
|
120 |
+
padding: 10px;
|
121 |
+
width: 95%;
|
122 |
+
}
|
123 |
+
|
124 |
+
h1 {
|
125 |
+
font-size: 1.2em;
|
126 |
+
}
|
127 |
+
|
128 |
+
.chat-container {
|
129 |
+
max-height: 300px;
|
130 |
+
}
|
131 |
}
|