Skip to content

Commit 85e4bad

Browse files
committed
rtl
1 parent 7e53575 commit 85e4bad

File tree

3 files changed

+5
-1
lines changed

3 files changed

+5
-1
lines changed

edit

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
export TUTORIAL_ROOT="../$1.javascript.info"
1010
export NODE_LANG="${2:-en}"
11+
export TUTORIAL_LANG=$1
1112
export NODE_ENV=production
1213
export TUTORIAL_EDIT=1
1314
export NODE_PRESERVE_SYMLINKS=1

modules/config/webpack.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ module.exports = function () {
199199
nib(),
200200
function (style) {
201201
style.define('lang', config.lang);
202-
style.define('rtl', ['ar','fa'].includes(config.lang));
202+
style.define('rtl', ['ar','fa'].includes(process.env.TUTORIAL_LANG));
203203
style.define('env', config.env);
204204
}
205205
]

modules/styles/blocks/body/body.styl

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,10 @@ body
88
color color
99
background background
1010
margin 0
11+
if rtl
12+
background-color green
1113

1214
@media print
1315
body
1416
color black
17+

0 commit comments

Comments
 (0)