Giter Club home page Giter Club logo

Comments (3)

scottsanders avatar scottsanders commented on August 16, 2024

Thanks Rob, good considerations. A few visual ideas:

Scrollable/Swipeable

We could have a scrollable horizontal list, which can pan left and right with touch/swipe. Then on a drop down a nother horizontally scrollable menu appears below.

Flyout

We could use a similar concept of a vertical sidebar which slides out over the concept from left or right. http://prgr.es is using a menu like this.

Fullscreen

We could take over the whole screen and present the vertically scrollable menu on touch.

Footer Anchor

Smashing Magazine has a good example of using the footer as the responsive menu and just anchoring to it on touch: www.smashingmagazine.com/#mobile-navigation-footer

from base.

tommaitland avatar tommaitland commented on August 16, 2024

Some thoughts on this:

  1. think a close button might be excessive, the menu should drop down below the ☰ character, effectively making it the close button
  2. I think one mobile menu is probably enough as core, not sure about the advantages of a footer menu
  3. I think it'd be cool if we can keep sub-menu headings as links, as this is how they'll often display, but there is a collapse icon added in to show the submenu (clicking on the li instead of a for example.

Disadvantages of adding this to Base

  • It will require a Javascript file solely for the responsive menu. I'm not completely opposed to this, but if we could explore CSS-only ways that'd be really cool. If not we may need to work out a best approach for JS moving forward.

from base.

tommaitland avatar tommaitland commented on August 16, 2024

Re @scottsanders layout thoughts - I think for Base it's best to keep this as vanilla as possible, and flyout/side navigation may be too much for core (maybe cool to make modular). It would have quite a few more JS dependancies, and not suit every site Base is used on.

from base.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.