-
-
Notifications
You must be signed in to change notification settings - Fork 78.9k
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
Document broken "outdent" with multiple navbar-right classes #12951
Comments
Gotcha—totally see what you mean here. Looking at this again, I don't know that there is a solid fix we can implement for this in v3.x. Honestly the navbar is so complex that it's unmaintainable. Optionally, we could wrap all the components that need to be on the right, but that's not really that doable and it still has the same problem. |
I don't see a good fix either. As you say, wrapping both elements in one The only solution I can think of is to introduce a It's easy enough to fix manually on a case-by-case basis if the limitation is documented. |
@fleaflicker This should fix the issue: // Outdent the form if first child to line up with content down the page
&.navbar-right:first-child {
margin-right: -@navbar-padding-horizontal;
}
|
@zdroid I don't think that will fix the issue. Something like |
Then you should use |
Well, in the example |
:( 2014-03-09 14:47 GMT+01:00 Heinrich Fenkart notifications@github.com:
Zlatan Vasović - ZDroid |
I've added a note about this to our docs and added it to our v4 planning issue to revisit when we can. Until then, ugh. Sorry folks <3. |
Btw, future me, look at http://jsbin.com/rawel/2/ for a clear example. <3 |
First reported in #12947 . Resubmitting with an example and more details as requested by @mdo .
http://jsfiddle.net/D2RLR/5339/ (this is a pure CSS issue, but you'll need to expand your viewport so that the navbar is not collapsed)
The example shows the navbar from the docs but with one change -- the form is pulled right with
.navbar-right
.I believe the intent of all the negative margins on
.navbar-right
is so that the right-most one will go up to the right edge of the navbar.It works with just one
.navbar-right
element, but not with two or more because right floated elements appear in reverse order from their markup order.In the example, the `.nav' items are shifted right 15px. They should not be but the form should be shifted right 15px.
Relevant excerpt from navbar.less
The negative margin should apply to the first element with the
.navbar-right
class. But I'm not sure how to select that.The text was updated successfully, but these errors were encountered: