mirror of
https://github.com/twbs/bootstrap.git
synced 2025-08-26 23:04:32 +02:00
add separate vars for dropdown link hover and active states
This commit is contained in:
7
docs/assets/css/bootstrap.css
vendored
7
docs/assets/css/bootstrap.css
vendored
@@ -2457,7 +2457,12 @@ table .span24 {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.dropdown-menu li > a:hover,
|
.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,
|
||||||
.dropdown-menu .active > a:hover {
|
.dropdown-menu .active > a:hover {
|
||||||
color: #ffffff;
|
color: #ffffff;
|
||||||
|
@@ -594,8 +594,16 @@
|
|||||||
<td><code>@dropdownLinkColorHover</code></td>
|
<td><code>@dropdownLinkColorHover</code></td>
|
||||||
<td><code>@white</code></td>
|
<td><code>@white</code></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>@dropdownLinkColorActive</code></td>
|
||||||
|
<td><code>@linkColor</code></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>@dropdownLinkBackgroundHover</code></td>
|
<td><code>@dropdownLinkBackgroundHover</code></td>
|
||||||
|
<td><code>@grayLighter</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>@dropdownLinkBackgroundActive</code></td>
|
||||||
<td><code>@linkColor</code></td>
|
<td><code>@linkColor</code></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
8
docs/templates/pages/less.mustache
vendored
8
docs/templates/pages/less.mustache
vendored
@@ -517,8 +517,16 @@
|
|||||||
<td><code>@dropdownLinkColorHover</code></td>
|
<td><code>@dropdownLinkColorHover</code></td>
|
||||||
<td><code>@white</code></td>
|
<td><code>@white</code></td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>@dropdownLinkColorActive</code></td>
|
||||||
|
<td><code>@linkColor</code></td>
|
||||||
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
<td><code>@dropdownLinkBackgroundHover</code></td>
|
<td><code>@dropdownLinkBackgroundHover</code></td>
|
||||||
|
<td><code>@grayLighter</code></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td><code>@dropdownLinkBackgroundActive</code></td>
|
||||||
<td><code>@linkColor</code></td>
|
<td><code>@linkColor</code></td>
|
||||||
</tr>
|
</tr>
|
||||||
<tr>
|
<tr>
|
||||||
|
@@ -94,12 +94,19 @@
|
|||||||
// Hover state
|
// Hover state
|
||||||
// -----------
|
// -----------
|
||||||
.dropdown-menu li > a:hover,
|
.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,
|
||||||
.dropdown-menu .active > a:hover {
|
.dropdown-menu .active > a:hover {
|
||||||
color: @dropdownLinkColorHover;
|
color: @dropdownLinkColorHover;
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
background-color: @dropdownLinkBackgroundHover;
|
background-color: @dropdownLinkBackgroundActive;
|
||||||
outline: 0;
|
outline: 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@@ -104,12 +104,17 @@
|
|||||||
// -------------------------
|
// -------------------------
|
||||||
@dropdownBackground: @white;
|
@dropdownBackground: @white;
|
||||||
@dropdownBorder: rgba(0,0,0,.2);
|
@dropdownBorder: rgba(0,0,0,.2);
|
||||||
@dropdownLinkColor: @grayDark;
|
|
||||||
@dropdownLinkColorHover: @white;
|
|
||||||
@dropdownLinkBackgroundHover: @linkColor;
|
|
||||||
@dropdownDividerTop: #e5e5e5;
|
@dropdownDividerTop: #e5e5e5;
|
||||||
@dropdownDividerBottom: @white;
|
@dropdownDividerBottom: @white;
|
||||||
|
|
||||||
|
@dropdownLinkColor: @grayDark;
|
||||||
|
|
||||||
|
@dropdownLinkColorHover: @white;
|
||||||
|
@dropdownLinkBackgroundHover: @grayLighter;
|
||||||
|
|
||||||
|
@dropdownLinkColorActive: @dropdownLinkColor;
|
||||||
|
@dropdownLinkBackgroundActive: @linkColor;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
// COMPONENT VARIABLES
|
// COMPONENT VARIABLES
|
||||||
|
Reference in New Issue
Block a user