From bfcecd209bad79da86e361d6c291ce2161fe50a7 Mon Sep 17 00:00:00 2001 From: Seaton Jiang Date: Sat, 21 Aug 2021 18:08:33 +0800 Subject: [PATCH] fix: config error in lightgallery (#417) --- assets/js/kratos.js | 2 +- style.css | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/assets/js/kratos.js b/assets/js/kratos.js index 13d17e0..550a2e1 100644 --- a/assets/js/kratos.js +++ b/assets/js/kratos.js @@ -167,7 +167,7 @@ var lightGalleryConfig = function () { lightGallery(document.getElementById('lightgallery'), { - selector: 'a' + selector: 'a[href$=".jpg"], a[href$=".jpeg"], a[href$=".png"], a[href$=".gif"], a[href$=".bmp"], a[href$=".webp"]' }) } diff --git a/style.css b/style.css index 8d26118..e90f328 100644 --- a/style.css +++ b/style.css @@ -27,7 +27,7 @@ License URI: https://github.com/vtrois/kratos/blob/main/LICENSE 7. 文章正文 8. 内容工具区 9. 文章评论 - 10. 小工具 + 10. 小工具 11. 404 12. 页脚 @@ -1318,6 +1318,10 @@ ol { padding: 5px 15px; } +.lg-outer { + z-index: 999999; +} + @media screen and (max-width: 768px) { .k-main .details .article .header { padding: 0 16px 12px;