mirror of
https://github.com/actix/actix-website
synced 2024-11-23 16:31:08 +01:00
add language option at nav
This commit is contained in:
parent
2900da086c
commit
1cd36888c2
@ -159,7 +159,7 @@
|
||||
<div class="jumbotron">
|
||||
<div class="actix-jumbotron">
|
||||
<img src="/img/logo-large.png" class="align-middle actix-logo" alt="">
|
||||
<p class="lead">Rust的actor系统和有趣的web框架</p>
|
||||
<p class="lead">Rust强大的actor系统和有趣的web框架</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -42,6 +42,13 @@
|
||||
<li class="nav-item">
|
||||
<a class="nav-link" href="/code/">Code</a>
|
||||
</li>
|
||||
<li class="nav-item" id="language">
|
||||
<div id="lang">EN</div>
|
||||
<ul class="subitem">
|
||||
<li class="submenu-item"><a href="https://actix.rs">English</a></li>
|
||||
<li class="submenu-item"><a href="https://actix.rs/cn">中文</a> </li>
|
||||
</ul>
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
</nav>
|
||||
|
@ -169,8 +169,19 @@ img {
|
||||
line-height: 60px;
|
||||
height: 60px;
|
||||
padding-top: 0;
|
||||
list-style: none;
|
||||
}
|
||||
.navbar-nav #language ul {
|
||||
display: none;
|
||||
}
|
||||
.navbar-nav #language:hover .subitem {
|
||||
margin: -1rem 0 0 -6.6rem;
|
||||
display: block;
|
||||
background-color: #e8f9fc;
|
||||
}
|
||||
.navbar-nav #language ul li {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.doctoggle {
|
||||
margin: -1rem 0 2rem 0;
|
||||
display: none;
|
||||
@ -560,6 +571,11 @@ h5:hover a {
|
||||
.actix-footer-social a .fa-github {
|
||||
margin-right: 1rem;
|
||||
}
|
||||
.navbar-nav #language:hover .subitem {
|
||||
margin: 0 -2rem 0 -1rem;
|
||||
display: block;
|
||||
background-color: #e8f9fc;
|
||||
}
|
||||
}
|
||||
@media (min-width: 480px) and (max-width: 576px) {
|
||||
header .nav {
|
||||
|
Loading…
Reference in New Issue
Block a user