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 @@ -
+
{% include_cached trending-tags.html %} diff --git a/_javascript/modules/components/search-display.js b/_javascript/modules/components/search-display.js index 98a97ab..21d634e 100644 --- a/_javascript/modules/components/search-display.js +++ b/_javascript/modules/components/search-display.js @@ -14,8 +14,8 @@ const input = document.getElementById('search-input'); const hints = document.getElementById('search-hints'); // CSS class names -const LOADED = 'loaded'; -const UNLOADED = 'unloaded'; +const LOADED = 'd-block'; +const UNLOADED = 'd-none'; const FOCUS = 'input-focus'; const FLEX = 'd-flex'; diff --git a/_sass/addon/commons.scss b/_sass/addon/commons.scss index e02a79f..d08dc35 100644 --- a/_sass/addon/commons.scss +++ b/_sass/addon/commons.scss @@ -596,26 +596,6 @@ main { /* --- Effects classes --- */ -.loaded { - display: block !important; - - @at-root .d-flex#{&} { - display: flex !important; - } -} - -.unloaded { - display: none !important; -} - -.visible { - visibility: visible !important; -} - -.hidden { - visibility: hidden !important; -} - .flex-grow-1 { flex-grow: 1 !important; }