Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

We’re showing branches in this repository, but you can also compare across forks.

base fork: sickill/css2less
base: master
...
head fork: EdsonF/libcss2less
compare: master
Commits on Jan 04, 2012
Thomas PIERSON thomaspierson refactor the script into module/class 48d0fb4
Thomas PIERSON thomaspierson refactor: css2less.rb file is a module only + create script example file a34a07e
Commits on Jan 18, 2012
Thomas PIERSON thomaspierson ingore ~ temps files 58047a3
Thomas PIERSON thomaspierson fix+refactor: some errors in the new class 761e52e
Thomas PIERSON thomaspierson adaptation of the script with the new interface 23b2281
Commits on Feb 08, 2012
Thomas PIERSON thomaspierson refactor: create public methods process_less to centralize internal l…
…ib process
57c71a7
Thomas PIERSON thomaspierson update readme.md file b750cf6
Commits on Mar 13, 2012
Thomas PIERSON thomaspierson css arg in constructor can be nil e25a97c
Thomas PIERSON thomaspierson 4 spaces indents 1323ae2
Thomas PIERSON thomaspierson fix-regression: missing '\n' after join bbb4621
Thomas PIERSON thomaspierson wrong require path 38fa312
Thomas PIERSON thomaspierson process_less method should call cleanup before checks + add empty check b6a7e5d
Commits on Apr 23, 2012
Thomas PIERSON thomaspierson converter css2less library to gem format 9d0bf8c
Thomas PIERSON thomaspierson add Marcin Kulik to gemspec file + improve summary and description c973a31
Thomas PIERSON thomaspierson set gpl-3 licence on the project d0884fe
Thomas PIERSON thomaspierson rephrase the README.md file 493267a
Commits on May 07, 2012
David Authier Awea Add simple usage in README f85a49c
Commits on May 09, 2012
Thomas PIERSON thomaspierson Merge pull request #9 from Awea/master
Add simple usage to README
1d20896
Commits on Feb 02, 2013
Thomas PIERSON thomaspierson ignore .project files fbbe317
Thomas PIERSON thomaspierson cleanup: reformat using ruby conventions (Brian I hear you) 7f16d3c
Thomas PIERSON thomaspierson convert the gem to rubygem-tasks structure + use rdoc and rspec 63a7f47
Commits on Feb 03, 2013
Thomas PIERSON thomaspierson implement new rspec test: 'should convert basic css structure into le…
…ss structure'
fd29a36
Thomas PIERSON thomaspierson correctly handle css child selectors ( fix #12 ) 78d7735
Thomas PIERSON thomaspierson correctly handle css @import rules ( fix ##10 ) 5ab3ff4
Thomas PIERSON thomaspierson implement new rspec test to check if css @font-face rules are correct…
…ly handled. And it seem to be OK ( fix #7 ref #13 )
40236fb
Thomas PIERSON thomaspierson bump version to 0.0.2 201177f
Commits on Jun 02, 2013
Martin Grund grundprinzip Introducing color extraction and vendor prefix handling
This commit allows to automatically extract all colors that are used
in the css file into global variables that can be changed more easily.
In addition this adds an option to automatically extract vendor
prefixed logic into mixins so that they become easier digestible.

Essentially this means, that this block:

    .service-block .span4 {
      color: red;
      -webkit-transition:all 0.3s ease-in-out;
      -moz-transition:all 0.3s ease-in-out;
      -o-transition:all 0.3s ease-in-out;
      transition:all 0.3s ease-in-out;
    }

will become this in LESS

    @color0: red;

    .vp-transition(@p0; @p1; @p2) {
      -webkit-transition: @p0 @p1 @p2;
      -moz-transition: @p0 @p1 @p2;
      -o-transition: @p0 @p1 @p2;
      transition: @p0 @p1 @p2;
    }

    .service-block .span4 {
      color: @color0;
      .vp-transition(all; 0.3s; ease-in-out);
    }

The goal of these modifications is to make transitioning with a given
CSS code base easier. The new options are available to the command
line via:

    Usage: css2less [options] filename
    -c, --colors                     Automatically extract colors from less
    -m, --mixins                     Automatically extract vendor prefixed mixins
    -h, --help                       Show this message]

The code is portable Ruby 1.8.7 and Ruby 1.9
4aca3ff
Commits on Jun 03, 2013
Thomas PIERSON thomaspierson Merge pull request #18 from grundprinzip/master
Automatic Color Extraction and Vendor Prefixed Modules
6f1cf20
Something went wrong with that request. Please try again.