Skip to content

Commit

Permalink
1.2.0
Browse files Browse the repository at this point in the history
  • Loading branch information
cyfung1031 committed Oct 6, 2023
1 parent eaa949e commit f6d7b94
Show file tree
Hide file tree
Showing 4 changed files with 312 additions and 163 deletions.
16 changes: 13 additions & 3 deletions auto-complete.css
Original file line number Diff line number Diff line change
@@ -1,9 +1,19 @@
.autocomplete-suggestions {
text-align: left; cursor: default; border: 1px solid #ccc; border-top: 0; background: #fff; box-shadow: -1px 1px 3px rgba(0,0,0,.1);

/* core styles should not be changed */
position: absolute; display: none; z-index: 9999; max-height: 254px; overflow: hidden; overflow-y: auto; box-sizing: border-box;
position: absolute; /* display: none; z-index: 9999; */ max-height: 254px; overflow: hidden; overflow-y: auto; box-sizing: border-box;
left: auto; top: 100%; width: 100%; margin: 0; contain: content; /* 1.2.0 */
}
.autocomplete-suggestion { position: relative; padding: 0 .6em; line-height: 23px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 1.02em; color: #333; }
.autocomplete-suggestion b { font-weight: normal; color: #1f8dd6; }
.autocomplete-suggestion.selected { background: #f0f0f0; }

autocomplete-holder {
overflow: visible; position: absolute; left: auto; top: auto; width: 100%; height: 0; z-index: 9999; box-sizing: border-box; margin:0; padding:0; border:0; contain: size layout;
}

autocomplete-holder[position="top"] {
margin-top: 0 !important;
}
autocomplete-holder[position="top"] .autocomplete-suggestions {
transform: translateY(-100%);
}
Loading

0 comments on commit f6d7b94

Please sign in to comment.