This commit is contained in:
Janis
2023-01-02 19:04:43 +01:00
parent 618b300bef
commit 6ed3cc22f3
3 changed files with 80 additions and 3 deletions

View File

@@ -112,6 +112,10 @@
}
}
&:focus-within + .searchResults {
display: block;
}
input {
width: 300px;
height: 30px;
@@ -134,6 +138,44 @@
}
}
}
.searchResults {
display: none;
position: absolute;
top: 48px;
&:hover {
display: block;
}
@media (max-width: $nav-breakpoint-2) {
top: 94px;
}
.content {
background-color: rgb(18, 18, 18);
width: 335px;
a {
text-decoration: none;
display: block;
width: 100%;
padding: 5px 10px 5px 10px;
float: none;
border-left: 2px solid transparent;
transition: all 50ms linear;
text-overflow: ellipsis;
font-size: 0.8em;
&:hover {
border-color: var(--color-accent);
background-color: rgba(41, 41, 41, 0.2);
}
}
@media (max-width: $nav-breakpoint-4) {
width: 235px;
}
}
}
}
.containerRight {