Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
B
bootstrap
Project overview
Project overview
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
bootstrap
Commits
c1059067
Commit
c1059067
authored
Dec 10, 2012
by
Blake Embrey
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update .dropdown-menu selectors to avoid conflicts with other elements. Fixes #6197
parent
070c125c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
16 deletions
+16
-16
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+8
-8
less/dropdowns.less
less/dropdowns.less
+8
-8
No files found.
docs/assets/css/bootstrap.css
View file @
c1059067
...
@@ -2909,7 +2909,7 @@ table th[class*="span"],
...
@@ -2909,7 +2909,7 @@ table th[class*="span"],
border-bottom
:
1px
solid
#ffffff
;
border-bottom
:
1px
solid
#ffffff
;
}
}
.dropdown-menu
li
>
a
{
.dropdown-menu
>
li
>
a
{
display
:
block
;
display
:
block
;
padding
:
3px
20px
;
padding
:
3px
20px
;
clear
:
both
;
clear
:
both
;
...
@@ -2919,8 +2919,8 @@ table th[class*="span"],
...
@@ -2919,8 +2919,8 @@ table th[class*="span"],
white-space
:
nowrap
;
white-space
:
nowrap
;
}
}
.dropdown-menu
li
>
a
:hover
,
.dropdown-menu
>
li
>
a
:hover
,
.dropdown-menu
li
>
a
:focus
,
.dropdown-menu
>
li
>
a
:focus
,
.dropdown-submenu
:hover
>
a
{
.dropdown-submenu
:hover
>
a
{
color
:
#ffffff
;
color
:
#ffffff
;
text-decoration
:
none
;
text-decoration
:
none
;
...
@@ -2934,8 +2934,8 @@ table th[class*="span"],
...
@@ -2934,8 +2934,8 @@ table th[class*="span"],
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ff0088cc'
,
endColorstr
=
'#ff0077b3'
,
GradientType
=
0
);
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ff0088cc'
,
endColorstr
=
'#ff0077b3'
,
GradientType
=
0
);
}
}
.dropdown-menu
.active
>
a
,
.dropdown-menu
>
.active
>
a
,
.dropdown-menu
.active
>
a
:hover
{
.dropdown-menu
>
.active
>
a
:hover
{
color
:
#ffffff
;
color
:
#ffffff
;
text-decoration
:
none
;
text-decoration
:
none
;
background-color
:
#0081c2
;
background-color
:
#0081c2
;
...
@@ -2949,12 +2949,12 @@ table th[class*="span"],
...
@@ -2949,12 +2949,12 @@ table th[class*="span"],
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ff0088cc'
,
endColorstr
=
'#ff0077b3'
,
GradientType
=
0
);
filter
:
progid
:
DXImageTransform
.
Microsoft
.
gradient
(
startColorstr
=
'#ff0088cc'
,
endColorstr
=
'#ff0077b3'
,
GradientType
=
0
);
}
}
.dropdown-menu
.disabled
>
a
,
.dropdown-menu
>
.disabled
>
a
,
.dropdown-menu
.disabled
>
a
:hover
{
.dropdown-menu
>
.disabled
>
a
:hover
{
color
:
#999999
;
color
:
#999999
;
}
}
.dropdown-menu
.disabled
>
a
:hover
{
.dropdown-menu
>
.disabled
>
a
:hover
{
text-decoration
:
none
;
text-decoration
:
none
;
cursor
:
default
;
cursor
:
default
;
background-color
:
transparent
;
background-color
:
transparent
;
...
...
less/dropdowns.less
View file @
c1059067
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
}
}
// Links within the dropdown menu
// Links within the dropdown menu
li > a {
>
li > a {
display: block;
display: block;
padding: 3px 20px;
padding: 3px 20px;
clear: both;
clear: both;
...
@@ -85,8 +85,8 @@
...
@@ -85,8 +85,8 @@
// Hover state
// Hover state
// -----------
// -----------
.dropdown-menu li > a:hover,
.dropdown-menu
>
li > a:hover,
.dropdown-menu li > a:focus,
.dropdown-menu
>
li > a:focus,
.dropdown-submenu:hover > a {
.dropdown-submenu:hover > a {
text-decoration: none;
text-decoration: none;
color: @dropdownLinkColorHover;
color: @dropdownLinkColorHover;
...
@@ -95,8 +95,8 @@
...
@@ -95,8 +95,8 @@
// Active state
// Active state
// ------------
// ------------
.dropdown-menu .active > a,
.dropdown-menu
>
.active > a,
.dropdown-menu .active > a:hover {
.dropdown-menu
>
.active > a:hover {
color: @dropdownLinkColorActive;
color: @dropdownLinkColorActive;
text-decoration: none;
text-decoration: none;
outline: 0;
outline: 0;
...
@@ -106,12 +106,12 @@
...
@@ -106,12 +106,12 @@
// Disabled state
// Disabled state
// --------------
// --------------
// Gray out text and ensure the hover state remains gray
// Gray out text and ensure the hover state remains gray
.dropdown-menu .disabled > a,
.dropdown-menu
>
.disabled > a,
.dropdown-menu .disabled > a:hover {
.dropdown-menu
>
.disabled > a:hover {
color: @grayLight;
color: @grayLight;
}
}
// Nuke hover effects
// Nuke hover effects
.dropdown-menu .disabled > a:hover {
.dropdown-menu
>
.disabled > a:hover {
text-decoration: none;
text-decoration: none;
background-color: transparent;
background-color: transparent;
background-image: none; // Remove CSS gradient
background-image: none; // Remove CSS gradient
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a 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