added suggestion to search

This commit is contained in:
2020-04-24 00:01:04 +02:00
parent a5d72902e1
commit bb86ffac8b
7 changed files with 172 additions and 14 deletions

View File

@@ -1,12 +1,19 @@
.search-component{
text-align: center;
margin-top: 2em;
margin-bottom: 2em;
margin: 2em auto 2em auto;
width: 50%;
position: relative;
input[type=text]{
width: 40%;
width: 100%;
border: none;
padding: 0.5em 1.5em;
padding: 0.5em 1em;
box-sizing: border-box;
}
}
.suggestion-area{
position: absolute;
right: 0;
left: 0;
}
}

12
src/style/suggestion.scss Normal file
View File

@@ -0,0 +1,12 @@
.suggestion-component{
padding: 0.2em 1em;
background-color: white;
color: black;
border: 1px solid #d4d4d4;
border-top: none;
cursor: pointer;
&:hover {
background-color: #d4d4d4;
}
}