added suggestion to search
This commit is contained in:
@@ -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
12
src/style/suggestion.scss
Normal 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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user