Giter Site home page Giter Site logo

scssphp-compass's Introduction

scssphp-compass

This is work in progress, expect to have problems!

This is a library for adding Compass to your scssphp installation.

The project composed of a couple parts:

  • A script that checks out Compass and extracts the SCSS
  • A PHP class that hooks into a instance of scssc from scssphp. This script updates the import path and adds built in functions required my Compass

Compass' SCSS is checked into this repository, so you only need to run the extract script if you are updating the version of Compass that is included.

Installation

scssphp-compass is a Composer package. Add the following to your composer.json:

{
  "require": {
    "leafo/scssphp-compass": "dev-master"
  }
}

Usage

<?php
require "vendor/autoload.php";

$scss = new scssc();
new scss_compass($scss);

echo $scss->compile('
  @import "compass";

  .shadow {
    @include box-shadow(10px 10px 8px red);
  }
');

scssphp-compass's People

Contributors

leafo avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

scssphp-compass's Issues

Please tag your releases (for use in composer.json)

It's generally considered a bad practice to refer to dev-master dependencies in composer.json

Would you be so kind to at least tag one release so we can move away from dev-master in our composer.json for your repository?

Thanks in advance

transitions are not working correctly

That:

div { @include transition(transform 0.3s ease); }

gives me:

div { -webkit-transition : - 0.3s ease; -moz-transition : - 0.3s ease; -o-transition : - 0.3s ease; transition : transform 0.3s ease; }

Transitions bug

@include transition(background .3s ease);

Should be:

-webkit-transition: background 0.3s ease;
-moz-transition: background 0.3s ease;
-o-transition: background 0.3s ease;
transition: background 0.3s ease;

Instead:

-webkit-transition: background, 0.3s, ease;
-moz-transition: background, 0.3s, ease;
-o-transition: background, 0.3s, ease;
transition: background 0.3s ease;

Commas appear in expressions with prefixes

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.