Commit Graph

415 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Chris Eppstein
66e2a603d5 Fix a ruby 1.8.6 compatibility bug. 2010-01-02 12:17:06 -08:00
Chris Eppstein
02e2d7a4a9 Upgrade to FSSM v0.1.2. 2010-01-02 11:11:45 -08:00
Chris Eppstein
770f871071 Support for SCSS files if haml edge is installed. 2010-01-02 10:47:34 -08:00
Chris Eppstein
5707a3627f Move the compile action from the Actions module to the Compiler class.
Refactor the compass project compiler to be easier to read.
2010-01-02 08:54:19 -08:00
Chris Eppstein
42d5295e52 Update the gem dependencies for the rails installer. 2009-12-31 11:34:06 -08:00
Chris Eppstein
7db51c42b0 Merge commit 'jsilver/master'
* commit 'jsilver/master':
  fixed win32 sudo incompatibility issue in the rails template
2009-12-31 11:25:55 -08:00
Chris Eppstein
e957da4ec8 Grid image generation: Fix a double output issue, let write_file handle dry runs, and make sure to open the file for binary output. 2009-12-31 11:09:47 -08:00
Chris Eppstein
13425f3e4b Trim some whitespace 2009-12-31 10:55:40 -08:00
Chris Eppstein
4fe8e25edd Merge commit 'pixelmatrix/master'
* commit 'pixelmatrix/master':
  Patched hide-text to account for items that are not text-align: left by default
2009-12-31 10:47:09 -08:00
Richard Wöber
b43223b637 removed RMagic dependecy 2009-12-30 19:38:41 +01:00
pixelmatrix
3da66000b5 Patched hide-text to account for items that are not text-align: left by default 2009-12-29 16:58:56 -07:00
Andrew Vit
f6b319268e [Compass Core] Split out hide-text as its own mixin. 2009-12-18 11:10:26 -08:00
Chris Eppstein
8006c7854c Upgrade the vendored version of FSSM to 0.1.0, this fixes some bugs with jruby and adds inotify support for linux. 2009-12-18 11:05:08 -08:00
Chris Eppstein
6d6e1ca0e3 [Command Line] Specification of sass files to compile
The command line compiler now lets you target specific sass files for
compilation. When specified explicitly, the sass files are always
compiled even if they are older than the corresponding css file (--force
is implied).

Usage Examples:

From the project directory:
compass compile src/screen.sass src/ie.sass

From another directory:
compass compile my_project my_project/src/screen.sass my_project/src/ie.sass
2009-12-18 11:05:08 -08:00
Chris Eppstein
a3cdf182c9 [Compass Core] +min-height, +min-width, and +bang-hack mixins 2009-12-18 11:05:08 -08:00
Andrew Vit
5ea5d3d6f3 Added utility for loading web fonts using @font-face. 2009-12-18 11:05:08 -08:00
jsilver
0933a1665e fixed win32 sudo incompatibility issue in the rails template 2009-12-17 19:03:02 -07:00
Chris Eppstein
5f32043c29 [Blueprint] Bug Fix: variable referenced in a non-script context within
the dquo mixin in the fancy_type module. Closes GH-60.
2009-12-03 00:53:35 -08:00
Chris Eppstein
3bb5e6d83d If the configuration file changes, wipe out the sass cache and force
compilation. Closes #55.
2009-12-01 10:34:39 -08:00
Chris Eppstein
fd058fae04 [Configuration] The sass cache location can now be set in the compass config file using the cache_dir property and the cache can be disabled by setting cache = false. 2009-12-01 09:57:49 -08:00
Chris Eppstein
c60aca3d96 Color any stderr or stdout output from the Sass::Engine red. 2009-12-01 09:57:26 -08:00
Chris Eppstein
0dd89e54f4 Fix line_comments configuration setting. 2009-12-01 00:03:07 -08:00
Chris Eppstein
21cf6c870f Make sure the required libraries appear in the generated configuration file. 2009-11-30 23:46:58 -08:00
Chris Eppstein
bf7265443e Use the correct error formatting function based on what sass provides. 2009-11-30 22:48:20 -08:00
Chris Eppstein
faf589bead [Rails] Fix the invalid reference to the compass configuration file. 2009-11-30 22:48:19 -08:00
gpbmike
2751e3b913 line-height should be 1 and not 1em 2009-12-01 14:47:48 +08:00
Chris Eppstein
c17c36eae4 Some code cleanup and bugfixes for the css3 transform module. 2009-11-29 22:44:19 -08:00
Chris Eppstein
4b68a64ea9 Pretty color output for the compass logger. 2009-11-29 20:18:25 -08:00
Chris Eppstein
cc31c29807 Error reporting. When an error occurs during compilation,
write out a css file with the error report and debugging information.
Also, record the error to the output, but keep compiling the other
stylesheets.
2009-11-29 20:18:25 -08:00
Chris Eppstein
e359db1a77 Fix some configuration defaults. 2009-11-29 20:18:09 -08:00
Chris Eppstein
71058e3d9c Fix a bug in the error handler while watching a project. 2009-11-29 18:39:58 -08:00
Chris Eppstein
ca6ffb4f57 [Rails] The font directory for rails projects will default to public/fonts. 2009-11-28 12:11:11 -08:00
Chris Eppstein
fb16bf6ace Fix a bug that caused the project type to not be emitted into the compass config file for rails projects. 2009-11-28 12:10:14 -08:00
Chris Eppstein
eec390ea37 Allow extensions to deliver fonts into projects. 2009-11-28 11:04:03 -08:00
Chris Eppstein
d504650eda Ooops. 2009-11-28 10:07:10 -08:00
Chris Eppstein
7b95f34aa3 Support for font urls and embedding fonts inline within the file 2009-11-27 17:44:22 -08:00
Chris Eppstein
070f39c6b7 Added support for a fonts directory. This is where font files are kept
and should be accessible to the webserver. By default the fonts directory
is the "fonts" subdirectory of the css directory but another location
can be set via the fonts_dir and http_fonts_dir configuration options.
2009-11-27 17:15:07 -08:00
Chris Eppstein
d2c314839d Merge branch 'edge' into ericam_edge
* edge:
  Fix test failure.
  [Blueprint] Fixed clipping of ordinals for IE in an ordered list.
  [Blueprint] When using the RTL plugin, columns are now text-align:right.
  [Blueprint] Add visibility:hidden to hr.space and +colspacer so it's useful outside of white backgrounds
  Fix grid builder to properly generate png
  [Blueprint] Password inputs now the same style as regular text inputs
  [Tests] Process expected result files thru erb to account for more transient behaviors across different systems.
  fix broken test.
  Don't use methods not available in ruby 1.8.6
  Changes for blueprint commit 9be685760014b3258dcd83913b9b19f130551b2f
2009-11-27 16:23:47 -08:00
Chris Eppstein
7da41d027a [Compass Core] +font-face mixin uses stylesheet_url to form urls relative to the css directory. 2009-11-25 22:55:42 -08:00
Eric Meyer
d6b170b851 css3 transitions sass 2009-11-25 17:32:15 -07:00
Eric Meyer
21dee4e75e css3 transition mixins 2009-11-25 17:22:24 -07:00
Eric Meyer
caf99cc98c css3 transform mixins 2009-11-25 15:05:11 -07:00
Eric Meyer
f7f188ec45 fixed example to match recommendation 2009-11-24 17:20:14 -07:00
Eric Meyer
d985773b96 !postscript = false / not !false 2009-11-24 17:14:13 -07:00
Eric Meyer
f37a7414c5 typos in font_files function and include 2009-11-24 13:18:21 -07:00
Eric Meyer
a1c976bbcb added font-face mixin with font_files function 2009-11-24 13:12:31 -07:00
Chris Eppstein
43c19f7315 [Blueprint] Fixed clipping of ordinals for IE in an ordered list.
Port of blueprint commit 016c9114f1aa91f84c3d68f3be9a97a114334d84
2009-11-24 09:51:17 -08:00
Chris Eppstein
19ceefe899 [Blueprint] When using the RTL plugin, columns are now text-align:right.
Ported from blueprint commit 9be685760014b3258dcd83913b9b19f130551b2f
2009-11-24 09:51:17 -08:00
Chris Eppstein
ebaf655bb6 [Blueprint] Add visibility:hidden to hr.space and +colspacer so it's useful outside of white backgrounds
Port of blueprint commit 414d9242c3b3ffdf5e2d90a84c87a4c4c711a135
2009-11-24 09:51:10 -08:00
Chris Eppstein
27e1bf4b0f Fix grid builder to properly generate png
Port of blueprint commit eb58cdef26ea537cc65f842c7675c6575575f6c0
2009-11-24 09:30:22 -08:00
Chris Eppstein
b8b43c3ebc [Blueprint] Password inputs now the same style as regular text inputs
Port of blueprint d77e914e85669ff9f05034e51d4d6d8a9dba2fa9
2009-11-24 09:23:48 -08:00
Chris Eppstein
7f756f681a Don't use methods not available in ruby 1.8.6 2009-11-23 15:16:16 -08:00
Eric Meyer
2b8c14082c added imports for new CSS3 mixins 2009-11-23 11:59:51 -07:00
Eric Meyer
0df5a8cf47 added css3 background-size mixin 2009-11-23 11:55:38 -07:00
Eric Meyer
e890332344 added css3 background-origin mixin 2009-11-23 11:45:31 -07:00
Eric Meyer
dd829cd48c added css3 background-clip mixin 2009-11-23 11:43:58 -07:00
Eric Meyer
5d812effd6 Merge branch 'edge' of git://github.com/imathis/compass into edge 2009-11-23 10:40:19 -07:00
Chris Eppstein
67a7a37b42 Changes for blueprint commit 9be685760014b3258dcd83913b9b19f130551b2f 2009-11-22 22:14:18 -08:00
Enrico Bianco
3a25a83040 [Blueprint] Ensure that the blueprint-inline-form mixin is applied to form.inline when using blueprint-scaffolding. Fixes some alignment issues in the inline form example 2009-11-21 15:33:16 -08:00
Chris Eppstein
382388b029 Move some sass code to where it should be for this welcome page. 2009-11-21 13:20:21 -08:00
Chris Eppstein
b69138059a [Blueprint] Moved the blueprint/modules/*.sass files to blueprint/*.sass. Old imports are still supported but are deprecated. 2009-11-21 13:19:18 -08:00
B Mathis
8ab06aa183 added box shadow and text shadow to default css3 partial 2009-11-21 15:07:41 -06:00
B Mathis
31dab72ff3 added text shadow mixin 2009-11-21 15:06:00 -06:00
B Mathis
4b26355dc0 fixed variables in box shadow mixin 2009-11-21 15:05:43 -06:00
B Mathis
858227ab0f fixed typo on box_shadow mixin 2009-11-21 14:57:10 -06:00
B Mathis
a3b52a23ee updated gradient example to use sass script color stop function, added radial gradient support 2009-11-21 14:47:32 -06:00
Chris Eppstein
9d8253fa05 Added a color-stop function to simplify the creation of gradients with multiple stop points. 2009-11-21 11:33:18 -06:00
Chris Eppstein
11a354e47e [Compass Core] Added a color-stop function to simplify the creation of gradients with multiple stop points. 2009-11-21 09:26:54 -08:00
B Mathis
483af9ac31 added linear gradient mixin 2009-11-21 11:11:34 -06:00
B Mathis
ec7be709c2 rewrote box shadow to have optional arguments, and defaults 2009-11-21 11:10:23 -06:00
Chris Eppstein
04f14eb514 Merge branch 'edge'
* edge: (118 commits)
  Make the tests pass in ruby 1.9
  Fix a bug in FSSM for ruby 1.9. Closes GH-48.
  Version bump to 0.9.4
  Update the TODO.
  If a template provides a haml file, it can have compass-enabled sass filters within it.
  Allow vendored frameworks to override built-in frameworks to enable
  [Rails] Allow compass extensions to be stored in the vendor/plugins/compass/extensions directory.
  Fix some issues regarding how the project type configuration gets applied.
  Don't leave directories around after testing.
  Name all configuration sources for debugging purposes.
  [Command Line] Primary commands get special status in the initial help output.
  [Command Line] Access the Sass Repl (sass -i) with the compass environment loaded.
  Separate the project type default configuration from the installer.
  Add config/compass.rb as a known config location. Default to config/compass.rb as the configuration file for rails projects.
  Fix a bug when the welcome message was not provided by an extension template.
  Version bump to 0.9.3
  Starting work on the changelog for 0.10
  Stuff that needs to be done before the next release.
  Help for each template that ships with compass.
  Allow the welcome message to replace the default one instead of just augment it.
  ...

Conflicts:
	CHANGELOG.markdown
	VERSION.yml
	compass.gemspec
	lib/compass/configuration.rb
	lib/vendor/fssm.rb
	lib/vendor/fssm/state.rb
2009-11-19 10:53:20 -08:00
Chris Eppstein
bad615ef09 Fix a bug in FSSM for ruby 1.9. Closes GH-48. 2009-11-19 02:19:53 -08:00
Chris Eppstein
0c2a8a4e21 If a template provides a haml file, it can have compass-enabled sass filters within it. 2009-11-19 01:03:57 -08:00
Chris Eppstein
651bcc9977 Allow vendored frameworks to override built-in frameworks to enable
testing and development.
2009-11-19 00:41:15 -08:00
Chris Eppstein
51315469d8 [Rails] Allow compass extensions to be stored in the vendor/plugins/compass/extensions directory. 2009-11-18 23:44:30 -08:00
Chris Eppstein
0da214a987 Fix some issues regarding how the project type configuration gets applied. 2009-11-18 23:43:33 -08:00
Chris Eppstein
bd422403bd Name all configuration sources for debugging purposes. 2009-11-17 08:58:12 -08:00
Chris Eppstein
a281dc1d5f [Command Line] Primary commands get special status in the initial help output. 2009-11-16 17:57:50 -08:00
Chris Eppstein
46ccb5b6e1 [Command Line] Access the Sass Repl (sass -i) with the compass environment loaded. 2009-11-14 10:11:19 -08:00
Chris Eppstein
22cdcf2cb5 Separate the project type default configuration from the installer. 2009-11-14 09:42:37 -08:00
Chris Eppstein
ba33c5a5a6 Add config/compass.rb as a known config location. Default to config/compass.rb as the configuration file for rails projects. 2009-11-14 09:37:36 -08:00
Chris Eppstein
57aae94511 Fix a bug when the welcome message was not provided by an extension template. 2009-11-01 21:08:45 -08:00
Chris Eppstein
1981e5f2ca Help for each template that ships with compass. 2009-11-01 17:40:50 -08:00
Chris Eppstein
d4f67a315c Allow the welcome message to replace the default one instead of just augment it. 2009-11-01 17:09:44 -08:00
Chris Eppstein
353a225ac5 Allow help, welcome message, and description of an extension to be specified in the manifest file. 2009-11-01 16:49:44 -08:00
Chris Eppstein
8bcdd7360d Each framework pattern can have help now. 2009-11-01 15:26:58 -08:00
Chris Eppstein
9ae53ac72e Move compass/utilities/css3 module to compass/css3 2009-11-01 10:01:29 -08:00
Chris Eppstein
c40982c533 Debug configuration with compass config --debug 2009-11-01 09:59:48 -08:00
Chris Eppstein
d1a6490f2c Make the validator work even when you're not in the project directory. 2009-10-30 09:27:59 -07:00
Chris Eppstein
b0637be654 Fix some test errors that occur when gems are missing. 2009-10-30 08:19:44 -07:00
Chris Eppstein
2675f8ed9a CSS Stats for projects so that the complexities can be compared. 2009-10-29 11:35:20 -07:00
Chris Eppstein
d1e1c1756d New compass subcommand: stats. Emits details about your stylesheets. 2009-10-29 01:39:04 -07:00
Chris Eppstein
0d45a3b4aa Subcommand for writing a configuration file. 2009-10-26 18:52:27 -07:00
Chris Eppstein
dd750391be Subcommand for CSS validation. 2009-10-26 18:52:00 -07:00
Chris Eppstein
217c522a92 test scenario for the rails project initialization. 2009-10-25 20:15:31 -07:00
Beau Smith
adce6a4873 applying border to image element rather than anchor element 2009-10-25 17:22:15 -07:00
Chris Eppstein
3e99fedab0 Added a watch subcommand. Watching a project can now by done with: compass watch 2009-10-25 00:47:09 -07:00
Chris Eppstein
c8df3f3c42 New subcommand: compile 2009-10-24 17:44:42 -07:00
Chris Eppstein
f9c5644dcc Ability to create a bare project by passing the --bare option to the create command. 2009-10-24 15:21:08 -07:00
Chris Eppstein
853e97f2e4 [Command Line] Ability to create a bare project with no stylesheets provided. 2009-10-22 09:46:54 -07:00
Chris Eppstein
964304caa4 This fixes a bug in ruby 1.8.7. 2009-10-21 17:59:51 -07:00
Chris Eppstein
8b02a65ab4 Fix bugs in the dry-run mode of project creation. 2009-10-16 17:35:43 -07:00
Chris Eppstein
4c4cc0e55f Handle a call to the command line with no arguments. 2009-10-16 00:56:16 -07:00
Chris Eppstein
8b5868ca00 Grid image subcommand. 2009-10-05 00:56:49 -07:00
Chris Eppstein
12dcccad5d Install subcommand. 2009-10-04 22:22:07 -07:00
Chris Eppstein
f16b12e56b This looks a little better. 2009-10-04 22:18:19 -07:00
Chris Eppstein
b8d380d68c Version subcommand. 2009-10-04 22:17:56 -07:00
Chris Eppstein
515cdb316e Help command as a univeral way to access help information. With help for other commands so far. 2009-10-04 15:58:05 -07:00
Chris Eppstein
dedff936b8 Better output for -h, --help and on option parse error. 2009-10-04 13:45:46 -07:00
Chris Eppstein
0fc9a0e3c8 Subcommand UI for project creation and initialization. 2009-10-04 00:33:36 -07:00
Chris Eppstein
4cc569586b Restructure the existing command line code to allow for the new sub-command based CLI. 2009-09-29 18:35:24 -07:00
Chris Eppstein
772a58de41 Converted the blueprint stylesheets to css-style properties. 2009-09-28 22:34:41 -07:00
Chris Eppstein
e744c1e0db Convert the compass core framework to css-style property syntax. 2009-09-28 21:52:49 -07:00
Chris Eppstein
e0732c8700 [Compass Core] The enumerate function now accepts an optional argument to specify the separator. Closes GH-46. 2009-09-24 09:06:47 -07:00
Chris Eppstein
7a59888fcb Don't require an extension to provide a stylesheets directory. 2009-09-12 08:28:38 -07:00
Chris Eppstein
770b3b4fee [Command Line] Upgrade to FSSM 0.0.6 for bug fixes. 2009-09-05 22:59:30 -07:00
Chris Eppstein
598f850124 Upgrade to FSSM version 0.0.4 2009-09-02 22:42:59 -07:00
Chris Eppstein
6e7f658f3b Move the frameworks directory into lib/compass per gem packaging best practices. 2009-09-02 21:45:15 -07:00
Chris Eppstein
e6b14cf5bb Provide a Compass::VERSION constant. 2009-09-02 21:45:14 -07:00
Chris Eppstein
b13fd43a2e Require relative to the load path instead of using the more convoluted approach of File.join(File.dirname(__FILE__), ...).
Also, don't ever muck with the load paths or rubygems without first
trying to require the library without doing so.
2009-09-02 21:45:08 -07:00
Chris Eppstein
60ad1e2425 Move project configuration reading out of the command infrastructure and into the configuration helpers. 2009-09-02 10:47:21 -07:00
Chris Eppstein
54a459f28e Allow specification of a height for the grid image. 2009-09-01 20:20:53 -07:00
Chris Eppstein
cb45b6d438 Generalized application framework integration. There are three that ship with compass: Merb, Rails, and StandAlone.
All application specific behavior is now centralized within the app integration modules.
Plugins can now provide app integration using the --app command line option and by adding the appropriate classes to the compass module tree.
2009-09-01 20:20:23 -07:00
Chris Eppstein
3456f993d4 Merge branch 'master' into edge
* master:
  [Blueprint] Add mixins for +prepend-top and +append-bottom and corresponding grid classes when generating the css grid classes.
  Use FSSM by Travis Tilley to monitor for filesystem changes. On mac this will use filesystem events instead of polling. Fixes an infinite looping issue when compilation errors occur.
2009-08-30 11:53:47 -07:00