Commit Graph

744 Commits

Author SHA1 Message Date
Chris Eppstein
925938cd5e [Extensions] Don't force an extension to register itself just because it has ruby code. 2010-02-15 10:57:20 -08:00
Chris Eppstein
3dd2a90dec [Command Line] [Windows] Disable colorized output if win32console cannot be loaded.
Closes GH-82
2010-02-13 17:45:01 -08:00
Chris Eppstein
6b5ffdb0d6 [Compass Core] Clear the sticky footer so that it works correctly with grid layouts. Closes GH-79. 2010-02-13 17:44:01 -08:00
Chris Eppstein
9cca38f85d Disable the parse method with a decent error message. It should only be used internally now. 2010-02-13 17:19:57 -08:00
Chris Eppstein
8172fce22a [Rails] Fix a setup bug and handle compass configuration changes at rails boot.
Existing rails projects should change their compass initializer file to:

    require 'compass'
    rails_root = (defined?(Rails) ? Rails.root : RAILS_ROOT).to_s
    Compass.add_project_configuration(File.join(rails_root, "config", "compass.rb"))
    Compass.configure_sass_plugin!
    Compass.handle_configuration_change!
2010-02-13 17:07:41 -08:00
Chris Eppstein
c1b903024f New APIs for dealing with configuration changes and accessing a compiler instance. 2010-02-13 16:56:53 -08:00
Chris Eppstein
d59451f398 [Rails] Don't set unset options on the Sass::Plugin 2010-02-13 12:22:21 -08:00
Chris Eppstein
6878899c4c [Command Line] Don't force the user to specify the configuration path when calling compass config 2010-02-13 11:40:59 -08:00
Chris Eppstein
bb77dcefcb Default the project directory to the current directory. 2010-02-13 11:40:02 -08:00
Chris Eppstein
a6f8967b39 Merge commit 'cakebaker/master'
* commit 'cakebaker/master':
  Fixing typo (replacing "WARINING" with "WARNING")
2010-02-13 08:34:41 -08:00
Chris Eppstein
431762bf7c Merge commit 'sce/master'
* commit 'sce/master':
  Take margins into account in liquid grid.
2010-02-13 08:33:32 -08:00
Chris Eppstein
cd2ab04fec Merge commit 'mrajcok/master'
* commit 'mrajcok/master':
  Reversed the logic to be correct (IE6 *ignores* the !important identifier).
2010-02-13 08:32:37 -08:00
Daniel Hofstetter
fc19d5e036 Fixing typo (replacing "WARINING" with "WARNING") 2010-02-11 15:29:42 +01:00
Christoffer Eliesen
c4c9be0256 Take margins into account in liquid grid.
The previous version of liquid grid would not take margins into proper
account. With this patch the margins are a correct percentage of the
container, and adding multiple margins / columns together should add up
to just about 100% (not entirely accurate, but very close).

The math is as follows:

With the previous version, you get these numbers:
4.173% grid width * 24 columns = 100.152%, which due to rounding 'fixes'
in the template becomes exactly 100%. However, this is without any margins.
Once you add margins, you exceed 100%, rendering margins unusable. To add
to the confusion, the margins are not a percentage of the width, but instead
in 'em' units, making it very difficult to keep the entire grid from getting
beyond 100% in width once you add margins.

With this patch, you get these numbers:
(3.167% grid width + 1.042% margin) * 24 columns = 101.1016%. Since you
don't use any margin for the last column, you subtract one margin and end up
with 99.974%. Optimally this number would be 100.000%, but the 0.026% error
is difficult to remove, and an acceptable compromise in my opinion.

In summary, this patch enables margins to be used with the liquid grid,
which is the expected behaviour.
2010-02-06 14:14:30 +01:00
Cody Robbins
9a0b2f5bcd [Compass Core] Support :first-child and :last-child pseudo selectors for +horizontal-list. 2010-02-05 13:50:42 -08:00
Mark Rajcok
22500d4ad2 Reversed the logic to be correct (IE6 *ignores* the !important identifier).
Moved "hack" value to be the last parameter, and renamed it "ie6_value" so as to better identify which browser the hack is for.
2010-01-26 15:24:04 -07:00
Chris Eppstein
1eef589c29 [Command Line] Make sure all the colors are off when colorized output is disabled. 2010-01-20 17:33:13 -08:00
Chris Eppstein
04ed8c85fd Fix gemspec 2010-01-19 00:20:42 -08:00
Chris Eppstein
091796962a Record current revision for release. 2010-01-19 00:16:13 -08:00
Chris Eppstein
9503512782 Regenerated gemspec for version 0.10.0.pre5 2010-01-19 00:16:05 -08:00
Chris Eppstein
2225b6981d Version bump to 0.10.0.pre5 2010-01-19 00:15:52 -08:00
Chris Eppstein
41298627f6 Changelog for 0.10.0.pre5 2010-01-19 00:15:13 -08:00
Chris Eppstein
46be3b27b0 [Rails] Silence a deprecation warning in Rails 3. 2010-01-18 17:36:36 -08:00
Chris Eppstein
b0fbab5455 Upgrade FSSM. 2010-01-18 17:11:06 -08:00
Chris Eppstein
68fe3136c2 Change the structure of the compass vendor directory in the off chance that we ever have to vendor more than one library. 2010-01-18 16:44:20 -08:00
Chris Eppstein
1dbe1f6941 [Blueprint] Remove the unfinished (and of dubious value) welcome page. 2010-01-18 16:13:24 -08:00
Chris Eppstein
cac3065516 Move the frameworks directory back to the top level. There's not actually a good reason for it to be buried in the ruby source. 2010-01-18 14:58:40 -08:00
Chris Eppstein
e2fd599648 Merge commit '833d49de961a10574ffde16153fea34568d7efe0'
* commit '833d49de961a10574ffde16153fea34568d7efe0':
  in the rails installer, ask them if they want to use sudo for gem commands, but only if their system supports sudo.
2010-01-18 12:37:39 -08:00
Chris Eppstein
d37d63cce3 Make these damn tests pass in ruby 1.9. Evidently, you have to read from $stdin explicitly. 2010-01-18 12:34:37 -08:00
Ryan Shaw
833d49de96 in the rails installer, ask them if they want to use sudo for gem commands, but only if their system supports sudo. 2010-01-14 13:34:33 -07:00
Chris Eppstein
07f988ebff Generate a baseline grid only by passing 0 for the widths to the grid builder. E.g. compass grid-img 0+0x28 2010-01-14 09:05:45 -08:00
Chris Eppstein
6148abf04a Merge commit 'der-rich/master'
* commit 'der-rich/master':
  removed unnecessary .to_a
  Using String#unpack instead of String#bytes to work with Ruby < 1.8.7

Conflicts:
	lib/compass/grid_builder.rb
2010-01-10 13:47:10 -08:00
Chris Eppstein
910fc46aff [Command Line] Added a --poll option to the compass watch subcommand to force polling. 2010-01-10 13:30:44 -08:00
Chris Eppstein
5078d0a0a9 [Configuration] Strip trailing slash and directory separtors from directory and path configuration variables.
Closes GH-77.
2010-01-10 12:27:47 -08:00
Chris Eppstein
fd2ab06f60 Merge commit 'packetmonkey/optional_sudo'
* commit 'packetmonkey/optional_sudo':
  Allows turning off sudo usage with an ENV variable
  Move sudo checks into it's own function
2010-01-10 10:57:09 -08:00
Chris Eppstein
d15298afa8 [Command Line] Command line switch (--boring) to turn off colorized output. 2010-01-10 10:52:28 -08:00
Chris Eppstein
38ff0b7929 Make ANSI color output work on windows. Closes GH-64. 2010-01-10 10:51:43 -08:00
Chris Eppstein
05d89b082c Cache buster timestamps not working in some cases. Closes GH-75. 2010-01-10 08:26:39 -08:00
Chris Eppstein
31cde1b107 Support for scss files in the compass watcher. Closes GH-78. 2010-01-10 08:09:58 -08:00
Chris Eppstein
af274f408c R.I.P. rip. 2010-01-10 07:41:15 -08:00
Evan Sharp
289c338e34 Allows turning off sudo usage with an ENV variable 2010-01-07 14:33:02 -05:00
Evan Sharp
e3a92c68e4 Move sudo checks into it's own function 2010-01-07 14:32:26 -05:00
Richard Wöber
a7a9a1bbba removed unnecessary .to_a 2010-01-04 22:43:42 +01:00
Richard Wöber
d9d3857ee0 Using String#unpack instead of String#bytes to work with Ruby < 1.8.7 2010-01-04 22:40:37 +01:00
Chris Eppstein
4986d16819 Record current revision for release. 2010-01-04 11:09:50 -08:00
Chris Eppstein
08894dc6ab Regenerated gemspec for version 0.10.0.pre4 2010-01-04 11:09:28 -08:00
Chris Eppstein
9f2dc915c3 Updated CHANGELOG for v0.10.0.pre4 2010-01-04 09:43:29 -08:00
Chris Eppstein
dbe2d41f6b Version bump for 0.10 pre4 2010-01-04 09:41:01 -08:00
Chris Eppstein
b4070637b2 Backwards and forwards compatibility with the ever-changing Sass::Plugin api. 2010-01-04 09:30:35 -08:00
Chris Eppstein
ebd9f22440 Accidently committed a broken version of fssm. 2010-01-04 08:02:33 -08:00