|
SassOptions
IntroductionThis page describes the options used with Sass. Options are passed to the Sass parser as name=>value pairs at instantiation; e.g. $sass = new SassParser(array('style'=>'nested'));Detailscache (boolean) Whether parsed Sass files should be cached, allowing greater speed. cache_location (string) The path where the cached .sassc files should be written to. css_location (string) The path where CSS output should be written to. debug_info (boolean) When true the line number and file where a selector is defined is emitted into the compiled CSS in a format that can be understood by the FireSass extension. Disabled when using the compressed output style. filename (string) The filename of the file being rendered. line (integer) The number of the first line of the Sass template. Used for reporting line numbers for errors. line_numbers (boolean) When true the line number and filename where a selector is defined is emitted into the compiled CSS as a comment. load_paths (array) An array of filesystem paths which should be searched for Sass templates imported with the @import directive. property_syntax (string) Forces the document to use one syntax for properties. If the correct syntax isn't used, an error is thrown.
Ignored for SCSS files. quiet (boolean) When set to true, causes warnings to be disabled. style (string) the style of the CSS output.
syntax (string) The syntax of the input file. 'sass' for the indented syntax and 'scss' for the CSS-extension syntax. template_location (string) Path to the root sass template directory for your application. vendor_properties (mixed) If enabled a property need only be written in the standard form and vendor specific versions will be added to the style sheet.
Note: The same result can be obtained using a mixin. Default Vendor PropertiesThis is the default vendor property array. To specify your own properties use the same format: 'standard-property'=>array(vendor1-version, vendor2-version, ..., vendorN-version), private $_vendorProperties = array(
'border-radius' => array(
'-moz-border-radius',
'-webkit-border-radius',
'-khtml-border-radius'
),
'border-top-right-radius' => array(
'-moz-border-radius-topright',
'-webkit-border-top-right-radius',
'-khtml-border-top-right-radius'
),
'border-bottom-right-radius' => array(
'-moz-border-radius-bottomright',
'-webkit-border-bottom-right-radius',
'-khtml-border-bottom-right-radius'
),
'border-bottom-left-radius' => array(
'-moz-border-radius-bottomleft',
'-webkit-border-bottom-left-radius',
'-khtml-border-bottom-left-radius'
),
'border-top-left-radius' => array(
'-moz-border-radius-topleft',
'-webkit-border-top-left-radius',
'-khtml-border-top-left-radius'
),
'box-shadow' => array('-moz-box-shadow', '-webkit-box-shadow'),
'box-sizing' => array('-moz-box-sizing', '-webkit-box-sizing'),
'opacity' => array('-moz-opacity', '-webkit-opacity', '-khtml-opacity'),
);
|
It looks like the link to FireSASS is broken and should ben replaced by https://addons.mozilla.org/en-US/firefox/addon/103988/ cheers, Val