Commit Graph

1446 Commits

Author SHA1 Message Date
Chris Eppstein
34478112ba Add a warning message to the logger. 2010-02-21 17:32:23 -08:00
Chris Eppstein
2c05ccf9e9 Provide a convenience function for discovering extensions. 2010-02-21 17:31:37 -08:00
Jacques Crocker
5fc52baa02 Adding Pathname support to compass configs 2010-02-20 13:06:29 -08:00
Jacques Crocker
2b985fd191 Adding PathName support for add_project_configuration 2010-02-20 12:48:58 -08:00
Jacques Crocker
719cd980ae Separating out Rails2 actionpack integration logic
Rails3 has different internal implementations on ActionPack which is causing breakage when trying to calculate image_paths. Lets only calculate this logic for Rails 2 at the moment, and figure out what to do with Rails3 later
2010-02-20 12:43:10 -08:00
Deepak Jois
a075a10f59 Adding support for calculating JPG dimensions 2010-02-18 09:58:16 -08:00
Deepak Jois
f9d75b3bce Adding image_height and image_width functions 2010-02-17 19:58:25 -08:00
Chris Eppstein
a8457c99db Fix some x-browser issues in the gradient point code. 2010-02-16 22:14:10 -08:00
Chris Eppstein
cee0eef688 better examples and some comments. 2010-02-16 22:13:07 -08:00
Chris Eppstein
aef52bd57e New linear gradient mixin and support functions. Radial gradient and browser testing are still pending. 2010-02-16 01:47:27 -08:00
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
Chris Eppstein
eb6f2b5bbf Merge commit 'mrajcok/master' into docs
* commit 'mrajcok/master':
  Reversed the logic to be correct (IE6 *ignores* the !important identifier).
2010-02-13 08:31:03 -08:00
Daniel Hofstetter
fc19d5e036 Fixing typo (replacing "WARINING" with "WARNING") 2010-02-11 15:29:42 +01:00
Chris Eppstein
827e81d2ea Syntax highlighting 2010-02-07 13:58:52 -08:00
Chris Eppstein
4f6beead0a Merge commit 'wolfr/docs' into docs
* commit 'wolfr/docs':
  Ported following pages from the github wiki to the docs: Adding Frameworks to Compass, Supported Frameworks, Compass Plugins. Added some styles where necessary so the content was readable. Used html2haml with some manual adjustment so likely not super perfect.
  Corrected metadata for current css3 examples so they show up in reference docs
  Make the docs a little more nicer looking to work in
  * Added examples for CSS3 transforms, transitions and gradients.
2010-02-07 09:47:07 -08:00
Chris Eppstein
132a80dddd Checking the identifier before the attributes makes nanoc faster. 2010-02-07 09:37:07 -08:00
Chris Eppstein
f9a66671f8 Better caching for autocompile. 2010-02-07 09:14:20 -08:00
Chris Eppstein
02570b445b update ignores. 2010-02-07 09:10:14 -08: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
Johan Ronsse
7dc9d66fbf Ported following pages from the github wiki to the docs: Adding Frameworks to Compass, Supported Frameworks, Compass Plugins. Added some styles where necessary so the content was readable. Used html2haml with some manual adjustment so likely not super perfect. 2010-02-05 00:13:57 +01:00
Johan Ronsse
4bc02bc53e Corrected metadata for current css3 examples so they show up in reference docs 2010-02-04 23:03:33 +01:00
Johan Ronsse
f549f0c8da Make the docs a little more nicer looking to work in 2010-02-04 22:38:30 +01:00
Johan Ronsse
5569b12f80 Merge remote branch 'chris/docs' into docs
Conflicts:
	doc-src/content/examples/compass/css3/columns/stylesheet.sass
2010-02-04 00:52:31 +01:00
Johan Ronsse
13af3a7521 * Added examples for CSS3 transforms, transitions and gradients.
* Updated every CSS3 example to follow doc conventions: no tabs, spaces(2), colon after property (e.g. background: red), id naming like #id-name, no camelCasing
2010-02-04 00:41:21 +01:00
Chris Eppstein
575d1cfb0f cleanup some display of mixin definitions. 2010-02-03 08:21:30 -08:00
Chris Eppstein
754533022d Cleanup some more titles. 2010-02-03 08:16:12 -08:00
Chris Eppstein
1df482670f silence a compilation warning 2010-02-03 08:15:33 -08:00
Chris Eppstein
e0abcf797f Merge commit 'wolfr/docs' into docs
* commit 'wolfr/docs':
  Added examples for compass/css3: border radius, box shadow, box sizing, columns, inline block, opacity, text shadow. Slighty modified example CSS for better display.
  Formatting changes only; markdown `code` backticks instead of <code>; newlines adjustment in -box-sizing
  Clarify documentation README so it is newbie friendly. Added new section on setting up the docs. Moved setup-related items to that section. Kept Chris' original section on structure and howtos, getting around the docs.
2010-02-03 08:04:11 -08:00
Chris Eppstein
467bc9ebd7 List all the reference content in the sidebar. 2010-02-03 08:02:27 -08:00
Johan Ronsse
acf2182d87 Added examples for compass/css3: border radius, box shadow, box sizing, columns, inline block, opacity, text shadow. Slighty modified example CSS for better display. 2010-02-03 00:11:58 +01:00
Johan Ronsse
244bc0d944 Formatting changes only; markdown code backticks instead of <code>; newlines adjustment in -box-sizing 2010-02-01 23:47:36 +01:00
Johan Ronsse
3d8bdcf152 Clarify documentation README so it is newbie friendly. Added new section on setting up the docs. Moved setup-related items to that section. Kept Chris' original section on structure and howtos, getting around the docs. 2010-02-01 23:00:32 +01:00
Johan Ronsse
de2ece8de4 Merge remote branch 'chris/docs' into docs 2010-02-01 00:45:42 +01:00
Chris Eppstein
76e2e5217b Make the docs more righter. 2010-01-31 10:01:45 -08:00
Chris Eppstein
b1fa724f66 Simple docs homepage 2010-01-31 10:01:04 -08:00
Chris Eppstein
545525deb7 Tell compass we're under /docs 2010-01-31 09:43:19 -08:00
Johan Ronsse
5dec85f59f Merge remote branch 'chris/docs' into docs 2010-01-31 17:33:30 +01:00
Chris Eppstein
6c6acc2126 Merge commit 'wolfr/docs' into docs
* commit 'wolfr/docs':
  Updated documentation for CSS3 module [multi line comment]
  Added descripton for box shadow mixin and updated box-shadow sass file so it gets parsed through markdown correctly
2010-01-31 08:13:51 -08:00