Permalink
Browse files

Movin things around

  • Loading branch information...
1 parent ea3eff3 commit 4f54894c3d5b7ca4bb59a3e071c387dcbaee71c6 Pete Boere committed Jul 9, 2011
View
@@ -0,0 +1,128 @@
+
+;----------------------------------------------------------------------------
+;-- Property aliases
+
+[properties]
+
+ ; Border radius
+ border-radius[] = -webkit-border-radius
+ border-radius[] = -moz-border-radius
+ border-top-left-radius[] = -moz-border-radius-topleft
+ border-top-left-radius[] = -webkit-border-top-left-radius
+ border-top-right-radius[] = -moz-border-radius-topright
+ border-top-right-radius[] = -webkit-border-top-right-radius
+ border-bottom-left-radius[] = -moz-border-radius-bottomleft
+ border-bottom-left-radius[] = -webkit-border-bottom-left-radius
+ border-bottom-right-radius[] = -moz-border-radius-bottomright
+ border-bottom-right-radius[] = -webkit-border-bottom-right-radius
+
+ ; Box shadow
+ box-shadow[] = -webkit-box-shadow
+ box-shadow[] = -moz-box-shadow
+
+ ; Transforms
+ transform[] = -webkit-transform
+ transform[] = -moz-transform
+ transform[] = -ms-transform
+ transform[] = -o-transform
+
+ ; Transitions
+ transition[] = -webkit-transition
+ transition[] = -moz-transition
+ transition[] = -o-transition
+ transition-delay[] = -webkit-transition-delay
+ transition-delay[] = -moz-transition-delay
+ transition-delay[] = -o-transition-delay
+ transition-property[] = -webkit-transition-property
+ transition-property[] = -moz-transition-property
+ transition-property[] = -o-transition-property
+ transition-timing-function[] = -webkit-transition-timing-function
+ transition-timing-function[] = -moz-transition-timing-function
+ transition-timing-function[] = -o-transition-timing-function
+ transition-duration[] = -webkit-transition-duration
+ transition-duration[] = -moz-transition-duration
+ transition-duration[] = -o-transition-duration
+
+ ; Animations
+ animation-delay[] = -webkit-animation-delay
+ animation-delay[] = -moz-animation-delay
+ animation-direction[] = -webkit-animation-direction
+ animation-direction[] = -moz-animation-direction
+ animation-duration[] = -webkit-animation-duration
+ animation-duration[] = -moz-animation-duration
+ animation-iteration-count[] = -webkit-animation-iteration-count
+ animation-iteration-count[] = -moz-animation-iteration-count
+ animation-name[] = -webkit-animation-name
+ animation-name[] = -moz-animation-name
+ animation-play-state[] = -webkit-animation-play-state
+ animation-play-state[] = -moz-animation-play-state
+ animation-timing-function[] = -webkit-animation-timing-function
+ animation-timing-function[] = -moz-animation-timing-function
+ animation-fill-mode[] = -webkit-animation-fill-mode
+ animation-fill-mode[] = -moz-animation-fill-mode
+
+ ; Background size
+ background-size[] = -webkit-background-size
+ background-size[] = -moz-background-size
+
+ ; Box sizing
+ box-sizing[] = -webkit-box-sizing
+ box-sizing[] = -moz-box-sizing
+
+ ; Columns
+ column-count[] = -webkit-column-count
+ column-count[] = -moz-column-count
+ column-gap[] = -webkit-column-gap
+ column-gap[] = -moz-column-gap
+
+ ; Border-image
+ border-image[] = -webkit-border-image
+ border-image[] = -moz-border-image
+ border-image[] = -o-border-image
+
+ ; Flexbox
+ box-pack[] = -webkit-box-pack
+ box-pack[] = -moz-box-pack
+ box-align[] = -webkit-box-align
+ box-align[] = -moz-box-align
+ box-flex[] = -webkit-box-flex
+ box-flex[] = -moz-box-flex
+
+
+;----------------------------------------------------------------------------
+;-- Function aliases
+
+[functions]
+
+ ; Gradients
+ linear-gradient[] = -webkit-linear-gradient
+ linear-gradient[] = -moz-linear-gradient
+ linear-gradient[] = -ms-linear-gradient
+ linear-gradient[] = -o-linear-gradient
+ radial-gradient[] = -webkit-radial-gradient
+ radial-gradient[] = -moz-radial-gradient
+ radial-gradient[] = -ms-radial-gradient
+ radial-gradient[] = -o-radial-gradient
+
+ ; Repeating gradients
+ repeating-linear-gradient[] = -webkit-repeating-linear-gradient
+ repeating-linear-gradient[] = -moz-repeating-linear-gradient
+ repeating-linear-gradient[] = -ms-repeating-linear-gradient
+ repeating-linear-gradient[] = -o-repeating-linear-gradient
+ repeating-radial-gradient[] = -webkit-repeating-radial-gradient
+ repeating-radial-gradient[] = -moz-repeating-radial-gradient
+ repeating-radial-gradient[] = -ms-repeating-radial-gradient
+ repeating-radial-gradient[] = -o-repeating-radial-gradient
+
+ ; Calc
+ calc[] = -moz-calc
+
+
+;----------------------------------------------------------------------------
+;-- @rule aliases
+
+[at-rules]
+ keyframes[] = -webkit-keyframes
+ keyframes[] = -moz-keyframes
+
+
File renamed without changes.
File renamed without changes.
@@ -1,110 +0,0 @@
-<?php
-
-// public static function init () {
-// self::$initialized = true;
-// self::$compileSuffix = '.crush.css';
-// self::$compileRevisionedSuffix = '.crush.r.css';
-// self::$config = new stdClass;
-// self::$config->file = '.' . __CLASS__;
-// self::$config->data = null;
-// self::$config->path = null;
-// self::$config->baseDir = null;
-// self::$config->baseURL = null;
-//
-// $docRoot = $_SERVER[ 'DOCUMENT_ROOT' ];
-// // workaround trailing slash issues
-// $docRoot = ( substr( $docRoot, -1 ) == '/' ) ? substr( $docRoot, 0, -1 ) : $docRoot;
-//
-// if ( defined( 'STDIN' ) and $_SERVER[ 'argc' ] > 0 ) {
-// // Command line
-// self::log( 'Command line mode' );
-// self::$cli = true;
-// }
-// else {
-// // Running on a server
-// self::log( 'Server mode' );
-// self::$config->docRoot = $docRoot;
-// self::$cli = false;
-// }
-// self::$config->docRoot = $docRoot;
-//
-//
-// self::$regex = (object) self::$regex;
-// }
-
-
-
-// public static $cli;
-//
-// public static function cli ( $file, $options = null ) {
-// // Make basic information about the hostfile accessible
-// $hostfile = new stdClass;
-// $hostfile->name = basename( $file );
-// $hostfile->path = realpath( $file );
-// $hostfile->mtime = filemtime( $hostfile->path );
-//
-// self::$config->baseDir = dirname( $hostfile->path );
-//
-// self::parseOptions( $options );
-// return self::compile( $hostfile );
-// }
-
-
-################################################################################################
-# Command line API
-
-/*
-php CSS_Crush.php -f=css/screen.css -n
->>> non-minified output
-*/
-
-if ( CSS_Crush::$cli ) {
- $options = getopt( "f:o::m::cn", array(
- 'file:', // Input file
- 'output::', // Output file
- 'macros::', // Comma seperated list of macro properties
- 'comments', // (flag) Leave comments intact
- 'nominify',
- ));
- $file = null;
- $params = array();
- if ( isset( $options[ 'f' ] ) ) {
- $file = $options[ 'f' ];
- }
- else if ( isset( $options[ 'file' ] ) ) {
- $file = $options[ 'file' ];
- }
- if ( !$file or !file_exists( $file ) ) {
- return;
- }
- if ( isset( $options[ 'm' ] ) ) {
- $params[ 'macros' ] = explode( ',', $options[ 'm' ] );
- }
- else if ( isset( $options[ 'macros' ] ) ) {
- $params[ 'macros' ] = explode( ',', $options[ 'macros' ] );
- }
- if ( isset( $options[ 'c' ] ) or isset( $options[ 'comments' ] ) ) {
- $params[ 'comments' ] = true;
- }
- if ( isset( $options[ 'n' ] ) or isset( $options[ 'nominify' ] ) ) {
- $params[ 'minify' ] = false;
- }
-
- $output = CSS_Crush::cli( $file, $params );
-
- $outputFile = isset( $options[ 'o' ] );
- if ( $outputFile ) {
- $outputFile = $options[ 'o' ];
- }
- else {
- $outputFile = isset( $options[ 'output' ] ) ? $options[ 'output' ] : false;
- }
-
- if ( $outputFile ) {
- $output = CSS_Crush::getBoilerplate() . "\n{$output}";
- file_put_contents( $outputFile, $output );
- }
- else {
- echo $output . PHP_EOL;
- }
-}

0 comments on commit 4f54894

Please sign in to comment.