chore: make header work better on mobile
Some checks failed
ci / ci (22, debian-trixie) (push) Has been cancelled
Some checks failed
ci / ci (22, debian-trixie) (push) Has been cancelled
This commit is contained in:
parent
63d4c0c16d
commit
d65f9b5057
1 changed files with 35 additions and 2 deletions
|
|
@ -15,7 +15,7 @@
|
||||||
<a href="#">{{ t.nav?.supportedGames }}</a>
|
<a href="#">{{ t.nav?.supportedGames }}</a>
|
||||||
<a href="#">{{ t.nav?.errorCodes }}</a>
|
<a href="#">{{ t.nav?.errorCodes }}</a>
|
||||||
<a href="#">{{ t.nav?.discordServer }}</a>
|
<a href="#">{{ t.nav?.discordServer }}</a>
|
||||||
<a href="#">{{ t.nav?.installSpbr }}</a>
|
<a href="/docs/connect">{{ t.nav?.installSpbr }}</a>
|
||||||
</nav>
|
</nav>
|
||||||
|
|
||||||
<div class="search-box">
|
<div class="search-box">
|
||||||
|
|
@ -69,6 +69,8 @@ const { t } = useLocale()
|
||||||
justify-content: space-between;
|
justify-content: space-between;
|
||||||
max-width: 1200px;
|
max-width: 1200px;
|
||||||
margin: 0 auto;
|
margin: 0 auto;
|
||||||
|
gap: 15px;
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.logo img {
|
.logo img {
|
||||||
|
|
@ -80,6 +82,7 @@ const { t } = useLocale()
|
||||||
.links {
|
.links {
|
||||||
display: flex;
|
display: flex;
|
||||||
gap: 25px;
|
gap: 25px;
|
||||||
|
flex-wrap: wrap;
|
||||||
}
|
}
|
||||||
|
|
||||||
.links a {
|
.links a {
|
||||||
|
|
@ -101,6 +104,8 @@ const { t } = useLocale()
|
||||||
border: 1px solid #444;
|
border: 1px solid #444;
|
||||||
border-radius: 20px;
|
border-radius: 20px;
|
||||||
padding: 4px 12px;
|
padding: 4px 12px;
|
||||||
|
flex-grow: 1;
|
||||||
|
max-width: 300px;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-box input {
|
.search-box input {
|
||||||
|
|
@ -110,7 +115,7 @@ const { t } = useLocale()
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
color: #eee;
|
color: #eee;
|
||||||
background: transparent;
|
background: transparent;
|
||||||
width: 150px;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
.search-btn {
|
.search-btn {
|
||||||
|
|
@ -136,4 +141,32 @@ const { t } = useLocale()
|
||||||
color: #fff;
|
color: #fff;
|
||||||
transform: scale(1.1);
|
transform: scale(1.1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (max-width: 768px) {
|
||||||
|
.container {
|
||||||
|
justify-content: space-between;
|
||||||
|
}
|
||||||
|
|
||||||
|
.links {
|
||||||
|
order: 3;
|
||||||
|
width: 100%;
|
||||||
|
justify-content: center;
|
||||||
|
gap: 15px;
|
||||||
|
margin-top: 10px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-box {
|
||||||
|
max-width: 180px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (max-width: 480px) {
|
||||||
|
.links {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.search-box {
|
||||||
|
max-width: 60%;
|
||||||
|
}
|
||||||
|
}
|
||||||
</style>
|
</style>
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue