|
405 | 405 | [data-component="tool-part-wrapper"] { |
406 | 406 | width: 100%; |
407 | 407 |
|
408 | | - &[data-permission="true"] { |
| 408 | + &[data-permission="true"], |
| 409 | + &[data-question="true"] { |
409 | 410 | position: sticky; |
410 | 411 | top: calc(2px + var(--sticky-header-height, 40px)); |
411 | 412 | bottom: 0px; |
|
490 | 491 | justify-content: flex-end; |
491 | 492 | } |
492 | 493 | } |
| 494 | + |
| 495 | +[data-component="question-prompt"] { |
| 496 | + display: flex; |
| 497 | + flex-direction: column; |
| 498 | + padding: 12px; |
| 499 | + background-color: var(--surface-inset-base); |
| 500 | + border-radius: 0 0 6px 6px; |
| 501 | + gap: 12px; |
| 502 | + |
| 503 | + [data-slot="question-tabs"] { |
| 504 | + display: flex; |
| 505 | + gap: 4px; |
| 506 | + flex-wrap: wrap; |
| 507 | + |
| 508 | + [data-slot="question-tab"] { |
| 509 | + padding: 4px 12px; |
| 510 | + font-size: 13px; |
| 511 | + border-radius: 4px; |
| 512 | + background-color: var(--surface-base); |
| 513 | + color: var(--text-base); |
| 514 | + border: none; |
| 515 | + cursor: pointer; |
| 516 | + transition: |
| 517 | + color 0.15s, |
| 518 | + background-color 0.15s; |
| 519 | + |
| 520 | + &:hover { |
| 521 | + background-color: var(--surface-base-hover); |
| 522 | + } |
| 523 | + |
| 524 | + &[data-active="true"] { |
| 525 | + background-color: var(--surface-raised-base); |
| 526 | + } |
| 527 | + |
| 528 | + &[data-answered="true"] { |
| 529 | + color: var(--text-strong); |
| 530 | + } |
| 531 | + } |
| 532 | + } |
| 533 | + |
| 534 | + [data-slot="question-content"] { |
| 535 | + display: flex; |
| 536 | + flex-direction: column; |
| 537 | + gap: 8px; |
| 538 | + |
| 539 | + [data-slot="question-text"] { |
| 540 | + font-size: 14px; |
| 541 | + color: var(--text-base); |
| 542 | + line-height: 1.5; |
| 543 | + } |
| 544 | + } |
| 545 | + |
| 546 | + [data-slot="question-options"] { |
| 547 | + display: flex; |
| 548 | + flex-direction: column; |
| 549 | + gap: 4px; |
| 550 | + |
| 551 | + [data-slot="question-option"] { |
| 552 | + display: flex; |
| 553 | + flex-direction: column; |
| 554 | + align-items: flex-start; |
| 555 | + gap: 2px; |
| 556 | + padding: 8px 12px; |
| 557 | + background-color: var(--surface-base); |
| 558 | + border: 1px solid var(--border-weaker-base); |
| 559 | + border-radius: 6px; |
| 560 | + cursor: pointer; |
| 561 | + text-align: left; |
| 562 | + width: 100%; |
| 563 | + transition: |
| 564 | + background-color 0.15s, |
| 565 | + border-color 0.15s; |
| 566 | + position: relative; |
| 567 | + |
| 568 | + &:hover { |
| 569 | + background-color: var(--surface-base-hover); |
| 570 | + border-color: var(--border-default); |
| 571 | + } |
| 572 | + |
| 573 | + &[data-picked="true"] { |
| 574 | + [data-component="icon"] { |
| 575 | + position: absolute; |
| 576 | + right: 12px; |
| 577 | + top: 50%; |
| 578 | + transform: translateY(-50%); |
| 579 | + color: var(--text-strong); |
| 580 | + } |
| 581 | + } |
| 582 | + |
| 583 | + [data-slot="option-label"] { |
| 584 | + font-size: 14px; |
| 585 | + color: var(--text-base); |
| 586 | + font-weight: 500; |
| 587 | + } |
| 588 | + |
| 589 | + [data-slot="option-description"] { |
| 590 | + font-size: 12px; |
| 591 | + color: var(--text-weak); |
| 592 | + } |
| 593 | + } |
| 594 | + |
| 595 | + [data-slot="custom-input-form"] { |
| 596 | + display: flex; |
| 597 | + gap: 8px; |
| 598 | + padding: 8px 0; |
| 599 | + align-items: stretch; |
| 600 | + |
| 601 | + [data-slot="custom-input"] { |
| 602 | + flex: 1; |
| 603 | + padding: 8px 12px; |
| 604 | + font-size: 14px; |
| 605 | + border: 1px solid var(--border-default); |
| 606 | + border-radius: 6px; |
| 607 | + background-color: var(--surface-base); |
| 608 | + color: var(--text-base); |
| 609 | + outline: none; |
| 610 | + |
| 611 | + &:focus { |
| 612 | + border-color: var(--border-focus); |
| 613 | + } |
| 614 | + |
| 615 | + &::placeholder { |
| 616 | + color: var(--text-weak); |
| 617 | + } |
| 618 | + } |
| 619 | + |
| 620 | + [data-component="button"] { |
| 621 | + height: auto; |
| 622 | + } |
| 623 | + } |
| 624 | + } |
| 625 | + |
| 626 | + [data-slot="question-review"] { |
| 627 | + display: flex; |
| 628 | + flex-direction: column; |
| 629 | + gap: 12px; |
| 630 | + |
| 631 | + [data-slot="review-title"] { |
| 632 | + display: none; |
| 633 | + } |
| 634 | + |
| 635 | + [data-slot="review-item"] { |
| 636 | + display: flex; |
| 637 | + flex-direction: column; |
| 638 | + gap: 2px; |
| 639 | + font-size: 13px; |
| 640 | + |
| 641 | + [data-slot="review-label"] { |
| 642 | + color: var(--text-weak); |
| 643 | + } |
| 644 | + |
| 645 | + [data-slot="review-value"] { |
| 646 | + color: var(--text-strong); |
| 647 | + |
| 648 | + &[data-answered="false"] { |
| 649 | + color: var(--text-weak); |
| 650 | + } |
| 651 | + } |
| 652 | + } |
| 653 | + } |
| 654 | + |
| 655 | + [data-slot="question-actions"] { |
| 656 | + display: flex; |
| 657 | + align-items: center; |
| 658 | + gap: 8px; |
| 659 | + justify-content: flex-end; |
| 660 | + } |
| 661 | +} |
| 662 | + |
| 663 | +[data-component="question-answers"] { |
| 664 | + display: flex; |
| 665 | + flex-direction: column; |
| 666 | + gap: 12px; |
| 667 | + padding: 8px 12px; |
| 668 | + |
| 669 | + [data-slot="question-answer-item"] { |
| 670 | + display: flex; |
| 671 | + flex-direction: column; |
| 672 | + gap: 2px; |
| 673 | + font-size: 13px; |
| 674 | + |
| 675 | + [data-slot="question-text"] { |
| 676 | + color: var(--text-weak); |
| 677 | + } |
| 678 | + |
| 679 | + [data-slot="answer-text"] { |
| 680 | + color: var(--text-strong); |
| 681 | + } |
| 682 | + } |
| 683 | +} |
0 commit comments