-
Notifications
You must be signed in to change notification settings - Fork 35
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
Ivan Smirnov's redesign #51
Ivan Smirnov's redesign #51
Conversation
|
Thanks! @CyberShadow, destroy!!! |
| body.forum #cssmenu ul ul a, | ||
| body.forum #cssmenu ul ul h7 { | ||
| font-size: 100%; | ||
| @media only screen and (max-width: 66em) { /* Narrow layout stage 1 */ |
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.
Nit, please move this to the Responsive overrides section
|
I'm going to launch this on beta.forum.dlang.org for at least a while so we can test/compare. |
Let me know where you want to stop and I could try taking over from there.
You can control the width of the dropdown and its items separately by styling the |
04f536d
to
c6f3221
Compare
`overflow: hidden` doesn't work in Chrome. Also limit the total width so that at most 3 columns happen. Firefox needs would split into more columns otherwise.
Done. Could go even narrower when it's ok that "About this forum" breaks.
Removed the one after "Toggle navigation".
Ouch. Fixed. Also in the dlang.org PR.
Done.
This applies to the main site as well, doesn't it? Anyway, I'm not particularly fond of that solution. If you can think of something better, go for it. "Toggle navigation" hides it now via the point above.
Fixed.
Fixed by pulling #forum-content over the padding.
Can't get this to work. But I think I've found a nice way to fix this: add And like this in Chrome (doesn't seem to support |
Where does it occur on the main site?
Can we move that up to the 50em query?
Well, I hacked this together, it seems to work nicely: /* Move sub-navigation into title bar */
@media only screen and (max-width: 54em) {
.subnav.expand-container:not(.open) {
padding: 0;
}
.subnav.expand-container > h2 {
position: absolute;
left: 0;
top: -2em;
width: 100%;
border: 0;
color: white;
background: none;
text-align: center;
}
} |
I was mostly concerned with the forum's full-screen view modes. Generally, my aim is to have the horizontal-split view mode be an usable newsreader on phone screens, so that you could scroll the post list with your left thumb and scroll messages with your right. This implies making the most of usable screen space. BTW, there's some feedback on the forum thread if you haven't looked yet. Mostly users seem to be lamenting the fixed width (maybe the narrower navigation improved that a bit). There are also some complaints about the font. Maybe we should go back to some standard sans-serif after all. |
BTW, that link is redundant - there's another link in the footer, plus the "Help" link in the toolbar. |
|
On 14.01.2016 03:34, Vladimir Panteleev wrote:
#tools, #copyright, the text below the download button, code comments
Done.
That moves the subnav toggle in front of the logo and the main menu |
Oh, right. Well, I guess there's always JS... |
Hmm, those look fine. Not sure why, possibly because they're not really "content", or possibly because of the font. |
Well that was easy enough to fix, just changed it to "This thread" |
This is still not completely fixed. Resizing the window makes the columns have differing widths. More here: http://forum.dlang.org/post/bgghejlldxljnsckpows@forum.dlang.org |
41ec8d7
to
b0abe5c
Compare
|
Added two commits:
|
|
... and another one to fix up the margin-left I messed up |
Sorry, this still seems wrong. There should be no free space at the bottom of the page in the horizontal-split view modes, and the vertical mode now doesn't fit in the window. I don't want to burn you out, so as I said above let me know where you want to draw the line and I'll take it from there. |
Hm? Here are screenshots of how things looks for me. The empty spaces below #copyright and above #footernav are padding/margin and can be changed easily, of course. This depends on the latest changes to dlang.org. The submodule should be at 387922f9176dbd56e5a96b4adadab9fa5a4d676e "give the subnav a left border too". |
In style.css the font-size is set for body now, not #content.
|
Added a commit to fix the font-size in narrow windows. |
|
Yes, my apologies, there was a bug in my update script. The correct version is live now. |
|
These lines in dlang.org's style.css cause the page to scroll a bit to the right beyond its edge. It also enables horizontal "scrolling" on iPhones, when the page should only scroll vertically. I don't understand what these lines do, but I don't see a difference after removing them aside from fixing the above annoyance. |
|
BTW, pinged you in #52 (comment) in case you have those notifications off. |
Why can't we just do this? diff --git a/web/static/css/dfeed.css b/web/static/css/dfeed.css
index 92ec2c0..ff5ae15 100644
--- a/web/static/css/dfeed.css
+++ b/web/static/css/dfeed.css
@@ -1143,19 +1143,12 @@ body {
}
body div#content {
- padding-left: 0;
- padding-right: 0;
- padding-bottom: 0;
border: 0;
}
- /* counter default padding */
- #content {
- overflow: visible;
- }
- #forum-content {
- margin-left: -1.33em;
- margin-right: -1.33em;
+ body > .container {
+ padding-left: 0;
+ padding-right: 0;
}
.forum-form,Negative margins always made me nervous. dfeed.css already adds margins to where they have to be (i.e. top-level stuff outside tables), so we'd just need to do the same for the subnav etc. |
The negative margin pulls the box over .container's padding. The padding restores the padding, but inside the .subnav box. The result is (supposed to be) that the .subnav box spans the whole width of the window. Removing those two lines does not fix the horizontal scrolling for me. Rather, I identify these two lines in dfeed.css as the trouble makers: @media only screen and (max-width: 50em) {
...
#forum-content {
margin-left: -1.33em;
margin-right: -1.33em;
}
...
}I've overlooked those when moving the font-size reduction from #content to body. Changing the values to -1 fixes the issue for me. Added a commit to do that.
I got the notice. Using padding-left instead of word-spacing is fine with me. Added a commit to the dlang.org PR, and removed the tip class from #forum-tools-left here.
Yeah, that works, too. Need to remove .subnav's negative margin then, of course. And maybe add padding to #tools. Not sure if it's simpler then. |
|
Alright, new site is online. Anything left to do here? I guess we haven't figured out a solution for the horizontal split view. |
Yep, I guess that's the big one. Possible options:
I would also like to remove the subnav bar on small screens, but that's minor. |
|
OK, I'm going to go ahead and do this:
|
The negative margins were doing something weird which caused horizontal scrollbars inside the dlang.org iframes, as well as a part of the avatar being cut off, so I went ahead and replaced them as discussed. dec4326 |
Yeah, it's not beautiful, but I think this would be acceptable.
I don't like this one.
That would possibly be the nicest option. Unfortunately, this means duplicating quite some CSS code. Also it would then be nice if the subnav box stretched the whole width of the window. That's something I haven't planned for, and making it so would mean revisiting the .container thing. In all, doable but a bit of work.
The subnav can be absolutely positioned over the main menu bar. (Can just remove .container's relative positioning; it's not needed without a sidebar.) But then it's an overlay which it isn't in all the other layouts, and it overlays the main menu when that is expanded. I feel like there must be a better solution.
Sweet :)
Not sweet :(
Ok, sure. I love me some negative margins, but this makes sense. |
Does this pose a problem?
Yeah, if we do this then the link should be hidden when the main menu is expanded. I think it's doable with sufficient JS... Anyway, just waiting for launch feedback for now. |
|
Sigh, there is still some wasted space at the bottom on small screens... |




Here we go.
Known issues:
This depends on the dlang.org changes, of course. I've added some changes to forum-template.dd there.