Add repo autocomplete for searching.

This commit is contained in:
Joseph Schorr 2013-09-27 19:21:54 -04:00
parent bf926aceee
commit edaad6eea2
6 changed files with 165 additions and 5 deletions

View file

@ -1,3 +1,28 @@
#repoSearch {
width: 400px;
}
.repo-mini-listing {
margin: 2px;
}
.repo-mini-listing i {
color: #aaa;
margin-right: 4px;
}
.repo-mini-listing .description {
margin-left: 20px;
color: #aaa;
font-size: 85%;
padding-top: 4px;
border-top: 1px solid #eee;
margin-top: 4px;
display: block;
overflow: hidden;
text-overflow: ellipsis;
}
.editable i {
opacity: 0.2;
font-size: 85%;
@ -146,6 +171,7 @@ p.editable:hover i {
text-decoration: none !important;
}
.repo-listing {
display: block;
margin-bottom: 20px;
@ -193,4 +219,64 @@ p.editable:hover i {
.repo .images {
margin: 10px;
}
.twitter-typeahead .tt-query,
.twitter-typeahead .tt-hint {
margin-bottom: 0;
}
.tt-dropdown-menu {
min-width: 160px;
margin-top: 2px;
padding: 5px 0;
background-color: #fff;
border: 1px solid #ccc;
border: 1px solid rgba(0,0,0,.2);
*border-right-width: 2px;
*border-bottom-width: 2px;
-webkit-border-radius: 6px;
-moz-border-radius: 6px;
border-radius: 6px;
-webkit-box-shadow: 0 5px 10px rgba(0,0,0,.2);
-moz-box-shadow: 0 5px 10px rgba(0,0,0,.2);
box-shadow: 0 5px 10px rgba(0,0,0,.2);
-webkit-background-clip: padding-box;
-moz-background-clip: padding;
background-clip: padding-box;
}
.tt-suggestion {
display: block;
padding: 3px 20px;
}
.tt-suggestion.tt-is-under-cursor {
color: #fff;
background-color: #0081c2;
background-image: -moz-linear-gradient(top, #0088cc, #0077b3);
background-image: -webkit-gradient(linear, 0 0, 0 100%, from(#0088cc), to(#0077b3));
background-image: -webkit-linear-gradient(top, #0088cc, #0077b3);
background-image: -o-linear-gradient(top, #0088cc, #0077b3);
background-image: linear-gradient(to bottom, #0088cc, #0077b3);
background-repeat: repeat-x;
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff0088cc', endColorstr='#ff0077b3', GradientType=0)
}
.tt-suggestion.tt-is-under-cursor a {
color: #fff;
}
.tt-suggestion p {
margin: 0;
}
.twitter-typeahead .tt-hint {
display: block;
height: 34px;
padding: 5px 12px;
font-size: 14px;
line-height: 1.428571429;
border: 1px solid transparent;
}