We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7e53575 commit 85e4badCopy full SHA for 85e4bad
3 files changed
edit
@@ -8,6 +8,7 @@
8
9
export TUTORIAL_ROOT="../$1.javascript.info"
10
export NODE_LANG="${2:-en}"
11
+export TUTORIAL_LANG=$1
12
export NODE_ENV=production
13
export TUTORIAL_EDIT=1
14
export NODE_PRESERVE_SYMLINKS=1
modules/config/webpack.js
@@ -199,7 +199,7 @@ module.exports = function () {
199
nib(),
200
function (style) {
201
style.define('lang', config.lang);
202
- style.define('rtl', ['ar','fa'].includes(config.lang));
+ style.define('rtl', ['ar','fa'].includes(process.env.TUTORIAL_LANG));
203
style.define('env', config.env);
204
}
205
]
modules/styles/blocks/body/body.styl
@@ -8,7 +8,10 @@ body
color color
background background
margin 0
+ if rtl
+ background-color green
@media print
15
body
16
color black
17
+
0 commit comments