forked from jcollingj/caret
-
Notifications
You must be signed in to change notification settings - Fork 0
/
styles.css
321 lines (283 loc) · 6.97 KB
/
styles.css
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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
.container {
padding: 2px 15px;
display: flex;
flex-direction: column;
justify-content: space-between;
height: 100%;
width: 100%; /* Ensure it takes full width */
background-color: ; /* Background color not specified */
white-space: pre-wrap; /* Preserve whitespace and formatting */
}
.messages-container {
flex-grow: 1;
display: flex;
flex-direction: column;
overflow-y: auto;
/* margin-bottom: 10px; */
height: 80%;
/* min-height: 0; Ensure it doesn't unnecessarily expand */
width: 100%;
white-space: pre-wrap; /* Preserve whitespace and formatting */
}
.message {
padding: 10px; /* Increased padding to prevent text cut-off */
border-radius: 5px;
max-width: calc(100% - 10px); /* Prevent overflow */
word-wrap: break-word; /* Ensure long words do not cause overflow */
white-space: pre-wrap; /* Preserve whitespace and formatting */
user-select: text;
color: black; /* Set text color to black */
width: 100%;
}
.message.user, .message.system {
align-self: flex-start;
background-color: #e0e0e0; /* Light gray for better visibility in both light and dark modes */
white-space: pre-wrap; /* Preserve whitespace and formatting */
}
.message.assistant {
background-color: #cfe9e3; /* Light green for better visibility in both light and dark modes */
white-space: pre-wrap; /* Preserve whitespace and formatting */
}
.full_width_text_container {
width: 100%;
resize: vertical;
overflow-y: auto;
min-height: 80px;
margin: 0 0 20px 0;
box-sizing: border-box;
white-space: pre-wrap; /* Preserve whitespace and formatting */
}
.button-container {
width: 100%;
display: flex;
flex-direction: row;
justify-content: space-between;
}
.flex-col {
display: flex;
flex-direction: column;
}
.w-full {
width: 100%
}
.mb-2 {
margin-bottom: 0.5rem; /* 8px assuming the root font-size is 16px */
}
.mb-4 {
margin-bottom: 16px; /* 1rem typically equals 16px */
}
.theme-light .settings_container {
background-color: rgb(187, 187, 187); /* Light grey for light theme */
padding: 10px;
margin-bottom: 10px;
border-radius: 4px; /* Rounded corners */
user-select: text;
z-index: 1000000;
}
.theme-dark .settings_container {
background-color: #404040; /* Darker grey for dark theme */
padding: 10px;
margin-bottom: 10px;
border-radius: 4px; /* Rounded corners */
user-select: text;
z-index: 1000000;
}
.theme-light .settings_code_block {
background-color: #fbf4f4; /* Light grey background for light theme */
border-radius: 4px; /* Rounded corners */
padding: 4px;
user-select: text;
z-index: 1000000;
}
.theme-dark .settings_code_block {
background-color: #606060; /* Darker grey for dark theme */
border-radius: 4px; /* Rounded corners */
padding: 4px;
user-select: text;
z-index: 1000000;
}
.hidden-value-unsecure {
-webkit-text-security: disc;
}
.insert-file-header {
font-size: 18px;
font-weight: bold;
}
.insert-file-files-display {
height: 200px;
overflow: auto; /* Changed from 'hidden' to 'auto' to allow scrolling */
}
.insert-file-file-name {
font-size: 14px;
padding-top: 1px;
padding-bottom: 1px;
padding-left: 2px;
border: 1px solid transparent; /* Ensures layout doesn't change when selected */
transition: font-size 0.2s, border-color 0.2s; /* Smooth transition for visual changes */
}
.file-filter-input {
margin-bottom: 4px;
width: 100%;
}
.insert-file-file-name.selected {
font-size: 16px; /* Slightly larger font size for selected item */
border-color: #cccccc; /* Light gray border for selected item */
background-color: #f0f0f0; /* Optional: light background color for better visibility */
border-radius: 4px;
}
.custom-models-table {
width: 100%;
border-collapse: collapse;
}
.custom-models-table th,
.custom-models-table td {
text-align: left;
padding: 8px;
border: 1px solid #ddd;
}
.custom-models-table th {
background-color: #f2f2f2;
}
.custom-models-table tr:nth-child(even) {
background-color: #f9f9f9;
}
.custom-models-table tr:hover {
background-color: #ddd;
}
.mod-warning {
color: red;
font-weight: bold;
}
.system-prompt-textarea {
width: 100%;
height: 400px;
resize: vertical;
}
.workflow_container {
display: flex;
flex-direction: column;
justify-content: flex-start;
align-items: flex-start;
width: 100%;
}
.flex-row {
display: flex;
flex-direction: row;
justify-content: flex-start;
align-items: center;
}
.w-8 {
width: 360px
}
.workflow_text_area {
height: 150px
}
.row_items_spacing {
margin-right: 3px;
}
.bottom-screen-padding {
padding-bottom: 100px;
}
/* Add this CSS to your plugin's stylesheet */
.clickable-icon.wand {
position: relative;
padding: 10px; /* Increase padding to make the button larger */
}
.submenu {
display: none;
position: absolute;
margin-top: 15px;
top: 100%;
left: 50%;
transform: translateX(-50%); /* Center the submenu */
/* background-color: white; */
border: 1px solid #ccc;
z-index: 100000;
min-width: 150px;
grid-template-columns: repeat(4, 1fr); /* Up to four divs wide */
gap: 5px; /* Add some space between the icons */
padding: 2px; /* Add some padding around the grid */
background-color: #f0f0f0;
border-radius: 4px;
}
.submenu-item {
cursor: pointer;
display: flex;
align-items: center;
justify-content: center;
padding: 1px;
border-radius: 4px;
border: 1px solid #ccc;
}
.submenu-item:hover {
/* background-color: #f0f0f0; */
}
.message-container {
display: flex;
flex-direction: column;
width: 100%; /* Adjusts to the width of the content */
}
.chat-message-actions {
/* width: 40px; */
padding-top: 4px;
display: flex;
justify-content: left;
margin-top: 1px;
}
.theme-light .chat-message-actions {
color: black;
}
.theme-dark .chat-message-actions {
background-color: transparent;
}
.chat-message-convert-to-note {
margin-right: 8px;
}
.chat-message-checkbox {
top: 3px;
}
.input-container {
/* background-color: #f0f0f0; */
background-color: var(--background-primary);;
}
.bulk-convert-label {
margin-right: 3px;
}
/* .react-markdown {
line-height: 1.5;
margin: 0;
padding: 0;
white-space: pre-wrap;
}
.react-markdown code, .react-markdown pre {
white-space: pre-wrap;
}
.styled-markdown {
line-height: 1.5;
margin-bottom: 0.5em;
} */
.markdown-body ul {
list-style-type: disc;
/* padding-left: 20px; */
}
.markdown-body li {
margin-top: 0px;
margin-bottom: 0px;
}
.markdown-body p {
margin-top: 0px;
margin-bottom: 0px;
}
.markdown-body code {
background-color: #f6f8fa;
padding: 0.2em 0.4em;
border-radius: 3px;
margin-top: 0px;
margin-bottom: 0px;
}
.hidden {
display: none;
}
.tab {
margin-right: 4px;
}