This is Metronic 7 documentation!
To use most of the Metronic build tools, Node.js LTS version is required. Version 14.x LTS is recommended. Some of the plugins and framework in Metronic v7 does not support the latest Node.js version. https://nodejs.org/en/
RTL Version
Right to Left (RTL) version CSS files are included within the theme. To change it, find the "RTL Version" CSS link in the source code files.
-
Run assets compiler with
--rtl=true
flag in[metronic]/theme/html/tools
folder to generate the RTL version of CSS files.gulp --rtl=true --demo1
The target demo name must be specified in the command.
-
Find ALL CSS files import and enable the RTL files by changing the suffix name
*.rtl.css
. For example:<link href="assets/plugins/custom/fullcalendar/fullcalendar.bundle.rtl.css" rel="stylesheet" type="text/css" /> <link href="assets/plugins/global/plugins.bundle.rtl.css" rel="stylesheet" type="text/css" /> <link href="assets/plugins/custom/prismjs/prismjs.bundle.rtl.css" rel="stylesheet" type="text/css" /> <link href="assets/css/style.bundle.rtl.css" rel="stylesheet" type="text/css" /> <link href="assets/css/themes/layout/header/base/light.rtl.css" rel="stylesheet" type="text/css" /> <link href="assets/css/themes/layout/header/menu/light.rtl.css" rel="stylesheet" type="text/css" /> <link href="assets/css/themes/layout/brand/dark.rtl.css" rel="stylesheet" type="text/css" /> <link href="assets/css/themes/layout/aside/dark.rtl.css" rel="stylesheet" type="text/css" />
-
Add the direction attribute to the root HTML tag:
<html direction="rtl" dir="rtl" style="direction: rtl" >
For more information about the RTL in Angular, check it here.