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
f640ec96
Commit
f640ec96
authored
7 years ago
by
Catalin Zalog
Committed by
Mark Otto
7 years ago
Browse files
Options
Download
Email Patches
Plain Diff
Some .navbar .dropdown-menu optimisation (#22776)
parent
af93db29
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
js/src/dropdown.js
+0
-15
js/src/dropdown.js
scss/_navbar.scss
+0
-12
scss/_navbar.scss
with
0 additions
and
27 deletions
+0
-27
js/src/dropdown.js
+
0
-
15
View file @
f640ec96
...
...
@@ -251,21 +251,6 @@ const Dropdown = (($) => {
return
$
(
this
.
_element
).
closest
(
'
.navbar
'
).
length
>
0
}
_navbarPositioning
()
{
const
$parentNavbar
=
$
(
this
.
_element
).
closest
(
'
.navbar
'
)
if
(
$
(
this
.
_menu
).
hasClass
(
ClassName
.
MENURIGHT
))
{
if
(
!
$parentNavbar
.
hasClass
(
'
navbar-expand
'
))
{
return
{
position
:
'
static
'
,
transform
:
''
,
float
:
'
none
'
}
}
}
return
{}
}
_getPopperConfig
()
{
const
popperConfig
=
{
placement
:
this
.
_getPlacement
(),
...
...
This diff is collapsed.
Click to expand it.
scss/_navbar.scss
+
0
-
12
View file @
f640ec96
...
...
@@ -141,13 +141,6 @@
&
#{
$infix
}
{
@include
media-breakpoint-down
(
$breakpoint
)
{
.navbar-nav
{
.dropdown-menu
{
position
:
static
;
float
:
none
;
}
}
>
.container
,
>
.container-fluid
{
padding-right
:
0
;
...
...
@@ -172,11 +165,6 @@
left
:
auto
;
// Reset the default from `.dropdown-menu`
}
.dropdown-menu-left
{
right
:
auto
;
left
:
0
;
}
.nav-link
{
padding-right
:
.5rem
;
padding-left
:
.5rem
;
...
...
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