Name | Date | Size | #Lines | LOC | ||
---|---|---|---|---|---|---|
.. | 03-May-2022 | - | ||||
bin/ | H | 03-May-2022 | - | 9 | 3 | |
docs/ | H | 03-May-2022 | - | 1,752 | 1,178 | |
lib/ | H | 03-May-2022 | - | 6,469 | 4,468 | |
misc/ | H | 03-May-2022 | - | 531 | 488 | |
plugins/ | H | 03-May-2022 | - | 2,839 | 2,009 | |
CHANGELOG.md | H A D | 30-Jul-2015 | 13.6 KiB | 328 | 262 | |
CssCrush.php | H A D | 30-Jul-2015 | 391 | 20 | 10 | |
README.md | H A D | 30-Jul-2015 | 2.4 KiB | 74 | 44 | |
aliases.ini | H A D | 30-Jul-2015 | 10.9 KiB | 307 | 257 | |
cli.php | H A D | 30-Jul-2015 | 16.8 KiB | 644 | 468 | |
composer.json | H A D | 30-Jul-2015 | 896 | 39 | 38 | |
package.json | H A D | 30-Jul-2015 | 428 | 18 | 17 |
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