COMPASS CHANGELOG ================= 0.8.0 ----- ### TODO * Make the rtl mixin match changes to the grid mixins. * Bug fixes ### Rails * image_url() now integrates with the rails asset handling code when stylesheets are generated within the rails container. **This causes your rails configuration for cache busting and asset hosts to be used when generating your stylesheets**. Unfortunately, all that code runs within the context of a controller, so the stylesheets have to be generated during first request to use this functionality. * An official Rails template for Compass is now [provided][rails_template]. [Commit](http://github.com/chriseppstein/compass/commit/f6948d1d58818ef8babce8f8f9d775562d7cd7ef) by [Derek Perez][perezd]. ### Blueprint * When starting a new project based on Blueprint, a more complete screen.sass file will be provided that follows compass best practices instead of matching blueprint css exactly. A partials/_base.sass file is provided and already set up for blueprint customization. [Commit](http://github.com/chriseppstein/compass/commit/11b6ea14c3ee919711fa4bdce349f88b64b68d51) * The sizes and borders for form styling can now be altered via mixin arguments. [Commit](http://github.com/chriseppstein/compass/commit/b84dd3031b82547cff8e1ef1f85de66d98cd162b) by [Thomas Reynolds][tdreyno]. * Grid borders can now be altered via mixin arguments. [Commit](http://github.com/chriseppstein/compass/commit/0a0a14aab597d2ec31ff9d267f6ee8cfad878e10) by [Thomas Reynolds][tdreyno]. * The reset file for blueprint has moved from compass/reset.sass to blueprint/reset.sass. Please update your imports accordingly. Also note that some of the reset mixin names have changed (now prefixed with blueprint-*). [Commit](http://github.com/chriseppstein/compass/commit/2126240a1a16edacb0a758d782334a9ced5d9116) by [Noel Gomez][noel]. * The Blueprint port has been upgraded to match Blueprint 0.9. The following changes were made as part of that project: * Removed body margins from blueprint scaffolding by default. The old body styles can be reinstated by mixing +blueprint-scaffolding-body into your body selector(s). [Commit](http://github.com/chriseppstein/compass/commit/45af89d4c7a396fae5d14fab4ef3bab23bcdfb6a) by [Enrico Bianco][enricob]. * A bug in the calculations affecting the +colborder mixin has been fixed. [Commit](http://github.com/chriseppstein/compass/commit/4b33fae5e5c5421580ba536116cb10194f1318d1) by [Enrico Bianco][enricob]. Related [commit](http://github.com/chriseppstein/compass/commit/0a0a14aab597d2ec31ff9d267f6ee8cfad878e10). * Blueprint now has inline form support. Mix +blueprint-inline-form into a form selector to make it inline. [Commit](http://github.com/chriseppstein/compass/commit/56c745b939c763cfcc5549b54979d48ab1309087) by [Enrico Bianco][enricob]. * Please update the conditional comment that surrounds your IE stylesheet to use "lt IE 8" as the condition as these styles are not needed in IE8. New blueprint projects will now use this conditional as their default. [Commit](http://github.com/chriseppstein/compass/commit/77f6e02c0ec80d2b6fd19e611ced02be003c98ae) by [Enrico Bianco][enricob]. * Explicitly define image interpolation mode for IE so that images aren't jagged when resizing. [Commit](http://github.com/chriseppstein/compass/commit/63075f82db367913efcce5e1d0f5489888e86ca4) by [Enrico Bianco][enricob]. ### Compass Core * **Sprites**. A basic sprite mixin is now available. Import compass/utilities/sprites.sass and use the +sprite-img mixin to set the background image from a sprite image file. Assumes every sprite in the sprite image file has the same dimensions. [Commit](http://github.com/chriseppstein/compass/commit/1f21d6309140c009188d350ed911eed5d34bf02e) by [Thomas Reynolds][tdreyno]. * **Reset**. The compass reset is now based on [Eric Meyer's reset](http://meyerweb.com/eric/thoughts/2007/05/01/reset-reloaded/). which makes no attempt to apply base styles like the blueprint reset does. Existing compass projects will want to change their reset import to point to blueprint/reset.sass -- which is where the old default reset for compass projects now lives -- see the blueprint notes above for more information. [Commit](http://github.com/chriseppstein/compass/commit/2126240a1a16edacb0a758d782334a9ced5d9116) by [Noel Gomez][noel]. * A bug was fixed in the tag_cloud mixin so that it actually works. [Commit](http://github.com/chriseppstein/compass/commit/be5c0ff6731ec5e0cdac73bc47f5603c3db899b5) by [Bjørn Arild Mæland][Chrononaut]. ### Configuration * **Asset Hosts**. You can now configure the asset host(s) used for images via the image_url() function. In your compass configuration file, you must define an asset_host algorithm to be used like so:
# Return the same host for all images:
asset_host {|path| "http://assets.example.com" }
# Return a different host based on the image path.
asset_host do |path|
"http://assets%d.example.com" % (path.hash % 4)
end
Asset hosts are off unless configured and also off when relative urls are enabled.
* **Configurable Cache Buster**. You can now configure the cache buster that gets placed at the end of
images via the image_url function. This might be useful if you need to coordinate the query string
or use something other than a timestamp. Example:
asset_cache_buster do |path, file|
"busted=true"
end
* You can now set/override arbitrary sass options by setting the sass_options
configuration property
to a hash.
* You can now specify additional import paths to look for sass code outside the project. This can be done
in two ways:
1. By setting additional_import_paths
to an array of paths.
2. By (repeatedly) calling add_import_path(path)
### Command Line
* **Watch Improvements** The watch command was rewritten for robustness and reliability. The most
important change is that css files will be deleted if the originating sass file is removed while
watching the project.
### Compass Internals
* Some internal code was reorganized to make managing sass extensions and functions more manageble.
* Some internal code was reorganized to make managing ruby application integration more manageable.
* The compass unit tests were reorganized to separate rails testing from other tests.
* The [Rip Packaging System](http://hellorip.com) is now supported.
[Commit](http://github.com/chriseppstein/compass/commit/56f36577c7654b93a349f74abf274327df23402b)
by [Will Farrington](http://github.com/wfarr).
* A [licence is now available](http://github.com/chriseppstein/compass/blob/master/LICENSE.markdown)
making the copyrights and terms of use clear for people who care about such things.
0.6.14
------
Extracted the css validator to an external gem that is only required if you try to use the validation feature.
This makes the compass gem a lot smaller (0.37MB instead of 4MB). To install the validator:
sudo gem install chriseppstein-compass-validator --source http://gems.github.com/
0.6.8 thru 0.6.13
-----------------
The compass gem is now built with Jeweler instead of Echoe. No changes to speak of. These versions were bug
fixes and working out the new release process.
0.6.7
-----
Bug fix release.
### Rails
The output_style will no longer be set in the compass.config file. Instead compass will use the runtime rails environment to set a sensible default.
### Command Line
The Sass cache directory will be placed into the sass directory of the project instead of the directory from where the compass command was ran.
### Compass Core
Extracted two new mixins from +horizontal-list. The new +horizontal-list-container and +horizontal-list-item mixins can be used to build your
horizontal list when you need more control over the selectors (E.g. when working with nested lists).
0.6.6
-----
The Haml project now releases a gem called haml-edge that is built from the haml master branch instead of stable. Compass now depends on this gem and will continue to do so until haml 2.2 is released. This should reduce the number of installation problems that have been encountered by new users.
### Command Line
* Fixed a bug that had broken the --write-configuration (-c) option.
* The --force option will now force recompilation. Useful when the stylesheets don't appear to need a recompile according to the file timestamps.
### Unit tests
* Some unit tests were cleaned up for clarity and to better take advantage of the compass project management facilities.
0.6.5
-----
### Compass Core
Converted all mixins definitions referencing images to use the new sass function image\_url()
. The following mixins were affected:
* +pretty-bullets
* +replace-text
The calls to these mixins should now pass a path to the image that is relative to the images directory of the project.
### Command Line
* Required frameworks specified from the command line will now be added into the initial project configuration file.
0.6.4
-----
### Command Line
Added a command line option --install-dir that will emit the directory where compass is installed. Useful for debugging and drilling into the compass examples and libraries.
0.6.3
-----
### Rails
Bug fix: The http_images_path configuration default should be "/images" instead of "/public/images".
### Command Line
These changes, coupled with upcoming changes to Sass result in significantly reduced time spent on compilation for large projects.
* The compass command line will no longer recompile sass files that haven't changed (taking import dependencies into account).
* The compass command line will now respect the -q (quiet) option during compilation. Additionally, the quiet option will be set by default when watching a project for changes.
0.6.2
-----
### Blueprint
Split the push and pull mixins into sub-mixins that separate the common styles from the ones that vary. The generated css when using presentational class names will be smaller as a result. The existing +push
and +pull
mixins continue to work as expected. The following mixins were added:
+push-base
+push-margins
+pull-base
+pull-margins
Additonally, the liquid plugin was updated to have a span mixin that matches elsewhere.
### YUI
Added Yahoo's version of the css reset. To use it, mix into the top level of your project:
@import yui/modules/reset.sass
+reset
### Rails
* Conditionally defining #blank? on String/NilClass (Erik Bryn --validate
--grid-img [DIMENSIONS]
-p, --pattern PATTERN
-n, --pattern-name NAME
-c, --write-configuration
enumerate(prefix, start, end)
image_url(path)
+float-left
& +float-right
+pie-clearfix
compass --framework blueprint --pattern buttons
compass --framework blueprint --pattern link\_icons