Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what's changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: sickill/css2less
base: master
...
head fork: MAKOSCAFEE/libcss2less
compare: master
Checking mergeability… Don't worry, you can still create the pull request.
Commits on Jan 04, 2012
@thomaspierson thomaspierson refactor the script into module/class 48d0fb4
@thomaspierson thomaspierson refactor: css2less.rb file is a module only + create script example file a34a07e
Commits on Jan 18, 2012
@thomaspierson thomaspierson ingore ~ temps files 58047a3
@thomaspierson thomaspierson fix+refactor: some errors in the new class 761e52e
@thomaspierson thomaspierson adaptation of the script with the new interface 23b2281
Commits on Feb 08, 2012
@thomaspierson thomaspierson refactor: create public methods process_less to centralize internal l…
…ib process
57c71a7
@thomaspierson thomaspierson update readme.md file b750cf6
Commits on Mar 13, 2012
@thomaspierson thomaspierson css arg in constructor can be nil e25a97c
@thomaspierson thomaspierson 4 spaces indents 1323ae2
@thomaspierson thomaspierson fix-regression: missing '\n' after join bbb4621
@thomaspierson thomaspierson wrong require path 38fa312
@thomaspierson thomaspierson process_less method should call cleanup before checks + add empty check b6a7e5d
Commits on Apr 23, 2012
@thomaspierson thomaspierson converter css2less library to gem format 9d0bf8c
@thomaspierson thomaspierson add Marcin Kulik to gemspec file + improve summary and description c973a31
@thomaspierson thomaspierson set gpl-3 licence on the project d0884fe
@thomaspierson thomaspierson rephrase the README.md file 493267a
Commits on May 07, 2012
@Awea Awea Add simple usage in README f85a49c
Commits on May 09, 2012
@thomaspierson thomaspierson Merge pull request #9 from Awea/master
Add simple usage to README
1d20896
Commits on Feb 02, 2013
@thomaspierson thomaspierson ignore .project files fbbe317
@thomaspierson thomaspierson cleanup: reformat using ruby conventions (Brian I hear you) 7f16d3c
@thomaspierson thomaspierson convert the gem to rubygem-tasks structure + use rdoc and rspec 63a7f47
Commits on Feb 03, 2013
@thomaspierson thomaspierson implement new rspec test: 'should convert basic css structure into le…
…ss structure'
fd29a36
@thomaspierson thomaspierson correctly handle css child selectors ( fix #12 ) 78d7735
@thomaspierson thomaspierson correctly handle css @import rules ( fix ##10 ) 5ab3ff4
@thomaspierson 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
@thomaspierson thomaspierson bump version to 0.0.2 201177f
Commits on Jun 02, 2013
@grundprinzip 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
@thomaspierson 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.