This Firebug extension will reveal the original .scss filename and line number in the CSS inspector panel if the generated CSS code has debugging-comments in it. This will assit you if you're generating your .css files with Compass.
- Shows the original filename and line number within the tooltip
- The source link can be rendered with .scss filename and line number or .css filename and linenumber (default)
- Compass internal styles (like reset.css) are marked with [Compass] (within the tooltip) or [Filename] (line number) (as source link)
The plugin looks for the comment above each CSS rule containing the original filename and linenumber. Thus, it requires that the comments are generated into the target .css file.
...
/* line 13, ../scss/index.scss */
body, html {
...
There are two options which control this.
- The
line_comments
option within your config.rb (default name) This should be true or undefined. - The
-e, --environment
switch of compass This should be not specified or of value "development"
- Firefox 15.0 - 29.x
- Firebug 1.10.x - 1.12.x
- Compass 0.12.x - 0.13.x
It might work with older or newer Firebug and Compass versions too.
https://addons.mozilla.org/de/firefox/addon/firecompass-for-firebug/
- Code cleanup (indendation, typos, duplications)
- Updated Firefox version compatibility to 29.x
- Updated Firebug and Compass version compatibilities
- Fixed #2 CSS Panel optionshave no default state, do not react on click
- Fixed smaller mistakes in install manifest(missing type, superfluous locale)
- Prefixed default configuration with stronly recommended "extension."
- Changed default value CSS/SCSS display type to "SCSS"
- Fixed #1 Pseudo-Class selector options missing in CSS panel menu
- Added newlines to addon description
- Extended Firefox version compatibility range from 16.0 - 16.* to 15.0 - 19.*
- Initial release.
Main development done. Released.
- Add Make and/or Grunt.js based build script
- Optimize tooltip layout/style
- Make the source link not clickable or ignore click if rendered with .scss path
- Create an addon logo
Building an Firefox addon package is simple as it's just a ZIP file with the extension .xpi. Under *nix you might just run
$ zip -r ../firecompass-v<VERSION NUMBER IN install.rdf>.xpi chrome/ chrome.manifest defaults/ install.rdf LICENSE.MIT skin/
This code is licensed under the MIT license.