how to make semantic ui framework "right-to-left" supported ? is there anyway to make it rtl support in installing steps or not ?
相关问题
- Adding a timeout to a render function in ReactJS
-
Why does the box-shadow property not apply to a
- Add animation to jQuery function Interval
- jQuery hover to slide?
- Issue with star rating css
You can enable RTL support under the following scenarios:
1. Fresh Installation
go to the document root of your project and install semantic-ui through npm
modify semantic.json file in document root to enable right to left support as following:
in your terminal change directory to semantic directory
run the following gulp task to build all files and save it to destination folder
gulp will auto-detect the RTL support and build the RTL version of css files and save them in dist folder, now a very important final step is to reference the RTL version of semantic-ui css file in your index.html or web page as following:
2. Existing Installation
in your terminal change directory to semantic directory
Clean the destination folder using the gulp task provided by semantic-ui framework
modify semantic.json file in document root to enable right to left support as following:
run the following gulp task to build all files and save it to destination folder
gulp will auto-detect the RTL support and build the RTL version of css files and save them in dist folder.
Now you need to replace the reference in your html page from
to
first: navigate to your project root and then fire: npm install semantic-ui --save and wait for all done.
second: edit semantic.json file (located in project root) and change "rtl": false to "rtl": true
third: navigate to semantic dir(cd semantic) and fire: gulp build and then gulp watch.
best regards Shahab Rabiei