Skip to content

Commit

Permalink
according issue #8
Browse files Browse the repository at this point in the history
  • Loading branch information
bassjobsen committed Mar 30, 2015
1 parent 70d73ff commit 358993f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 45 deletions.
43 changes: 0 additions & 43 deletions typeaheadjs.css
Original file line number Diff line number Diff line change
@@ -1,45 +1,3 @@
span.twitter-typeahead .tt-dropdown-menu {
position: absolute;
top: 100%;
left: 0;
z-index: 1000;
display: none;
float: left;
min-width: 160px;
padding: 5px 0;
margin: 2px 0 0;
list-style: none;
font-size: 14px;
text-align: left;
background-color: #ffffff;
border: 1px solid #cccccc;
border: 1px solid rgba(0, 0, 0, 0.15);
border-radius: 4px;
-webkit-box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
box-shadow: 0 6px 12px rgba(0, 0, 0, 0.175);
background-clip: padding-box;
}
span.twitter-typeahead .tt-suggestion > p {
display: block;
padding: 3px 20px;
margin-bottom: 0px;
clear: both;
font-weight: normal;
line-height: 1.42857143;
color: #333333;
white-space: nowrap;
}
span.twitter-typeahead .tt-suggestion > p:hover,
span.twitter-typeahead .tt-suggestion > p:focus {
color: #ffffff;
text-decoration: none;
outline: 0;
background-color: #428bca;
}
span.twitter-typeahead .tt-suggestion.tt-cursor {
color: #ffffff;
background-color: #428bca;
}
span.twitter-typeahead {
width: 100%;
}
Expand All @@ -55,4 +13,3 @@ span.twitter-typeahead {
.input-group.input-group-sm span.twitter-typeahead .tt-dropdown-menu {
top: 28px !important;
}

9 changes: 7 additions & 2 deletions typeaheadjs.less
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,17 @@ width: 100%;
}

.tt-suggestion > p {
&:extend(.dropdown-menu > li > a);
&:extend(.dropdown-menu > li > a);
&:hover,
&:focus {
&:extend(.dropdown-menu > .active > a);
&:extend(.dropdown-menu > .active > a);
}
}

.tt-suggestion.tt-cursor > p {
&:extend(.dropdown-menu > .active > a);
}

.input-group & {
display: block !important;
.tt-dropdown-menu {
Expand Down

1 comment on commit 358993f

@claar
Copy link
Contributor

@claar claar commented on 358993f Sep 17, 2015

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It appears this commit removes many things from typeaheadjs.css that it shouldn't, and doesn't add the new .tt-suggestion.tt-cursor > p rule to typeaheadjs.css.

Please sign in to comment.