From 354b9082e46eb8d920e89ac561c1ef607b8b18c5 Mon Sep 17 00:00:00 2001 From: xaoxuu Date: Sat, 23 Feb 2019 21:57:05 +0800 Subject: [PATCH] update --- _config.yml | 2 +- layout/_partial/meta.ejs | 3 +++ source/less/_main.less | 10 ++++++++-- source/less/_normalize.less | 1 + 4 files changed, 13 insertions(+), 3 deletions(-) diff --git a/_config.yml b/_config.yml index 22e135c..7a8e6aa 100755 --- a/_config.yml +++ b/_config.yml @@ -8,7 +8,7 @@ info: name: Material X docs: https://xaoxuu.com/wiki/material-x/ # 主题的CDN地址。如需启用CDN,请在主目录的config中设置,详见文档。 - cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.2.23/ + cdn: https://cdn.jsdelivr.net/gh/xaoxuu/cdn-material-x@19.2.24/ ############################### 主题样式 ############################### diff --git a/layout/_partial/meta.ejs b/layout/_partial/meta.ejs index 374e93b..5879702 100644 --- a/layout/_partial/meta.ejs +++ b/layout/_partial/meta.ejs @@ -10,6 +10,9 @@ aplayer_server: post.music.server, aplayer_type: post.music.type, aplayer_id: post.music.id, aplayer_volume: '0.7', aplayer_autoplay: false }) %> <% } %> + <% if(post.logo && post.logo.length){ %> + + <% } %>
<% if(isPostList){ %>

diff --git a/source/less/_main.less b/source/less/_main.less index 3dbc15c..25af80e 100755 --- a/source/less/_main.less +++ b/source/less/_main.less @@ -292,7 +292,7 @@ margin-bottom: 0.5*@gap; } font-size: @fontsize_small * .95; - .aplayer{ + .aplayer,.logo{ .enable-trans(); width: 65px; height: 65px; @@ -313,7 +313,13 @@ } } } - + .logo{ + border-radius: 4px; + &:hover { + border-radius: 4px; + transform: scale(1.1) rotate(4deg); + } + } .title { // left: 0; text-align: @text_align_h1; diff --git a/source/less/_normalize.less b/source/less/_normalize.less index cab558a..0c9bcd6 100755 --- a/source/less/_normalize.less +++ b/source/less/_normalize.less @@ -427,6 +427,7 @@ table { } td, th { + text-align: justify; padding: 4px 8px; border: 1px solid @theme_background; }