-
-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fix for multi-column dropdown menues #17
Conversation
I don't know why in the screenshot it isn't appears fine, so I am going to check the code if I can make something to solve, because I imagine that it could be due to the scroller that I see in the responsive view. |
@ivanhercaz Thanks a lot for looking at this. The code is now live on the wiki but it does not seem to work, at least for me. If you could check with a mobile device. .. |
It is very strange, as far as I understand it is unnecessary the use of @media only screen and (max-width: 480px) {
.dropdown-content {
left: -100% !important;
right: auto !important;
column-gap: 0px !important;
}
} It should works without the @media only screen and (max-width: 480px) {
.smwofootercomptb.col-lg-10 {
nav#p-tb.navbar.navbar-default.p-tb {
margin-top: 0;
margin-bottom: 0;
}
}
} But I don't know why this snippet needs it. I will check it, because I read this article, but it isn't the case of a recommendable use for You're welcome Karsten 😄 |
@kghbln, remember that in this code there isn't applied the fix for the font-size: 13.4px; And if it doesn't work, try using |
Ups, I have checked Awesome Screenshot, the add-on I use to take screenshots, cut the borders so maybe the P. S. This is what Awesome Screenshot made, check the bottom 😕 |
@ivanhercaz Indeed adding I also have the impression that we are overly often using About the users manual. We will just have to reduce the number of columns to two and move some less important links out of the menu. |
@ivanhercaz I must note that is is absolutely awesome that you looked at this. This really saves me heaps of time. |
Now it works fine! Yes, 14px is fine and it wasn't a problem, the problems was my screenshot tool. Nice idea reduce the padding to 3px! I added it to this PR to make the change in the flavour in harmony with the live smw.o site.
No, no, it is enough for now, at least in my opinion. Tonight I will ask in StackOverflow about this issue with the media query and
All right! Let me time to code and make some tests and I will open another PR. I think if you are agree with this solution, it can be merged!
Thank you for your comments @kghbln 😄 I am happy to know that I helped you and save time to you. I'm not a professional developer but with the experience of time and practice I get on sometimes, and sometimes not hehe, with this kind of things. A huge hug! |
Well, I tried to solve the issue #11. Maybe it isn't a good solution, I'm not consider myself the most appropriated to argue it, but it maybe useful as a temporal solution until someone develops something better. This solves the problem with the two-column dropdown, not for the three-column, I tried to solve it but nothing seems fine to me.
In the first commit I made a rule for smaller screens in which the menu have to be shown as one column (check the screenshot I shared in #11). But then, trying another things, I hit upon with another solution to keep the two columns (second commit). At least to me, it doesn't overflow the screen, so it should works.
Note: I couldn't test it in my local installation because I couldn't configure successfully the SMW menu system, it's tested with the Firefox's developer tools. If anyone may test it, I would be more relaxed at the time to merge this PR, of course, if @kghbln thinks this PR is useful and solve the problem. If not, I will continue thinking on the solution or in another ways to make the menu system.