From 03929669d095430a54781fa2049f829eb30a05a4 Mon Sep 17 00:00:00 2001 From: wenjing-xin Date: Sun, 7 Jul 2024 13:36:31 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96artalk=E8=AF=84=E8=AE=BA?= =?UTF-8?q?=E6=8E=A7=E5=88=B6=E4=B8=AD=E5=BF=83=E7=9A=84=E9=9D=A2=E6=9D=BF?= =?UTF-8?q?=E4=BD=8D=E7=BD=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../halo/artalk/ArtalkStaticInject.java | 2 +- src/main/resources/static/artalkBeautify.css | 27 ++++++++++--------- 2 files changed, 16 insertions(+), 13 deletions(-) diff --git a/src/main/java/xin/wenjing/halo/artalk/ArtalkStaticInject.java b/src/main/java/xin/wenjing/halo/artalk/ArtalkStaticInject.java index 674696f..c0030db 100644 --- a/src/main/java/xin/wenjing/halo/artalk/ArtalkStaticInject.java +++ b/src/main/java/xin/wenjing/halo/artalk/ArtalkStaticInject.java @@ -75,7 +75,7 @@ private String pubScriptInject(boolean enableLatex, String cssUrl, String jsUrl) """.formatted(version, cssUrl, jsUrl); } }else{ - return null; + return ""; } } diff --git a/src/main/resources/static/artalkBeautify.css b/src/main/resources/static/artalkBeautify.css index 0b3dc2d..67f0c5a 100644 --- a/src/main/resources/static/artalkBeautify.css +++ b/src/main/resources/static/artalkBeautify.css @@ -41,23 +41,23 @@ } .atk-sidebar-layer { - top: 10%; - left: 20%; - width: 60%; - height: 80%; + top: 10% !important; + left: 20% !important; + width: 60% !important; + height: 80% !important; transform: translateY(120%); - border-radius: 12px; - padding: 10px 0; - background: #FFF; + border-radius: 12px !important; + padding: 10px 0 !important; + background: #FFF !important; } @media only screen and (max-width: 600px) { .atk-sidebar-layer { - width: 100%; - height: 100%; - left: 0; - top: 0; - border-radius: 0 + width: 100% !important; + height: 100% !important; + left: 0 !important; + top: 0 !important; + border-radius: 0 !important } } @@ -144,3 +144,6 @@ div#post-comment { margin-left: auto; } + + +