feat: add RP markdown support + auto-hide thinking
Browse files- static/style.css +95 -0
static/style.css
CHANGED
|
@@ -521,6 +521,101 @@ body {
|
|
| 521 |
display: none;
|
| 522 |
}
|
| 523 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 524 |
/* Markdown typography rendering inside bubbles */
|
| 525 |
.markdown-body h1,
|
| 526 |
.markdown-body h2,
|
|
|
|
| 521 |
display: none;
|
| 522 |
}
|
| 523 |
|
| 524 |
+
/* RP (Roleplay) Markdown Styles */
|
| 525 |
+
.rp-narration {
|
| 526 |
+
font-style: italic;
|
| 527 |
+
color: #6b7280;
|
| 528 |
+
background-color: rgba(107, 114, 128, 0.06);
|
| 529 |
+
padding: 1px 4px;
|
| 530 |
+
border-radius: 3px;
|
| 531 |
+
border-left: 2px solid #9ca3af;
|
| 532 |
+
}
|
| 533 |
+
|
| 534 |
+
.rp-dialogue {
|
| 535 |
+
color: #2563eb;
|
| 536 |
+
font-weight: 500;
|
| 537 |
+
background-color: rgba(37, 99, 235, 0.06);
|
| 538 |
+
padding: 1px 4px;
|
| 539 |
+
border-radius: 3px;
|
| 540 |
+
}
|
| 541 |
+
|
| 542 |
+
.rp-bold {
|
| 543 |
+
font-weight: 700;
|
| 544 |
+
color: #111827;
|
| 545 |
+
}
|
| 546 |
+
|
| 547 |
+
.rp-ooc {
|
| 548 |
+
color: #9ca3af;
|
| 549 |
+
font-style: italic;
|
| 550 |
+
opacity: 0.7;
|
| 551 |
+
font-size: 0.9em;
|
| 552 |
+
}
|
| 553 |
+
|
| 554 |
+
.rp-divider {
|
| 555 |
+
border: none;
|
| 556 |
+
border-top: 1px dashed #d1d5db;
|
| 557 |
+
margin: 12px 0;
|
| 558 |
+
}
|
| 559 |
+
|
| 560 |
+
/* Toggle Switch Component */
|
| 561 |
+
.toggle-switch {
|
| 562 |
+
position: relative;
|
| 563 |
+
display: inline-block;
|
| 564 |
+
width: 36px;
|
| 565 |
+
height: 20px;
|
| 566 |
+
flex-shrink: 0;
|
| 567 |
+
}
|
| 568 |
+
|
| 569 |
+
.toggle-switch input {
|
| 570 |
+
opacity: 0;
|
| 571 |
+
width: 0;
|
| 572 |
+
height: 0;
|
| 573 |
+
}
|
| 574 |
+
|
| 575 |
+
.toggle-slider {
|
| 576 |
+
position: absolute;
|
| 577 |
+
cursor: pointer;
|
| 578 |
+
top: 0;
|
| 579 |
+
left: 0;
|
| 580 |
+
right: 0;
|
| 581 |
+
bottom: 0;
|
| 582 |
+
background-color: #d1d5db;
|
| 583 |
+
transition: 0.2s;
|
| 584 |
+
border-radius: 20px;
|
| 585 |
+
}
|
| 586 |
+
|
| 587 |
+
.toggle-slider:before {
|
| 588 |
+
position: absolute;
|
| 589 |
+
content: "";
|
| 590 |
+
height: 14px;
|
| 591 |
+
width: 14px;
|
| 592 |
+
left: 3px;
|
| 593 |
+
bottom: 3px;
|
| 594 |
+
background-color: white;
|
| 595 |
+
transition: 0.2s;
|
| 596 |
+
border-radius: 50%;
|
| 597 |
+
}
|
| 598 |
+
|
| 599 |
+
.toggle-switch input:checked + .toggle-slider {
|
| 600 |
+
background-color: #111827;
|
| 601 |
+
}
|
| 602 |
+
|
| 603 |
+
.toggle-switch input:checked + .toggle-slider:before {
|
| 604 |
+
transform: translateX(16px);
|
| 605 |
+
}
|
| 606 |
+
|
| 607 |
+
.toggle-switch input:focus + .toggle-slider {
|
| 608 |
+
box-shadow: 0 0 0 2px rgba(17, 24, 39, 0.2);
|
| 609 |
+
}
|
| 610 |
+
|
| 611 |
+
/* Setting Description Text */
|
| 612 |
+
.setting-description {
|
| 613 |
+
font-size: 10.5px;
|
| 614 |
+
color: var(--text-muted);
|
| 615 |
+
line-height: 1.4;
|
| 616 |
+
padding-top: 2px;
|
| 617 |
+
}
|
| 618 |
+
|
| 619 |
/* Markdown typography rendering inside bubbles */
|
| 620 |
.markdown-body h1,
|
| 621 |
.markdown-body h2,
|