From 78fe485f623d89d2eb1cadaecd49e87d1d2b6d6e Mon Sep 17 00:00:00 2001 From: Mohamed Eltayar <152964073+maltayyar2@users.noreply.github.com> Date: Mon, 1 Sep 2025 00:22:31 +0300 Subject: [PATCH] =?UTF-8?q?=D8=AA=D8=AD=D8=B3=D9=8A=D9=86=20=D9=85=D9=88?= =?UTF-8?q?=D8=AF=D9=8A=D9=88=D9=84=20am=5Fsar=5Fsymbol:=20=D8=A5=D8=B2?= =?UTF-8?q?=D8=A7=D9=84=D8=A9=20=D8=AE=D8=B7=20Tajawal=20=D9=88=D8=A7?= =?UTF-8?q?=D9=84=D8=A7=D8=AD=D8=AA=D9=81=D8=A7=D8=B8=20=D8=A8=D8=B1=D9=85?= =?UTF-8?q?=D8=B2=20=D8=A7=D9=84=D8=B1=D9=8A=D8=A7=D9=84=20=D9=81=D9=82?= =?UTF-8?q?=D8=B7?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../am_sar_symbol/static/src/css/style.css | 41 ++++++++----------- 1 file changed, 18 insertions(+), 23 deletions(-) diff --git a/odex25_base/am_sar_symbol/static/src/css/style.css b/odex25_base/am_sar_symbol/static/src/css/style.css index 5bf755d72..48619492a 100644 --- a/odex25_base/am_sar_symbol/static/src/css/style.css +++ b/odex25_base/am_sar_symbol/static/src/css/style.css @@ -1,15 +1,4 @@ -@font-face { - font-family: 'Tajawal-Regular'; - src: url('../fonts/Tajawal-Regular.eot'); - src: url('../fonts/Tajawal-Regular.eot?#iefix') format('embedded-opentype'), - url('../fonts/Tajawal-Regular.woff2') format('woff2'), - url('../fonts/Tajawal-Regular.woff') format('woff'), - url('../fonts/Tajawal-Regular.ttf') format('truetype'); - font-weight: normal; - font-style: normal; - font-display: swap; -} - +/* ===== خط رمز الريال السعودي الجديد فقط ===== */ @font-face { font-family: 'sar-symbol'; src: url('../fonts/sar-symbol.eot?ebwrxj'); @@ -22,10 +11,9 @@ font-display: block; } +/* تنسيق أيقونات الريال */ [class^="icon-sar"], [class*=" icon-sar"] { - /* use !important to prevent issues with browser extensions that change fonts */ font-family: 'sar-symbol' !important; - /* Don't use speak property as it causes lint warnings */ -webkit-font-feature-settings: 'liga'; font-feature-settings: 'liga'; font-style: normal; @@ -33,8 +21,6 @@ font-variant: normal; text-transform: none; line-height: 1; - - /* Better Font Rendering =========== */ -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; } @@ -43,17 +29,25 @@ content: "\e900"; } -/* General font settings */ -*:not(.fa):not(.oi) { - font-family: 'Tajawal-Regular', 'sar-symbol', sans-serif !important; +/* ===== دعم رمز الريال في الحقول النقدية ===== */ +.oe_currency_value, +.o_account_report_column_value, +.o_account_report_summary_value, +[data-currency="SAR"], +.o_monetary_field, +.o_field_monetary, +.o_field_monetary input, +.currency_field, +span[t-field-options*="currency"] { + font-family: inherit, 'sar-symbol' !important; } -/* Report specific elements */ +/* تقارير PDF */ .page, .header, .footer { - font-family: 'Tajawal-Regular', 'sar-symbol', sans-serif !important; + font-family: inherit, 'sar-symbol' !important; } -/* Special class for SAR amount fields */ +/* رمز العملة في الحقول */ .oe_currency_value::before, .o_account_report_column_value::before, .o_account_report_summary_value::before, @@ -66,9 +60,10 @@ width: 0; } +/* إخفاء في بعض التقارير حسب الحاجة */ body .o_content .o_account_reports_body .oe_currency_value::before, body .o_content .o_account_reports_body .o_account_report_column_value::before, body .o_content .o_account_reports_body .o_account_report_summary_value::before, body .o_content .o_account_reports_body .o_account_report_line [data-parent-id] .o_account_report_column_value::before { display: none; -} +} \ No newline at end of file