Spaces:
Sleeping
Sleeping
Commit ·
5ddbb4a
1
Parent(s): 0564932
fix(game): full revert of styles.css to pre-dialogue-fixes state to isolate freeze
Browse files- styles.css +28 -21
styles.css
CHANGED
|
@@ -1700,8 +1700,16 @@ footer { display: none !important; }
|
|
| 1700 |
display: flex; flex-direction: column; align-items: stretch; gap: 4px;
|
| 1701 |
pointer-events: none;
|
| 1702 |
}
|
| 1703 |
-
/*
|
| 1704 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1705 |
|
| 1706 |
/* input bar: a thin line at the very bottom of the viewport, below the frame */
|
| 1707 |
#game-inputbar {
|
|
@@ -1729,42 +1737,41 @@ footer { display: none !important; }
|
|
| 1729 |
purple vertical bar to the right of the subtitle) */
|
| 1730 |
#game-dialogue, #game-dialogue * { scrollbar-width: none !important; }
|
| 1731 |
#game-dialogue ::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
|
| 1732 |
-
/* transparent rows — kill Gradio's bubble chrome
|
| 1733 |
-
here; bot/user get opposite sides so the center stays clear for the child. */
|
| 1734 |
#game-dialogue .message-row,
|
| 1735 |
#game-dialogue .message,
|
| 1736 |
#game-dialogue .bubble {
|
| 1737 |
background: transparent !important; border: none !important;
|
| 1738 |
-
box-shadow: none !important;
|
| 1739 |
padding: 2px 0 !important; margin: 0 !important;
|
| 1740 |
}
|
| 1741 |
-
/* fade-by-recency: newest crisp, older dimmer, 4th-back and beyond hidden.
|
|
|
|
|
|
|
| 1742 |
#game-dialogue .message-row { opacity: 0.38; transition: opacity 0.4s ease; }
|
| 1743 |
#game-dialogue .message-row:nth-last-child(2) { opacity: 0.6; }
|
| 1744 |
#game-dialogue .message-row:nth-last-child(1) { opacity: 1; }
|
| 1745 |
#game-dialogue .message-row:nth-last-child(n+4) { display: none; }
|
| 1746 |
|
| 1747 |
-
/* the child —
|
| 1748 |
#game-dialogue .bot, #game-dialogue .bot .prose, #game-dialogue .bot p {
|
| 1749 |
font-style: italic !important; font-size: 1.2rem !important; line-height: 1.55 !important;
|
| 1750 |
-
color: #ece6f4 !important; text-align:
|
| 1751 |
text-shadow: 0 2px 16px #000 !important;
|
| 1752 |
}
|
| 1753 |
-
|
| 1754 |
-
#game-dialogue .message-row.bot .message,
|
| 1755 |
-
#game-dialogue .message-row.bot .bubble {
|
| 1756 |
-
justify-content: flex-start !important; align-items: flex-start !important;
|
| 1757 |
-
text-align: left !important;
|
| 1758 |
-
}
|
| 1759 |
-
#game-dialogue .bot .prose, #game-dialogue .bot p {
|
| 1760 |
-
padding-left: 7% !important;
|
| 1761 |
-
max-width: 44% !important;
|
| 1762 |
-
}
|
| 1763 |
-
|
| 1764 |
-
/* you — minimum styling, let Gradio handle layout while we isolate the freeze */
|
| 1765 |
#game-dialogue .user, #game-dialogue .user .prose, #game-dialogue .user p {
|
| 1766 |
font-style: normal !important; font-size: 1.0rem !important;
|
| 1767 |
-
color: #aaa2be !important; background: transparent !important;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1768 |
}
|
| 1769 |
#game-dialogue .user .prose::before {
|
| 1770 |
content: 'you ';
|
|
|
|
| 1700 |
display: flex; flex-direction: column; align-items: stretch; gap: 4px;
|
| 1701 |
pointer-events: none;
|
| 1702 |
}
|
| 1703 |
+
/* soft bottom scrim: dialogue text never sits naked on bright fog */
|
| 1704 |
+
#game-dialogue::before {
|
| 1705 |
+
content: '';
|
| 1706 |
+
position: absolute;
|
| 1707 |
+
/* extend 40px above the box, full width, 24px below to cover any baseline gap */
|
| 1708 |
+
top: -40px; left: -8%; right: -8%; bottom: -24px;
|
| 1709 |
+
z-index: -1;
|
| 1710 |
+
background: linear-gradient(to bottom, transparent 0%, rgba(5,4,10,.55) 60%, rgba(5,4,10,.72) 100%);
|
| 1711 |
+
pointer-events: none;
|
| 1712 |
+
}
|
| 1713 |
|
| 1714 |
/* input bar: a thin line at the very bottom of the viewport, below the frame */
|
| 1715 |
#game-inputbar {
|
|
|
|
| 1737 |
purple vertical bar to the right of the subtitle) */
|
| 1738 |
#game-dialogue, #game-dialogue * { scrollbar-width: none !important; }
|
| 1739 |
#game-dialogue ::-webkit-scrollbar { width: 0 !important; height: 0 !important; display: none !important; }
|
| 1740 |
+
/* transparent rows, centered text — kill Gradio's bubble chrome */
|
|
|
|
| 1741 |
#game-dialogue .message-row,
|
| 1742 |
#game-dialogue .message,
|
| 1743 |
#game-dialogue .bubble {
|
| 1744 |
background: transparent !important; border: none !important;
|
| 1745 |
+
box-shadow: none !important; text-align: center !important;
|
| 1746 |
padding: 2px 0 !important; margin: 0 !important;
|
| 1747 |
}
|
| 1748 |
+
/* fade-by-recency: newest crisp, older dimmer, 4th-back and beyond hidden.
|
| 1749 |
+
(Gradio wraps each message in a .message-row — verify this selector against
|
| 1750 |
+
the running app; if rows are .message instead, swap the selector.) */
|
| 1751 |
#game-dialogue .message-row { opacity: 0.38; transition: opacity 0.4s ease; }
|
| 1752 |
#game-dialogue .message-row:nth-last-child(2) { opacity: 0.6; }
|
| 1753 |
#game-dialogue .message-row:nth-last-child(1) { opacity: 1; }
|
| 1754 |
#game-dialogue .message-row:nth-last-child(n+4) { display: none; }
|
| 1755 |
|
| 1756 |
+
/* the child — italic, bright, unlabeled (it owns the scene) */
|
| 1757 |
#game-dialogue .bot, #game-dialogue .bot .prose, #game-dialogue .bot p {
|
| 1758 |
font-style: italic !important; font-size: 1.2rem !important; line-height: 1.55 !important;
|
| 1759 |
+
color: #ece6f4 !important; text-align: center !important;
|
| 1760 |
text-shadow: 0 2px 16px #000 !important;
|
| 1761 |
}
|
| 1762 |
+
/* you — upright, muted, right-aligned and clamped inside the frame */
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1763 |
#game-dialogue .user, #game-dialogue .user .prose, #game-dialogue .user p {
|
| 1764 |
font-style: normal !important; font-size: 1.0rem !important;
|
| 1765 |
+
color: #aaa2be !important; text-align: right !important; background: transparent !important;
|
| 1766 |
+
}
|
| 1767 |
+
/* clamp the user bubble to the right of the frame — max-width stops it
|
| 1768 |
+
bleeding past the 16:9 edge; margin-left:auto pushes it right */
|
| 1769 |
+
#game-dialogue .user {
|
| 1770 |
+
display: block !important;
|
| 1771 |
+
max-width: none !important; /* full band width; text-align:right hugs it right.
|
| 1772 |
+
a narrow max-width collapsed it to a 1-char column */
|
| 1773 |
+
margin: 0 !important;
|
| 1774 |
+
padding-right: 4% !important; /* breathing room from the frame edge */
|
| 1775 |
}
|
| 1776 |
#game-dialogue .user .prose::before {
|
| 1777 |
content: 'you ';
|