Spaces:
Sleeping
Sleeping
no mathjax
Browse files- web/src/App.css +30 -297
web/src/App.css
CHANGED
|
@@ -537,319 +537,53 @@ body {
|
|
| 537 |
font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
|
| 538 |
}
|
| 539 |
|
| 540 |
-
/*
|
| 541 |
-
|
| 542 |
-
|
| 543 |
-
|
| 544 |
-
/* MathJax Container */
|
| 545 |
-
.message-content mjx-container {
|
| 546 |
-
color: #e8d4c0 !important;
|
| 547 |
-
font-size: 1.05em;
|
| 548 |
-
}
|
| 549 |
-
|
| 550 |
-
/* Inline Math (text style) */
|
| 551 |
-
.message-content mjx-container[display="false"] {
|
| 552 |
-
display: inline-block;
|
| 553 |
-
margin: 0 0.15em;
|
| 554 |
}
|
| 555 |
|
| 556 |
-
|
| 557 |
-
|
| 558 |
-
display: block;
|
| 559 |
-
margin: 1.25rem 0;
|
| 560 |
padding: 1rem;
|
| 561 |
-
background:
|
| 562 |
-
border
|
| 563 |
-
border-radius:
|
| 564 |
overflow-x: auto;
|
| 565 |
-
overflow-y: hidden;
|
| 566 |
}
|
| 567 |
|
| 568 |
-
|
| 569 |
-
.message-content mjx-container[display="true"] mjx-math {
|
| 570 |
-
display: inline-block;
|
| 571 |
text-align: center;
|
| 572 |
-
|
| 573 |
-
}
|
| 574 |
-
|
| 575 |
-
/* MathJax SVG output specific */
|
| 576 |
-
.message-content mjx-container svg {
|
| 577 |
-
display: inline-block;
|
| 578 |
-
vertical-align: middle;
|
| 579 |
-
}
|
| 580 |
-
|
| 581 |
-
/* MathJax CHTML output specific */
|
| 582 |
-
.message-content mjx-container mjx-math {
|
| 583 |
-
color: #e8d4c0 !important;
|
| 584 |
-
}
|
| 585 |
-
|
| 586 |
-
/* All MathJax text elements */
|
| 587 |
-
.message-content mjx-container mjx-mi,
|
| 588 |
-
.message-content mjx-container mjx-mo,
|
| 589 |
-
.message-content mjx-container mjx-mn,
|
| 590 |
-
.message-content mjx-container mjx-ms,
|
| 591 |
-
.message-content mjx-container mjx-mspace,
|
| 592 |
-
.message-content mjx-container mjx-mtext,
|
| 593 |
-
.message-content mjx-container mjx-c {
|
| 594 |
-
color: #e8d4c0 !important;
|
| 595 |
-
}
|
| 596 |
-
|
| 597 |
-
/* MathJax operators and relations */
|
| 598 |
-
.message-content mjx-container mjx-mo {
|
| 599 |
-
color: #e8d4c0 !important;
|
| 600 |
}
|
| 601 |
|
| 602 |
-
/*
|
| 603 |
-
.message-content
|
| 604 |
-
|
| 605 |
-
font-style: italic;
|
| 606 |
}
|
| 607 |
|
| 608 |
-
/*
|
| 609 |
-
.message-content
|
| 610 |
-
|
|
|
|
|
|
|
|
|
|
| 611 |
}
|
| 612 |
|
| 613 |
/* Fractions */
|
| 614 |
-
.message-content
|
| 615 |
-
color: #
|
| 616 |
-
}
|
| 617 |
-
|
| 618 |
-
.message-content mjx-container mjx-frac mjx-line {
|
| 619 |
-
border-bottom-color: #c9b8a3 !important;
|
| 620 |
-
}
|
| 621 |
-
|
| 622 |
-
/* Roots (square roots, nth roots) */
|
| 623 |
-
.message-content mjx-container mjx-sqrt {
|
| 624 |
-
color: #e8d4c0 !important;
|
| 625 |
-
}
|
| 626 |
-
|
| 627 |
-
.message-content mjx-container mjx-sqrt mjx-surd {
|
| 628 |
-
color: #c9b8a3 !important;
|
| 629 |
-
}
|
| 630 |
-
|
| 631 |
-
/* Subscripts and superscripts */
|
| 632 |
-
.message-content mjx-container mjx-sub,
|
| 633 |
-
.message-content mjx-container mjx-sup,
|
| 634 |
-
.message-content mjx-container mjx-subsup {
|
| 635 |
-
color: #e8d4c0 !important;
|
| 636 |
-
}
|
| 637 |
-
|
| 638 |
-
/* Delimiters (parentheses, brackets, braces) */
|
| 639 |
-
.message-content mjx-container mjx-delim,
|
| 640 |
-
.message-content mjx-container mjx-open,
|
| 641 |
-
.message-content mjx-container mjx-close {
|
| 642 |
-
color: #c9b8a3 !important;
|
| 643 |
-
}
|
| 644 |
-
|
| 645 |
-
/* Stretchy delimiters */
|
| 646 |
-
.message-content mjx-container mjx-stretchy-v,
|
| 647 |
-
.message-content mjx-container mjx-stretchy-h {
|
| 648 |
-
color: #c9b8a3 !important;
|
| 649 |
-
}
|
| 650 |
-
|
| 651 |
-
/* MathJax tables (matrices, arrays, cases) */
|
| 652 |
-
.message-content mjx-container mjx-table,
|
| 653 |
-
.message-content mjx-container mjx-mtable {
|
| 654 |
-
color: #e8d4c0 !important;
|
| 655 |
-
}
|
| 656 |
-
|
| 657 |
-
.message-content mjx-container mjx-mtable mjx-mtr {
|
| 658 |
-
color: #e8d4c0 !important;
|
| 659 |
-
}
|
| 660 |
-
|
| 661 |
-
.message-content mjx-container mjx-mtable mjx-mtd {
|
| 662 |
-
color: #e8d4c0 !important;
|
| 663 |
-
padding: 0.3em 0.5em;
|
| 664 |
-
}
|
| 665 |
-
|
| 666 |
-
/* Blackboard bold (\mathbb) */
|
| 667 |
-
.message-content mjx-container mjx-mi[mathvariant="double-struck"],
|
| 668 |
-
.message-content mjx-container mjx-mn[mathvariant="double-struck"] {
|
| 669 |
-
color: #e8d4c0 !important;
|
| 670 |
-
}
|
| 671 |
-
|
| 672 |
-
/* Script/calligraphic (\mathcal) */
|
| 673 |
-
.message-content mjx-container mjx-mi[mathvariant="script"] {
|
| 674 |
-
color: #e8d4c0 !important;
|
| 675 |
-
}
|
| 676 |
-
|
| 677 |
-
/* Fraktur (\mathfrak) */
|
| 678 |
-
.message-content mjx-container mjx-mi[mathvariant="fraktur"] {
|
| 679 |
-
color: #e8d4c0 !important;
|
| 680 |
-
}
|
| 681 |
-
|
| 682 |
-
/* Bold math */
|
| 683 |
-
.message-content mjx-container mjx-mi[mathvariant="bold"],
|
| 684 |
-
.message-content mjx-container mjx-mo[mathvariant="bold"] {
|
| 685 |
-
color: #e8d4c0 !important;
|
| 686 |
-
font-weight: bold;
|
| 687 |
-
}
|
| 688 |
-
|
| 689 |
-
/* Equation numbers (AMS environments) */
|
| 690 |
-
.message-content mjx-container mjx-mlabeledtr mjx-mtd:first-child {
|
| 691 |
-
color: #a89784 !important;
|
| 692 |
-
font-size: 0.9em;
|
| 693 |
-
}
|
| 694 |
-
|
| 695 |
-
/* Multi-line equation alignment */
|
| 696 |
-
.message-content mjx-container mjx-mlabeledtr {
|
| 697 |
-
color: #e8d4c0 !important;
|
| 698 |
-
}
|
| 699 |
-
|
| 700 |
-
/* Under/over braces and arrows */
|
| 701 |
-
.message-content mjx-container mjx-under,
|
| 702 |
-
.message-content mjx-container mjx-over {
|
| 703 |
-
color: #e8d4c0 !important;
|
| 704 |
-
}
|
| 705 |
-
|
| 706 |
-
/* Accents (hat, bar, tilde, etc.) */
|
| 707 |
-
.message-content mjx-container mjx-accent {
|
| 708 |
-
color: #e8d4c0 !important;
|
| 709 |
-
}
|
| 710 |
-
|
| 711 |
-
/* Menclose (boxes, circles around math) */
|
| 712 |
-
.message-content mjx-container mjx-menclose {
|
| 713 |
-
color: #e8d4c0 !important;
|
| 714 |
-
}
|
| 715 |
-
|
| 716 |
-
/* Action elements (tooltips, etc.) */
|
| 717 |
-
.message-content mjx-container mjx-maction {
|
| 718 |
-
color: #e8d4c0 !important;
|
| 719 |
}
|
| 720 |
|
| 721 |
-
/*
|
| 722 |
-
.message-content
|
| 723 |
-
|
| 724 |
-
|
| 725 |
-
border: 1px dashed #d49999;
|
| 726 |
-
border-radius: 3px;
|
| 727 |
-
padding: 0.2em 0.4em;
|
| 728 |
-
font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
|
| 729 |
-
font-size: 0.9em;
|
| 730 |
-
}
|
| 731 |
-
|
| 732 |
-
/* MathJax loading indicator */
|
| 733 |
-
.message-content mjx-container mjx-assistive-mml {
|
| 734 |
-
position: absolute;
|
| 735 |
-
left: 0;
|
| 736 |
-
top: 0;
|
| 737 |
-
clip: rect(1px, 1px, 1px, 1px);
|
| 738 |
-
clip-path: inset(50%);
|
| 739 |
-
height: 1px;
|
| 740 |
-
width: 1px;
|
| 741 |
-
overflow: hidden;
|
| 742 |
-
padding: 0;
|
| 743 |
-
border: 0;
|
| 744 |
-
}
|
| 745 |
-
|
| 746 |
-
/* Scrollbar for overflow math */
|
| 747 |
-
.message-content mjx-container[display="true"]::-webkit-scrollbar {
|
| 748 |
-
height: 8px;
|
| 749 |
-
}
|
| 750 |
-
|
| 751 |
-
.message-content mjx-container[display="true"]::-webkit-scrollbar-track {
|
| 752 |
-
background: #211d1a;
|
| 753 |
-
border-radius: 4px;
|
| 754 |
-
}
|
| 755 |
-
|
| 756 |
-
.message-content mjx-container[display="true"]::-webkit-scrollbar-thumb {
|
| 757 |
-
background: #3a342e;
|
| 758 |
-
border-radius: 4px;
|
| 759 |
-
}
|
| 760 |
-
|
| 761 |
-
.message-content mjx-container[display="true"]::-webkit-scrollbar-thumb:hover {
|
| 762 |
-
background: #4a433c;
|
| 763 |
-
}
|
| 764 |
-
|
| 765 |
-
/* Firefox scrollbar support */
|
| 766 |
-
.message-content mjx-container[display="true"] {
|
| 767 |
-
scrollbar-width: thin;
|
| 768 |
-
scrollbar-color: #3a342e #211d1a;
|
| 769 |
-
}
|
| 770 |
-
|
| 771 |
-
/* Prevent math in code blocks from being processed */
|
| 772 |
-
.message-content pre mjx-container,
|
| 773 |
-
.message-content code mjx-container {
|
| 774 |
-
display: none;
|
| 775 |
-
}
|
| 776 |
-
|
| 777 |
-
/* ============================================
|
| 778 |
-
MATH PREVIEW STYLES (User Input)
|
| 779 |
-
============================================ */
|
| 780 |
-
|
| 781 |
-
.input-wrapper {
|
| 782 |
-
display: flex;
|
| 783 |
-
flex-direction: column;
|
| 784 |
-
flex: 1;
|
| 785 |
-
gap: 0.5rem;
|
| 786 |
-
}
|
| 787 |
-
|
| 788 |
-
.math-preview {
|
| 789 |
-
background: #1a1614;
|
| 790 |
-
border: 1px solid #3a342e;
|
| 791 |
-
border-radius: 4px;
|
| 792 |
-
padding: 0.75rem 1rem;
|
| 793 |
-
margin-top: 0.25rem;
|
| 794 |
-
}
|
| 795 |
-
|
| 796 |
-
.math-preview-label {
|
| 797 |
-
font-size: 0.75rem;
|
| 798 |
-
color: #8b7355;
|
| 799 |
-
text-transform: uppercase;
|
| 800 |
-
letter-spacing: 0.5px;
|
| 801 |
-
margin-bottom: 0.5rem;
|
| 802 |
-
font-weight: 600;
|
| 803 |
-
}
|
| 804 |
-
|
| 805 |
-
.math-preview-content {
|
| 806 |
-
color: #d4c5b9;
|
| 807 |
-
line-height: 1.6;
|
| 808 |
-
}
|
| 809 |
-
|
| 810 |
-
.math-preview-content mjx-container {
|
| 811 |
-
font-size: 1em;
|
| 812 |
-
}
|
| 813 |
-
|
| 814 |
-
/* Math preview inline math */
|
| 815 |
-
.math-preview-content mjx-container[display="false"] {
|
| 816 |
-
margin: 0 0.1em;
|
| 817 |
-
}
|
| 818 |
-
|
| 819 |
-
/* Math preview display math */
|
| 820 |
-
.math-preview-content mjx-container[display="true"] {
|
| 821 |
-
margin: 0.75rem 0;
|
| 822 |
-
padding: 0.75rem;
|
| 823 |
-
}
|
| 824 |
-
|
| 825 |
-
/* ============================================
|
| 826 |
-
MATHJAX CONTEXT LOADING STATE
|
| 827 |
-
============================================ */
|
| 828 |
-
|
| 829 |
-
.mathjax-loading {
|
| 830 |
-
display: flex;
|
| 831 |
-
align-items: center;
|
| 832 |
-
justify-content: center;
|
| 833 |
-
padding: 1rem;
|
| 834 |
-
color: #8b7355;
|
| 835 |
-
font-size: 0.9rem;
|
| 836 |
-
}
|
| 837 |
-
|
| 838 |
-
.mathjax-loading::after {
|
| 839 |
-
content: '';
|
| 840 |
-
width: 16px;
|
| 841 |
-
height: 16px;
|
| 842 |
-
border: 2px solid #3a342e;
|
| 843 |
-
border-top-color: #8b7355;
|
| 844 |
-
border-radius: 50%;
|
| 845 |
-
margin-left: 0.5rem;
|
| 846 |
-
animation: spin 1s linear infinite;
|
| 847 |
}
|
| 848 |
|
| 849 |
-
|
| 850 |
-
|
| 851 |
-
|
| 852 |
-
}
|
| 853 |
}
|
| 854 |
|
| 855 |
.tool-calls {
|
|
@@ -1584,5 +1318,4 @@ details.tool-section[open] summary::before {
|
|
| 1584 |
font-weight: 600;
|
| 1585 |
margin-bottom: 0.5rem;
|
| 1586 |
letter-spacing: 0.5px;
|
| 1587 |
-
opacity: 0.9;
|
| 1588 |
-
}
|
|
|
|
| 537 |
font-family: 'SF Mono', 'Monaco', 'Cascadia Code', 'Consolas', monospace;
|
| 538 |
}
|
| 539 |
|
| 540 |
+
/* KaTeX Math Rendering Styles */
|
| 541 |
+
.message-content .katex {
|
| 542 |
+
font-size: 1.1em;
|
| 543 |
+
color: #e8d4c0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 544 |
}
|
| 545 |
|
| 546 |
+
.message-content .katex-display {
|
| 547 |
+
margin: 1rem 0;
|
|
|
|
|
|
|
| 548 |
padding: 1rem;
|
| 549 |
+
background: #1a1614;
|
| 550 |
+
border: 1px solid #3a342e;
|
| 551 |
+
border-radius: 6px;
|
| 552 |
overflow-x: auto;
|
|
|
|
| 553 |
}
|
| 554 |
|
| 555 |
+
.message-content .katex-display > .katex {
|
|
|
|
|
|
|
| 556 |
text-align: center;
|
| 557 |
+
color: #e8d4c0;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 558 |
}
|
| 559 |
|
| 560 |
+
/* Inline math */
|
| 561 |
+
.message-content .katex-inline {
|
| 562 |
+
padding: 0 0.2rem;
|
|
|
|
| 563 |
}
|
| 564 |
|
| 565 |
+
/* Math operators and symbols */
|
| 566 |
+
.message-content .katex .mord,
|
| 567 |
+
.message-content .katex .mbin,
|
| 568 |
+
.message-content .katex .mrel,
|
| 569 |
+
.message-content .katex .mop {
|
| 570 |
+
color: #e8d4c0;
|
| 571 |
}
|
| 572 |
|
| 573 |
/* Fractions */
|
| 574 |
+
.message-content .katex .frac-line {
|
| 575 |
+
border-bottom-color: #a89784;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 576 |
}
|
| 577 |
|
| 578 |
+
/* Math text and operators */
|
| 579 |
+
.message-content .katex .mathrm,
|
| 580 |
+
.message-content .katex .mathit {
|
| 581 |
+
color: #d4a574;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 582 |
}
|
| 583 |
|
| 584 |
+
/* Ensure good contrast for all math elements */
|
| 585 |
+
.message-content .katex * {
|
| 586 |
+
color: inherit;
|
|
|
|
| 587 |
}
|
| 588 |
|
| 589 |
.tool-calls {
|
|
|
|
| 1318 |
font-weight: 600;
|
| 1319 |
margin-bottom: 0.5rem;
|
| 1320 |
letter-spacing: 0.5px;
|
| 1321 |
+
opacity: 0.9;
|
|
|