Commit Graph

298 Commits

Author SHA1 Message Date
Chris Eppstein
008cffa3ef Rename the sprite Base class to SpriteMap 2011-06-07 07:51:47 -07:00
Chris Eppstein
c73d281e58 Move the sprite importer to the compass module and rename it to be more clear about what it does. 2011-06-06 18:53:35 -07:00
Darryl Pogue
23fc8290c0 Update test case for flexible box. 2011-05-30 11:33:55 -07:00
Hampton Catlin
3bf3ddac72 Following a similar API to how the Complier works, don't log
anything (don't even load up the logger!) if we pass in the :quiet option.

I need this because of some conflicts with Compass::Logger, being referred
to as "Logger", which seemed to be pulling out the main Logger. This is a
seperate issue, but making this options[:quiet] API functional is a nice
work-around that keeps things from getting too messy.

Tests included, obviously.
2011-05-30 16:17:28 +01:00
Scott Davis
b6ca6e4efb Merge branch 'master' of github.com:chriseppstein/compass into stable 2011-05-25 11:45:27 -04:00
Scott Davis
d95149ccff forgot test files 2011-05-25 11:44:53 -04:00
Scott Davis
faba01f34c added failing test for issue #400 and fixed the callback typo closes #400 2011-05-25 11:44:13 -04:00
Scott Davis
eec6759649 refactored the sass importer for sprites 2011-05-12 23:36:59 -04:00
Scott Davis
fdd639efaf updated the regex to support nested files and refactored some unclear functions 2011-05-11 02:41:51 -04:00
Scott Davis
753ad37df7 Fixed problem with globs only going one directoy deep from now on imports like foo/*.png will get mapped to foo/**/*.png
Please enter the commit message for your changes. Lines starting
2011-05-10 22:44:10 -04:00
Scott Davis
369c8d636e forgot test files 2011-05-10 21:57:43 -04:00
Scott Davis
84d207f827 Sass Colors will no longer cause an error if you use them as sprite names. closes #381 2011-05-10 21:51:35 -04:00
Scott Davis
325306dcec Fixed and issue with the options keyword in the Sprite::Base class. it was casing the passed options to be reset to an empty hash. I renamed it to kwargs for consistancy. I also refactored my previous changes to be unobtrusive to people currently using the sprite-map function without an @import. 2011-05-10 21:04:57 -04:00
Scott Davis
4321fc0cf5 refactored to allow a per sprite cleanup 2011-05-10 19:20:38 -04:00
Scott Davis
6cb9bc2662 old sprites will now be removed by default 2011-05-10 18:02:32 -04:00
Scott Davis
8f675f936b moved test files to a more sain structure 2011-05-10 18:01:12 -04:00
Mattias Pfeiffer
223258c203 Removing unneeded 'unquote' from tests 2011-05-05 10:19:19 +02:00
Mattias Pfeiffer
2f3b757b46 Make asset_cache_buster return a hash with path and query, while still maintaining support for cache busting via query string if a string is returned. 2011-05-04 11:37:58 +02:00
Nathaniel Bibler
21928907e4 Extend cache busting to allow for path manipulation 2011-05-04 11:02:15 +02:00
Chris Eppstein
5ededce909 Add support for -ms gradients in background-image and background properties.
Closes GH-361.
2011-05-01 09:33:21 -07:00
Chris Eppstein
f115d38788 disable test in jruby. 2011-04-28 21:18:32 -07:00
Scott Davis
dc362c3fb4 moved sprite map test over 2011-04-28 23:09:43 -04:00
Scott Davis
e74255635a fixed features 2011-04-28 10:13:38 -04:00
Scott Davis
3376a38f9d fixed ruby 1.9.2 bug 2011-04-28 09:05:25 -04:00
Scott Davis
5a2967fe51 sprite test_unit 2011-04-28 02:50:14 -04:00
Scott Davis
1c8804386a more sprite tests to test_unit 2011-04-28 02:49:03 -04:00
Scott Davis
8e2292b2a5 sprite base test 2011-04-28 00:35:10 -04:00
Scott Davis
3356303eb3 sprite tests moved over 2011-04-28 00:00:54 -04:00
Scott Davis
c3845f9954 diff helper 2011-04-27 23:19:41 -04:00
Scott Davis
c317ef6870 refactored tests 2011-04-27 23:18:52 -04:00
Chris Eppstein
5962a85a99 Fix broken linear gradients with svg enabled. 2011-04-24 18:59:07 -07:00
Chris Eppstein
85268281bc Fix failing tests due to load path changes. 2011-04-24 16:41:56 -07:00
Scott Davis
fec367d60c fixed gemfile and removed coercion to float 2011-04-20 19:57:19 -04:00
Scott Davis
4e502dda73 svg gradients now support angles 2011-04-20 19:33:29 -04:00
Scott Davis
8642187173 updated linier svg gradients to have userSpaceOnUse to be consistant with the radial implimentation 2011-04-20 17:17:03 -04:00
Chris Eppstein
810b95e7f3 Added a mechanism for plugins to extend compass's configuration options. 2011-04-17 11:36:16 -07:00
Eric Meyer
3c86dfa0b3 fixed tests related to grid-background 2011-04-16 23:48:28 -06:00
Scott Davis
d845c4d486 gradient rounding issue tentative fix 2011-04-16 22:09:42 -04:00
Chris Eppstein
df924ae56c Merge commit '9940ee8cbbe52e217a88b9a46ae5074790eea129'
* commit '9940ee8cbbe52e217a88b9a46ae5074790eea129':
  Adding support for pixel-stops for webkit if the gradient goes from left-to-right or top-to-bottom.

Conflicts:
	lib/compass/sass_extensions/functions/gradient_support.rb
2011-04-16 01:07:33 -07:00
Chris Eppstein
196abb2a28 Default the blueprint grid image to the pure CSS version in compass. 2011-04-16 00:21:35 -07:00
Chris Eppstein
8a8d625a7d Add a percent-based test case for grid-backgrounds, remove unnecessary 0.001 increment. 2011-04-15 23:49:49 -07:00
Chris Eppstein
72434be137 Webkit now supports the css3 official gradient syntax. 2011-04-15 23:16:43 -07:00
Eric Meyer
e66c822503 add grid-background mixins to layout module, with docs and tests 2011-04-11 19:26:55 -06:00
Chris Eppstein
ad0e172ec3 Allow degrees for linear and radial gradients. Currently no support for SVG gradients using degrees. Partial fix for #303 2011-04-10 14:14:44 -07:00
Chris Eppstein
1bd156e88f Fix a bug in the sprites base file and added a basic sprites test case to the compass test. 2011-04-02 09:54:06 -07:00
Chris Eppstein
0eef08e6ce Remove the css3 background simple bg support and move it to a new mixin called background-with-css2-fallback. 2011-04-02 09:33:09 -07:00
Chris Eppstein
0cf4fcd8a7 We don't have a charset in fonts anymore 2011-03-30 14:24:50 -07:00
Chris Eppstein
f2ceec4680 Created a function called css2-fallback($value, $css2-value) that will use the $css2-value in a css2 context and the $value in other contexts. 2011-03-30 14:24:50 -07:00
Chris Eppstein
da57adc49d add opera support for the css3 gradient syntax 2011-03-30 14:24:50 -07:00
Chris Eppstein
cca6474ba2 Don't extend core classes. 2011-03-24 22:57:17 -07:00
Steve Hull
9940ee8cbb Adding support for pixel-stops for webkit if the gradient goes from left-to-right or top-to-bottom. 2011-03-24 18:54:24 -07:00
Eric Meyer
51e21b08b9 additional transform-style typo and tests fixed 2011-03-16 16:32:00 -06:00
Eric Meyer
ddea94bb96 fixed transform-style typo caught by @doctyper 2011-03-16 16:11:55 -06:00
Eric Meyer
5a5c30caf4 updated font-face a la fontspring, no change in usage 2011-03-14 22:50:39 -06:00
Eric Meyer
132621c230 fixed tests related to reset 2011-02-22 23:11:26 -07:00
Chris Eppstein
65cf2f9812 Remove deprecated use of comma-delimited-list 2011-02-21 16:47:20 -08:00
Chris Eppstein
902450a244 Use a sass-based function instead of a ruby-based function for contrast calculations 2011-02-21 12:49:54 -08:00
Aaron Russell
620c9fe1ab Added utilities/color/contrast module. Added contrasted mixin and
get_contrast_yiq function.
2011-02-21 12:49:53 -08:00
Chris Eppstein
8a8ef87e48 Fix a ruby 1.9.2 bug 2011-02-20 10:38:00 -08:00
Chris Eppstein
2fe1c17ac4 Don't rely on global callbacks 2011-02-20 10:16:11 -08:00
Scott Davis
2142430735 Callbacks for the following events:
* sprite_saved
* sprite_generated
* stylesheet_saved
* stylesheet_error

From the compass configuration file you can attach code to run when the
event occurs like so:

on_stylesheet_error do |filename, message|
  # do something
end
2011-02-20 10:14:34 -08:00
Eric Meyer
53e975100b added vertical-rhythm and docs, moved lists, links and text, all into new typography module 2011-02-17 18:14:40 -07:00
Chris Eppstein
a597a10e7e update failing test due to slightly different css output 2011-02-01 23:02:34 -08:00
Paul Irish
0fd9c08664 Android 2.2 compat for @font-face declarations via a MQ redeclaration of the @ff 2011-02-01 22:24:22 -08:00
Chris Eppstein
136954561f Deprecate the blueprint span mixin in favor of the blueprint span function. 2011-01-03 09:35:07 -08:00
Chris Eppstein
15f760e002 Infrastructure for cross browser support of simple, experimental functions 2010-12-30 12:19:00 -08:00
Chris Eppstein
cc8bccfb15 fix broken tests and code. 2010-12-18 17:13:47 -08:00
Brandon Mathis
de3fab45c3 Merge branch 'master' of github.com:chriseppstein/compass
Conflicts:
	doc-src/content/CHANGELOG.markdown
2010-12-10 18:13:56 -06:00
Brandon Mathis
8d18a1b704 added legacy support option for ie8, updated opacty and filter-gradient mixins to use legacy support settings 2010-12-10 18:10:05 -06:00
Chris Eppstein
38e13e55e6 Removed deprecated command line options. 2010-12-10 11:32:26 -08:00
Chris Eppstein
e22acfde1e Rails apps have a tmp directory 2010-12-10 11:32:26 -08:00
Chris Eppstein
d014b4105a Different ruby versions have slightly different behavior with respect to @charset. Ignore these differences during testing. 2010-12-10 11:32:25 -08:00
Chris Eppstein
a86a94e4c2 Add support for the -ms prefix in 2D transforms.
Closes GH-224.
2010-12-05 21:02:16 -08:00
Chris Eppstein
93040322b3 Allow the cache buster in image-url() to be disabled on a per-call basis. 2010-12-05 20:16:40 -08:00
Chris Eppstein
a89d61ce21 Generated sprite filename is now unique based on inputs. 2010-12-05 20:12:50 -08:00
Chris Eppstein
633bb24302 Fix the broken validator tests 2010-11-27 16:48:36 -08:00
Chris Eppstein
35b206a897 Support simple background fallback in the background mixin. 2010-11-27 15:34:52 -08:00
Chris Eppstein
dd921ea363 Handle list arguments to prefixes 2010-11-27 15:34:52 -08:00
Chris Eppstein
ebf3630431 fix broken tests 2010-11-24 15:23:01 -08:00
Chris Eppstein
c8daf8a440 Versioned modules was a bad idea. 2010-11-22 00:28:55 -08:00
Chris Eppstein
b9c68bcc8c No side-effects when normalizing color stops for webkit 2010-11-21 15:59:37 -08:00
Chris Eppstein
ce7bbd0535 fix test for small change to the pie module. 2010-11-21 15:59:37 -08:00
Irina Dumitrascu
15a3ede491 Gradients - fix Opera's bug on gradient + border
* This fixes Opera's gradient background bug when the container has border.
It is still displayed wrong as the gradient is repeated towards the end.
* Firefox and Webkit ignore background-size
* IE9 displays correctly
2010-11-20 09:22:39 -08:00
Chris Eppstein
928bf675c2 CSS3 PIE module. 2010-11-20 08:31:38 -08:00
Chris Eppstein
b43ba6bfe0 Numerous small changes to the transform module. 2010-11-15 17:30:00 -08:00
Chris Eppstein
934df798a8 Use some of the new compass helpers to clean up this code. 2010-11-15 03:55:09 -08:00
Chris Eppstein
c4de9a3a85 Deprecate the radial-gradient mixin, linear-gradient mixin, and add
deprecation notices to the changelog.
2010-11-15 03:55:09 -08:00
Chris Eppstein
ca7563e3ba Better argument names for the columns module, tests for the columns module, accept space separated args for the column-rule mixin. 2010-11-15 03:52:33 -08:00
Chris Eppstein
1ac8e9e24d Handle gradients with those crazy extra arguments in them. 2010-11-15 03:52:32 -08:00
Chris Eppstein
2de6f7c8d3 Change the legacy gradient mixins to use the new background-image mixin. 2010-11-15 03:52:32 -08:00
Chris Eppstein
ae23274dcf Gradients in content too 2010-11-15 03:52:32 -08:00
Chris Eppstein
ecbe70973b Only emit extra property values for list images when required. 2010-11-15 03:52:32 -08:00
Chris Eppstein
6319f126fd Don't need to slice this list up afterall. 2010-11-15 03:52:32 -08:00
Chris Eppstein
efe3e148b1 Gradient support for list-style-image. 2010-11-15 03:52:32 -08:00
Chris Eppstein
d035acf1b7 Trim some whitespace from the svg xml -- saves about 12 bytes from the output per gradient. 2010-11-15 03:52:32 -08:00
Chris Eppstein
e4a5300b06 [CSS3] Support for the border-image property. 2010-11-15 03:52:32 -08:00
Chris Eppstein
e2137814df handle missing gradient arguments. 2010-11-15 03:52:31 -08:00
Chris Eppstein
9aea35738d New background image mixin with gradient support and up to 10 images. 2010-11-15 03:52:31 -08:00
Chris Eppstein
1fe22d7257 less unquotes & underscores, more dashes 2010-11-15 03:52:31 -08:00
Chris Eppstein
6204491f3d Gradient mixin for IE6-8 using filters, only does simple linear gradients and must be applied seperately from the linear-gradient mixin. Closes GH-183. 2010-11-15 03:52:31 -08:00