- Issue created by @plopesc
- πͺπΈSpain plopesc Valladolid
Would be great to grant credit in this issue to all the people who worked on the original one and helped to disclose the top bar visibility issues and fix them.
However I'm not allowed to grant credit by myself, I would ask core committers to add credits on my behalf, specially to joaopauloc.dev. - π¦π±Albania romiromi
Improving Navigation CSS for Better Top Bar Visibility
Enhancing CSS navigation to manage the Top Bar visibility ensures a smooth user experience by keeping the navigation accessible while minimizing distractions. The latest techniques help create a dynamic, user-friendly interface.Key Techniques for Improving Top Bar Visibility in CSS
β 1. Sticky Navigation for Persistent Visibility
Use position: sticky; to keep the Top Bar in view while scrolling, allowing easy access to navigation elements..top-bar { position: sticky; top: 0; width: 100%; background-color: #fff; box-shadow: 0px 2px 5px rgba(0, 0, 0, 0.1); z-index: 1000; }
2. Auto-Hide Navigation on Scroll for a Cleaner UI
For a modern approach, use JavaScript and CSS to hide the Top Bar when scrolling down and show it when scrolling up..top-bar { position: fixed; top: 0; width: 100%; background-color: #333; transition: top 0.3s ease-in-out; } .hidden { top: -60px; /* Adjust based on your top bar height */ }
let prevScroll = window.pageYOffset; window.addEventListener("scroll", function () { let currentScroll = window.pageYOffset; let topBar = document.querySelector(".top-bar"); if (prevScroll > currentScroll) { topBar.classList.remove("hidden"); // Show Top Bar } else { topBar.classList.add("hidden"); // Hide Top Bar } prevScroll = currentScroll; });
a href="https://frpbypse.com/"> bypass</a>
- π·πΈSerbia finnsky
+++ for initiative! that CSS logic is much better than original one. Better to check presence of elements and not :empty()
- πΊπΈUnited States bronzehedwick New York
ckrina β credited bronzehedwick β .
- π§π·Brazil joaopauloc.dev
ckrina β credited joaopauloc.dev β .
- πΊπΈUnited States trackleft2 Tucson, AZ πΊπΈ
ckrina β credited trackleft2 β .
- πͺπΈSpain ckrina Barcelona
Added credits to @joaopauloc.dev and @finnsky and the rest of people who worked there for the worked in π Integrate Navigation with Contextual editing Active .
- Merge request !11367Issue #3508214: Improve how Navigation CSS manages the Top Bar visibility β (Open) created by plopesc
- πͺπΈSpain plopesc Valladolid
Taken the CSS bits from the mentioned issue. Ready for review.
- π·πΈSerbia finnsky
Yes, this is a more accurate way of determining child nodes. + 1 to RTBC
Thank you! - π¨π¦Canada m4olivei Grimsby, ON
Could we flesh out some steps to reproduce in the issue summary to illustrate the problem that we're trying to address?