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

CSS RTL generator

by junyuecao ALL

sublime-cssrtl

Details

Installs

  • Total 1K
  • Win 882
  • Mac 135
  • Linux 99
Mar 28 Mar 27 Mar 26 Mar 25 Mar 24 Mar 23 Mar 22 Mar 21 Mar 20 Mar 19 Mar 18 Mar 17 Mar 16 Mar 15 Mar 14 Mar 13 Mar 12 Mar 11 Mar 10 Mar 9 Mar 8 Mar 7 Mar 6 Mar 5 Mar 4 Mar 3 Mar 2 Mar 1 Feb 29 Feb 28 Feb 27 Feb 26 Feb 25 Feb 24 Feb 23 Feb 22 Feb 21 Feb 20 Feb 19 Feb 18 Feb 17 Feb 16 Feb 15 Feb 14 Feb 13
Windows 0 0 0 0 0 0 0 0 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 0
Mac 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 1 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)