From a5ee1acff9b3353ddc6c648439a0159909604370 Mon Sep 17 00:00:00 2001 From: nertyog Date: Tue, 20 Oct 2026 17:15:08 +0300 Subject: [PATCH] Upgrade live reactive preview with sticky container, real-time sync, and WYSIWYG click-to-edit --- .../template/module/promo_top_bar_nat.twig | 320 ++++++++++++------ promo_top_bar_nat.ocmod.zip | Bin 103859 -> 105517 bytes 2 files changed, 210 insertions(+), 110 deletions(-) diff --git a/admin/view/template/module/promo_top_bar_nat.twig b/admin/view/template/module/promo_top_bar_nat.twig index 23e1216..6284fa0 100644 --- a/admin/view/template/module/promo_top_bar_nat.twig +++ b/admin/view/template/module/promo_top_bar_nat.twig @@ -420,6 +420,35 @@ body.dark .nat-settings-license-row { background: rgba(255, 255, 255, 0.03) !important; border-color: #334155 !important; } +@keyframes natGradientShift { + 0% { background-position: 0% 50%; } + 50% { background-position: 100% 50%; } + 100% { background-position: 0% 50%; } +} +.preview-clickable-block:hover { + outline: 1px dashed rgba(255, 255, 255, 0.8) !important; + outline-offset: 2px !important; + transform: translateY(-1px); +} +html.nat-dark-mode #nat-slide-preview-sticky-container, +body.nat-dark-mode #nat-slide-preview-sticky-container, +[data-bs-theme="dark"] #nat-slide-preview-sticky-container, +[data-theme="dark"] #nat-slide-preview-sticky-container, +.dark #nat-slide-preview-sticky-container, +.dark-theme #nat-slide-preview-sticky-container { + background: #1e293b !important; + border-color: #334155 !important; + box-shadow: 0 4px 12px rgba(0,0,0,0.3) !important; +} +html.nat-dark-mode #nat-slide-preview-sticky-container label, +body.nat-dark-mode #nat-slide-preview-sticky-container label { + color: #f1f5f9 !important; +} +html.nat-dark-mode #slide-preview-bar-wrapper, +body.nat-dark-mode #slide-preview-bar-wrapper { + background: #0f172a !important; + border-color: #334155 !important; +}