From 015d5670a1513e9941f3289075f53b24d9ad2b48 Mon Sep 17 00:00:00 2001 From: Cotes Chung <11371340+cotes2020@users.noreply.github.com> Date: Sun, 21 Apr 2024 00:00:50 +0800 Subject: [PATCH] refactor: reduce custom CSS --- _includes/mermaid.html | 2 +- _includes/search-results.html | 2 +- .../modules/components/search-display.js | 4 ++-- _sass/addon/commons.scss | 20 ------------------- 4 files changed, 4 insertions(+), 24 deletions(-) diff --git a/_includes/mermaid.html b/_includes/mermaid.html index a6eac8b..72dcacb 100644 --- a/_includes/mermaid.html +++ b/_includes/mermaid.html @@ -45,7 +45,7 @@ [...basicList].forEach((elem) => { const svgCode = elem.textContent; const backup = elem.parentElement; - backup.classList.add('unloaded'); + backup.classList.add('d-none'); /* create mermaid node */ let mermaid = document.createElement('pre'); mermaid.classList.add('mermaid'); diff --git a/_includes/search-results.html b/_includes/search-results.html index c224c5f..00a3182 100644 --- a/_includes/search-results.html +++ b/_includes/search-results.html @@ -1,6 +1,6 @@ -