ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

CSS RTL generator

by junyuecao ALL

sublime-cssrtl

Details

Installs

  • Total 943
  • Win 749
  • Mac 113
  • Linux 81
Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13 Feb 12 Feb 11 Feb 10 Feb 9 Feb 8 Feb 7 Feb 6 Feb 5 Feb 4 Feb 3 Feb 2 Feb 1 Jan 31 Jan 30 Jan 29 Jan 28 Jan 27 Jan 26 Jan 25 Jan 24 Jan 23 Jan 22 Jan 21 Jan 20 Jan 19 Jan 18 Jan 17 Jan 16 Jan 15 Jan 14 Jan 13 Jan 12 Jan 11 Jan 10 Jan 9 Jan 8 Jan 7 Jan 6 Jan 5
Windows 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 1 0 1 0 0 0 0 0 1 1 0 0 1 0 0 0 0 0 0 1 0 0 0 0 0 0 0 1
Mac 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

sublime-cssrtl

Generate CSS file from ltr to rtl

Generate CSS file from rtl to ltr

Usage Example:

picture

Installation

Install node module

npm install css-flip-auto -g

Install sublime text plugin

  1. From Package Control 2.Download (https://github.com/junyuecao/sublime-cssrtl/archive/master.zip) unzip to the package folder of sublime text

Exception

There are two types of exception - @noflip and @replace

@noflip

exception for single css rule

From:

p {
  /*@noflip*/ float: left;
  clear: left;
}

To:

p {
  float: left;
  clear: right;
}

Entire css selector:

From:

/*@noflip*/
p {
  float: left;
  clear: left;
}

To:

p {
  float: left;
  clear: left;
}

@replace

Replace to custom rule.

From:

p {
  /*@replace: -32px -32px*/ background-position: -32px 0;
  /*@replace: ">"*/ content: "<";
}

To:

p {
  background-position: -32px -32px;
  content: ">";
}

Support css attribute

  • background-position
  • background-position-x\n border-bottom-left-radius
  • border-bottom-right-radius
  • border-color
  • border-left
  • border-left-color
  • border-left-style
  • border-left-width
  • border-radius
  • border-right
  • border-right-color
  • border-right-style
  • border-right-width
  • border-style
  • border-top-left-radius
  • border-top-right-radius
  • border-width
  • box-shadow
  • clear
  • direction
  • float
  • left
  • margin
  • margin-left
  • margin-right
  • padding
  • padding-left
  • padding-right
  • right
  • text-align
  • transition -transition-property

Thanks to: (https://github.com/twitter/css-flip)