|
599 | 599 | display: flex; |
600 | 600 | justify-content: space-between; |
601 | 601 | align-items: center; |
602 | | - padding: var(--space-lg); |
| 602 | + padding: var(--space-md) var(--space-lg); |
| 603 | + background: var(--bg-tertiary); |
| 604 | + border-bottom: 1px solid var(--border-primary); |
| 605 | +} |
| 606 | + |
| 607 | +.demo-output .panel-header { |
603 | 608 | background: var(--bg-tertiary); |
604 | 609 | border-bottom: 1px solid var(--border-primary); |
| 610 | + padding: var(--space-md) var(--space-lg); |
605 | 611 | } |
606 | 612 |
|
607 | 613 | .panel-header h4 { |
|
613 | 619 | .demo-textarea { |
614 | 620 | flex: 1; |
615 | 621 | min-height: 300px; |
616 | | - padding: var(--space-lg); |
| 622 | + padding: var(--space-md); |
617 | 623 | background: var(--bg-code); |
618 | 624 | border: none; |
619 | 625 | color: var(--text-primary); |
620 | 626 | font-family: var(--font-mono); |
621 | | - font-size: 0.875rem; |
622 | | - line-height: 1.6; |
| 627 | + font-size: 0.7rem; |
| 628 | + line-height: 1.4; |
623 | 629 | resize: none; |
624 | 630 | outline: none; |
625 | 631 | } |
|
634 | 640 |
|
635 | 641 | .demo-output-content { |
636 | 642 | flex: 1; |
637 | | - min-height: 300px; |
638 | | - padding: var(--space-lg); |
| 643 | + padding: var(--space-md); |
| 644 | + margin-top: 0; |
639 | 645 | background: var(--bg-code); |
640 | 646 | font-family: var(--font-mono); |
641 | | - font-size: 0.875rem; |
642 | | - line-height: 1.6; |
| 647 | + font-size: 0.7rem; |
| 648 | + line-height: 1.4; |
643 | 649 | overflow-x: auto; |
644 | 650 | white-space: pre-wrap; |
| 651 | + word-wrap: break-word; |
| 652 | + word-break: break-all; |
| 653 | + display: flex; |
| 654 | + flex-direction: column; |
| 655 | +} |
| 656 | + |
| 657 | +.demo-output-content pre { |
| 658 | + background: transparent !important; |
| 659 | + padding: 0 !important; |
| 660 | + margin: 0 !important; |
| 661 | + border-radius: 0 !important; |
| 662 | + overflow-x: auto; |
| 663 | + flex: 1; |
| 664 | + display: flex; |
| 665 | + align-items: flex-start; |
| 666 | +} |
| 667 | + |
| 668 | +.demo-output-content pre code { |
| 669 | + padding: 0 !important; |
| 670 | + margin: 0 !important; |
| 671 | + background: transparent !important; |
| 672 | +} |
| 673 | + |
| 674 | +/* Base64 output specific styling with text wrapping */ |
| 675 | +.demo-output-content .base64-output { |
| 676 | + white-space: pre-wrap !important; |
| 677 | + word-wrap: break-word !important; |
| 678 | + word-break: break-all !important; |
| 679 | + overflow-wrap: break-word !important; |
| 680 | +} |
| 681 | + |
| 682 | +.demo-output-content .base64-output code { |
| 683 | + white-space: pre-wrap !important; |
| 684 | + word-wrap: break-word !important; |
| 685 | + word-break: break-all !important; |
| 686 | + overflow-wrap: break-word !important; |
| 687 | + font-family: var(--font-mono); |
| 688 | + line-height: 1.5; |
645 | 689 | } |
646 | 690 |
|
647 | 691 | .placeholder { |
|
650 | 694 | align-items: center; |
651 | 695 | justify-content: center; |
652 | 696 | height: 100%; |
| 697 | + min-height: 300px; |
653 | 698 | color: var(--text-muted); |
654 | 699 | text-align: center; |
655 | 700 | } |
|
661 | 706 | } |
662 | 707 |
|
663 | 708 | .output-stats { |
664 | | - display: grid; |
665 | | - grid-template-columns: 1fr 1fr; |
666 | | - gap: var(--space-md); |
| 709 | + display: flex; |
| 710 | + justify-content: center; |
667 | 711 | font-size: 0.75rem; |
668 | 712 | } |
669 | 713 |
|
| 714 | +.stats-grid { |
| 715 | + display: grid; |
| 716 | + grid-template-columns: 1fr 1fr 1fr; |
| 717 | + grid-template-rows: 1fr 1fr; |
| 718 | + gap: var(--space-sm); |
| 719 | + align-items: center; |
| 720 | + justify-items: center; |
| 721 | + width: 360px; |
| 722 | + grid-template-areas: |
| 723 | + "button algorithm timing" |
| 724 | + "accuracy format ops"; |
| 725 | +} |
| 726 | + |
| 727 | +.diff-button { grid-area: button; } |
| 728 | +.algorithm-badge { grid-area: algorithm; } |
| 729 | +.timing-badge { grid-area: timing; } |
| 730 | +.success-badge { grid-area: accuracy; } |
| 731 | +.error-badge { grid-area: accuracy; } |
| 732 | +.format-badge { grid-area: format; } |
| 733 | +.ops-badge { grid-area: ops; } |
| 734 | + |
670 | 735 | .output-stats .stat-badge { |
671 | 736 | padding: var(--space-sm) var(--space-md); |
672 | 737 | background: linear-gradient(135deg, var(--bg-tertiary) 0%, var(--bg-card) 100%); |
|
678 | 743 | position: relative; |
679 | 744 | overflow: hidden; |
680 | 745 | box-shadow: var(--shadow-sm); |
| 746 | + min-width: 110px; |
| 747 | + width: 110px; |
| 748 | + min-height: 40px; |
| 749 | + display: flex; |
| 750 | + align-items: center; |
| 751 | + justify-content: center; |
| 752 | + text-align: center; |
| 753 | + white-space: nowrap; |
| 754 | + overflow: hidden; |
| 755 | + text-overflow: ellipsis; |
681 | 756 | } |
682 | 757 |
|
683 | 758 | .output-stats .stat-badge::before { |
|
1174 | 1249 | /* AI Format - Uses Prism.js Swift syntax highlighting */ |
1175 | 1250 | /* No additional styling needed - Prism.js handles everything */ |
1176 | 1251 |
|
1177 | | -/* Terminal Colors Format - Pure terminal colors with fade backgrounds */ |
1178 | | -.terminal-colors { |
1179 | | - color: var(--text-primary) !important; /* Default white text */ |
| 1252 | + |
| 1253 | + |
| 1254 | +/* Real-time diff output styling */ |
| 1255 | +.demo-output-content .ascii-diff { |
| 1256 | + font-family: var(--font-mono); |
| 1257 | + line-height: 1.6; |
| 1258 | + white-space: pre-wrap; |
| 1259 | + word-wrap: break-word; |
1180 | 1260 | } |
1181 | 1261 |
|
1182 | | -.terminal-colors .retain { |
1183 | | - color: #60a5fa !important; /* Blue for terminal */ |
1184 | | - background: rgba(96, 165, 250, 0.1) !important; /* Subtle blue background */ |
| 1262 | +.demo-output-content .ascii-diff .retain { |
| 1263 | + color: #60a5fa; |
| 1264 | + background: rgba(96, 165, 250, 0.1); |
| 1265 | + display: block; |
| 1266 | + padding: 1px 4px; |
| 1267 | + margin: 1px 0; |
1185 | 1268 | } |
1186 | 1269 |
|
1187 | | -.terminal-colors .delete { |
1188 | | - color: #ef4444 !important; /* Red for terminal */ |
1189 | | - background: rgba(239, 68, 68, 0.1) !important; /* Subtle red background */ |
| 1270 | +.demo-output-content .ascii-diff .delete { |
| 1271 | + color: #ef4444; |
| 1272 | + background: rgba(239, 68, 68, 0.1); |
| 1273 | + display: block; |
| 1274 | + padding: 1px 4px; |
| 1275 | + margin: 1px 0; |
1190 | 1276 | } |
1191 | 1277 |
|
1192 | | -.terminal-colors .insert { |
1193 | | - color: #10b981 !important; /* Green for terminal */ |
1194 | | - background: rgba(16, 185, 129, 0.1) !important; /* Subtle green background */ |
| 1278 | +.demo-output-content .ascii-diff .insert { |
| 1279 | + color: #10b981; |
| 1280 | + background: rgba(16, 185, 129, 0.1); |
| 1281 | + display: block; |
| 1282 | + padding: 1px 4px; |
| 1283 | + margin: 1px 0; |
1195 | 1284 | } |
1196 | 1285 |
|
1197 | 1286 | /* Loading States */ |
|
0 commit comments