Skip to content

Commit

Permalink
[webUI] Fixed wonky offset of searchbar
Browse files Browse the repository at this point in the history
also moved searchbar stuff to seperate directory
  • Loading branch information
NSPC911 committed Dec 2, 2024
1 parent 1a0d887 commit 8f0fe65
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 8 deletions.
4 changes: 2 additions & 2 deletions webUI/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div id="background-container">
</div>
<link href="../oreui-html/src/oreui.css" rel="stylesheet"/>
<link href="style.css" rel="stylesheet">
<link href="searchbar/theme.css" rel="stylesheet">
<link href="theme.css" rel="stylesheet"/>
<script src="bg.js">
</script>
Expand Down Expand Up @@ -7715,7 +7715,7 @@
</div>
</div>
</div>
<script src="searchbar.js">
<script src="searchbar/app.js">
</script>
<script src="app.js">
</script>
Expand Down
4 changes: 2 additions & 2 deletions webUI/index.html.template
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
<div id="background-container">
</div>
<link href="../oreui-html/src/oreui.css" rel="stylesheet">
<link href="style.css" rel="stylesheet"/>
<link href="searchbar/theme.css" rel="stylesheet"/>
<link href="theme.css" rel="stylesheet"/>
<script src="bg.js"></script>
<script src="../oreui-html/src/oreui.js"></script>
Expand Down Expand Up @@ -124,7 +124,7 @@
</div>
</div>
</div>
<script src="searchbar.js"></script>
<script src="searchbar/app.js"></script>
<script src="app.js">
</script>
</div>
Expand Down
File renamed without changes.
12 changes: 8 additions & 4 deletions webUI/style.css → webUI/searchbar/theme.css
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
.search-container {
margin: 0;
text-align: center;
position: relative;
height: 37.5px;
}

.search-results {
margin: 5px auto;
max-width: 80%;
padding: 10px 10px 0 10px;
padding: 13.75px 10px 0 10px;
border-radius: 5px;
position: absolute;
left: 0;
right: 0;
top: 42.5px;
z-index: 100;
&[hasmatches="true"] {
display: block;
Expand All @@ -21,7 +23,9 @@
}

#searchBar {
width: 95%;
position: absolute;
left: 0;
right: 0;
padding: 10px;
font-size: 16px;
&:focus + div[hasmatches="true"] {
Expand All @@ -41,4 +45,4 @@
margin: 0;
font-size: 14px;
}
}
}

0 comments on commit 8f0fe65

Please sign in to comment.