bootstrap/less
pickypg 812b99263f Fix dropdown (and therefore typeahead) wrap
I have recently been experimenting with a lot of Typeahead controls, and I ran into a situation where my Typeahead was too wide for my screen, particularly on mobile devices, and it was not wrapping as I had expected it to do.

http://jsfiddle.net/Mtxkn/3/

Changing the CSS for `.dropdown-menu > li > a` to `white-space: normal` causes it to wrap in every scenario that I have seen, whereas leaving it as `nowrap` never does what I want when the text is too long for a given row.

It's possible that this has ramifications for other dropdown menus, but honestly I expect that even those would prefer to wrap than to extend the screen horizontally.  If that is not the case, then it would work to change the typeahead version of this only:

```css
.typeahead > li > a {
    white-space: normal;
}
```
2013-03-15 02:54:24 -03:00
..
tests Merge branch 'dospuntocero-master' into 2.3.0-wip 2013-02-01 21:41:13 -08:00
accordion.less use border-radius vars where possible 2012-10-03 09:26:52 -07:00
alerts.less nuke comments 2012-12-03 09:23:02 -08:00
bootstrap.less 2.3.1 2013-02-28 20:55:14 -08:00
breadcrumbs.less Fixes #6136: Proper scoping of breadcrumbs divider 2012-12-07 09:43:09 -08:00
button-groups.less Fixes #6174: Caret alignment in small and mini buttons 2012-12-10 10:59:57 -08:00
buttons.less Merge branch '2.3.0-wip' of https://github.com/patrickhlauke/bootstrap into patrickhlauke-2.3.0-wip 2013-02-05 19:39:49 -08:00
carousel.less Merge branch '2.3.0-wip' of https://github.com/patrickhlauke/bootstrap into patrickhlauke-2.3.0-wip 2013-02-05 19:39:49 -08:00
close.less Basic keyboard accessibility CSS tweaks 2013-01-02 22:39:21 +00:00
code.less Fix code block white-space breaks within pre tags. 2012-12-06 11:33:00 -07:00
component-animations.less Fix bug Collapse broken in IE 2012-08-21 14:33:15 +04:00
dropdowns.less Fix dropdown (and therefore typeahead) wrap 2013-03-15 02:54:24 -03:00
forms.less Increase input group margin on bottom and vertically center to match inputs 2013-01-11 20:46:21 -08:00
grid.less fixes #3694: provide override classes for .hide and .pull-right for grid columns 2012-07-29 16:51:24 -07:00
hero-unit.less fixes #5542: move '.hero-unit p' font-styles to '.hero-unit' so they apply to all elements, including ul and ol, within the component. 2012-10-16 19:56:34 -07:00
labels-badges.less Basic keyboard accessibility CSS tweaks 2013-01-02 22:39:21 +00:00
layouts.less standardize top level file comments 2012-06-28 21:46:45 -07:00
media.less Fixes #6337: scope '.media .pull-left' and '.media .pull-right' to immediate children only 2012-12-19 18:47:34 -08:00
mixins.less Merge pull request #6780 from agatronic/2.3.0-wip 2013-02-05 21:29:59 -08:00
modals.less Add relative positioning to .modal-body - Fixes #5991 2012-12-02 09:53:05 +10:00
navbar.less derp, fix broke css and recompile 2013-02-05 19:43:49 -08:00
navs.less Basic keyboard accessibility CSS tweaks 2013-01-02 22:39:21 +00:00
pager.less Basic keyboard accessibility CSS tweaks 2013-01-02 22:39:21 +00:00
pagination.less Basic keyboard accessibility CSS tweaks 2013-01-02 22:39:21 +00:00
popovers.less Popovers are now flexible width: 2012-12-28 14:18:59 -06:00
progress-bars.less use border-radius vars where possible 2012-10-03 09:26:52 -07:00
reset.less Restore print styles 2012-12-08 21:05:05 -08:00
responsive-767px-max.less replaced tabs with spaces 2013-01-09 10:15:15 +01:00
responsive-768px-979px.less standardize top level file comments 2012-06-28 21:46:45 -07:00
responsive-1200px-min.less standardize top level file comments 2012-06-28 21:46:45 -07:00
responsive-navbar.less Basic keyboard accessibility CSS tweaks 2013-01-02 22:39:21 +00:00
responsive-utilities.less Fixes #6190: Add print utility classes 2013-02-05 22:17:28 -08:00
responsive.less 2.3.1 2013-02-28 20:55:14 -08:00
scaffolding.less Basic keyboard accessibility CSS tweaks 2013-01-02 22:39:21 +00:00
sprites.less Merge branch '2.3.0-wip' of https://github.com/patrickhlauke/bootstrap into patrickhlauke-2.3.0-wip 2013-02-05 19:39:49 -08:00
tables.less Fixes #6538: Add th support to all the .table-rounded selectors 2013-01-11 23:38:53 -08:00
thumbnails.less Basic keyboard accessibility CSS tweaks 2013-01-02 22:39:21 +00:00
tooltip.less clean up styles 2013-02-05 22:29:59 -08:00
type.less Merge branch '2.3.0-wip' of https://github.com/patrickhlauke/bootstrap into patrickhlauke-2.3.0-wip 2013-02-05 19:39:49 -08:00
utilities.less Undo important on hide/show utilties; punt to 3.0 2012-12-20 13:46:07 -08:00
variables.less Fixes #6474: remove duplicate .btn border colors to make @btn-border work 2013-01-11 20:40:17 -08:00
wells.less use border-radius vars where possible 2012-10-03 09:26:52 -07:00