diff --git a/README.md b/README.md
index 7a420bb55..db16412c0 100644
--- a/README.md
+++ b/README.md
@@ -1,3 +1,4 @@
+
# Tabler
A premium and open source dashboard template with a responsive and high-quality UI.
diff --git a/_config.yml b/_config.yml
index 2314f290b..4f930918a 100644
--- a/_config.yml
+++ b/_config.yml
@@ -10,6 +10,7 @@ keep_files:
- playground.html
use-iconfont: false
+rtl: false
title: Tabler
description: Premium and Open Source dashboard template with responsive and high quality UI.
diff --git a/gulpfile.js b/gulpfile.js
index e0a2d0f83..a6e3791bd 100644
--- a/gulpfile.js
+++ b/gulpfile.js
@@ -5,6 +5,7 @@ const gulp = require('gulp'),
postcss = require('gulp-postcss'),
header = require('gulp-header'),
cleanCSS = require('gulp-clean-css'),
+ rtlcss = require('gulp-rtlcss'),
minifyJS = require('gulp-minify'),
rename = require('gulp-rename'),
purgecss = require('gulp-purgecss'),
@@ -145,8 +146,9 @@ gulp.task('clean-jekyll', (cb) => {
* Compile SASS to CSS and move it to dist directory
*/
gulp.task('sass', () => {
- const g = gulp
- .src(`${srcDir}/scss/*.scss`)
+ return gulp
+ .src(`${srcDir}/scss/!(_)*.scss`)
+ .pipe(debug())
.pipe(sass({
style: 'expanded',
precision: 7,
@@ -164,19 +166,28 @@ gulp.task('sass', () => {
.pipe(gulp.dest(`${distDir}/css/`))
.pipe(browserSync.reload({
stream: true,
- }));
-
- if (BUILD) {
- g.pipe(cleanCSS())
- .pipe(rename((path) => {
- path.basename += '.min';
- }))
- .pipe(gulp.dest(`${distDir}/css/`));
- }
-
- return g;
+ }))
+ .pipe(rtlcss())
+ .pipe(rename((path) => {
+ path.basename += '.rtl';
+ }))
+ .pipe(gulp.dest(`${distDir}/css/`));
});
+/**
+ * CSS minify
+ */
+gulp.task('css-minify', function(){
+ return gulp.src(`${distDir}/css/!(*.min).css`)
+ .pipe(debug())
+ .pipe(cleanCSS())
+ .pipe(rename((path) => {
+ path.basename += '.min';
+ }))
+ .pipe(gulp.dest(`${distDir}/css/`));
+});
+
+
/**
* Compile JS files to dist directory
*/
@@ -397,6 +408,6 @@ gulp.task('clean', gulp.series('clean-dirs', 'clean-jekyll'));
gulp.task('start', gulp.series('clean', 'sass', 'js', 'build-jekyll', gulp.parallel('watch-jekyll', 'watch', 'browser-sync')));
-gulp.task('build-core', gulp.series('build-on', 'clean', 'sass', 'js', 'copy-images', 'copy-libs', 'add-banner'));
+gulp.task('build-core', gulp.series('build-on', 'clean', 'sass', 'css-minify', 'js', 'copy-images', 'copy-libs', 'add-banner'));
gulp.task('build-demo', gulp.series('build-on', 'build-jekyll', 'copy-static', 'copy-dist', 'build-cleanup', 'build-purgecss'/*, 'build-critical'*/));
gulp.task('build', gulp.series('build-core', 'build-demo'));
diff --git a/package.json b/package.json
index f5dcbc6ce..c22c34e5a 100644
--- a/package.json
+++ b/package.json
@@ -66,6 +66,7 @@
"gulp-postcss": "^9.0.0",
"gulp-purgecss": "^3.1.3",
"gulp-rename": "^2.0.0",
+ "gulp-rtlcss": "^1.4.1",
"gulp-sass": "^4.1.0",
"postcss": "^8.2.1",
"release-it": "^14.2.2",
diff --git a/src/pages/_data/docs.yml b/src/pages/_data/docs.yml
index 39ba66cc6..c50be4804 100644
--- a/src/pages/_data/docs.yml
+++ b/src/pages/_data/docs.yml
@@ -64,9 +64,6 @@ components:
progress:
title: Progress
url: docs/progress.html
- payments:
- title: Payments
- url: docs/payments.html
range-slider:
title: Range slider
url: docs/range-slider.html
@@ -122,6 +119,9 @@ plugins:
flags:
title: Flags
url: docs/flags.html
+ payments:
+ title: Payments
+ url: docs/payments.html
charts:
title: Charts
url: docs/charts.html
diff --git a/src/pages/_docs/payments.md b/src/pages/_docs/payments.md
index c554981a3..8ae7c6a03 100644
--- a/src/pages/_docs/payments.md
+++ b/src/pages/_docs/payments.md
@@ -5,7 +5,6 @@ description: The Tabler payments plug-in will let you use a set of payment provi
plugin: payments
---
-
## Payment
To create a payment provider icon, add the `payment` class to a component and specify the payment provider. The full list of payment providers can be found below.
diff --git a/src/pages/_includes/docs/plugin.html b/src/pages/_includes/docs/plugin.html
new file mode 100644
index 000000000..4d743de92
--- /dev/null
+++ b/src/pages/_includes/docs/plugin.html
@@ -0,0 +1,3 @@
+
+ Important! This part of Tabler is distributed as plugin. To enable it you should include tabler-{{ include.plugin }}.css or tabler-{{ include.plugin }}.min.css file to your page.
+
\ No newline at end of file
diff --git a/src/pages/_includes/layout/css.html b/src/pages/_includes/layout/css.html
index 5db8e818b..595730bbe 100644
--- a/src/pages/_includes/layout/css.html
+++ b/src/pages/_includes/layout/css.html
@@ -15,10 +15,10 @@
{% endfor %}
{% endif %}
-
+
{% for plugin in site.tabler-plugins %}
-
+
{% endfor %}
-
\ No newline at end of file
+
\ No newline at end of file
diff --git a/src/pages/_includes/layout/footer.html b/src/pages/_includes/layout/footer.html
index 9fb1572c7..75eb8c14e 100644
--- a/src/pages/_includes/layout/footer.html
+++ b/src/pages/_includes/layout/footer.html
@@ -11,7 +11,7 @@