From 138fc766d8befc435e2a4f07666e28e9f6a1afce Mon Sep 17 00:00:00 2001 From: TheVelius Date: Fri, 14 Jul 2023 16:26:44 +0330 Subject: [PATCH] Table alignment, Vazirmatn font --- modules/styles/blocks/00-variables/variables.styl | 4 ++++ modules/styles/blocks/font/font-icons.styl | 7 +++++++ modules/styles/rtl.styl | 6 +++--- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/modules/styles/blocks/00-variables/variables.styl b/modules/styles/blocks/00-variables/variables.styl index c02eac5..f2be554 100755 --- a/modules/styles/blocks/00-variables/variables.styl +++ b/modules/styles/blocks/00-variables/variables.styl @@ -55,6 +55,10 @@ font = BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica,Arial, san secondary_font = BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica,Arial, sans-serif fixed_width_font = 'Consolas', 'Lucida Console', 'Menlo', 'Monaco', monospace font_en = -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif +if isRTL + font = vazirmatn, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica,Arial, sans-serif + secondary_font = vazirmatn, BlinkMacSystemFont, -apple-system, Segoe UI, Roboto, Helvetica,Arial, sans-serif + font_en = vazirmatn, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif // Font sizes font_size_xs = 12px diff --git a/modules/styles/blocks/font/font-icons.styl b/modules/styles/blocks/font/font-icons.styl index fd7b8fe..6448b76 100755 --- a/modules/styles/blocks/font/font-icons.styl +++ b/modules/styles/blocks/font/font-icons.styl @@ -4,6 +4,13 @@ font-style normal src url('icons.woff?5') format('woff'); +if isRTL + @font-face + font-family 'vazirmatn' + font-weight normal + font-style normal + src url('/https/patch-diff.githubusercontent.com/font/vazirmatn/Vazirmatn[wght].woff2') format('woff2'); + //- not used now? @font-face font-family: 'PT Mono' diff --git a/modules/styles/rtl.styl b/modules/styles/rtl.styl index c53628c..4b834fd 100644 --- a/modules/styles/rtl.styl +++ b/modules/styles/rtl.styl @@ -1,3 +1,3 @@ -if lang=='fa' - body - background green +if isRTL + .main table th + text-align center \ No newline at end of file