From: Mark Otto Date: Sat, 14 Dec 2013 21:22:56 +0000 (-0800) Subject: Fixes #10370: Improved and deprecated dropdown menu alignment options X-Git-Tag: v3.1.0~145^2^2~16^2^2~1^2^2~3^2~2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=11c6ab767cab5384188a301f7c9366b212432e81;p=thirdparty%2Fbootstrap.git Fixes #10370: Improved and deprecated dropdown menu alignment options * Removes an old pair of selectors that didn’t properly target the right-aligned navbar alignment of dropdown menus. * Deprecates the `.pull-right` alignment in favor of a more specific and unique class name. * Adds `.dropdown-menu-right` as the new alignment class. This is then mixin-ed into the `.navbar-right.navbar-nav` dropdown menus for auto-alignment. * To override that auto-alignment, use `.dropdown-menu-left` as needed. --- diff --git a/components.html b/components.html index 8377b81238..a335c06c9d 100644 --- a/components.html +++ b/components.html @@ -902,9 +902,13 @@ base_url: "../" {% endhighlight %} -

Add .pull-right to a .dropdown-menu to right align the dropdown menu.

+

Add .dropdown-menu-right to a .dropdown-menu to right align the dropdown menu.

+
+

Deprecated .pull-right alignment

+

As of v3.1, we've deprecated .pull-right on dropdown menus. To right-align a menu, use .dropdown-menu-right. Right-aligned nav components in the navbar use a mixin version of this class to automatically align the menu. To override it, use .dropdown-menu-left.

+
{% highlight html %} -