0.0
Repository is archived
No commit activity in last 3 years
No release in over 3 years
A Compass plugin for accessing the Compass configuration properties inside scss|sass files
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 0.12.1
>= 3.2.0
 Project Readme

compass-config

A Compass plugin for accessing the Compass configuration properties inside your scss/sass files.

Installation

gem install compass-config

To load the plugin, simply require it at the top of your configuration file:

require 'compass-config'

Next, import the _compass-config.scss partial into your stylesheets:

@import 'compass-config';

Example usage

This plugins registers a function, x-config, which allows you to fetch any of the Compass configuration properties. It accepts the property name as a single parameter and returns a string representation of its corresponding value.

e.g.:

$environment: x-config('environment');

@if $environment == 'development' {
    // development only styles
}

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request