From a51ef9077e03d71f1d48837b951ebb33d93c27d1 Mon Sep 17 00:00:00 2001 From: Spirit Date: Mon, 21 Oct 2019 07:46:53 +0800 Subject: [PATCH] fix #116 --- functions.php | 2 +- js/sakura-app.js | 2 +- style.css | 7 ++++++- 3 files changed, 8 insertions(+), 3 deletions(-) diff --git a/functions.php b/functions.php index 6cc3f8e..2e2bfb7 100644 --- a/functions.php +++ b/functions.php @@ -548,7 +548,7 @@ function get_link_items(){ $linkcats = get_terms( 'link_category' ); if ( !empty($linkcats) ) { foreach( $linkcats as $linkcat){ - $result .= ''; + $result .= ''; if( $linkcat->description ) $result .= ''; $result .= get_the_link_items($linkcat->term_id); } diff --git a/js/sakura-app.js b/js/sakura-app.js index c959026..b86f824 100644 --- a/js/sakura-app.js +++ b/js/sakura-app.js @@ -547,7 +547,7 @@ function tableOfContentScroll(flag) { } else { if (flag) { var id = 1, - heading_fix=$("div").hasClass("pattern-attachment-img") ? -75 : 200; + heading_fix=$("article").hasClass("type-post") ? $("div").hasClass("pattern-attachment-img") ? -75 : 200 : 375; $(".entry-content , .links").children("h1,h2,h3,h4,h5").each(function() { var hyphenated = "toc-head-" + id; this.id = hyphenated; diff --git a/style.css b/style.css index d0af658..d8840ae 100644 --- a/style.css +++ b/style.css @@ -2981,10 +2981,15 @@ span.sitename { font-weight: 400; color: #6D6D6D; padding-left: 10px; - border-left: 3px solid orange; + border-left: none; margin: 50px 0 20px } +.link-title span.link-fix { + padding-left:10px; + border-left:3px solid orange; +} + .links ul li:before { content: ""; background-color: orange;