Giter VIP home page Giter VIP logo

sass-compiler's Introduction

A pure Java implementation of the http://sass-lang.com compiler

This project has previously a part of the Vaadin Framework

Roadmap
=======
Sass Compiler 1.0 
* Compatibility with sass-lang compiler 3.2.12

Sass Compiler 1.1
* Compatibility with sass-lang compiler 3.3.0

Import the project into Eclipse
=============================

To get the project working in Eclipse you need to install the M2E connector
for JavaCC, found at (update site):
http://objectledge.github.com/maven-extensions/connectors/updates/development

After that you can import the project into Eclipse as a standard Maven
project

Building the project
====================
Running

  mvn package

will compile the project and run all tests


Tests
=====
There is an extensive test suite consisting of source scss input and expected 
css output imported from the sass-lang project. Today the features required by
the tests in src/test/resources/sasslang are fully implemented while the
tests in src/test/resources/sasslangbroken are currently expected to fail.
When reaching 1.0 the sasslangbroken package should no longer exist.

Contributing
=============
Your contributions are more than welcome. Please read
https://vaadin.com/contribute for more information on practicalities.
Because we are using Gerrit we cannot accept pull requests in GitHub.

Changes
=======

Version 0.9.12
--------------
It is now possible to specify how URLs appearing in an imported scss style
sheet are interpreted. The supported modes are absolute, mixed and
relative. For example, suppose that a root style sheet styles.scss imports
common/base.scss and base.scss contains the property definition

background-image: url(image.png);

In absolute mode the url will appear as url(image.png) also in the CSS
output. In relative and mixed mode it will be output as url(common/image.png).
The difference between mixed and relative mode is that in the mixed mode
a url is only modified if it appears in a property, whereas in the relative
mode the modification also takes place e.g. in variable definitions and
default values of mixin or function parameters.

Absolute mode can be used for compatibility with the sass-lang compiler.
For compiling the themes provided with Vaadin mixed or relative mode should
be used. Mixed mode is the default and was used in previous versions of
the compiler. For instructions on specifying the url mode from the command
line, run SassCompiler with no parameters.

License
=======

Copyright 2012 Vaadin Ltd.

Licensed under the Apache License, Version 2.0 (the "License"); you may not use
this file except in compliance with the License. You may obtain a copy of the
License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied. See the License for the
specific language governing permissions and limitations under the License.

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.