Comments (6)
I like the idea of using ~
but it won't solve the problem for all situations. What if one has more than three items in the menu, what if the items' text are long and etc. The one fix for all will definitely be the collapsible menu (such as the one bootstrap does with its hamburger menu)
This is the way I've done it (lazy enough!) with Bootstrap.
from hugo-coder.
Now we have a collapsible menu for mobile screens. So, I'm closing this issues.
from hugo-coder.
A collapsible menu is a really nice idea.
I did not add it yet but I was looking for an option that don't use JS (if possible).
Could you help me this feature?
from hugo-coder.
@luizdepra, I've used some HTML5 elements that enable collapsing on https://scala-debugger.org/api/getting-started/what-is-a-debugger/
Details and summary are the related tags to do this.
A simple example of this can be found on MDN: https://developer.mozilla.org/en-US/docs/Web/HTML/Element/details
It isn't supported on IE or Edge, though. https://caniuse.com/#feat=details
from hugo-coder.
Another thought (maybe additional) is to collapse the name on the lefthand side. Given that it represents going to the homepage, maybe converting it to ~ (equivalent of home for programmers) on small screens would be an option.
from hugo-coder.
Yeah. I'll try to add a collapsible menu later. But for now, I'll use the ~
idea.
from hugo-coder.
Related Issues (20)
- Can keep scrolling to the left on mobile, when direction is 'rtl' HOT 1
- Missing Trailing slash in HomePage link when lang != default HOT 1
- replacement for forkawsome HOT 1
- Can't evaluate field twitter in type []interface {} HOT 2
- Working with Plausible Analytics HOT 1
- cannot build or serve blog following quickstart instructions HOT 1
- Disable external link CSS HOT 1
- How to remove this "menu-separator" element? HOT 1
- Remove prefetch-src from layouts/partials/csp.html. HOT 1
- Refactor Mastodon Comments HOT 2
- Add direct link to demosite on themes.gohugo.io HOT 2
- Does the theme support switching between English and Chinese? HOT 1
- Ordered Lists are not displayed correctly
- Add Cusdis to available comment services HOT 3
- No favicon loaded if no favicon.svg exists
- Utterances Requires inline-script CSP Access HOT 1
- Custom subscribe button on landing page
- building failure about `mastodon.html` HOT 1
- How can I stop my tags from being auto capitalized? HOT 7
- New to Hugo, adding new content to existing theme 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 hugo-coder.