SearchInput: Add keyboard shortcuts with platform detection

This commit is contained in:
rektdeckard
2021-03-06 22:41:52 -05:00
parent 78ff8e4500
commit f598e3ab50
3 changed files with 54 additions and 7 deletions

View File

@@ -15,11 +15,15 @@
background-color: white !important;
}
.search-bar:focus-within .keys {
display: none;
}
.search-bar input {
height: 100%;
flex: 1;
border: none;
margin-left: 12px;
margin: 0 12px;
padding: 0;
font-size: 16px;
color: white;
@@ -48,6 +52,13 @@
cursor: wait;
}
.keys {
display: inline-flex;
align-items: center;
min-width: 42px;
font-size: 0.8em;
}
@media screen and (max-width: 558px) {
#search-icon {
display: none;
@@ -58,3 +69,9 @@
width: 60%;
}
}
@media screen and (min-width: 858px) and (max-width: 1100px) {
.search-bar {
flex-basis: 320px;
}
}