-
-
Notifications
You must be signed in to change notification settings - Fork 379
Better menus for dlang.org #780
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
Conversation
88f9dc8
to
c06dddf
Compare
e2d3609
to
09c7a6f
Compare
@Geod24 thanks! I'll punt on the content issues for now. This update includes the javascript fixes. I'll post a screenshot so we keep track of what look corresponds to each commit. |
State of affairs: http://imgur.com/zlXfj8I |
Better menus for dlang.org
Are accordion menus really better UX than what we have now? |
The new site is no longer navigable without JavaScript. This is pretty important for robots etc.
This code has no license attached to it... Why do we need this redesign again? |
var checkElement = $(this).next(); | ||
if((checkElement.is('ul')) && (checkElement.is(':visible'))) { | ||
$(this).closest('li').removeClass('active'); | ||
checkElement.slideUp('normal'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Feels a little sluggish at the moment, can you try 'fast'
instead of 'normal'
? (slideDown
3 lines below too)
@CyberShadow please improve. Thanks! |
Wait, this is already merged? I feel like this was a little rushed... |
@CyberShadow please also merge #786 |
You'd have to sell me the idea first. I'm not convinced this is a good change and I don't understand what problem this is trying to solve. |
The new thing also doesn't expand the current section, so you need two clicks to go to the next page within the same section... |
@CyberShadow we discussed this a lot in the newsgroup. If you think of something better than accordion menus, please change cssmenu.css. If you want to make selection trackable, please implement. If you want better anymation speed, please update. |
I think we do need to implement current page tracking before updating the site. @CyberShadow what difficulties are you experiencing without javascript? |
I liked the old thing, it worked and had none of the above problems. Can I make a pull request to revert to that? I totally understand the "talk is cheap, pull requests get things done" thing. But I understand neither your goal nor motivation. Breaking a bunch of things then asking people who complain to fix it themselves doesn't seem very nice either. |
No.
We need a different styling for the website. |
IIRC, the current website was designed by someone who specializes in this. I'm not sure we can fare better. Practical: can we implement the dynamic accordion menus on top of the previous existing HTML/CSS, to progressively add features to browsers with JS enabled, rather than do it the other way around and add crutches for browsers with JS disabled? |
Apparently people in the forum like the change.
I considered that, but the way the menus were implemented was quite difficult to work with. The way I set things up is if there's no javascript all menus are opened by default. Does that not work for you? |
It does not. I've tried disabling JS in Opera and Fx (using YesScript). All it does is make the expandable sections non-expandable. Edit: Assuming http://erdani.com/d/ has the latest version. |
@CyberShadow take that back. I forgot a |
Yes I'm on IRC. |
@@ -83,40 +85,45 @@ $(TRANSLATIONS) | |||
_= | |||
|
|||
NAVIGATION= | |||
$(NAVBLOCK_HEADER $(TOCHEADERL index.html, D Programming Language, D $(LATEST)), | |||
$(TOCENTRYTH download.html, Download a D compiler, $(SPANC emph,Download), $(CATEGORY_DOWNLOAD $(SUBNAV_DOWNLOAD))) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This change seems to have removed the download submenu, where users could click to read more about the compiler flags for their specific OS, from the main menu. Is this intentional?
One thing I think we need to fix: The "D 2.066.1" text. It seems really out of place. The text for a menu should be something easily understood (hell, even call it just a "Menu"). I'd rather we keep the "latest version" string somewhere else. |
Yeah, I had to hard code them to a px width to work around a rendering weirdness. (Pull requests welcome.) Anyway, it should only look like that if you're not using the default font size. |
Ah, it only happens in text-zoom mode. (I have to use zoom on this laptop because the DPI is just way too high for this screen. :/). |
What is that? Something different from the font size setting in the options dialog? |
BTW IE doesn't seem to expose a font size setting any more. Firefox and Chrome still do. |
It's an addon that allows switching between text-only or text+image zoom mode: https://addons.mozilla.org/en-US/firefox/addon/default-fullzoom-level/ Anyway since this is a 3rd-party tool it might even be a bug in the tool itself, and not worth investigating from our side. |
Text zoom is supported natively by FF: menu View - Zoom - Zoom text only. |
This diff introduces accordion navigation menu. See working demo at http://erdani.org/d/. I've also reorganized the top topics.
I took the menu code from http://cssmenumaker.com/menu/modern-jquery-accordion-menu. I changed it such that it degrades better when javascript is disabled.
What's not working now and I'd love some help with is current page tracking, i.e. keep the corresponding menu open when some page in a submenu is active. Thanks!