From 0847eddec17339c7627d61b3c9c274b06f61ac20 Mon Sep 17 00:00:00 2001 From: Pooya Sabramooz Date: Sat, 26 Sep 2026 10:50:59 +0330 Subject: [PATCH] fix: place the heading rule on the right for Persian and use Vazirmatn Section headings used a left border, so the accent sat on the wrong side in right-to-left pages. Logical borders follow the writing direction, and Vazirmatn is applied only when the page is RTL. --- site/assets/css/style.css | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/site/assets/css/style.css b/site/assets/css/style.css index b4949ec..c8865b9 100644 --- a/site/assets/css/style.css +++ b/site/assets/css/style.css @@ -1,3 +1,5 @@ +@import url("https://cdn.jsdelivr.net/npm/vazirmatn@33.0.3/Vazirmatn-font-face.css"); + /* ================================== Scrum Guide Expansion Pack Styles ================================== */ @@ -506,9 +508,19 @@ sup + sup { h2 { position: relative; - padding-left: 1.5rem; + padding-inline-start: 1.5rem; margin-top: 3rem; margin-bottom: 1.5rem; - border-left: 4px solid var(--bs-primary); + border-inline-start: 4px solid var(--bs-primary); padding-bottom: 0.75rem; } + +/* Vazirmatn for Persian and other right-to-left pages */ +[dir="rtl"] { + --bs-body-font-family: "Vazirmatn", Tahoma, sans-serif; + --bs-font-sans-serif: "Vazirmatn", Tahoma, sans-serif; +} + +[dir="rtl"] body { + font-family: "Vazirmatn", Tahoma, sans-serif; +}