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 / scss / shortcodes / search-modal.scss

search-modal.scss in BetterDocs – AI Documentation, Knowledge Base, MCP Server, Docs, Wikis, FAQ & Chatbot 4.9.5, at react-src/scss/shortcodes/search-modal.scss

610 lines 17.9 KB
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 @keyframes betterdocs-skeleton-pulse {
2 0%, 100% { opacity: 1; }
3 50% { opacity: 0.5; }
4 }
5
6 .betterdocs-search-layout-1 {
7 display: flex;
8 flex-wrap: wrap;
9 flex-direction: column;
10 align-items: center;
11 justify-content: center;
12 text-align: center;
13 padding: 50px 0;
14 max-width: 100%;
15 margin: 0 auto;
16 margin-top: 57px;
17 background-color: #F9FAFB;
18 .search-header {
19 margin-bottom: 40px;
20 .search-heading {
21 font-size: 36px;
22 line-height: 1.2em;
23 color: #333;
24 margin: 0;
25 padding: 0;
26 }
27 .search-subheading {
28 font-size: 24px;
29 line-height: 1.2em;
30 color: #333;
31 margin: 0;
32 padding: 0;
33 margin-top: 15px;
34 }
35 }
36 .search-bar {
37 display: flex;
38 justify-content: center;
39 align-items: center;
40 width: 100%;
41 max-width: 656px;
42 background-color: #FFFFFF;
43 border: 1px solid #EAECF0;
44 border-radius: 12px;
45 padding: 12px 12px 12px 20px;
46 .search-input-wrapper {
47 display: flex;
48 flex: 1;
49 background-color: #FFF;
50 margin-right: 10px;
51 justify-content: flex-start;
52 align-items: center;
53 .search-icon {
54 margin-right: 15px;
55 }
56 .search-input {
57 border: none;
58 outline: none;
59 font-size: 16px;
60 line-height: 20px;
61 font-weight: 400;
62 margin: 0;
63 padding: 0;
64 width: 100%;
65 flex: 1;
66 background-color: transparent;
67 text-align: left;
68 color: #667085;
69 }
70 }
71 .search-button {
72 background-color: #667085;
73 color: #FFF;
74 border: none;
75 padding: 10px 32px;
76 border-radius: 6px;
77 font-size: 16px;
78 line-height: 20px;
79 font-weight: 500;
80 cursor: pointer;
81 transition: background-color 0.3s;
82 flex-shrink: 0;
83 }
84 }
85 }
86 .betterdocs-search-popup {
87 margin-bottom: 24px;
88
89 @media only screen and (max-width: 1024px) {
90 margin-bottom: 16px;
91 }
92
93 .betterdocs-searchform {
94 border-radius: 4px;
95 background: #F9FAFB;
96 padding: 8px 10px;
97 display: flex;
98 align-items: center;
99 justify-content: space-between;
100 position: relative;
101
102 .betterdocs-searchform-input-wrap {
103 svg {
104 position: absolute;
105 left: 12px;
106 top: 50%;
107 transform: translateY(-50%);
108 }
109
110 .betterdocs-search-command {
111 width: 100%;
112 padding: 0 16px 0 36px;
113 border: none;
114 background: transparent;
115 color: #98A2B3;
116 font-size: 1rem;
117 &:focus-visible {
118 outline: 0;
119 box-shadow: none;
120 }
121 }
122
123 ::placeholder {
124 color: #98A2B3;
125 }
126 }
127
128 .command-key {
129 width: 38px;
130 height: 24px;
131 background: #FFFFFF;
132 border-radius: 4px;
133 display: flex;
134 align-items: center;
135 justify-content: center;
136 color: #667085;
137 font-size: 14px;
138 font-weight: 500;
139 }
140 }
141 }
142
143 .betterdocs-search-wrapper {
144 z-index: 9999999;
145 position: fixed;
146 inset: 0;
147 background: #00000033;
148
149 .betterdocs-search-details {
150 position: absolute;
151 top: 110px;
152 left: 50%;
153 transform: translateX(-50%);
154 background: #FFFFFF;
155 border-radius: 4px;
156 border: 1px solid #EAECF0;
157 width: 867px;
158 height: auto;
159 overflow: auto;
160 max-height: calc(100vh - 300px);
161
162 @media only screen and (max-width: 1024px) {
163 width: 95%;
164 top: 10px;
165 max-height: calc(100vh - 100px);
166 }
167
168 @media only screen and (max-width: 767px) {
169 width: 95%;
170 max-height: calc(100vh - 100px);
171 }
172
173 .xmark {
174 display: none;
175 @media only screen and (max-width: 1024px) {
176 display: block;
177 margin-top: 5px;
178 right: 10px;
179 position: absolute;
180 height: 35px;
181 width: 35px;
182 display: flex;
183 align-items: center;
184 justify-content: center;
185 background-color: #F2F4F7;
186 border-radius: 50%;
187 }
188 }
189
190 .betterdocs-search-header {
191 margin: 20px 20px 14px;
192 padding: 5px;
193 border-radius: 4px;
194 background: #F9FAFB;
195 display: flex;
196 flex-wrap: wrap;
197 align-items: center;
198 justify-content: space-between;
199
200 @media only screen and (max-width: 1024px) {
201 margin: 46px 16px 10px;
202 }
203
204 .betterdocs-searchform-input-wrap {
205 display: flex;
206 align-items: center;
207 flex: 1;
208
209 .betterdocs-search-field {
210 flex: 1;
211 background: transparent;
212 border: none;
213 padding: 0;
214 padding: 7px 16px 7px 4px;
215 color: #475467;
216 font-size: 16px;
217 line-height: 1.6em;
218 box-shadow: none;
219 @media only screen and (max-width: 1024px) {
220 font-size: 14px;
221 padding-right: 12px;
222 }
223 &:focus-visible {
224 outline: 0;
225 }
226 }
227
228 .esc-button {
229 background-color: #FFF;
230 padding: 5px 10px;
231 border-radius: 2px;
232 color: #667085;
233 font-weight: 500;
234 font-size: 14px;
235 line-height: 1.2em;
236 margin-right: 8px;
237 @media only screen and (max-width: 1024px) {
238 display: none;
239 }
240 }
241
242 .clear-icon {
243 margin-right: 8px;
244 }
245 }
246
247 .betterdocs-select-option-wrapper {
248 position: relative;
249 width: 220px;
250 padding: 2px 8px 2px 16px;
251 border-left: 1px solid #EAECF0;
252 flex-shrink: 0;
253
254 @media only screen and (max-width: 1024px) {
255 width: 190px;
256 padding: 0 8px 0 12px;
257 }
258
259 @media only screen and (max-width: 767px) {
260 width: 155px;
261 }
262
263 .betterdocs-form-select {
264 color: #667085;
265 font-size: 16px;
266 line-height: 1.4em;
267 padding: 0;
268 width: 100%;
269 height: auto;
270 border: none;
271 box-shadow: none;
272 background: transparent;
273 cursor: pointer;
274 appearance: none;
275 white-space: nowrap;
276 text-overflow: ellipsis;
277
278 @media only screen and (max-width: 1024px) {
279 font-size: 14px;
280 }
281
282 &:focus-visible {
283 outline: 0;
284 box-shadow: none;
285 }
286 .css-1fdsijx-ValueContainer {
287 padding: 0;
288 }
289 .css-1u9des2-indicatorSeparator {
290 display: none;
291 }
292 .css-13cymwt-control,
293 .css-t3ipsp-control {
294 background-color: transparent;
295 border: none;
296 border-radius: 0;
297 min-height: auto;
298 border-width: 0;
299 box-shadow: none;
300 &:hover {
301 border: none;
302 border-color: transparent;
303 }
304 }
305 .css-15lsz6c-indicatorContainer,
306 .css-1xc3v61-indicatorContainer,
307 .css-19bb58m,
308 .css-hlgwow,
309 .css-qbdosj-Input {
310 margin: 0;
311 padding: 0;
312 }
313
314 }
315 }
316 }
317
318 .betterdocs-popular-keywords {
319 display: flex;
320 flex-wrap: wrap;
321 align-items: center;
322 gap: 16px;
323 font-size: 14px;
324 line-height: 1.4em;
325 margin-bottom: 22px;
326 padding: 0 27px;
327 .search-title {
328 color: #D0D5DD;
329 }
330 .keywords {
331 display: flex;
332 flex-wrap: wrap;
333 align-items: center;
334 gap: 10px;
335 span {
336 background: #F9FAFB;
337 color: #475467;
338 padding: 4px;
339 display: inline-block;
340 cursor: pointer; ;
341 }
342 }
343 }
344
345 .betterdocs-search-content {
346 height: 100%;
347 overflow: auto;
348
349 .betterdocs-search-info-tab {
350 display: flex;
351 align-items: center;
352 gap: 16px;
353 padding: 0 28px;
354 border-bottom: 1px solid #D0D5DD;
355
356 @media only screen and (max-width: 1024px) {
357 gap: 12px;
358 padding: 0 20px;
359 }
360
361 .betterdocs-tab-items {
362 display: flex;
363 align-items: center;
364 gap: 8px;
365 padding: 2px 10px 16px 4px;
366 cursor: pointer;
367 min-height: 44px;
368
369 @media only screen and (max-width: 1024px) {
370 gap: 4px;
371 padding: 2px 8px 12px 4px;
372 min-height: 38px;
373 }
374
375 span {
376 font-size: 14px;
377 font-weight: 500;
378 line-height: 1.2em;
379 color: #D0D5DD;
380
381 @media only screen and (max-width: 1024px) {
382 font-size: 12px;
383 }
384 }
385
386 &.active {
387 border-bottom: 2px solid #00B884;
388
389 span {
390 color: #00B884;
391
392 svg path {
393 fill: #00B884;
394 }
395 }
396 }
397 }
398 }
399
400 .betterdocs-search-items-wrapper {
401 padding-bottom: 24px;
402 min-height: 360px;
403
404 @media only screen and (max-width: 1024px) {
405 padding-bottom: 16px;
406 min-height: 280px;
407 }
408
409 .betterdocs-search-skeleton {
410 padding: 0;
411
412 .betterdocs-search-skeleton-row {
413 display: flex;
414 align-items: center;
415 gap: 12px;
416 padding: 18px 24px;
417 border-bottom: 1px solid #EAECF0;
418
419 @media only screen and (max-width: 1024px) {
420 padding: 14px 20px;
421 }
422
423 .skeleton-icon {
424 width: 24px;
425 height: 24px;
426 border-radius: 4px;
427 background: #F2F4F7;
428 flex-shrink: 0;
429 animation: betterdocs-skeleton-pulse 1.2s ease-in-out infinite;
430 }
431
432 .skeleton-lines {
433 flex: 1;
434 display: flex;
435 flex-direction: column;
436 gap: 8px;
437 }
438
439 .skeleton-line {
440 height: 12px;
441 border-radius: 4px;
442 background: #F2F4F7;
443 animation: betterdocs-skeleton-pulse 1.2s ease-in-out infinite;
444
445 &.skeleton-line-title {
446 width: 60%;
447 }
448
449 &.skeleton-line-meta {
450 width: 30%;
451 height: 10px;
452 }
453 }
454
455 &:last-child {
456 border-bottom: none;
457 }
458 }
459 }
460
461 .betterdocs-search-item-content {
462 .betterdocs-search-item-list {
463 padding: 16px 24px;
464 border-bottom: 1px solid #EAECF0;
465 background: #FFFFFF;
466 transition: ease-in-out .35s;
467
468 &:hover {
469 background: #F6FEF9;
470 }
471
472 @media only screen and (max-width: 1024px) {
473 padding: 12px 20px;
474 }
475
476 .content-main {
477 display: flex;
478 align-items: center;
479 flex-wrap: wrap;
480 justify-content: space-between;
481 flex-direction: row;
482 gap: 8px;
483 margin-bottom: 10px;
484 a {
485 flex: 1;
486 cursor: pointer;
487 text-decoration: none;
488 }
489 h4 {
490 flex: 1;
491 font-size: 16px;
492 font-weight: 500;
493 line-height: 1.2em;
494 color: #1D2939;
495 margin: 0;
496 }
497 }
498
499 .content-sub {
500 display: flex;
501 align-items: center;
502 flex-wrap: wrap;
503 flex-direction: row;
504 gap: 4px;
505 padding-left: 40px;
506
507 h5 {
508 font-size: 14px;
509 font-weight: 500;
510 line-height: 1.2em;
511 color: #475467;
512 margin: 0;
513 }
514 p {
515 margin: 0;
516 padding: 0;
517 font-size: 18px;
518 line-height: 1.4em;
519 color: #475467;
520 .show-more-btn {
521 color: #D0D5DD;
522 font-size: 14px;
523 font-weight: 500;
524 float: right;
525 }
526 }
527 }
528 }
529 &:last-child {
530 .betterdocs-search-item-list {
531 border-bottom: none !important;
532 }
533 }
534 }
535
536 .betterdocs-search-items-not-found {
537 padding: 36px 30px 70px;
538 display: flex;
539 flex-direction: column;
540 align-items: center;
541 justify-content: center;
542 gap: 8px;
543
544 @media only screen and (max-width: 1024px) {
545 padding: 24px 20px 50px;
546 gap: 4px;
547 }
548
549 h4 {
550 font-size: 24px;
551 line-height: 1.2em;
552 color: #1D2939;
553 margin: 0;
554
555 @media only screen and (max-width: 1024px) {
556 font-size: 18px;
557 }
558 }
559 }
560
561 }
562 }
563 }
564 }
565
566 .betterdocs-search-modal-archive {
567 width: 100%;
568 max-width: 340px;
569 @media only screen and (max-width: 768px) {
570 width: 100%;
571 max-width: 100%;
572 .betterdocs-search-popup {
573 margin-bottom: 24px;
574 }
575 }
576 .betterdocs-live-search {
577 .betterdocs-searchform {
578 background: transparent;
579 border: 1px solid #F2F4F7;
580 padding: 3px;
581 .betterdocs-searchform-input-wrap {
582 flex: 1 1 auto;
583 svg {
584 left: 6px;
585 }
586 }
587 .search-button {
588 width: 90px;
589 height: 34px;
590 border-radius: 8px;
591 background-color: #667085;
592 color: #FFFFFF;
593 display: flex;
594 align-items: center;
595 justify-content: center;
596 font-size: 1rem;
597 flex-shrink: 0;
598 }
599 }
600 }
601 }
602
603 body.logged-in {
604 .betterdocs-search-wrapper {
605 @media only screen and (max-width: 1024px) {
606 top: 50px;
607 }
608 }
609 }
610