-
-
Notifications
You must be signed in to change notification settings - Fork 79k
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
Changed last-child to first-child to fix #13325 #13464
Conversation
@@ -327,7 +327,7 @@ | |||
.box-shadow(none); | |||
|
|||
// Outdent the form if last child to line up with content down the page |
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.
Need to adjust this comment and the similar one below.
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.
NAVER - http://www.naver.com/
lee36656@naver.com 님께 보내신 메일 <Re: [bootstrap] #13325 - Changed last-child to first-child (#13464)> 이 다음과 같은 이유로 전송 실패했습니다.
받는 사람이 회원님의 메일을 수신차단 하였습니다.
As noted by @jerem the first child will actually be the last shown
Alright @cvrebert sorted that. |
I don't think I believe |
Since it's only being applied on navbar items being floated right is that a problem? |
As far as I know, none of those solutions are going to work in every use case. This is just a larger problem with the limitation of the navbar given it's current structural constraints. Not sure there's a decent solution right now. Can you test this with a bunch of navbar layouts in a jsbin? |
I screwed with this a big more to get to http://jsbin.com/zamolure/6/. This should work in fixing things, but we'll need more testing. Punting to v3.2.1 for now so we can let this bake a bit more. |
Looking better, I noticed when those examples end up full width there's a gap exposed. I'll see if I can work up some more examples to test against. |
@NickColley Did you end up doing any more testing on this? I haven't revisited since my last comment. |
I've been using the fix I proposed in http://jsbin.com/zamolure/1/, it works well for me both in FF and Blink/Webkit, I don't have an IE to test it against. I can't reproduce the gap mentioned by @NickColley. |
@loic you need to have the example /6/ small enough that it goes into the full width mobile view. There's a gap at the end. |
@NickColley right! The css should be wrapped in a media query: http://jsbin.com/zamolure/8/. |
Downside to your latest @loic is that the margins between consecutive |
Is nesting stuff within one |
@loic I'm not sure if one or the other should be expected or the intended styles, but what I am saying is that the spacing has changed between master and here. The consecutive |
@mdo unless I'm misunderstanding the issue, this extra spacing is because Just beefed up the example a little: http://jsbin.com/zamolure/12 We can see in the "Fixed" section that the spacing is now the same for right alignment as it has always been for left alignment. I also added a "Without margins" section that prevents the double margin both on '.navbar-left' and '.navbar-right' but I don't think it's the expected behavior, especially on links. |
Yeah I think this ends up fixing more things than breaking, so I'm good to merge it. |
Changed last-child to first-child to fix #13325
Thanks! |
@mdo you've merged the fix from @NickColley which is completely different from the fix I was proposing. AFAIK this commit doesn't address the issue and should be reverted. I can make a new PR with the fix from my POC. |
I don't think we'll revert as I think this still fixes a valid issue. But sure, open a new PR with more info and we'll revisit. |
Well the fix is wrong in a sense that |
This commit follows f9fde56.
This commit follows f9fde56.
…r-right-first Changed last-child to first-child to fix twbs#13325
This commit follows f9fde56.
Address margins on .navbar-right to fix twbs#13325 twbs#13464.
Fixes #13325.
Fixes incorrect margin fix as the right most element will actually be the first in the DOM.
As noted by @jerem