Spaces:
Sleeping
Sleeping
Commit ·
aabc5db
1
Parent(s): 93865a1
style(game): fading transcript + two-voice hierarchy (B + V1)
Browse filesCo-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- styles.css +35 -7
styles.css
CHANGED
|
@@ -1673,26 +1673,54 @@ footer { display: none !important; }
|
|
| 1673 |
|
| 1674 |
#game-dialogue .chatbot {
|
| 1675 |
width: 100% !important;
|
| 1676 |
-
max-height:
|
| 1677 |
background: transparent !important;
|
| 1678 |
border: none !important;
|
| 1679 |
border-image: none !important;
|
| 1680 |
box-shadow: none !important;
|
| 1681 |
backdrop-filter: none !important;
|
| 1682 |
padding: 0 !important;
|
| 1683 |
-
overflow
|
| 1684 |
}
|
|
|
|
| 1685 |
#game-dialogue .message-row,
|
| 1686 |
#game-dialogue .message,
|
| 1687 |
-
#game-dialogue .bubble {
|
| 1688 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1689 |
#game-dialogue .bot, #game-dialogue .bot .prose, #game-dialogue .bot p {
|
| 1690 |
-
font-style: italic !important; font-size: 1.2rem !important; line-height: 1.
|
| 1691 |
color: #ece6f4 !important; text-align: center !important;
|
| 1692 |
-
text-shadow: 0 2px 16px #000 !important;
|
|
|
|
|
|
|
| 1693 |
#game-dialogue .user, #game-dialogue .user .prose, #game-dialogue .user p {
|
| 1694 |
font-style: normal !important; font-size: 1.0rem !important;
|
| 1695 |
-
color: #
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1696 |
|
| 1697 |
#game-inputrow {
|
| 1698 |
display: flex; gap: 6px; align-items: center;
|
|
|
|
| 1673 |
|
| 1674 |
#game-dialogue .chatbot {
|
| 1675 |
width: 100% !important;
|
| 1676 |
+
max-height: 160px !important;
|
| 1677 |
background: transparent !important;
|
| 1678 |
border: none !important;
|
| 1679 |
border-image: none !important;
|
| 1680 |
box-shadow: none !important;
|
| 1681 |
backdrop-filter: none !important;
|
| 1682 |
padding: 0 !important;
|
| 1683 |
+
overflow: hidden; /* old lines fade out, no scrollbar */
|
| 1684 |
}
|
| 1685 |
+
/* transparent rows, centered text — kill Gradio's bubble chrome */
|
| 1686 |
#game-dialogue .message-row,
|
| 1687 |
#game-dialogue .message,
|
| 1688 |
+
#game-dialogue .bubble {
|
| 1689 |
+
background: transparent !important; border: none !important;
|
| 1690 |
+
box-shadow: none !important; text-align: center !important;
|
| 1691 |
+
padding: 2px 0 !important; margin: 0 !important;
|
| 1692 |
+
}
|
| 1693 |
+
/* fade-by-recency: newest crisp, older dimmer, 4th-back and beyond hidden.
|
| 1694 |
+
(Gradio wraps each message in a .message-row — verify this selector against
|
| 1695 |
+
the running app; if rows are .message instead, swap the selector.) */
|
| 1696 |
+
#game-dialogue .message-row { opacity: 0.38; transition: opacity 0.4s ease; }
|
| 1697 |
+
#game-dialogue .message-row:nth-last-child(2) { opacity: 0.6; }
|
| 1698 |
+
#game-dialogue .message-row:nth-last-child(1) { opacity: 1; }
|
| 1699 |
+
#game-dialogue .message-row:nth-last-child(n+4) { display: none; }
|
| 1700 |
+
|
| 1701 |
+
/* the child — italic, bright, unlabeled (it owns the scene) */
|
| 1702 |
#game-dialogue .bot, #game-dialogue .bot .prose, #game-dialogue .bot p {
|
| 1703 |
+
font-style: italic !important; font-size: 1.2rem !important; line-height: 1.55 !important;
|
| 1704 |
color: #ece6f4 !important; text-align: center !important;
|
| 1705 |
+
text-shadow: 0 2px 16px #000 !important;
|
| 1706 |
+
}
|
| 1707 |
+
/* you — upright, muted, with a small typewriter tag */
|
| 1708 |
#game-dialogue .user, #game-dialogue .user .prose, #game-dialogue .user p {
|
| 1709 |
font-style: normal !important; font-size: 1.0rem !important;
|
| 1710 |
+
color: #aaa2be !important; text-align: center !important; background: transparent !important;
|
| 1711 |
+
}
|
| 1712 |
+
#game-dialogue .user .prose::before {
|
| 1713 |
+
content: 'you ';
|
| 1714 |
+
font-family: 'Special Elite', monospace;
|
| 1715 |
+
font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase;
|
| 1716 |
+
color: #6f6590; margin-right: 7px;
|
| 1717 |
+
}
|
| 1718 |
+
/* a recall line (it claims your memory) — JS tags the last .bot row .recall-line */
|
| 1719 |
+
#game-dialogue .bot.recall-line, #game-dialogue .bot.recall-line .prose,
|
| 1720 |
+
#game-dialogue .bot.recall-line p {
|
| 1721 |
+
color: var(--mem-accent) !important;
|
| 1722 |
+
text-shadow: 0 0 20px var(--mem-glow) !important;
|
| 1723 |
+
}
|
| 1724 |
|
| 1725 |
#game-inputrow {
|
| 1726 |
display: flex; gap: 6px; align-items: center;
|