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