diff options
| author | Mark Otto <[email protected]> | 2012-05-13 13:58:42 -0700 |
|---|---|---|
| committer | Mark Otto <[email protected]> | 2012-05-13 13:58:42 -0700 |
| commit | 3a21891824f3f0af06da750bb768902e171b2ca0 (patch) | |
| tree | c0d6f4c8f8a86316d1cbfb31dcc045872faf0d71 | |
| parent | 526d77af6188427e1ed6cc3ec280e08e986379ac (diff) | |
| download | bootstrap-3a21891824f3f0af06da750bb768902e171b2ca0.tar.xz bootstrap-3a21891824f3f0af06da750bb768902e171b2ca0.zip | |
#3469: add variables for dropdown menu dividers
| -rw-r--r-- | docs/less.html | 8 | ||||
| -rw-r--r-- | docs/templates/pages/less.mustache | 8 | ||||
| -rw-r--r-- | less/dropdowns.less | 2 | ||||
| -rw-r--r-- | less/mixins.less | 6 | ||||
| -rw-r--r-- | less/variables.less | 3 |
5 files changed, 22 insertions, 5 deletions
diff --git a/docs/less.html b/docs/less.html index 781bd2fb7..476f5ac98 100644 --- a/docs/less.html +++ b/docs/less.html @@ -614,6 +614,14 @@ <td><code>@dropdownLinkBackgroundHover</code></td> <td><code>@linkColor</code></td> </tr> + <tr> + <td><code>@@dropdownDividerTop</code></td> + <td><code>#e5e5e5</code></td> + </tr> + <tr> + <td><code>@@dropdownDividerBottom</code></td> + <td><code>@white</code></td> + </tr> </tbody> </table> <h4>Hero unit</h4> diff --git a/docs/templates/pages/less.mustache b/docs/templates/pages/less.mustache index 0532b2f9c..bb7148453 100644 --- a/docs/templates/pages/less.mustache +++ b/docs/templates/pages/less.mustache @@ -537,6 +537,14 @@ <td><code>@dropdownLinkBackgroundHover</code></td> <td><code>@linkColor</code></td> </tr> + <tr> + <td><code>@@dropdownDividerTop</code></td> + <td><code>#e5e5e5</code></td> + </tr> + <tr> + <td><code>@@dropdownDividerBottom</code></td> + <td><code>@white</code></td> + </tr> </tbody> </table> <h4>{{_i}}Hero unit{{/i}}</h4> diff --git a/less/dropdowns.less b/less/dropdowns.less index 6c60385e5..2bcd55687 100644 --- a/less/dropdowns.less +++ b/less/dropdowns.less @@ -71,7 +71,7 @@ // Dividers (basically an hr) within the dropdown .divider { - .nav-divider(); + .nav-divider(@dropdownDividerTop, @dropdownDividerBottom); } // Links within the dropdown menu diff --git a/less/mixins.less b/less/mixins.less index b107955f5..6989b1376 100644 --- a/less/mixins.less +++ b/less/mixins.less @@ -417,7 +417,7 @@ // Horizontal dividers // ------------------------- // Dividers (basically an hr) within dropdowns and nav lists -.nav-divider() { +.nav-divider(@top: #e5e5e5, @bottom: @white) { // IE7 needs a set width since we gave a height. Restricting just // to IE7 to keep the 1px left/right space in other browsers. // It is unclear where IE is getting the extra space that we need @@ -427,8 +427,8 @@ margin: ((@baseLineHeight / 2) - 1) 1px; // 8px 1px *margin: -5px 0 5px; overflow: hidden; - background-color: #e5e5e5; - border-bottom: 1px solid @white; + background-color: @top; + border-bottom: 1px solid @bottom; } // Button backgrounds diff --git a/less/variables.less b/less/variables.less index d8825fb07..b931d3d2a 100644 --- a/less/variables.less +++ b/less/variables.less @@ -107,7 +107,8 @@ @dropdownLinkColor: @grayDark; @dropdownLinkColorHover: @white; @dropdownLinkBackgroundHover: @linkColor; - +@dropdownDividerTop: #e5e5e5; +@dropdownDividerBottom: @white; |
