[openstreetmap/openstreetmap-website] Hide/show welcome banner with hidden attribute (PR #4111)

Andy Allan notifications at github.com
Wed Aug 2 15:56:35 UTC 2023


Thanks! 

Yes, it's a complex play between hiding/showing based on screen size, and then effectively overriding that based on the cookie. The bootstrap use of `[hidden] { display: none !important; }` ([documentation](https://getbootstrap.com/docs/5.1/content/reboot/#html5-hidden-attribute)) is key here, if I understand it correctly.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/openstreetmap/openstreetmap-website/pull/4111#issuecomment-1662478401
You are receiving this because you are subscribed to this thread.

Message ID: <openstreetmap/openstreetmap-website/pull/4111/c1662478401 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstreetmap.org/pipermail/rails-dev/attachments/20230802/8eb976f5/attachment.htm>


More information about the rails-dev mailing list