From f41d5d5a7c8e4bf033475f6f6666f5d23d782f33 Mon Sep 17 00:00:00 2001 From: xiaoli-cli-bot Date: Wed, 29 Apr 2026 19:28:53 +0800 Subject: [PATCH] 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. --- xcli_core/tui.py | 22 ---------------------- 1 file changed, 22 deletions(-) diff --git a/xcli_core/tui.py b/xcli_core/tui.py index e27ee5a..8312132 100644 --- a/xcli_core/tui.py +++ b/xcli_core/tui.py @@ -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: