Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
typeahead.js-bootstrap.css
==========================

DEPRECATED
- Updated to follow [CSS class name changes][1] in typeahead v0.10.0
- Applied [the overlay bug][2]

This project is no longer being maintained.
Supports [typeahead v0.10.0][3] and [bootstrap v3.1.0][4]


[1]: https://github.com/twitter/typeahead.js/commit/6809173331aaa2bc198a69ba95f78f50e1fa6f34
[2]: http://www.aureliomerenda.com/install-typeahead-bootstrap-3-fix-css-overlay-width-100/
[3]: https://github.com/twitter/typeahead.js/releases
[4]: https://github.com/twbs/bootstrap/releases
28 changes: 26 additions & 2 deletions typeahead.js-bootstrap.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,30 @@
margin-bottom: 0;
}

.twitter-typeahead .tt-hint {
display: block;
height: 34px;
padding: 6px 12px;
font-size: 14px;
line-height: 1.428571429;
border: 1px solid transparent;
border-radius:4px;
}
.twitter-typeahead .hint-small {
height: 30px;
padding: 5px 10px;
font-size: 12px;
border-radius: 3px;
line-height: 1.5;
}
.twitter-typeahead .hint-large {
height: 45px;
padding: 10px 16px;
font-size: 18px;
border-radius: 6px;
line-height: 1.33;
}

.tt-dropdown-menu {
min-width: 160px;
margin-top: 2px;
Expand All @@ -28,7 +52,7 @@
padding: 3px 20px;
}

.tt-suggestion.tt-is-under-cursor {
.tt-suggestion.tt-cursor {
color: #fff;
background-color: #0081c2;
background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
Expand All @@ -40,7 +64,7 @@
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0)
}

.tt-suggestion.tt-is-under-cursor a {
.tt-suggestion.tt-cursor a {
color: #fff;
}

Expand Down
4 changes: 2 additions & 2 deletions typeahead.js-bootstrap.less
Original file line number Diff line number Diff line change
Expand Up @@ -19,12 +19,12 @@
padding: 3px 20px;
}

.tt-suggestion.tt-is-under-cursor {
.tt-suggestion.tt-cursor {
color: @dropdownLinkColorHover;
#gradient > .vertical(@dropdownLinkBackgroundHover, darken(@dropdownLinkBackgroundHover, 5%));
}

.tt-suggestion.tt-is-under-cursor a {
.tt-suggestion.tt-cursor a {
color: @dropdownBackground;
}

Expand Down