i18n
xaoxuu 6 years ago
parent 974daf295d
commit f0a785fbff
  1. 22
      layout/_partial/archive.ejs
  2. 8
      source/less/_article.less
  3. 40
      source/less/_main.less

@ -37,18 +37,28 @@
</section> </section>
<% if (page.total > 1) { %> <% if (page.total > 1) { %>
<nav id="page-nav"> <br>
<div class="prev-next">
<div class="prev-next">
<% if (page.prev != 0) { %> <% if (page.prev != 0) { %>
<a class="prev" rel="prev" href="<%= url_for(page.prev_link) %>"> <a class="prev" rel="prev" href="<%= url_for(page.prev_link) %>">
<span class="icon icon-chevron-left"></span> <section class="post prev" >
<span class="text">PREVIOUS</span> <i class="fa fa-chevron-left" aria-hidden="true"></i>&nbsp;上一页&nbsp;
</section>
</a> </a>
<% } %> <% } %>
<p class="current">
<%= page.current%> / <%= page.total%>
</p>
<% if (page.next != 0) { %> <% if (page.next != 0) { %>
<a class="next" rel="next" href="<%= url_for(page.next_link) %>"> <a class="next" rel="next" href="<%= url_for(page.next_link) %>">
<span class="text">NEXT</span> <section class="post next">
<span class="icon icon-chevron-right"></span> &nbsp;下一页&nbsp;<i class="fa fa-chevron-right" aria-hidden="true"></i>
</section>
</a> </a>
<% } %> <% } %>
</nav>
</div>
</div>
<% } %> <% } %>

@ -287,6 +287,7 @@
} }
} }
.prev-next{ .prev-next{
width: 100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-content: flex-start; align-content: flex-start;
@ -330,15 +331,22 @@
} }
.prev{ .prev{
text-align: left; text-align: left;
margin-left: 0;
margin-right: @gap/2; margin-right: @gap/2;
border-top-right-radius: @border-radius-width;
border-bottom-right-radius: @border-radius-width;
} }
.next{ .next{
text-align: right; text-align: right;
margin-left: @gap/2; margin-left: @gap/2;
margin-right: 0;
border-top-left-radius: @border-radius-width;
border-bottom-left-radius: @border-radius-width;
} }
} }
} }
/* Tomorrow Night Eighties Theme */ /* Tomorrow Night Eighties Theme */
/* Original theme - https://github.com/chriskempson/tomorrow-theme */ /* Original theme - https://github.com/chriskempson/tomorrow-theme */
/* http://jmblog.github.com/color-themes-for-google-code-highlightjs */ /* http://jmblog.github.com/color-themes-for-google-code-highlightjs */

@ -140,7 +140,12 @@
padding-right: @gap; padding-right: @gap;
width:~"calc(100% - 0 * @{gap})"; width:~"calc(100% - 0 * @{gap})";
} }
.auto-padding {
padding-left: @gap;
padding-right: @gap;
border-bottom-left-radius: 0;
border-bottom-right-radius: 0;
}
} }
} }
@ -261,4 +266,37 @@
padding-right: 0; padding-right: 0;
.mobile-post(); .mobile-post();
} }
.prev-next{
width: 100%;
display: flex;
justify-content: space-between;
align-items: baseline;
color: fade(@theme-text-main, 50%);
.prev{
text-align: left;
margin-left: 0;
margin-right: @gap/2;
border-top-right-radius: 32px;
border-bottom-right-radius: 32px;
}
.next{
text-align: right;
margin-left: @gap/2;
margin-right: 0;
border-top-left-radius: 32px;
border-bottom-left-radius: 32px;
}
section{
color: fade(@theme-text-main, 80%);
padding: @gap;
border-radius: @border-radius-width;
}
@media(max-width:@on-phone) {
section{
border-radius: 0;
}
}
}
} }

Loading…
Cancel
Save