PluginProbe
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot / 4.9.5
BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot v4.9.5
4.9.5 4.9.4 4.9.3 4.9.2 4.9.1 4.9.0 4.8.2 4.8.1 4.8.0 4.7.0 4.6.2 4.6.1 4.6.0 4.5.6 4.5.5 4.5.4 4.5.3 4.5.2 4.5.1 4.5.0 4.4.1 4.4.0 3.3.4 3.4.0 3.4.1 All 203 releases
betterdocs / react-src / admin / scss / faq-builder / utils / _write-with-ai-modal.scss

_write-with-ai-modal.scss in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/admin/scss/faq-builder/utils/_write-with-ai-modal.scss

412 lines 6.7 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 $color_9: #2271b1;
2 $font-family_1: "IBM Plex Sans", sans-serif;
3
4 /* WriteWithAI CSS */
5 /* Override autofill text color */
6 /* Add this CSS to your existing stylesheet or create a new one */
7 /* Change the default checkbox color */
8 /* Style the checked state */
9 /* .bd-close-button {
10 right: px;
11 top: 1px;
12 border-radius: 5px;
13 width: 12px;
14 height: 12px;
15 color: #ffffff;
16 background: var(--base-color-700);
17 } */
18 .bd-faq-cgt-field-wrapper {
19 display: flex;
20 align-items: center;
21 gap: 20px;
22 }
23
24 button.bd-faq-button.button-success.bd-write-with-ai-button {
25 min-width: 150px;
26 max-width: 180px;
27 gap: 5px;
28 height: 40px;
29 border: none;
30 }
31
32 .hidden {
33 display: none !important;
34 }
35
36 .disabled-input-field {
37 input {
38 pointer-events: none;
39 opacity: 0.6;
40 }
41
42 textarea {
43 pointer-events: none;
44 opacity: 0.6;
45 }
46
47 button {
48 pointer-events: none;
49 opacity: 0.6;
50 }
51
52 label {
53 pointer-events: none;
54 opacity: 0.6;
55 opacity: 1;
56 }
57 }
58
59 .betterdocs-ai-button-container {
60 margin-left: 10px;
61 min-width: 142px;
62 }
63
64 .prompt-field {
65 .input-description {
66 margin: 0 !important;
67 }
68 }
69
70 .betterdocs-ai-button {
71 background: var(--base-color-700);
72 border: 1px solid transparent;
73 color: #ffffff;
74 box-shadow: none;
75 font-size: 12px;
76 margin-right: 8px;
77 padding: 0px 15px;
78 cursor: pointer;
79 border-radius: 3px;
80 height: 38px;
81 display: flex;
82 align-items: center;
83 justify-content: space-between;
84 gap: 10px;
85
86 img {
87 width: 20px;
88 height: 20px;
89 }
90 }
91
92 // Generated-answer box, shown inside the unified modal body (.bd-faq-ctg-body).
93 .betterdocs-ai-content-wrapper {
94 padding: 15px;
95 border: 1px solid var(--text-color-150);
96 background: var(--base-background);
97 color: var(--text-color-900);
98 border-radius: 5px;
99
100 p {
101 display: inline;
102 line-height: 1.2rem;
103 }
104 }
105
106 #betterdocs-ai-form {
107 display: flex;
108 flex-direction: column;
109 overflow: hidden;
110 display: flex;
111 flex-direction: column;
112
113 .form-group {
114 margin-bottom: 24px;
115 }
116
117 .bd-aiform-flex {
118 display: flex;
119 justify-content: space-between;
120 }
121
122 label {
123 font-weight: 600;
124 margin-bottom: 5px;
125 display: block;
126 font-size: 14px;
127 line-height: 20px;
128 color: var(--text-color-600);
129 }
130
131 input[type="text"]="text""] {
132 width: 100%;
133 padding: 8px;
134 box-sizing: border-box;
135 border: 1px solid var(--text-color-150);
136 background: var(--base-background);
137 border-radius: 4px;
138 color: var(--text-color-900);
139 font-weight: 400;
140
141 &::placeholder {
142 color: var(--text-color-600);
143 }
144 }
145
146 textarea {
147 width: 100%;
148 padding: 8px;
149 box-sizing: border-box;
150 border: 1px solid var(--text-color-150);
151 background: var(--base-background);
152 border-radius: 4px;
153 color: var(--text-color-900);
154 font-weight: 400;
155
156 &::placeholder {
157 color: var(--text-color-600);
158 }
159
160 &:focus {
161 box-shadow: none;
162 color: var(--text-color-900);
163 box-shadow: none;
164 }
165 }
166
167 input {
168 &:-webkit-autofill {
169 -webkit-text-fill-color: var(--text-color-600) !important;
170 }
171
172 &::placeholder {
173 color: var(--text-color-600);
174 }
175
176 &:focus {
177 box-shadow: none;
178 }
179 }
180 }
181
182 .form-inner-content {
183 overflow: auto;
184 height: 100%;
185 max-height: 435px;
186 padding: 0 40px;
187
188 >.form-group {
189 margin-top: 20px;
190 }
191 }
192
193 select#bd-autowrtite-content-section {
194 width: 150px !important;
195 height: 40px;
196 }
197
198 #bd-autowrtite-content-paragraph {
199 width: 150px !important;
200 height: 40px;
201 }
202
203 #betterdocs-ai-language {
204 width: 150px !important;
205 height: 40px;
206 }
207
208 .input-description {
209 font-size: 14px;
210 color: var(--text-color-600);
211 }
212
213 .betterdocs-ai-checkbox-field {
214 .form-group {
215 display: flex;
216 align-items: start;
217 justify-content: space-between;
218 }
219
220 input {
221 width: 20px;
222 height: 20px;
223 }
224
225 position: relative;
226 font-size: 16px;
227
228 input[type="checkbox"]="checkbox""] {
229 &:checked {
230 &::before {
231 padding: 2px;
232 content: "\2713";
233 color: var(--base-color-700);
234 }
235 }
236
237 border: 1px solid var(--base-color-700);
238 }
239
240 input[type="checkbox"]="checkbox""] {
241 &:hover {
242 -webkit-appearance: none;
243 -moz-appearance: none;
244 appearance: none;
245 border: 1px solid var(--base-color-700);
246 outline: none;
247 }
248
249 &:checked {
250 border: 1px solid var(--base-color-700);
251 }
252 }
253 }
254
255 .checkbox-field-label {
256 width: calc(100% - 150px);
257
258 p {
259 margin: 0 !important;
260 }
261 }
262
263 .checkbox-input-field {
264 width: 300px;
265 text-align: right;
266 position: relative;
267 display: inline-block;
268 width: 60px;
269 height: 34px;
270
271 input {
272 display: none;
273
274 &:checked+.toggle-label {
275 background-color: var(--base-color-700);
276
277 &:after {
278 transform: translateX(26px);
279 }
280 }
281 }
282 }
283
284 .toggle-label {
285 position: absolute;
286 cursor: pointer;
287 top: 0;
288 left: 0;
289 right: 0;
290 bottom: 0;
291 background-color: (--text-color-150);
292 border-radius: 34px;
293 transition: background-color 0.3s;
294 scale: 0.9;
295 width: 52px;
296 height: 26px;
297
298 &:after {
299 content: "";
300 position: absolute;
301 height: 22px;
302 width: 22px;
303 left: 2px;
304 bottom: 2px;
305 background-color: var(--text-color-900);
306 border-radius: 50%;
307 transition: transform 0.3s;
308 }
309 }
310
311 .prompt-btn {
312 background-color: var(--base-color-700);
313 color: #fff;
314 border: none;
315 padding: 10px 15px;
316 text-align: center;
317 text-decoration: none;
318 display: inline-block;
319 font-size: 16px;
320 cursor: pointer;
321 border-radius: 4px;
322 }
323
324 div#betterdocs-ai-error-message,
325 .betterdocs-ai-error-message {
326 font-size: 14px;
327 font-family: $font-family_1;
328 color: var(--text-color-600);
329 margin-bottom: 20px;
330
331 a {
332 text-decoration: none;
333 font-weight: 600;
334
335 &:focus {
336 outline: none;
337 box-shadow: none;
338 color: $color_9;
339 }
340 }
341 }
342
343 #betterdocs-ai-message {
344 font-size: 14px;
345 font-family: $font-family_1;
346 color: var(--text-color-600);
347 margin-bottom: 20px;
348
349 a {
350 text-decoration: none;
351 font-weight: 600;
352
353 &:focus {
354 outline: none;
355 box-shadow: none;
356 color: $color_9;
357 }
358 }
359
360 span {
361 color: var(--danger-600);
362 }
363 }
364
365 .warning-message {
366 display: flex;
367 align-items: center;
368 gap: 10px;
369 background: var(--danger-50);
370 padding: 12px;
371 border-radius: 5px;
372 font-size: 14px;
373 line-height: 1.4em;
374 border-left: 4px solid var(--danger-600);
375
376 svg {
377 width: 20px;
378 height: 20px;
379 }
380
381 span {
382 color: var(--danger-600);
383 }
384
385 .footer-message {
386 width: calc(100% - 20px);
387 }
388 }
389
390 // NOTE: `.glossary-counter-container` and `.bd-faq-button.bd-define-with-ai-button`
391 // plus `.bd-define-with-ai-modal`. Glossaries moved to Pro, so those glossary-only blocks
392 // now ship in betterdocs-pro/react-src/admin/glossaries/glossaries.scss. The
393 // shared `.bd-faq-*` rules below stay here — they are the FAQ Builder's own.
394
395 h3.bd-faq-ctg-title span {
396 font-size: 12px;
397 margin-top: -4px;
398 /* display: inline-block; */
399 background: #daf0e9;
400 color: #101828;
401 padding: 4px 10px;
402 border-radius: 14px;
403 font-weight: 500;
404 margin-left: 10px;
405 }
406
407 .betterdocs-faq-wrapper .bd-faq-ctg-list .bd-faq-ctg .bd-faq-ctg-head .bd-faq-action-button.magic-icon svg {
408 fill: none;
409 }
410
411
412