update theme

i18n
xaoxuu 6 years ago
parent ab00a4bace
commit e051b21f6c
  1. 32
      layout/_widget/links.ejs
  2. 7
      source/less/_defines.less

@ -1,15 +1,17 @@
<section class='m_widget links'>
<div class='header'><i class="fa fa-link fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;友链</div>
<div class='content'>
<ul class="entry" id="links">
<% ((config.materialx && (config.materialx.widgets_links||[])) || (theme.materialx.widgets_links||[])).forEach(function(item){ %>
<li><a class="flat-box" target="_blank" rel="external nofollow noopener noreferrer" href="<%= url_for(item.url) %>">
<div class='name'>
<i class="fa fa-user-circle-o" aria-hidden="true"></i>
&nbsp;&nbsp;<%= item.name %>
</div>
</a></li>
<% }) %>
</ul>
</div>
</section>
<% if (config.materialx && (config.materialx.widgets_links)){ %>
<section class='m_widget links'>
<div class='header'><i class="fa fa-link fa-fw" aria-hidden="true"></i>&nbsp;&nbsp;友链</div>
<div class='content'>
<ul class="entry" id="links">
<% (config.materialx && (config.materialx.widgets_links||[])).forEach(function(item){ %>
<li><a class="flat-box" target="_blank" rel="external nofollow noopener noreferrer" href="<%= url_for(item.url) %>">
<div class='name'>
<i class="fa fa-user-circle-o" aria-hidden="true"></i>
&nbsp;&nbsp;<%= item.name %>
</div>
</a></li>
<% }) %>
</ul>
</div>
</section>
<% } %>

@ -68,19 +68,21 @@
// 网页背景
@theme-bg-main: #EFEFEF;
// 导航栏背景(主题色)
@theme-bg-header: @ax-light-red;
@theme-bg-header: #ccc;
// 卡片背景
@theme-bg-card: #FFF;
// 代码块的背景色
@theme-bg-code: #F5F5F5;
// 引用的颜色 和 分类、归档的 hover 时颜色
@theme-bg-quote: @theme-bg-header;
@theme-bg-quote: @ax-light-red;
// 标题文字颜色(h1/h2)
@theme-text-header: darken(@theme-bg-header, 0%);
@theme-text-header: @ax-light-red;
// 链接颜色
@theme-text-link: @ax-blue;
// 链接高亮颜色
@theme-text-highlight: @mac-minimize;
@theme-text-highlight: @ax-light-red;
// 在主题色中显示的文本(白或深灰)
@theme-text-in-header: white;
@theme-text-main: @dark;
@ -89,6 +91,7 @@
// @theme-bg-main: #444;
// @theme-bg-card: lighten(@theme-bg-main, 10%);
// @theme-bg-code: #555555;
@theme-text-in-header: @dark;
// @theme-text-main: @light;
// 自定义主题色 <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<

Loading…
Cancel
Save