Comments (3)
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.
Some thoughts on this:
- think a close button might be excessive, the menu should drop down below the ☰ character, effectively making it the close button
- I think one mobile menu is probably enough as core, not sure about the advantages of a footer menu
- 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 ofa
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.
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)
- Change font sizing from ems to rems HOT 1
- No Version info in README
- Make the Gruntfile better HOT 3
- Update Base to latest version HOT 1
- Include basic placeholder script HOT 1
- Filter not reset on disabled buttons HOT 1
- Remove padding variable HOT 1
- Menus: primary sub menu off-screen in mobile; secondary submenu not hidden; submenus background color
- Mixin for columns with no margin
- Add tooltips HOT 1
- Add float: left / right as an argument for column mixin HOT 1
- Upgrade style injector in Gruntfile
- Updated grunt config (since minification) error
- Add universal box sizing
- Offset mixin bug HOT 1
- Set font-size on html, not body, when using REMs
- Include a clearfix / add clearfix docs HOT 1
- Select boxes lose drop-down styles in FF, Chrome, Safari HOT 1
- Automatically apply base button styles to links with the .button-primary (etc) class HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from base.