Skip to content

muayyad-alsadi/RtlCss

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Right-to-left override CSS Generator

Copyright (c) 2014 Vision Advanced Systems

Background

Unlike my other script! which generates a replacement css file to be used instead of the original one. This script generate a CSS that is to be included beside/after the original one because it only override RTL specific styles.

How it works

given a CSS file like this

#main {background:white;text-align:left;}
.fancy-side {float:right;width:50%;}
.pretty-box {left:4px;width:50%;position:absolute;margin-right:20px;}

the output would be something like

#main {text-align:right;}
.fancy-side {float:left;}
.pretty-box {right:4px;left:auto;margin-left:20px;margin-right:0}

Usage

RtlCss.py file1.css file2.min.css

given file1.css it will generate file1.rtl.css given file2.min.css it will generate file2.rtl.css (notice that it ommit min)

About

Right-to-left override CSS Generator

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages