Merge branch 'stable'
* stable: Bump versions for v0.10.1 release. Update the CHANGELOG for the v0.10.1 release. Fix a broken reference to the extensions tutorial. Closes GH-135. [Blueprint] Regression fix: automatically apply the reset if blueprint/reset is imported. Closes GH-132. Fix a failing test case. [Rails] When configuring the Sass::Plugin, don't overwrite existing template locations. Closes GH-136. [Command Line] Improved descriptions of the watch and init commands. [Rails] Improved the next steps to perform after installing compass so that it mentions registering the compass gem. [Rails] Fixed a reference to the old configuration file. Add a note to the changelog about uninstalling chriseppstein-compass Get rid of some dead code that was breaking Rails 3. Closes GH-137. Conflicts: VERSION.yml doc-src/content/CHANGELOG.markdown frameworks/_blueprint_deprecated_imports/stylesheets/blueprint/modules/_reset.sass
This commit is contained in:
commit
ea1389c1c8
@ -1,5 +1,4 @@
|
||||
---
|
||||
:patch: 0
|
||||
:major: 0
|
||||
:minor: 11
|
||||
:state: alpha
|
||||
|
@ -15,7 +15,7 @@ Gem::Specification.new do |gemspec|
|
||||
gemspec.require_paths = %w(lib)
|
||||
gemspec.rubygems_version = "1.3.6"
|
||||
gemspec.summary = %q{A Real Stylesheet Framework}
|
||||
gemspec.add_dependency('haml', '>= 3.0.0')
|
||||
gemspec.add_dependency('haml', '>= 3.0.4')
|
||||
gemspec.files = %w(README.markdown LICENSE.markdown VERSION.yml Rakefile)
|
||||
gemspec.files += Dir.glob("bin/*")
|
||||
gemspec.files += Dir.glob("examples/**/*.*")
|
||||
|
@ -7,22 +7,36 @@ layout: article
|
||||
COMPASS CHANGELOG
|
||||
=================
|
||||
|
||||
0.11.0.alpha.1
|
||||
--------------
|
||||
<<<<<<< HEAD:doc-src/content/CHANGELOG.markdown
|
||||
0.11.alpha.1
|
||||
------------
|
||||
|
||||
* Deprecated imports and APIs from v0.10 have been removed.
|
||||
|
||||
0.10.1 (May 13, 2010)
|
||||
---------------------
|
||||
0.10.1 (May 15, 2010)
|
||||
|
||||
* Fixed a regression in the Blueprint module, the blueprint reset
|
||||
was no longer automatically applying the reset styles. This behavior
|
||||
is restored in this release. If you `@import blueprint/reset` and
|
||||
then apply the reset mixin yourself, you should remove the mixin
|
||||
call or change your import to `blueprint/reset/utilities`.
|
||||
* Added a subcommand for emitting sass imports for the sass CLI.
|
||||
* Added a subcommand for listing the available frameworks.
|
||||
* Fixed a number of bugs related to Sass & Rails integration
|
||||
* Fixed some documentation issues in the command line and on the website.
|
||||
|
||||
0.10.0 (May 10, 2010)
|
||||
---------------------
|
||||
|
||||
This changelog entry is condensed from a very long beta release. You can read [the 0.10.0 beta release notes here](/docs/CHANGELOG-v0-10-0-beta/).
|
||||
|
||||
### Gem Location
|
||||
|
||||
The compass gem is now (and has been for some time) hosted on [rubygems.org](http://rubygems.org). If you have an old version
|
||||
installed from github, please remove it:
|
||||
|
||||
sudo gem uninstall chriseppstein-compass
|
||||
|
||||
### Sass 3:
|
||||
|
||||
* Compass now depends on Sass 3 -- Please be prepared to upgrade.
|
||||
|
@ -10,4 +10,5 @@ classnames:
|
||||
---
|
||||
- render 'reference' do
|
||||
%p
|
||||
A reset and base styling.
|
||||
A reset and base styling automatically applied to your webpage
|
||||
by importing this module.
|
||||
|
13
doc-src/content/reference/blueprint/reset/utilities.scss
Normal file
13
doc-src/content/reference/blueprint/reset/utilities.scss
Normal file
@ -0,0 +1,13 @@
|
||||
---
|
||||
title: Blueprint Reset
|
||||
crumb: Reset
|
||||
framework: blueprint
|
||||
stylesheet: blueprint/reset/_utilities.scss
|
||||
layout: blueprint
|
||||
classnames:
|
||||
- reference
|
||||
- blueprint
|
||||
---
|
||||
- render 'reference' do
|
||||
%p
|
||||
Utility mixins for applying a reset and base styling.
|
@ -158,8 +158,10 @@ Feature: Command Line
|
||||
| watch |
|
||||
And I should see the following "other" commands:
|
||||
| config |
|
||||
| frameworks |
|
||||
| grid-img |
|
||||
| help |
|
||||
| imports |
|
||||
| install |
|
||||
| interactive |
|
||||
| stats |
|
||||
|
@ -1,58 +1,3 @@
|
||||
// Global reset rules.
|
||||
// For more specific resets, use the reset mixins provided below
|
||||
@mixin blueprint-global-reset {
|
||||
html, body {
|
||||
@include blueprint-reset; }
|
||||
html {
|
||||
font-size: 100.01%; }
|
||||
@include blueprint-nested-reset; }
|
||||
@import "reset/utilities";
|
||||
|
||||
// Reset all elements within some selector scope.To reset the selector itself,
|
||||
// mixin the appropriate reset mixin for that element type as well. This could be
|
||||
// useful if you want to style a part of your page in a dramatically different way.
|
||||
@mixin blueprint-nested-reset {
|
||||
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
|
||||
pre, a, abbr, acronym, address, code, del, dfn, em, img,
|
||||
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr {
|
||||
@include blueprint-reset; }
|
||||
blockquote, q {
|
||||
@include blueprint-reset-quotation; }
|
||||
th, td, caption {
|
||||
@include blueprint-reset-table-cell; }
|
||||
table {
|
||||
@include blueprint-reset-table; }
|
||||
a img {
|
||||
border: none; } }
|
||||
|
||||
@mixin blueprint-reset-box-model {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0; }
|
||||
|
||||
@mixin blueprint-reset {
|
||||
@include blueprint-reset-box-model;
|
||||
font: {
|
||||
weight: inherit;
|
||||
style: inherit;
|
||||
size: 100%;
|
||||
family: inherit; };
|
||||
vertical-align: baseline; }
|
||||
|
||||
@mixin blueprint-reset-quotation {
|
||||
@include blueprint-reset;
|
||||
quotes: "" "";
|
||||
&:before,
|
||||
&:after {
|
||||
content: ""; } }
|
||||
|
||||
@mixin blueprint-reset-table-cell {
|
||||
@include blueprint-reset;
|
||||
text-align: left;
|
||||
font-weight: normal;
|
||||
vertical-align: middle; }
|
||||
|
||||
@mixin blueprint-reset-table {
|
||||
@include blueprint-reset;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
vertical-align: middle; }
|
||||
@include blueprint-global-reset;
|
@ -0,0 +1,58 @@
|
||||
// Global reset rules.
|
||||
// For more specific resets, use the reset mixins provided below
|
||||
@mixin blueprint-global-reset {
|
||||
html, body {
|
||||
@include blueprint-reset; }
|
||||
html {
|
||||
font-size: 100.01%; }
|
||||
@include blueprint-nested-reset; }
|
||||
|
||||
// Reset all elements within some selector scope.To reset the selector itself,
|
||||
// mixin the appropriate reset mixin for that element type as well. This could be
|
||||
// useful if you want to style a part of your page in a dramatically different way.
|
||||
@mixin blueprint-nested-reset {
|
||||
div, span, object, iframe, h1, h2, h3, h4, h5, h6, p,
|
||||
pre, a, abbr, acronym, address, code, del, dfn, em, img,
|
||||
dl, dt, dd, ol, ul, li, fieldset, form, label, legend, caption, tbody, tfoot, thead, tr {
|
||||
@include blueprint-reset; }
|
||||
blockquote, q {
|
||||
@include blueprint-reset-quotation; }
|
||||
th, td, caption {
|
||||
@include blueprint-reset-table-cell; }
|
||||
table {
|
||||
@include blueprint-reset-table; }
|
||||
a img {
|
||||
border: none; } }
|
||||
|
||||
@mixin blueprint-reset-box-model {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
border: 0; }
|
||||
|
||||
@mixin blueprint-reset {
|
||||
@include blueprint-reset-box-model;
|
||||
font: {
|
||||
weight: inherit;
|
||||
style: inherit;
|
||||
size: 100%;
|
||||
family: inherit; };
|
||||
vertical-align: baseline; }
|
||||
|
||||
@mixin blueprint-reset-quotation {
|
||||
@include blueprint-reset;
|
||||
quotes: "" "";
|
||||
&:before,
|
||||
&:after {
|
||||
content: ""; } }
|
||||
|
||||
@mixin blueprint-reset-table-cell {
|
||||
@include blueprint-reset;
|
||||
text-align: left;
|
||||
font-weight: normal;
|
||||
vertical-align: middle; }
|
||||
|
||||
@mixin blueprint-reset-table {
|
||||
@include blueprint-reset;
|
||||
border-collapse: separate;
|
||||
border-spacing: 0;
|
||||
vertical-align: middle; }
|
@ -12,7 +12,7 @@ help %Q{
|
||||
welcome_message %Q{
|
||||
For a full tutorial on how to build your own extension see:
|
||||
|
||||
http://github.com/chriseppstein/compass/blob/edge/docs/EXTENSIONS.markdown
|
||||
http://compass-style.org/docs/tutorials/extensions/
|
||||
|
||||
}, :replace => true
|
||||
|
||||
|
@ -26,7 +26,7 @@ module Compass
|
||||
end
|
||||
|
||||
def config_files_exist?
|
||||
File.exists?(targetize('config/compass.config')) &&
|
||||
File.exists?(targetize('config/compass.rb')) &&
|
||||
File.exists?(targetize('config/initializers/compass.rb'))
|
||||
end
|
||||
|
||||
@ -38,11 +38,22 @@ module Compass
|
||||
if options[:create]
|
||||
puts <<-NEXTSTEPS
|
||||
|
||||
Congratulations! Your rails project has been configured to use Compass.
|
||||
Sass will automatically compile your stylesheets during the next
|
||||
page request and keep them up to date when they change.
|
||||
Make sure you restart your server!
|
||||
NEXTSTEPS
|
||||
Congratulations! Your rails project has been configured to use Compass.
|
||||
Just one more thing left to do: Register the compass gem.
|
||||
|
||||
In Rails 2.2 & 2.3, add the following to your evironment.rb:
|
||||
|
||||
config.gem "compass", :version => ">= #{Compass::VERSION}"
|
||||
|
||||
In Rails 3, add the following to your Gemfile:
|
||||
|
||||
gem "compass", ">= #{Compass::VERSION}"
|
||||
|
||||
Then, make sure you restart your server.
|
||||
|
||||
Sass will automatically compile your stylesheets during the next
|
||||
page request and keep them up to date when they change.
|
||||
NEXTSTEPS
|
||||
end
|
||||
if manifest.has_stylesheet?
|
||||
puts "\nNext add these lines to the head of your layouts:\n\n"
|
||||
|
@ -68,7 +68,7 @@ module Compass
|
||||
if command.to_sym == :create
|
||||
"Create a new compass project"
|
||||
else
|
||||
"Initialize an existing project"
|
||||
"Add compass to an existing project"
|
||||
end
|
||||
end
|
||||
|
||||
|
@ -97,6 +97,10 @@ module Compass
|
||||
end
|
||||
|
||||
class << self
|
||||
def description(command)
|
||||
"Compile Sass stylesheets to CSS when they change"
|
||||
end
|
||||
|
||||
def option_parser(arguments)
|
||||
parser = Compass::Exec::CommandOptionParser.new(arguments)
|
||||
parser.extend(Compass::Exec::GlobalOptionsParser)
|
||||
|
@ -55,7 +55,12 @@ module Compass
|
||||
|
||||
def configure_sass_plugin!
|
||||
@sass_plugin_configured = true
|
||||
Sass::Plugin.options.merge!(sass_plugin_configuration)
|
||||
config = sass_plugin_configuration
|
||||
locations = config.delete(:template_location)
|
||||
Sass::Plugin.options.merge!(config)
|
||||
locations.each do |sass_dir, css_dir|
|
||||
Sass::Plugin.add_template_location sass_dir, css_dir
|
||||
end
|
||||
end
|
||||
|
||||
def sass_plugin_configured?
|
||||
|
@ -1,40 +0,0 @@
|
||||
require 'sass/plugin'
|
||||
|
||||
# XXX: We can remove this monkeypatch once Sass 2.2 is released.
|
||||
module Sass::Plugin
|
||||
|
||||
# splits the stylesheet_needs_update? method into two pieces so I can use the exact_stylesheet_needs_update? piece
|
||||
module StylesheetNeedsUpdate
|
||||
def stylesheet_needs_update?(name, template_path, css_path)
|
||||
css_file = css_filename(name, css_path)
|
||||
template_file = template_filename(name, template_path)
|
||||
exact_stylesheet_needs_update?(css_file, template_file)
|
||||
end
|
||||
def exact_stylesheet_needs_update?(css_file, template_file)
|
||||
if !File.exists?(css_file)
|
||||
return true
|
||||
else
|
||||
css_mtime = File.mtime(css_file)
|
||||
File.mtime(template_file) > css_mtime ||
|
||||
dependencies(template_file).any?(&dependency_updated?(css_mtime))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
# At some point Sass::Plugin changed from using the metaclass to extend self.
|
||||
metaclass = class << self; self; end
|
||||
if metaclass.included_modules.include?(Sass::Plugin)
|
||||
if method(:stylesheet_needs_update?).arity == 2
|
||||
alias exact_stylesheet_needs_update? stylesheet_needs_update?
|
||||
elsif !method_defined?(:exact_stylesheet_needs_update?)
|
||||
include StylesheetNeedsUpdate
|
||||
end
|
||||
else
|
||||
class << self
|
||||
unless method_defined?(:exact_stylesheet_needs_update?)
|
||||
include StylesheetNeedsUpdate
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
end
|
Loading…
Reference in New Issue
Block a user