提交 4e5396e3 编写于 作者: C Catouse

* improve language switcher button on document.

上级 66a4e4b9
......@@ -4455,7 +4455,7 @@ body.compact-mode #heading {
body.compact-mode #search {
position: absolute;
top: 12px;
right: 150px;
right: 220px;
left: 180px;
z-index: 1050;
max-width: 500px;
......@@ -4539,6 +4539,25 @@ body.compact-mode.compact-mode-in #compactTogger {
filter: alpha(opacity=100);
opacity: 1;
}
@media (min-width: 768px) {
body.compact-mode.compact-mode-in #langSwitcher > a {
padding: 10px 0!important;
}
[lang="zh-cn"] body.compact-mode.compact-mode-in #langSwitcher > a {
width: 50px!important;
}
body.compact-mode.compact-mode-in #langSwitcher > a > .icon {
display: none;
}
body.compact-mode.compact-mode-in #langSwitcher > a > span {
display: inline-block !important;
padding: 0 3px;
line-height: 20px;
color: #3280fc;
background: #fff;
border-radius: 5px;
}
}
body.compact-mode.compact-mode-in #header {
height: 60px;
padding: 0;
......@@ -4951,7 +4970,7 @@ body[data-page="basic-theme"] .path-btn > .path-1:after {
#changeViewWrapper {
display: none;
}
@media (min-width: 1200px) {
@media (min-width: 1280px) {
#changeViewWrapper {
position: fixed;
top: 14px;
......
因为 它太大了无法显示 source diff 。你可以改为 查看blob
......@@ -38,7 +38,7 @@
<li><a title="Learn more about ZenTao" href="http://zui.5upm.com/product-browse-2.html" target="_blank"><i class="icon icon-lightbulb"></i><span> Project</span></a></li>
<li><a title="Forum" href="http://forum.zui.sexy/forum/" target="_blank"><i class="icon icon-comments-alt"></i><span> Forum</span></a></li>
<li><a title="Star ZUI on GitHub" href="https://github.com/easysoft/zui" target="_blank"><i class="icon icon-github"></i><span> Star</span></a></li>
<li><a title="Switch language" href="../"><i class="icon icon-globe"></i><span> 中文</span></a></li>
<li id="langSwitcher"><a title="Switch language" href="../"><i class="icon icon-globe"></i><span> 中文</span></a></li>
</ul>
</nav>
</div>
......@@ -53,7 +53,7 @@
<a href="#basic/download" class="btn btn-white btn-lg">Quick Start<i class="icon icon-hand-right"></i></a>
<p><small>Latest Version <span class="format-pkg" data-fmt-text="{version}"><i class='icon icon-spin icon-spinner-indicator'></i></span> &nbsp; <a title="Update log" style="color: #f1f1f1" href="#learn/newly">Update Log</a> &nbsp; <a style="color: #f1f1f1" href="https://github.com/easysoft/zui/archive/master.zip" target="_blank">Source Code</a></small></p>
</div>
<p><span data-toggle="tooltip" data-html="true" title="Please add reason for joining the group, <br>or enter a secret code: ZUI is sexy">QQ Group:127535859</span> &nbsp; <a href="http://forum.zui.sexy/forum/" style="color: #f1f1f1" target="_blank"><i class="icon icon-comments-alt"></i> Forum</a></p>
<p><span data-toggle="tooltip" data-html="true" title="Please add reason for joining the group, &lt;br&gt;or enter a secret code: ZUI is sexy">QQ Group:127535859</span> &nbsp; <a href="http://forum.zui.sexy/forum/" style="color: #f1f1f1" target="_blank"><i class="icon icon-comments-alt"></i> Forum</a></p>
</div>
<div id="search">
<div id="searchForm">
......@@ -295,14 +295,5 @@
<!-- Statistic -->
<div class="hide"><script src="//s95.cnzz.com/stat.php?id=1253026255&web_id=1253026255"></script></div>
<script>
(function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
(i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
})(window,document,'script','//www.google-analytics.com/analytics.js','ga');
ga('create', 'UA-53781622-1', 'auto');
ga('send', 'pageview');
</script>
</body>
</html>
......@@ -38,7 +38,7 @@
<li><a title="了解禅道项目" href="http://zui.5upm.com/product-browse-2.html" target="_blank"><i class="icon icon-lightbulb"></i><span> 项目</span></a></li>
<li><a title="论坛" href="http://forum.openzui.com/forum/" target="_blank"><i class="icon icon-comments-alt"></i><span> 论坛</span></a></li>
<li><a title="在Github上Star项目" href="https://github.com/easysoft/zui" target="_blank"><i class="icon icon-github"></i><span> Star</span></a></li>
<li><a title="Switch language" href="./en/"><i class="icon icon-globe"></i><span> English</span></a></li>
<li id='langSwitcher'><a title="Switch language" href="./en/"><i class="icon icon-globe"></i><span> English</span></a></li>
</ul>
</nav>
</div>
......@@ -53,7 +53,7 @@
<a href="#basic/download" class="btn btn-white btn-lg">快速上手 <i class="icon icon-hand-right"></i></a>
<p><small>最新版本 <span class="format-pkg" data-fmt-text="{version}"><i class='icon icon-spin icon-spinner-indicator'></i></span> &nbsp; <a title="更新日志" style="color: #f1f1f1" href="#learn/newly">更新日志</a> &nbsp; <a style="color: #f1f1f1" href="https://github.com/easysoft/zui/archive/master.zip" target="_blank">下载源码</a></small></p>
</div>
<p><span data-toggle="tooltip" data-html="true" title="加群请注明加群缘由,<br>或者使用暗号:ZUI is sexy">QQ群:127535859</span> &nbsp; <a href="http://forum.openzui.com/forum/" style="color: #f1f1f1" target="_blank"><i class="icon icon-comments-alt"></i> 论坛</a></p>
<p><span data-toggle="tooltip" data-html="true" title="加群请注明加群缘由,&lt;br&gt;或者使用暗号:ZUI is sexy">QQ群:127535859</span> &nbsp; <a href="http://forum.openzui.com/forum/" style="color: #f1f1f1" target="_blank"><i class="icon icon-comments-alt"></i> 论坛</a></p>
</div>
<div id="search">
<div id="searchForm">
......
......@@ -1914,7 +1914,7 @@ body.compact-mode {
top: 12px;
z-index: 1050;
max-width: 500px;
right: 150px;
right: 220px;
}
#searchInput {
border-width: 1px;
......@@ -1985,6 +1985,25 @@ body.compact-mode {
.opacity(1);
top: 1px;
}
@media (min-width: 768px) {
#langSwitcher > a {
padding: 10px 0!important;
[lang="zh-cn"] & {
width: 50px!important;
}
> .icon {display: none}
> span {
display: inline-block!important;
background: #fff;
color: @color-primary;
line-height: 20px;
padding: 0 3px;
border-radius: 5px;
}
}
}
#header {
height: 60px;
padding: 0;
......@@ -2186,7 +2205,7 @@ body[data-page="basic-theme"] {
#changeViewWrapper {display: none}
@media (min-width: 1200px) {
@media (min-width: 1280px) {
#changeViewWrapper {
display: block;
position: fixed;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册