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
9df832b4
Commit
9df832b4
authored
Jun 19, 2012
by
Mark Otto
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add separate vars for dropdown link hover and active states
parent
40298ddb
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
39 additions
and
6 deletions
+39
-6
docs/assets/css/bootstrap.css
docs/assets/css/bootstrap.css
+6
-1
docs/less.html
docs/less.html
+8
-0
docs/templates/pages/less.mustache
docs/templates/pages/less.mustache
+8
-0
less/dropdowns.less
less/dropdowns.less
+9
-2
less/variables.less
less/variables.less
+8
-3
No files found.
docs/assets/css/bootstrap.css
View file @
9df832b4
...
...
@@ -2457,7 +2457,12 @@ table .span24 {
}
.dropdown-menu
li
>
a
:hover
,
.dropdown-menu
li
>
a
:focus
,
.dropdown-menu
li
>
a
:focus
{
color
:
#333333
;
text-decoration
:
none
;
background-color
:
#eeeeee
;
}
.dropdown-menu
.active
>
a
,
.dropdown-menu
.active
>
a
:hover
{
color
:
#ffffff
;
...
...
docs/less.html
View file @
9df832b4
...
...
@@ -594,8 +594,16 @@
<td><code>
@dropdownLinkColorHover
</code></td>
<td><code>
@white
</code></td>
</tr>
<tr>
<td><code>
@dropdownLinkColorActive
</code></td>
<td><code>
@linkColor
</code></td>
</tr>
<tr>
<td><code>
@dropdownLinkBackgroundHover
</code></td>
<td><code>
@grayLighter
</code></td>
</tr>
<tr>
<td><code>
@dropdownLinkBackgroundActive
</code></td>
<td><code>
@linkColor
</code></td>
</tr>
<tr>
...
...
docs/templates/pages/less.mustache
View file @
9df832b4
...
...
@@ -517,8 +517,16 @@
<td><code>
@dropdownLinkColorHover
</code></td>
<td><code>
@white
</code></td>
</tr>
<tr>
<td><code>
@dropdownLinkColorActive
</code></td>
<td><code>
@linkColor
</code></td>
</tr>
<tr>
<td><code>
@dropdownLinkBackgroundHover
</code></td>
<td><code>
@grayLighter
</code></td>
</tr>
<tr>
<td><code>
@dropdownLinkBackgroundActive
</code></td>
<td><code>
@linkColor
</code></td>
</tr>
<tr>
...
...
less/dropdowns.less
View file @
9df832b4
...
...
@@ -94,12 +94,19 @@
// Hover state
// -----------
.dropdown-menu li > a:hover,
.dropdown-menu li > a:focus,
.dropdown-menu li > a:focus {
text-decoration: none;
color: @dropdownLinkColorActive;
background-color: @dropdownLinkBackgroundHover;
}
// Active state
// ------------
.dropdown-menu .active > a,
.dropdown-menu .active > a:hover {
color: @dropdownLinkColorHover;
text-decoration: none;
background-color: @dropdownLinkBackground
Hover
;
background-color: @dropdownLinkBackground
Active
;
outline: 0;
}
...
...
less/variables.less
View file @
9df832b4
...
...
@@ -104,12 +104,17 @@
// -------------------------
@dropdownBackground: @white;
@dropdownBorder: rgba(0,0,0,.2);
@dropdownLinkColor: @grayDark;
@dropdownLinkColorHover: @white;
@dropdownLinkBackgroundHover: @linkColor;
@dropdownDividerTop: #e5e5e5;
@dropdownDividerBottom: @white;
@dropdownLinkColor: @grayDark;
@dropdownLinkColorHover: @white;
@dropdownLinkBackgroundHover: @grayLighter;
@dropdownLinkColorActive: @dropdownLinkColor;
@dropdownLinkBackgroundActive: @linkColor;
// COMPONENT VARIABLES
...
...
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