From daed1faf1491c3638bf3099bca24b0b032bc6e58 Mon Sep 17 00:00:00 2001 From: Fabien POLLY Date: Sun, 14 Dec 2025 03:54:03 +0100 Subject: [PATCH] refactor: Adjust UI styling by removing image borders and paragraph margin, update markdown line break handling, and refine mobile menu/TOC opening logic. --- index.html | 14 +++++++------- wiki/01_General/Introduction.md | 8 +------- 2 files changed, 8 insertions(+), 14 deletions(-) diff --git a/index.html b/index.html index 49408e0..57b2ba7 100644 --- a/index.html +++ b/index.html @@ -161,7 +161,7 @@ } .markdown-body p { - margin-bottom: 1.25rem; + /* margin-bottom: 1.25rem; */ line-height: 1.7; } @@ -249,7 +249,6 @@ .markdown-body img { max-width: 100%; border-radius: 8px; - border: 1px solid var(--border-color); cursor: zoom-in; transition: transform 0.2s; } @@ -598,7 +597,7 @@
:: JOIN US :: -
+
@@ -714,8 +713,7 @@ }; marked.use({ renderer }); - marked.setOptions({ breaks: true, gfm: true }); - + marked.setOptions({ breaks: false, gfm: true }); const STATE = { wikiData: {}, contentCache: {}, @@ -1393,8 +1391,8 @@ const overlay = document.getElementById('overlay'); function openMenu() { - closeTOC(); // Close TOC if open sidebar.classList.remove('-translate-x-full'); + closeTOC(); // Close TOC if open overlay.classList.remove('hidden'); setTimeout(() => overlay.classList.remove('opacity-0'), 10); } @@ -1408,8 +1406,8 @@ const list = document.getElementById('mobile-toc-list'); if (!list.hasChildNodes() || list.innerHTML.includes('No sections')) return; - closeMenu(); // Close Menu if open tocSidebar.classList.remove('translate-x-full'); + closeMenu(); // Close Menu if open overlay.classList.remove('hidden'); setTimeout(() => overlay.classList.remove('opacity-0'), 10); } @@ -1486,6 +1484,8 @@ const t = e.changedTouches[0]; touchStartX = t.clientX; touchStartY = t.clientY; + touchEndX = t.clientX; + touchEndY = t.clientY; }); document.addEventListener("touchmove", (e) => { diff --git a/wiki/01_General/Introduction.md b/wiki/01_General/Introduction.md index d3d1d7a..d024609 100644 --- a/wiki/01_General/Introduction.md +++ b/wiki/01_General/Introduction.md @@ -1,11 +1,5 @@ # thumbnail_IMG_0546 Bjorn - -![Python](https://img.shields.io/badge/Python-3776AB?logo=python&logoColor=fff) -![Status](https://img.shields.io/badge/Status-Development-blue.svg) -[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) - -[![Reddit](https://img.shields.io/badge/Reddit-Bjorn__CyberViking-orange?style=for-the-badge&logo=reddit)](https://www.reddit.com/r/Bjorn_CyberViking) -[![Discord](https://img.shields.io/badge/Discord-Join%20Us-7289DA?style=for-the-badge&logo=discord)](https://discord.com/invite/B3ZH9taVfT) +![Python](https://img.shields.io/badge/Python-3776AB?logo=python&logoColor=fff) ![Status](https://img.shields.io/badge/Status-Development-blue.svg) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://opensource.org/licenses/MIT) [![Reddit](https://img.shields.io/badge/Reddit-Bjorn__CyberViking-orange?style=for-the-badge&logo=reddit)](https://www.reddit.com/r/Bjorn_CyberViking) [![Discord](https://img.shields.io/badge/Discord-Join%20Us-7289DA?style=for-the-badge&logo=discord)](https://discord.com/invite/B3ZH9taVfT)

thumbnail_IMG_0546