From 96f5b9e3cd92c45982c9ed3e269c52f7b2f913df Mon Sep 17 00:00:00 2001 From: AIIrondev Date: Tue, 28 Apr 2026 21:59:26 +0200 Subject: [PATCH] Enhance tutorial functionality: add tooltip toggle feature and improve tooltip display across the system --- Web/templates/base.html | 114 +++++++++++++++++++++++++++++++++--- Web/templates/tutorial.html | 63 ++++++++++++++++++++ 2 files changed, 169 insertions(+), 8 deletions(-) diff --git a/Web/templates/base.html b/Web/templates/base.html index 8a5450c..e07746d 100755 --- a/Web/templates/base.html +++ b/Web/templates/base.html @@ -206,6 +206,82 @@ white-space: nowrap; } + body.tutorial-tooltips-active [data-tutorial-tip] { + position: relative; + border-radius: 10px; + outline: 1px dashed rgba(59, 130, 246, 0.35); + outline-offset: 2px; + cursor: help; + } + + body.tutorial-tooltips-active [data-tutorial-tip]::before { + content: '💡'; + position: absolute; + top: 50%; + right: -26px; + transform: translateY(-50%); + width: 20px; + height: 20px; + display: inline-flex; + align-items: center; + justify-content: center; + border-radius: 999px; + background: rgba(59, 130, 246, 0.15); + color: #0f172a; + font-size: 0.75rem; + pointer-events: none; + } + + body.tutorial-tooltips-active [data-tutorial-tip]::after { + content: attr(data-tutorial-tip); + position: absolute; + top: calc(100% + 10px); + left: 50%; + transform: translateX(-50%) translateY(6px); + min-width: 220px; + max-width: 280px; + padding: 10px 12px; + border-radius: 14px; + background: rgba(15, 23, 42, 0.92); + color: #f8fafc; + font-size: 0.9rem; + line-height: 1.4; + text-align: left; + opacity: 0; + visibility: hidden; + pointer-events: none; + box-shadow: 0 24px 48px rgba(15, 23, 42, 0.22); + z-index: 9999; + white-space: normal; + } + + body.tutorial-tooltips-active [data-tutorial-tip]:hover::after { + opacity: 1; + visibility: visible; + transform: translateX(-50%) translateY(10px); + } + + .tutorial-tooltip-indicator { + position: fixed; + top: 92px; + right: 16px; + z-index: 2000; + display: none; + align-items: center; + gap: 10px; + padding: 10px 14px; + border-radius: 999px; + background: rgba(56, 189, 248, 0.12); + border: 1px solid rgba(56, 189, 248, 0.25); + color: #0f172a; + font-size: 0.95rem; + box-shadow: 0 10px 30px rgba(15, 23, 42, 0.12); + } + + body.tutorial-tooltips-active .tutorial-tooltip-indicator { + display: inline-flex; + } + /* iPad/Tablet responsive adjustments */ @media (max-width: 1024px) { .navbar .container-fluid { @@ -952,24 +1028,24 @@