i18n
xaoxuu 6 years ago
parent ffa92dfe56
commit e440ae42ae
  1. 4
      _config.yml
  2. 2
      layout/_partial/header.ejs
  3. 2
      layout/links.ejs
  4. 2
      source/less/_header.less
  5. 6
      source/less/_links.less
  6. 3
      source/less/_main.less
  7. 2
      source/less/_toc.less
  8. 4
      source/less/_widget.less

@ -85,12 +85,12 @@ widgets:
categories: categories:
enable: true enable: true
icon: fas fa-folder-open icon: fas fa-folder-open
title: "文分类" title: "文分类"
# 显示文章标签 # 显示文章标签
tagcloud: tagcloud:
enable: true enable: true
icon: fas fa-tags icon: fas fa-tags
title: "文章标签" title: "热门标签"
# 显示音乐播放器 # 显示音乐播放器
music: music:
enable: true enable: true

@ -51,7 +51,7 @@
<% if (config.nav_menu) { %> <% if (config.nav_menu) { %>
<% (config.nav_menu || []).forEach(function(value){ %> <% (config.nav_menu || []).forEach(function(value){ %>
<li> <li>
<a id="<%= url_for(value.url).replace(/\/|%/g, "")?url_for(value.url).replace(/\/|%/g, ""):"home" %>" class="nav flat-btn" href="<%= url_for(value.url) %>"> <a id="<%= url_for(value.url).replace(/\/|%/g, "")?url_for(value.url).replace(/\/|%/g, ""):"home" %>" class="nav flat-box" href="<%= url_for(value.url) %>">
<i class='<%=value.icon%> fa-fw'></i>&nbsp;<%=value.name%> <i class='<%=value.icon%> fa-fw'></i>&nbsp;<%=value.name%>
</a> </a>
</li> </li>

@ -15,7 +15,7 @@
<%} %> <%} %>
<div class='friend-content'> <div class='friend-content'>
<% (group.items||[]).forEach(function(item){ %> <% (group.items||[]).forEach(function(item){ %>
<a class='friend-card' style='background:<%= item.backgroundColor %>; color:<%= item.textColor %>' <a class='friend-card float-btn' style='background:<%= item.backgroundColor %>; color:<%= item.textColor %>'
target="_blank" rel="external nofollow noopener noreferrer" href='<%= url_for(item.url) %>'> target="_blank" rel="external nofollow noopener noreferrer" href='<%= url_for(item.url) %>'>
<div class='friend-left'> <div class='friend-left'>
<img class='avatar' src='<%= url_for(item.avatar ? item.avatar : "https://img.vim-cn.com/a4/87a96e2e01b1180bba1e76e190df5220378c1a.png") %>'/> <img class='avatar' src='<%= url_for(item.avatar ? item.avatar : "https://img.vim-cn.com/a4/87a96e2e01b1180bba1e76e190df5220378c1a.png") %>'/>

@ -287,7 +287,7 @@
padding: 8px @gap+6px; padding: 8px @gap+6px;
} }
position: fixed; position: fixed;
top: @height_navbar + 2*@gap; top: @height_navbar + @gap;
right: 0; right: 0;
width: ~"calc(100% - 2*@{gap})"; width: ~"calc(100% - 2*@{gap})";
z-index:9999 + 1; z-index:9999 + 1;

@ -21,6 +21,10 @@
@media(max-width: @on_phone){ @media(max-width: @on_phone){
width: 100%; width: 100%;
} }
&.float-btn{
padding: @gap/2;
text-align: left;
}
&:hover{ &:hover{
text-decoration: none; text-decoration: none;
box-shadow: @boxshadow_card_raised, 0 32px 64px 0px rgba(0, 0, 0, 0.1); box-shadow: @boxshadow_card_raised, 0 32px 64px 0px rgba(0, 0, 0, 0.1);
@ -40,7 +44,7 @@
} }
.friend-right{ .friend-right{
flex: 1; flex: 1;
margin: @gap @gap @gap 0; margin: @gap @gap @gap 6px;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
justify-content: space-around; justify-content: space-around;

@ -193,8 +193,7 @@
margin-bottom: -1.5*@gap; margin-bottom: -1.5*@gap;
} }
@media(max-width:@on_phone) { @media(max-width:@on_phone) {
padding-left: 0; padding: 0 0 @gap 0;
padding-right: 0;
} }
} }
.post { .post {

@ -47,7 +47,7 @@
@media(max-width: @on_phone){ @media(max-width: @on_phone){
position: fixed; position: fixed;
width: ~"calc(100% - 2 * @{gap})"; width: ~"calc(100% - 2 * @{gap})";
top: @height_navbar + @gap; top: @height_navbar;
left: @gap; left: @gap;
box-shadow: @boxshadow_card_raised; box-shadow: @boxshadow_card_raised;
display: none; display: none;

@ -95,6 +95,10 @@
&#author{ &#author{
.enable-trans(); .enable-trans();
@media(max-width: @on_phone){
box-shadow: none;
background: @theme_background;
}
h2{ h2{
text-align: center; text-align: center;
// color: @color_text_header; // color: @color_text_header;

Loading…
Cancel
Save