From e110fe364f0e84ab4fab11fba042168ea613d312 Mon Sep 17 00:00:00 2001 From: Kenneth Jao Date: Sat, 9 Nov 2024 20:33:35 +0800 Subject: [PATCH] Folder icon fix --- fancy-pages/css/style.css | 11 +++-------- fancy-pages/js/script.js | 2 +- 2 files changed, 4 insertions(+), 9 deletions(-) diff --git a/fancy-pages/css/style.css b/fancy-pages/css/style.css index 65a91bd..5d498ba 100644 --- a/fancy-pages/css/style.css +++ b/fancy-pages/css/style.css @@ -474,7 +474,7 @@ footer#section-footer .row { padding-left: 2.2rem; } - tbody a[href*="."]:before { + tbody a:before { background: url('../icons/file-blank.svg') left center/1.1rem no-repeat; content: ""; width: 1.5rem; @@ -515,7 +515,7 @@ footer#section-footer .row { padding-left: 3rem; } - tbody a[href*="."]:before { + tbody a:before { background: url('../icons/file-blank.svg') left center/1.1rem no-repeat; content: ""; width: 1.5rem; @@ -539,12 +539,7 @@ tbody a[href$="../"] { /* -- ICONS -- */ /* ----------- */ -tbody a[href*="/"]:after { - background: url('../icons/folder.svg') left center/1.1rem no-repeat; - content: ""; -} - -tbody a[href$="/"]:before { +tbody a[href$="/"]:before, tbody a[href*="/?"]:before { background: url('../icons/folder.svg') left center/1.1rem no-repeat; } diff --git a/fancy-pages/js/script.js b/fancy-pages/js/script.js index 9be8db9..9d80c1d 100644 --- a/fancy-pages/js/script.js +++ b/fancy-pages/js/script.js @@ -133,7 +133,7 @@ var TITLEIZE = false; function editText() { let dom = document.querySelector("#section-content .row"); dom.innerHTML = dom.innerHTML.substring(dom.innerText.substring(1).search("\n")+3); - dom = document.querySelector("tbody a[href$='../']").innerText = "Parent Directory" + dom = document.querySelector("tbody a[href*='../']").innerText = "Parent Directory" } /**