• Home
  • History
  • Annotate
Name Date Size #Lines LOC

..03-May-2022-

bin/H03-May-2022-93

docs/H03-May-2022-1,7521,178

lib/H03-May-2022-6,4694,468

misc/H03-May-2022-531488

plugins/H03-May-2022-2,8392,009

CHANGELOG.mdH A D30-Jul-201513.6 KiB328262

CssCrush.phpH A D30-Jul-2015391 2010

README.mdH A D30-Jul-20152.4 KiB7444

aliases.iniH A D30-Jul-201510.9 KiB307257

cli.phpH A D30-Jul-201516.8 KiB644468

composer.jsonH A D30-Jul-2015896 3938

package.jsonH A D30-Jul-2015428 1817

README.md

1[![Build Status](https://travis-ci.org/peteboere/css-crush.svg)](https://travis-ci.org/peteboere/css-crush)
2
3<img src="http://the-echoplex.net/csscrush/images/css-crush-external.svg?v=1" alt="Logo"/>
4
5CSS-Crush is a standards inspired preprocessor designed to enable a modern and uncluttered CSS workflow.
6
7* Automatic vendor prefixing
8* Variables
9* Import inlining
10* Nesting
11* Functions (color manipulation, math, data-uris etc.)
12* Rule inheritance (@extends)
13* Mixins
14* Minification
15* Lightweight plugin system
16* Source maps
17
18See the [docs](http://the-echoplex.net/csscrush) for full details.
19
20
21## Setup
22
23If you're using [Composer](http://getcomposer.org) you can use Crush in your project with the following line in your terminal:
24
25```shell
26composer require css-crush/css-crush:dev-master
27```
28
29If you're not using Composer yet just download the library into a convenient location and require the bootstrap file:
30
31```php
32<?php require_once 'path/to/CssCrush.php'; ?>
33```
34
35
36## Basic usage
37
38```php
39<?php
40
41echo csscrush_tag('css/styles.css');
42
43?>
44```
45
46Compiles the CSS file and outputs the following link tag:
47
48```html
49<link rel="stylesheet" href="css/styles.crush.css" media="all" />
50```
51
52There are several other [functions](http://the-echoplex.net/csscrush#api) for working with files and strings of CSS:
53
54* `csscrush_file($file, $options)` - Returns a URL of the compiled file.
55* `csscrush_string($css, $options)` - Compiles a raw string of css and returns the resulting css.
56* `csscrush_inline($file, $options, $tag_attributes)` - Returns compiled css in an inline style tag.
57
58There are a number of [options](http://the-echoplex.net/csscrush#api--options) available for tailoring the output, and a collection of bundled [plugins](http://the-echoplex.net/csscrush#plugins) that cover many workflow issues in contemporary CSS development.
59
60
61## Contributing
62
63If you think you've found a bug please create an [issue](https://github.com/peteboere/css-crush/issues) explaining the problem and expected result.
64
65Likewise, if you'd like to request a feature please create an [issue](https://github.com/peteboere/css-crush/issues) with some explaination of the requested feature and use-cases.
66
67[Pull requests](https://help.github.com/articles/using-pull-requests) are welcome, though please keep coding style consistent with the project (which is based on [PSR-2](https://github.com/php-fig/fig-standards/blob/master/accepted/PSR-2-coding-style-guide.md)).
68
69
70## Licence
71
72MIT
73
74