Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Bootstrap
bootstrap
Commits
6f88238a
Commit
6f88238a
authored
10 years ago
by
Mark Otto
Browse files
Options
Download
Plain Diff
Merge pull request #14051 from loic/issue13325
Address margins on .navbar-right to fix
#13325
#13464.
parents
907b3b28
e88fa909
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
less/navbar.less
+19
-23
less/navbar.less
with
19 additions
and
23 deletions
+19
-23
less/navbar.less
+
19
-
23
View file @
6f88238a
...
...
@@ -275,26 +275,10 @@
padding-bottom: @navbar-padding-vertical;
}
}
&.navbar-right:first-child {
margin-right: -@navbar-padding-horizontal;
}
}
}
// Component alignment
//
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
// issues with parents and chaining. Only do this when the navbar is uncollapsed
// though so that navbar contents properly stack and align in mobile.
@media (min-width: @grid-float-breakpoint) {
.navbar-left { .pull-left(); }
.navbar-right { .pull-right(); }
}
// Navbar form
//
// Extension of the `.form-inline` with some extra flavor for optimum display in
...
...
@@ -330,11 +314,6 @@
padding-top: 0;
padding-bottom: 0;
.box-shadow(none);
// Outdent the form if first child to line up with content down the page
&.navbar-right:first-child {
margin-right: -@navbar-padding-horizontal;
}
}
}
...
...
@@ -379,14 +358,31 @@
float: left;
margin-left: @navbar-padding-horizontal;
margin-right: @navbar-padding-horizontal;
}
}
// Outdent the form if first child to line up with content down the page
&.navbar-right:first-child {
// Component alignment
//
// Repurpose the pull utilities as their own navbar utilities to avoid specificity
// issues with parents and chaining. Only do this when the navbar is uncollapsed
// though so that navbar contents properly stack and align in mobile.
//
// Declared after the navbar components to ensure more specificity on the margins.
@media (min-width: @grid-float-breakpoint) {
.navbar-left { .pull-left(); }
.navbar-right {
.pull-right();
margin-right: -@navbar-padding-horizontal;
~ .navbar-right {
margin-right: 0;
}
}
}
// Alternate navbars
// --------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment