rodrigomasini commited on
Commit
c2d8dc4
1 Parent(s): 4a0ae96

Create css/chat.css

Browse files
Files changed (1) hide show
  1. css/chat.css +126 -0
css/chat.css ADDED
@@ -0,0 +1,126 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ .h-\[40vh\], .wrap.svelte-byatnx.svelte-byatnx.svelte-byatnx {
2
+ height: 66.67vh
3
+ }
4
+
5
+ .gradio-container {
6
+ margin-left: auto !important;
7
+ margin-right: auto !important;
8
+ }
9
+
10
+ .w-screen {
11
+ width: unset
12
+ }
13
+
14
+ div.svelte-362y77>*, div.svelte-362y77>.form>* {
15
+ flex-wrap: nowrap
16
+ }
17
+
18
+ /* fixes the API documentation in chat mode */
19
+ .api-docs.svelte-1iguv9h.svelte-1iguv9h.svelte-1iguv9h {
20
+ display: grid;
21
+ }
22
+
23
+ .pending.svelte-1ed2p3z {
24
+ opacity: 1;
25
+ }
26
+
27
+ #extensions {
28
+ padding: 0;
29
+ padding: 0;
30
+ }
31
+
32
+ #gradio-chatbot {
33
+ height: 66.67vh;
34
+ }
35
+
36
+ .wrap.svelte-6roggh.svelte-6roggh {
37
+ max-height: 92.5%;
38
+ }
39
+
40
+ /* This is for the microphone button in the whisper extension */
41
+ .sm.svelte-1ipelgc {
42
+ width: 100%;
43
+ }
44
+
45
+ #main button {
46
+ min-width: 0 !important;
47
+ }
48
+
49
+ /*****************************************************/
50
+ /*************** Chat box declarations ***************/
51
+ /*****************************************************/
52
+
53
+ .chat {
54
+ margin-left: auto;
55
+ margin-right: auto;
56
+ max-width: 800px;
57
+ height: calc(100vh - 286px);
58
+ overflow-y: auto;
59
+ padding-right: 20px;
60
+ display: flex;
61
+ flex-direction: column-reverse;
62
+ word-break: break-word;
63
+ overflow-wrap: anywhere;
64
+ padding-top: 1px;
65
+ }
66
+
67
+ .message-body li {
68
+ margin-top: 0.5em !important;
69
+ margin-bottom: 0.5em !important;
70
+ }
71
+
72
+ .message-body li > p {
73
+ display: inline !important;
74
+ }
75
+
76
+ .message-body ul, .message-body ol {
77
+ font-size: 15px !important;
78
+ }
79
+
80
+ .message-body ul {
81
+ list-style-type: disc !important;
82
+ }
83
+
84
+ .message-body pre {
85
+ margin-bottom: 1.25em !important;
86
+ }
87
+
88
+ .message-body code {
89
+ white-space: pre-wrap !important;
90
+ word-wrap: break-word !important;
91
+ }
92
+
93
+ .message-body :not(pre) > code {
94
+ white-space: normal !important;
95
+ }
96
+
97
+ @media print {
98
+ body {
99
+ visibility: hidden;
100
+ }
101
+
102
+ .chat {
103
+ visibility: visible;
104
+ position: absolute;
105
+ left: 0;
106
+ top: 0;
107
+ max-width: none;
108
+ max-height: none;
109
+ width: 100%;
110
+ height: fit-content;
111
+ display: flex;
112
+ flex-direction: column-reverse;
113
+ }
114
+
115
+ .message {
116
+ break-inside: avoid;
117
+ }
118
+
119
+ .gradio-container {
120
+ overflow: visible;
121
+ }
122
+
123
+ .tab-nav {
124
+ display: none !important;
125
+ }
126
+ }