Add search, query url based state

Still need to wire up the mod and cell data to the search.
This commit is contained in:
2022-01-24 00:59:36 -05:00
parent dbec8def39
commit b263c6b0cb
9 changed files with 595 additions and 342 deletions

View File

@@ -0,0 +1,46 @@
.search-bar {
position: fixed;
top: 8px;
width: 150px;
left: calc(50% - 75px);
z-index: 2;
}
.search-bar.search-bar-focused {
width: max(40vw, 250px);
left: calc(50% - max(20vw, 125px));
}
.search-bar input {
width: 150px;
border-radius: 8px;
padding-left: 8px;
padding-right: 8px;
}
.search-bar.search-bar.search-bar-focused input {
width: max(40vw, 250px);
border-radius: 8px;
padding-left: 8px;
padding-right: 8px;
}
.search-results {
background-color: white;
margin-top: 4px;
padding: 4px;
list-style-type: none;
border-radius: 8px;
width: 100%;
}
.search-results li {
padding-top: 2px;
padding-bottom: 2px;
border-top: 1px solid #222222;
cursor: pointer;
}
.search-results li:first-child {
border-top: none;
}

View File

@@ -20,6 +20,8 @@
left: 0;
height: 45%;
width: 100%;
border-right: none;
border-top: 1px solid #222222;
}
}