Extract search bar into a standalone component and fix header design.
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
:host {
|
||||
$borderRadiusValue: 10em;
|
||||
position: relative;
|
||||
flex-direction: row;
|
||||
align-items: center;
|
||||
|
||||
form {
|
||||
display: flex;
|
||||
|
||||
input {
|
||||
flex: 1;
|
||||
border-radius: $borderRadiusValue;
|
||||
background-color: white;
|
||||
border: solid 1px #ddd;
|
||||
padding: .2em 2.7em .2em 1em;
|
||||
height: 2em;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
button {
|
||||
position: absolute;
|
||||
display: flex;
|
||||
align-items: center;
|
||||
border-radius: $borderRadiusValue;
|
||||
background-color: white;
|
||||
border: none;
|
||||
top: .4em;
|
||||
right: 0;
|
||||
color: #aaaaaa;
|
||||
|
||||
&:hover {
|
||||
background-color: #eee;
|
||||
cursor: pointer;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user