-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
48 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,22 +27,18 @@ Add JS onto your html | |
```html | ||
<script src="/js/autocomplete.js"></script> | ||
``` | ||
Add either raw or default CSS styles to your html | ||
(feel free to change any CSS according to your html) | ||
Add CSS onto your html. You can omit the second onw if you do not want any UI styling as in examples | ||
```html | ||
<link rel="stylesheet" href="/css/autocomplete.css"> | ||
``` | ||
If you do not want custom styling as in examples here is the css with only core styles | ||
```html | ||
<link rel="stylesheet" href="/css/autocomplete-core.css"> | ||
<link rel="stylesheet" href="/css/autocomplete-theme.css"> | ||
``` | ||
|
||
### CDN | ||
You can also use below CDN links. Feel free to change version number with respect to the releases | ||
```html | ||
<script src="https://cdn.jsdelivr.net/gh/giray123/[email protected]/js/autocomplete.js"></script> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/giray123/[email protected]/css/autocomplete.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/giray123/[email protected]/css/autocomplete-core.css"> | ||
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/giray123/[email protected]/css/autocomplete-theme.css"> | ||
``` | ||
|
||
Initialize Autocomplete object with your configurations | ||
|
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
input.ac-input-default{ | ||
width: 350px; | ||
transition: all .25s ease-out; | ||
color: #4a5568; | ||
padding: 10px 20px 10px 20px; | ||
line-height: 1.5; | ||
border-width: 1px; | ||
border-radius: .5rem; | ||
border-color: transparent; | ||
background-color: #edf2f7; | ||
font-family: sans-serif; | ||
font-size: 15px; | ||
} | ||
input.ac-input-default:focus{ | ||
outline: none; | ||
background-color: white; | ||
border: 1px solid #edf2f7; | ||
} | ||
.ac-wrapper input.ac-list-open{ | ||
border-bottom-left-radius: 0px; | ||
border-bottom-right-radius: 0px; | ||
} | ||
.ac-wrapper .ac-suggestion-list{ | ||
font-family: sans-serif; | ||
font-size: 15px; | ||
color: #4a5568; | ||
box-sizing: border-box; | ||
} | ||
.ac-wrapper .ac-suggestion-list div.autocomplete-text { | ||
padding: 10px 20px 10px 20px; | ||
line-height: 1.5; | ||
} | ||
.ac-wrapper .ac-autocomplete-clear-icon{ | ||
width: 40px; | ||
} | ||
.ac-wrapper .ac-autocomplete-loading-icon{ | ||
right: 40px; | ||
} | ||
.ac-wrapper .ac-suggestion-list div.autocomplete-mobile-icon { | ||
width: 40px; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters