Code Monkey home page Code Monkey logo

rtl-sass's Introduction

RTL-Sass

v0.0.7

http://jalproductions.co.uk/

What is it?

RTL-Sass provides mixins and functions to automatically flip your CSS styles for RTL (right-to-left) pages.

Supports flipping the following properties:

  • background
  • background-position
  • border
  • border-radius
  • clear
  • cursor
  • direction
  • float
  • left/right
  • margin
  • padding
  • text-align
  • text-indent

These mixins are for use with Sass (http://sass-lang.com/).

Usage

Coming soon...

Change log

0.0.7

  • Add support for backgrounds which have horizontal positioning set in percent (%)
  • Add support for background shorthands with 6 values
  • Add support for cursor: ne-resize, e-resize, se-resize, sw-resize, w-resize, nw-resize

0.0.6

  • Add support for backgrounds which are centred using 50% instead of center

0.0.5

  • indent properties and align values
  • add mixins margin(), padding() and border-width()
  • remove lrswap2(): no critical use case and confusing
  • $rtl has a default value
  • prefer $value and $values instead of $val, more explicit
  • tests are in a separate file

0.0.4

  • Added support for direction
  • Reorder mixins alphabetically
  • Added demo page

0.0.3

  • Sample css files
  • Added support for background, background-position, clear and text-align

0.0.2

  • Refining mixins to look more like normal CSS
  • Added support for border-radius and text-indent
  • Added a universal swap mixin that can take any property that has 4 values

0.0.1

  • Initial release
  • Support for float, padding, margin, border and position

rtl-sass's People

Contributors

kaelig avatar

Watchers

James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.