Commit Graph

716 Commits

Author SHA1 Message Date
Chris Eppstein
fc380ca203 It turns out that we didn't need to change the compile method's signature. Closes GH-335. 2011-04-16 00:49:17 -07:00
Chris Eppstein
26fe7f1074 Tell people who generate a grid background image that there's a better way. 2011-04-16 00:17:19 -07:00
Chris Eppstein
7db7e019ab Add a yellow block method for logging warnings in yellow. 2011-04-16 00:16:37 -07:00
Chris Eppstein
72434be137 Webkit now supports the css3 official gradient syntax. 2011-04-15 23:16:43 -07: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
727c025881 Fix some edge case uses of color stops with list arguments. 2011-04-02 11:59:54 -07:00
Chris Eppstein
af10edd7a9 [Rails Integration] Print a warning if compass is booted more than once. Closes GH-282. 2011-04-02 10:40:32 -07:00
Andrei Bocan
c4a315af3c Check if Rails module responds to env and root before using them 2011-04-02 10:04:08 -07:00
Chris Eppstein
3892919585 Raise an error when compiling selective files from a directory other than the project directory. 2011-04-02 09:34:22 -07:00
Scott Davis
8a1f14d72d removed dynamic constant becasuse i was being a bad programer 2011-04-01 22:19:24 -04:00
Scott Davis
a08003cdd9 changed sprite math back to ceil 2011-04-01 14:57:29 -04:00
Scott Davis
2c62cdf2f9 closes #296 rescue OutOfBounds exception gracfuly 2011-04-01 14:47:24 -04:00
Scott Davis
f83f85406c refactored to fix relative path bug with the compile command 2011-04-01 11:14:30 -04:00
Scott Davis
da2af62f47 closes #271 - fixed bug that was causing file name to truncate 2011-04-01 10:33:17 -04: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
Scott Davis
96f1e4dc96 closes #320 and refactored the rspec tests 2011-03-29 19:26:11 -04:00
Scott Davis
2e8fd055ed closes 268 - filenames can not start with numbers the must be legal css identifiers 2011-03-28 22:39:12 -04:00
Chris Eppstein
ccb391d9d1 Revert "Don't output transparent in css2 ouput."
Transparent is a legal value in css2.

This reverts commit 119ce9d018.
2011-03-28 09:29:38 -07:00
Chris Eppstein
119ce9d018 Don't output transparent in css2 ouput.
Closes GH-309
2011-03-27 21:03:32 -07:00
Chris Eppstein
a7b8689fb8 Fix bug in the compact function. 2011-03-27 19:16:59 -07:00
Scott Davis
d579c8bdcb 5 not 50 2011-03-26 15:25:47 -04:00
Scott Davis
b395552db3 chanded spritemap instance to use quick cache 2011-03-26 15:24:59 -04:00
Scott Davis
b0bfb63bb7 removed class variable 2011-03-26 13:53:50 -04:00
Scott Davis
27735a9537 fixed a bug that was causeing stack level too deep 2011-03-26 13:31:48 -04:00
Scott Davis
bd11d0b381 updated regular expression for finding the parent image 2011-03-25 17:32:58 -04:00
Scott Davis
c3f00537c8 updated code comments 2011-03-25 17:30:27 -04:00
Scott Davis
c72eebdf42 added support for sprite-selector formats 2011-03-25 17:28:38 -04:00
Scott Davis
4d7dc7ad30 refactored sprite selectors 2011-03-25 17:17:27 -04:00
Scott Davis
9962a37b2e added tests and css selector support for sprites ending in _hover _target _active closes#248 2011-03-25 15:00:50 -04:00
Scott Davis
e47fccd2ed rdoc updates for sprite classes 2011-03-25 12:48:18 -04:00
Chris Eppstein
3272dc7e5a Load extensions found in ~/.compass/extensions, if the directory exists. 2011-03-24 22:57:17 -07:00
Chris Eppstein
cca6474ba2 Don't extend core classes. 2011-03-24 22:57:17 -07:00
Scott Davis
fccd5d91e9 merge 2011-03-25 01:05:13 -04:00
Scott Davis
2bf3d8f453 reverted chunky_png version pushed that by mistake and patched a bug that was causing callbacks to register twice 2011-03-25 00:54:47 -04: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
Scott Davis
de86610c14 moved files around 2011-03-23 01:29:56 -04:00
Scott Davis
463ee01a12 moved files around 2011-03-23 01:29:51 -04:00
Scott Davis
f78744171d sprite base spec selector methods 2011-03-23 01:09:41 -04:00
Scott Davis
03b0ee2660 sprite base spec 2011-03-23 00:56:49 -04:00
John Bintz
f031d868d1 start refactoring work on sprite map 2011-03-22 21:19:19 -04:00
Scott Davis
6e1daf69f5 added boolean functions for finding selectors 2011-03-21 22:10:44 -04:00
Scott Davis
46eec5362d fixes #253 2011-03-21 21:16:55 -04:00
Scott Davis
a9b6d8cfde file cleanup 2011-03-21 18:37:24 -04:00
Scott Davis
f7d0079f27 file cleanup 2011-03-21 18:36:55 -04:00
Scott Davis
691c6718b5 updated for chunky png 1.1.0 2011-03-21 17:38:15 -04:00
Scott Davis
a4d43192c9 merge 2011-03-21 17:29:15 -04:00
Scott Davis
3f3eba57a2 merge 2011-03-18 06:44:54 -04:00
Chris Eppstein
40d0e623d0 Use a single staleness checker during a compile run to speed up dependency checking. 2011-03-15 14:38:52 -07:00
Scott Davis
267a5df605 opps bitecode 2011-03-03 01:16:11 -05:00
Scott Davis
1d6e316685 removed unnedded class tests are green runs in 1.8.7 adm 1.9.2 2011-03-03 01:15:22 -05:00
Scott Davis
c0a0b638b1 tests are green and config option added 2011-03-02 13:55:25 -05:00
Scott Davis
a4861298a7 fixed rmagic 2011-02-24 05:21:37 -05:00
Scott Davis
bc13d6aed5 rmagick changes 2011-02-24 03:08:28 -05:00
Scott Davis
03f4c23c04 abstracted out engine for chunkypng 2011-02-24 01:02:31 -05:00
Scott Davis
153582fe68 refactoring sprite class 2011-02-22 21:47:08 -05:00
Scott Davis
995a20cd36 fixed relative path call 2011-02-22 21:32:48 -05:00
John Bintz
994cf534af merge 2011-02-22 21:29:47 -05:00
John Bintz
da43418af0 merge 2011-02-22 21:27:52 -05:00
John Bintz
f3957daef7 start factoring out sprite images 2011-02-22 21:24:29 -05:00
Scott Davis
3feca48f51 duplicate function 2011-02-22 20:45:41 -05:00
Scott Davis
fb61e54389 abractated core sprite functions to a base class 2011-02-22 20:42:01 -05: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
f1587b6bf1 pass compilation sass events through to compass when using the sass plugin to compile. 2011-02-21 09:35:26 -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
Chris Eppstein
58740fc039 Correctly convert scss files to css names in the installatio instructions. 2011-01-26 09:49:12 -08:00
Chris Eppstein
bf52c76470 Rename the sprite-position mixin in compass/utilities/sprites/base to
sprite-background-position in order to avoid a naming conflict with the
older sprite-image module.
2011-01-17 11:54:58 -08:00
Chris Eppstein
042972003f handle some slightly older versions of sass 2011-01-17 06:40:10 -08:00
Chris Eppstein
d3a346e1ac Merge commit 'psampaio/sprite_skip_overrides'
* commit 'psampaio/sprite_skip_overrides':
  adding --skip-overrides argument to the compass sprite command
2011-01-16 12:58:36 -08:00
Pedro Sampaio
a095eb6abf adding --skip-overrides argument to the compass sprite command 2011-01-11 14:14:40 +00:00
Chris Eppstein
cb7ac80330 New Download page for compass docs 2011-01-09 22:26:47 -08:00
Chris Eppstein
48e3825053 Document Sass Functions 2011-01-02 12:34:16 -08:00
Chris Eppstein
e11f1035bf Refactor the cross browser support and list functions from gradient module. 2010-12-31 12:55:14 -08:00
Chris Eppstein
15f760e002 Infrastructure for cross browser support of simple, experimental functions 2010-12-30 12:19:00 -08:00
Chris Eppstein
a254caecdd Allow a prefix to be specified (or omitted) for sprite class names 2010-12-19 17:57:33 -08:00
Chris Eppstein
df8eefa3c2 Got my reversed motion backwards. 2010-12-19 17:51:40 -08:00
Chris Eppstein
638fd8f543 fix a bug in sprites when the offset position is absolute. 2010-12-18 18:39:35 -08:00
Chris Eppstein
50963d7dd2 Fix the url helper in rails2 mode. 2010-12-18 17:17:58 -08:00
Chris Eppstein
cc8bccfb15 fix broken tests and code. 2010-12-18 17:13:47 -08:00
Chris Eppstein
f318e93764 Expose CLI config parameters at configuration parse time. 2010-12-18 11:26:48 -08:00
Chris Eppstein
ec699c42c8 Watch arbitrary files within the compass configuration file. 2010-12-18 00:03:07 -08:00
Chris Eppstein
8d3b2d92df Make compass configuration accessible within a rails app's configuration. 2010-12-18 00:03:07 -08:00
Chris Eppstein
9e3fd546d9 Add donation details to the CLI. 2010-12-10 11:32:26 -08:00
Chris Eppstein
38e13e55e6 Removed deprecated command line options. 2010-12-10 11:32:26 -08:00
Chris Eppstein
25d9cc3468 Fix a bug in the spriting code in ruby 1.9.2 2010-12-10 11:32:25 -08:00
Chris Eppstein
0fb52388cc Upgrade FSSM to whatever version Sass is running. 2010-12-10 11:32:25 -08:00
Chris Eppstein
ab71230b94 Add a --time option to the compile and watch commands. 2010-12-10 11:32:25 -08:00
Chris Eppstein
e3ad16e5fe Don't try to watch importer objects. 2010-12-06 13:52:17 -08:00
Chris Eppstein
48b9e0851b Ruby 1.9 compliant require for the md5 library. 2010-12-05 22:01:46 -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
bcf1f4b1f6 Fix a bug in sprite-location resolution 2010-12-05 16:14:55 -08:00
Chris Eppstein
00b41b5506 Only require (chunky|oily)_png if it is needed. 2010-12-05 16:14:55 -08:00
Chris Eppstein
20bb8c0d28 Update gemfiles to depend on sass3.1 2010-12-05 16:14:36 -08:00
Chris Eppstein
43bd9eb8e5 The Sprite container is now called a Sprite Map, and each individual image is called a sprite. 2010-12-05 16:13:13 -08:00
Chris Eppstein
b2a8c8a634 Some code comments, cleanup, and register sprite functions with sass. 2010-12-05 16:13:13 -08:00
Chris Eppstein
472456f344 Less joins. More responding. 2010-12-05 16:13:13 -08:00
Chris Eppstein
027ebdd8c4 Change the sprite utilities to create a sprite literal object that can retain information about the sprite for use in other function calls. This avoids the need for global storage and allows multiple sprites constructed from the same sprite folder with different values. 2010-12-05 16:13:13 -08:00
Chris Eppstein
b2b913d69f Generator for creating sprite imports for users who don't like magic. 2010-12-05 16:13:13 -08:00
Chris Eppstein
b63bf2669d Don't rely on reading the environment within the sprite code. Instead accept variable keyword args. 2010-12-05 16:13:13 -08:00
Chris Eppstein
d62cdf0127 Fix a bug in ruby 1.9 2010-12-05 16:13:13 -08:00
Chris Eppstein
5aac677e77 Put the Sprite importer on the default load paths coming from compass. 2010-12-05 16:13:13 -08:00
Chris Eppstein
28a77171e3 Quick cache for burst reads. 2010-12-05 16:13:13 -08:00
Chris Eppstein
e1130066f2 Update links to compass online. 2010-12-05 16:13:13 -08:00
Nico Hagenburger
6e93589e6a added error messages to help lemonade users 2010-12-05 16:13:12 -08:00
Nico Hagenburger
9dcab9e14b lemonade compatibility specs and functions 2010-12-05 16:13:12 -08:00
Nico Hagenburger
79d6e28cf5 allow images to be repeated 2010-12-05 16:13:12 -08:00
Nico Hagenburger
2522a3c981 updated gem versions 2010-12-05 16:13:12 -08:00
Nico Hagenburger
8b566765b3 added positioning of images 2010-12-05 16:13:12 -08:00
Nico Hagenburger
573d1a1b03 generation of png file 2010-12-05 16:13:12 -08:00
Nico Hagenburger
c62b8e718d added default spacing 2010-12-05 16:13:12 -08:00
Nico Hagenburger
bf47c74dc2 added sprite position calculating 2010-12-05 16:13:12 -08:00
Nico Hagenburger
4026c51273 optimized options 2010-12-05 16:13:12 -08:00
Nico Hagenburger
05b2695806 implemented most basic sprite usage without image generation 2010-12-05 16:13:11 -08:00
Chris Eppstein
aaffea49af factor out the saving from the generating, we'll need to monkey patch this in a rails environment. 2010-12-05 16:13:11 -08:00
Chris Eppstein
0a447625e0 The image_url function has to be accessed from within the engine for it to work right in all cases. 2010-12-05 16:13:11 -08:00
Chris Eppstein
57a63c455a Use the Sass cache to store information about sprites across compiles -- this removes one aspect of lemonade's filesystem dependency. 2010-12-05 16:13:11 -08:00
Chris Eppstein
53033e473b This is a little more readable. 2010-12-05 16:13:11 -08:00
Chris Eppstein
8bf992defa Move the lemonade files around to adhere to compass conventions. 2010-12-05 16:13:11 -08:00
Chris Eppstein
757fed8888 Rename Lemonade to Compass::Sprites 2010-12-05 16:13:11 -08:00
Chris Eppstein
a2f1026659 This is a whole lot faster 2010-12-05 16:13:11 -08:00
Chris Eppstein
a1f1943367 Only do this once, otherwise the output changes every time. 2010-12-05 16:13:11 -08:00
Chris Eppstein
b313ac794e update the gemspec with lemonade dependencies. add nico as an author. 2010-12-05 16:13:11 -08:00
Chris Eppstein
ffe967e8c8 Bolt on lemonade to get started. 2010-12-05 16:13:10 -08:00
Chris Eppstein
9f1b8f515b Use the new Sass gem now. 2010-12-05 16:13:10 -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
6e30099473 Sass has an if function now. removing compass's version. 2010-11-27 15:34:52 -08:00
Chris Eppstein
c8daf8a440 Versioned modules was a bad idea. 2010-11-22 00:28:55 -08:00
Chris Eppstein
f06d928c4b Support for sass 3.1 alphas 2010-11-21 15:59:37 -08:00
Chris Eppstein
9e033f7df5 Handle the change from Haml::Util => Sass::Util and haml_warn => sass_warn. 2010-11-21 15:59:37 -08:00
Chris Eppstein
ad7f2eb980 fix regression in the transform api 2010-11-21 15:59:37 -08:00
Chris Eppstein
b9c68bcc8c No side-effects when normalizing color stops for webkit 2010-11-21 15:59:37 -08:00
Chris Eppstein
a4774bdf32 A special require for rails. 2010-11-20 10:54:53 -08:00
Chris Eppstein
99f3e959ac Don't need this to get rails to boot compass after all 2010-11-20 10:15:17 -08:00
Chris Eppstein
928bf675c2 CSS3 PIE module. 2010-11-20 08:31:38 -08:00
Chris Eppstein
6553e06db6 Allow erb processing of non all non-binary filetypes. 2010-11-20 08:24:29 -08:00
Chris Eppstein
889580d9d8 Fix a bug in the stylesheet_url helper 2010-11-20 08:24:28 -08:00
Chris Eppstein
dabd4f6f9d Rails gives us a pathname, pathnames don't like =~ 2010-11-15 18:01:04 -08:00
Chris Eppstein
46eb667837 Allow inspection of list size 2010-11-15 17:28:20 -08:00
Chris Eppstein
d4a0484922 Return false if no false value is provided. 2010-11-15 03:55:09 -08:00
Chris Eppstein
d7da056fb1 Add a new configuration property to disable sass warnings: disable_warnings 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
ce60780a4e I misread the spec, those are ands, not ors 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
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