add front-part of autocompleter function

This commit is contained in:
Thomas Pointhuber 2014-03-19 20:19:44 +01:00
parent ce08abe223
commit ecd293c8a9
7 changed files with 598 additions and 0 deletions

View file

@ -0,0 +1,57 @@
ul {
&.autocompleter-choices {
position: absolute;
margin: 0;
padding: 0;
list-style: none;
border: 1px solid #7c7c7c;
border-left-color: #c3c3c3;
border-right-color: #c3c3c3;
border-bottom-color: #ddd;
background-color: #fff;
text-align: left;
font-family: Verdana, Geneva, Arial, Helvetica, sans-serif;
z-index: 50;
background-color: #fff;
li {
position: relative;
margin: -2px 0 0 0;
padding: 0.2em 1.5em 0.2em 1em;
display: block;
float: none !important;
cursor: pointer;
font-weight: normal;
white-space: nowrap;
font-size: 1em;
line-height: 1.5em;
&.autocompleter-selected {
background-color: #444;
color: #fff;
span.autocompleter-queried {
color: #9FCFFF;
}
}
}
span.autocompleter-queried {
display: inline;
float: none;
font-weight: bold;
margin: 0;
padding: 0;
}
}
}
.autocompleter-loading {
background-image: url(images/spinner.gif);
background-repeat: no-repeat;
background-position: right 50%;
}
textarea.autocompleter-loading {
background-position: right bottom;
}

View file

@ -8,6 +8,10 @@
@import "mixins.less";
// Autocompleter
@import "autocompleter.less";
// Main LESS-Code
html {
@ -574,3 +578,24 @@ tr {
color: @color-settings-return-font;
}
}
/*#search_autocompleter {
border: 1px solid #3498DB;
position: absolute;
top: 43px;
width:100%;
background:#FFF;
z-index:2;
p {
border-bottom: 1px solid #ccc;
}
}*/
/*#search_input {
position: relative;
}
#search_form {
}*/