fix: remove unsupported @keyframes from Textual CSS

Textual CSS parser does not support @keyframes syntax (it's a Web CSS feature).
These keyframes were unused - all animations are implemented via Python's
set_interval() and animate() methods. Removing them fixes the stylesheet
parse error that prevented TUI mode from starting.
This commit is contained in:
xiaoli-cli-bot committed 2026-04-29 19:28:53 +08:00
1 parent 8865084905
commit f41d5d5a7c
1 file changed
-22
-22
View File
@@ -297,28 +297,6 @@ if TEXTUAL_AVAILABLE:
background: {_Theme.BG};
}}
/* ── 闪光动画 keyframes ── */
@keyframes pulse-glow {{
0% {{ color: {_Theme.THINKING}; }}
50% {{ color: {_Theme.ACCENT}; }}
100% {{ color: {_Theme.THINKING}; }}
}}
@keyframes fade-in {{
from {{ opacity: 0; }}
to {{ opacity: 1; }}
}}
@keyframes slide-in-right {{
from {{ offset-x: 100%; }}
to {{ offset-x: 0; }}
}}
@keyframes bounce-in {{
0% {{ opacity: 0; offset-y: 5%; }}
60% {{ opacity: 1; offset-y: -1%; }}
100% {{ opacity: 1; offset-y: 0; }}
}}
"""
class _TUIBridge: