File size: 3,766 Bytes
64c838a
d9ddc47
 
 
 
 
 
 
 
 
64c838a
 
d9ddc47
 
 
 
 
 
 
 
 
 
64c838a
 
a3bf481
d9ddc47
a3bf481
 
 
d9ddc47
a3bf481
 
64c838a
d9ddc47
 
 
64c838a
 
 
d9ddc47
 
64c838a
 
d9ddc47
 
a0e3ddf
 
d9ddc47
 
ff42e3f
 
d9ddc47
 
 
ff42e3f
 
d9ddc47
 
ff42e3f
 
 
d9ddc47
 
 
 
 
 
 
ff42e3f
 
 
d9ddc47
ff42e3f
 
 
d9ddc47
 
 
 
 
ff42e3f
 
 
d9ddc47
 
ff42e3f
 
 
d9ddc47
 
 
 
 
 
ff42e3f
 
 
d9ddc47
 
 
ff42e3f
 
 
d9ddc47
 
 
 
 
ff42e3f
 
d9ddc47
 
 
 
ff42e3f
 
d9ddc47
 
 
ff42e3f
 
d9ddc47
 
ff42e3f
 
d9ddc47
 
ff42e3f
 
d9ddc47
 
 
 
ff42e3f
72c5fd8
d9ddc47
 
 
 
72c5fd8
d9ddc47
1558216
ee1088e
d9ddc47
a3bf481
d9ddc47
 
ee1088e
d9ddc47
a3bf481
d9ddc47
1558216
ee1088e
d9ddc47
 
a3bf481
 
1c0bcd6
ee1088e
1c0bcd6
 
a3bf481
d9ddc47
 
a3bf481
 
 
d9ddc47
 
 
 
 
fa9f031
d9ddc47
 
 
 
fa9f031
d9ddc47
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fa9f031
 
d9ddc47
 
 
 
 
 
2e9b317
 
a3bf481
d9ddc47
a3bf481
2e9b317
a3bf481
d9ddc47
a3bf481
c974ee5
d9ddc47
 
 
c974ee5
1558216
 
 
 
 
 
 
 
 
 
 
 
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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
.warning-box {
  background-color: #fff3cd;
  border: 1px solid #ffeeba;
  border-radius: 4px;
  padding: 15px 20px;
  font-size: 14px;
  color: #856404;
  display: inline-block;
  margin-bottom: 15px;
}

.tip-box {
  background-color: #f0f9ff;
  border: 1px solid #80d4fa;
  border-radius: 4px;
  margin-top: 20px;
  padding: 15px 20px;
  font-size: 14px;
  display: inline-block;
  margin-bottom: 15px;
  width: auto;
  color: black !important;
}

body.dark .warning-box * {
  color: black !important;
}

body.dark .tip-box * {
  color: black !important;
}

.tip-box-title {
  font-weight: bold;
  font-size: 14px;
  margin-bottom: 5px;
}

.light-bulb {
  display: inline;
  margin-right: 5px;
}

.gr-box {
  border-color: #d6c37c;
}

#hidden-message {
  display: none;
}

.message {
  font-size: 14px !important;
}

a {
  text-decoration: none;
  color: inherit;
}

.card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  margin: 20px;
}

.card-content {
  padding: 20px;
}

.card-content h2 {
  font-size: 14px !important;
  font-weight: bold;
  margin-bottom: 10px;
  margin-top: 0px !important;
  color: #dc2626 !important;
}

.card-content p {
  font-size: 12px;
  margin-bottom: 0;
}

.card-footer {
  background-color: #f4f4f4;
  font-size: 10px;
  padding: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.card-footer span {
  flex-grow: 1;
  text-align: left;
  color: #999 !important;
}

.pdf-link {
  display: inline-flex;
  align-items: center;
  margin-left: auto;
  text-decoration: none !important;
  font-size: 14px;
}

.message.user {
  /* background-color:#7494b0 !important; */
  border: none;
  /* color:white!important; */
}

.message.bot {
  /* background-color:#f2f2f7 !important; */
  border: none;
}

label.selected {
  background: none !important;
}

#submit-button {
  padding: 0px !important;
}

@media screen and (min-width: 1024px) {
  div#tab-examples {
    height: calc(100vh - 190px) !important;
    overflow-y: auto;
  }

  div#sources-textbox {
    height: calc(100vh - 190px) !important;
    overflow-y: auto;
  }

  div#chatbot-row {
    height: calc(100vh - 110px) !important;
    max-height: calc(100vh - 110px) !important;
  }

  div#chatbot {
    height: calc(100vh - 220px) !important;
    max-height: calc(100vh - 220px) !important;
  }

  .max-height {
    height: calc(100vh - 110px) !important;
    max-height: calc(100vh - 110px) !important;
    overflow-y: auto;
  }
}

.gradio-container {
  max-height: calc(100vh) !important;
}

footer {
  visibility: hidden;
  display: none;
}

@media screen and (max-width: 767px) {
  /* Your mobile-specific styles go here */

  div#chatbot {
    height: 500px !important;
  }

  #submit-button {
    padding: 0px !important;
    min-width: 80px;
  }

  /* This will hide all list items */
  div.tab-nav button {
    display: none !important;
  }

  /* This will show only the first list item */
  div.tab-nav button:first-child {
    display: block !important;
  }

  /* This will show only the first list item */
  div.tab-nav button:nth-child(2) {
    display: block !important;
  }

  #right-panel button {
    display: block !important;
  }

  /* ... add other mobile-specific styles ... */
}

body.dark .card {
  background-color: #374151;
}

body.dark .card-content h2 {
  color: #f4dbd3 !important;
}

body.dark .card-footer {
  background-color: #404652;
}

body.dark .card-footer span {
  color: white !important;
}

.doc-ref {
  color: #dc2626 !important;
  margin-right: 1px;
}

.message-buttons-bot {
  bottom: 0px !important;
}

.message-buttons-panel {
  bottom: 0px !important;
}

.chatbot {
  user-select: text;
}