2017-25 © Pedro Peláez
 

library css-crush

CSS preprocessor

image

css-crush/css-crush

CSS preprocessor

  • Monday, January 1, 2018
  • by pete_b
  • Repository
  • 30 Watchers
  • 534 Stars
  • 23,722 Installations
  • PHP
  • 4 Dependents
  • 0 Suggesters
  • 50 Forks
  • 2 Open issues
  • 21 Versions
  • 12 % Grown

The README.md

CI, (*1)

Logo, (*2)

A CSS preprocessor designed to enable a modern and uncluttered CSS workflow., (*3)

  • Automatic vendor prefixing
  • Variables
  • Import inlining
  • Nesting
  • Functions (color manipulation, math, data-uris etc.)
  • Rule inheritance (@extends)
  • Mixins
  • Minification
  • Lightweight plugin system
  • Source maps

See the docs for full details., (*4)


Setup (PHP)

If you're using Composer you can use Crush in your project with the following line in your terminal:, (*5)

composer require css-crush/css-crush:dev-master

If you're not using Composer yet just download the library into a convenient location and require the bootstrap file:, (*6)

<?php require_once 'path/to/CssCrush.php'; ?>

Basic usage (PHP)


Compiles the CSS file and outputs the following link tag:, (*7)

<link rel="stylesheet" href="css/styles.crush.css" media="all" />

There are several other functions for working with files and strings of CSS:, (*8)

  • csscrush_file($file, $options) - Returns a URL of the compiled file.
  • csscrush_string($css, $options) - Compiles a raw string of css and returns the resulting css.
  • csscrush_inline($file, $options, $tag_attributes) - Returns compiled css in an inline style tag.

There are a number of options available for tailoring the output, and a collection of bundled plugins that cover many workflow issues in contemporary CSS development., (*9)


Setup (JS)

npm install csscrush

Basic usage (JS)

// All methods can take the standard options (camelCase) as the second argument.
const csscrush = require('csscrush');

// Compile. Returns promise.
csscrush.file('./styles.css', {sourceMap: true});

// Compile string of CSS. Returns promise.
csscrush.string('* {box-sizing: border-box;}');

// Compile and watch file. Returns event emitter (triggers 'data' on compile).
csscrush.watch('./styles.css');

Contributing

If you think you've found a bug please create an issue explaining the problem and expected result., (*10)

Likewise, if you'd like to request a feature please create an issue with some explanation of the requested feature and use-cases., (*11)

Pull requests are welcome, though please keep coding style consistent with the project (which is based on PSR-2)., (*12)

Licence

MIT, (*13)

The Versions

01/01 2018

dev-master

9999999-dev http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.6.1

 

The Development Requires

by Pete Boere

css preprocessor

14/12 2017

v3.0.0-beta.3

3.0.0.0-beta3 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.6.1

 

The Development Requires

by Pete Boere

css preprocessor

06/11 2017

v3.0.0-beta.2

3.0.0.0-beta2 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.6.1

 

The Development Requires

by Pete Boere

css preprocessor

04/09 2017

v3.0.0-beta.1

3.0.0.0-beta1 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.6.1

 

The Development Requires

by Pete Boere

css preprocessor

31/08 2017

v3.0.0-beta.0

3.0.0.0-beta0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.6.1

 

The Development Requires

by Pete Boere

css preprocessor

30/07 2015

v2.4.0

2.4.0.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Pete Boere

css preprocessor

16/02 2015

v2.3.0

2.3.0.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Pete Boere

css preprocessor

02/07 2014

v2.2.1

2.2.1.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Pete Boere

css preprocessor

17/06 2014

v2.2.0

2.2.0.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.3.3

 

The Development Requires

by Pete Boere

css preprocessor

21/03 2014

v2.1.0

2.1.0.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.3.1

 

The Development Requires

by Pete Boere

css preprocessor

09/12 2013

v2.0.1

2.0.1.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.3.1

 

The Development Requires

by Pete Boere

css preprocessor

02/11 2013

v2.0.0

2.0.0.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.3.1

 

by Pete Boere

css preprocessor

03/08 2013

1.x-dev

1.9999999.9999999.9999999-dev http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.2.4

 

by Pete Boere

css preprocessor

03/08 2013

v1.11

1.11.0.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.2.4

 

by Pete Boere

css preprocessor

18/05 2013

v1.10

1.10.0.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.2.4

 

by Pete Boere

css preprocessor

31/01 2013

v1.9.1

1.9.1.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.2.4

 

by Pete Boere

css preprocessor

12/01 2013

v1.9

1.9.0.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.2.4

 

by Pete Boere

css preprocessor

28/11 2012

v1.8

1.8.0.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.2.4

 

by Pete Boere

css preprocessor

28/09 2012

v1.7

1.7.0.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.2.4

 

by Pete Boere

css preprocessor

22/08 2012

v1.6.1

1.6.1.0 http://the-echoplex.net/csscrush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.2.4

 

by Pete Boere

css preprocessor

01/08 2012

v1.6

1.6.0.0 http://github.com/peteboere/css-crush

CSS preprocessor

  Sources   Download

MIT

The Requires

  • php >=5.2.4

 

by Pete Boere

css preprocessor