Compare commits

...

573 Commits

Author SHA1 Message Date
John Bintz
4dd1223682 add support for alternate file sources for image size analysis 2012-05-25 20:19:00 -04:00
Chris Eppstein
b1c34a24f2 noindex on the beta version of the site. 2012-05-10 14:11:07 -07:00
Eric Meyer
8c3dac2d26 merge stable into master 2012-05-04 16:10:57 -06:00
Eric Meyer
105087721e Merge pull request #861 from JohnAlbin/reset-with-vertical-rhythm
Make the reset partial compatible with the establish-baseline() mixin.
2012-05-03 18:03:53 -07:00
Chris Eppstein
8ded2ee039 mention the css regions support in the changelog. 2012-05-01 09:21:06 -07:00
Chris Eppstein
7cd7d90fd1 Merge remote-tracking branch 'crowchick/stable' into stable 2012-05-01 09:15:22 -07:00
Chris Eppstein
e3d96ee2fa Fix failing test. 2012-05-01 09:14:40 -07:00
Rachel Nabors
6dd2404378 Adds test css for css regions. 2012-05-01 12:05:35 -04:00
Rachel Nabors
bc3080faf8 updating about text to reflect 2 mixins 2012-05-01 12:05:13 -04:00
Rachel Nabors
5710d6d66e Changes .target to .new-container for clarity. 2012-05-01 12:01:23 -04:00
Rachel Nabors
387e8a8cc2 takes care of that pesky that should be 2012-05-01 11:53:31 -04:00
Rachel Nabors
e093cd2c84 imports css regions into css3 stylesheet. 2012-05-01 11:50:30 -04:00
Rachel Nabors
f69219716f cleans up missed var. 2012-05-01 11:24:20 -04:00
Rachel Nabors
a5c8858d27 Adds reference for CSS Regions. 2012-05-01 11:24:20 -04:00
Rachel Nabors
55d9176b44 Sorting out the targets from the sources. 2012-05-01 11:24:20 -04:00
Rachel Nabors
23e1155ad6 Adds examples for css regions. 2012-05-01 11:24:20 -04:00
Rachel Nabors
451046848c Adds test case for css regions. 2012-05-01 11:24:20 -04:00
Rachel Nabors
71b1cd9aae Adds experimental CSS region
As seen in http://css-tricks.com/content-folding/ Only good for use w/
IE and Webkit right now. Too early for official implementation even.
2012-05-01 11:24:20 -04:00
Eric Meyer
275bb0762f merge from stable branch 2012-04-27 16:03:38 -06:00
Eric Meyer
41b84a5ab1 Merge branch 'stable' of https://github.com/chriseppstein/compass into stable 2012-04-27 15:47:04 -06:00
Eric Meyer
4d3448c673 +has-layout-zoom ignores $legacy-support-for-ie8 (*hack doesn't effect IE8 anyway) 2012-04-27 15:45:30 -06:00
Chris Eppstein
5c44dda6ad Compass.app costs $10 now. 2012-04-27 08:21:58 -07:00
JohnAlbin
48190e5708 Make the reset partial compatible with the establish-baseline() mixin. Fixes #859. 2012-04-26 17:47:09 +08:00
Eric Meyer
0de694bd3a Merge pull request #853 from farmdawgnation/stable
[#852] Fix ordering of font properties in reset-font for FF's benefit.
2012-04-19 12:50:38 -07:00
Matt Farmer
bfb2ebe88b Fix ordering of font properties in reset-font for FF's benefit.
Firefox gets persnickety about how regular CSS properties and shorthand properties
interact, specifically specifying a shorthand version after the regular property
causes the regular property to be overriden. Closes GH-852.
2012-04-19 15:47:27 -04:00
Eric Meyer
81fcd4e2d7 add animations and relative-font-sizing changes to the changelog 2012-04-17 12:56:37 -06:00
Eric Meyer
1f222fc19f Merge pull request #844 from ericam/master
establish relative font size when $relative-font-size
2012-04-17 11:42:35 -07:00
Eric Meyer
0e2a5d7579 Merge pull request #848 from JohnAlbin/rhythm-offset
Add $offset parameter to rhythm() function.
2012-04-16 11:15:40 -07:00
JohnAlbin
c5041fbcb9 Add $offset parameter to rhythm() function. 2012-04-16 14:20:20 +08:00
Eric Meyer
4f813e30e7 Merge pull request #847 from StanAngeloff/master
Turn off $legacy-support-for-ie* for @content within the @keyframes mixin.
2012-04-13 10:23:43 -07:00
Stan Angeloff
cab02128a7 Turn off legacy IE support in @keyframes.
This commit turns off $legacy-support-for-ie* for @content within the
@keyframes mixin.

If a project has legacy IE support turned on, certain mixins add property
definitions which are not affected by $experimental-support-for-*. One
such mixin is @opacity with will add a `filter:` property.

Because IE 6, 7 and 8 do not support CSS animations and keyframes, we can
safely turn off the support and restore to its previous values once we are
done rendering the @keyframes @content.
2012-04-13 19:56:27 +03:00
Eric Meyer
17676c6a05 Merge pull request #840 from ai/box_column
Box column
2012-04-12 10:59:59 -07:00
Eric Meyer
18de15a157 establish relative font-size when $relative-font-sizing == true 2012-04-11 15:49:41 -06:00
Eric Meyer
56e0dc5b5f Merge pull request #839 from ai/border_radius_prefixes
Border radius prefixes
2012-04-11 09:31:52 -07:00
Eric Meyer
c00ae82595 final official link to webkit appearance values 2012-04-10 17:57:23 -06:00
Eric Meyer
2af118ec83 update -webkit-appearance link 2012-04-10 17:44:56 -06:00
Eric Meyer
6ad3bd73a7 update documentation for appearance module 2012-04-10 17:33:07 -06:00
Andrey A.I. Sitnik
d3ccac2bbf Remove unnecessary -o prefix for column 2012-04-08 15:58:33 +04:00
Andrey A.I. Sitnik
3976a9f344 Remove unnecessary vendor prefixes in border-radius 2012-04-08 15:47:17 +04:00
Eric Meyer
9b924243ff animation module with docs and simple test 2012-04-01 15:59:12 -06:00
Scott Davis
0c13d98cb4 Merge pull request #810 from doctyper/prefixed-transition-properties
Remove stray commas when default transition properties are used
2012-03-30 06:10:05 -07:00
Scott Davis
bab681a411 Merge pull request #815 from bukhamseen/patch-1
Link to sass reference documentation fixed.
2012-03-30 06:08:41 -07:00
Scott Davis
4b126a7264 Merge pull request #820 from piouPiouM/fix-sprite_magic_selector
Fixed the sprite Magic Selectors
2012-03-29 05:23:11 -07:00
Mehdi Kabab
5f7473126a Fixes the sprite Magic Selectors. 2012-03-29 13:42:10 +02:00
bukhamseen
6ae8a0e57a Link to sass reference documentation fixed. 2012-03-28 02:54:19 +03:00
Richard Herrera
8a45ed8961 Addresses Issue #805: Stray commas added when default transition values are used. Test case included. 2012-03-24 13:07:00 -07:00
Chris Eppstein
b107ccbb8e Merge pull request #808 from joschka/remove-unused-border-radii
Remove unused -o-border-radius and -ms-border-radius
2012-03-24 12:21:27 -07:00
Scott Davis
b40fa29e44 global sprite configs for spacing closes #406 2012-03-24 09:10:25 -04:00
Joschka
a4df58d054 Remove unused -o-border-radius and -ms-border-radius 2012-03-24 13:29:05 +01:00
Scott Davis
81d2a44ef4 added current-output-file() 2012-03-23 13:25:54 -04:00
Scott Davis
60ed9581e2 implimented current-source-file() 2012-03-23 13:19:25 -04:00
Scott Davis
2cbeb25abe added current-time and current-date sass functions 2012-03-23 11:55:38 -04:00
Scott Davis
4e9f7407f9 Remove _ selectors from magic sprite selectors 2012-03-23 11:36:33 -04:00
Scott Davis
754d1a7d24 updated test helper require 2012-03-23 11:35:55 -04:00
Scott Davis
c6253a54d9 removed old growl 2012-03-23 11:35:22 -04:00
Chris Eppstein
81b798d631 lock down nanoc because newer versions cause issues. 2012-03-18 22:15:10 -07:00
Chris Eppstein
cf273a7fc1 clean up the docs on input placeholder a bit. 2012-03-18 21:36:16 -07:00
Chris Eppstein
1fabbf23d1 Mention new input placeholder mixin in the changelog 2012-03-18 21:29:08 -07:00
Chris Eppstein
b524220615 Fix malformed haml 2012-03-18 21:22:41 -07:00
Chris Eppstein
566fb6692e Lock down nanoc, the new version is incompatible with the site for now. 2012-03-18 21:18:17 -07:00
Chris Eppstein
e0bb51965a update test output for input placeholder tests. 2012-03-18 20:44:56 -07:00
Chris Eppstein
a09b99b6ac Merge remote-tracking branch 'ry5n/support-input-placeholder' 2012-03-18 20:43:23 -07:00
Ryan Frederick
25431b226d Correct extremely silly syntax error.
The indented syntax obviously doesn’t use curly braces.
2012-03-18 19:55:17 -07:00
Chris Eppstein
1aca960401 Iterate on the doc changes for the reset-baseline mixin 2012-03-18 15:18:01 -07:00
JohnAlbin
3f96108688 Update docs for reset-baseline() in vertical_rhythm partial. 2012-03-18 15:14:26 -07:00
Chris Eppstein
8066f984d2 Update changelog. 2012-03-18 14:20:20 -07:00
Chris Eppstein
99d0fe1457 Better description for the --force option. 2012-03-18 14:20:07 -07:00
Chris Eppstein
ba677ad5d2 Add a -I option to the global options so that you can add sass import paths via the CLI. Closes #375. 2012-03-18 14:15:31 -07:00
Chris Eppstein
7ba0d44eaa Make Pathname objects work with add_import_path 2012-03-18 14:14:20 -07:00
Chris Eppstein
b566979180 Allow Importer objects to be placed onto the load path using add_import_path.
Closes #392.
2012-03-18 13:09:31 -07:00
Chris Eppstein
44e8af4ba4 Merge branch 'stable' 2012-03-18 02:50:25 -07:00
Chris Eppstein
a9317f0d7b Add -ms support for css3 columns. Add support for the columns shorthand property. 2012-03-18 02:48:10 -07:00
Chris Eppstein
231c92261b Merge branch 'stable' 2012-03-18 02:21:12 -07:00
Chris Eppstein
d63af50ab1 Update README 2012-03-18 02:20:59 -07:00
Chris Eppstein
1f70c7e35d Merge branch 'stable' 2012-03-18 01:56:14 -07:00
Chris Eppstein
b9c1497300 Fix failing test. 2012-03-18 01:54:45 -07:00
Chris Eppstein
19941c2dbc Merge branch 'stable' 2012-03-18 01:51:15 -07:00
Chris Eppstein
420026f09c Note new css3 transform support in the changelog. 2012-03-18 01:50:50 -07:00
Andrey A.I. Sitnik
6165057a80 Add 3D transformations with -moz, -ms, and -o prefixes. 2012-03-18 01:48:24 -07:00
Chris Eppstein
af645fa991 Use placeholder selectors to make the blueprint reset module much cleaner. 2012-03-18 01:45:29 -07:00
Chris Eppstein
7a04b55aca Merge remote-tracking branch 'origin/master'
Conflicts:
	doc-src/content/CHANGELOG.markdown
2012-03-18 00:15:42 -07:00
Chris Eppstein
bba8e3f51b Merge branch 'stable'
Conflicts:
	VERSION.yml
	doc-src/Gemfile.lock
	doc-src/content/CHANGELOG.markdown
2012-03-18 00:14:06 -07:00
Ryan Frederick
6a4dbc6043 Add example and tests for +input-placeholder. 2012-03-18 00:11:35 -07:00
JohnAlbin
48bfe186af Replace confusing $ie-font-ratio variable with $browser-default-font-size in vertical_rhythm partial. fixes #766 2012-03-17 23:55:55 -07:00
Ryan Frederick
532e857560 Move +input-placeholder to the _user-interface partial. 2012-03-17 17:35:55 -07:00
Chris Eppstein
dd629b1b23 Extension manager command (a trivial front-end for the gem command) 2012-03-17 17:04:35 -07:00
Chris Eppstein
f673f71275 Ignore pkg files 2012-03-17 17:02:59 -07:00
Chris Eppstein
571960b9fe invalidations 2012-03-17 15:51:13 -07:00
Chris Eppstein
55ff409f5e update gemfile 2012-03-17 15:47:37 -07:00
Chris Eppstein
9a66390150 Homepage ad. 2012-03-17 15:47:37 -07:00
Scott Davis
d8972f3348 merge from ai moz3d
closes #973 closes #979
2012-03-15 21:17:48 -04:00
Andrey A.I. Sitnik
436a2575e1 Add unsupported yet 3D transformations with -o- prefix 2012-03-16 03:34:53 +04:00
Andrey A.I. Sitnik
439959d47d Add 3D transformations with -ms- prefix 2012-03-16 01:25:37 +04:00
Andrey A.I. Sitnik
c46e3c53ab Add 3D transformations with -moz- prefix 2012-03-15 21:35:17 +04:00
Scott Davis
3b8e43fa58 Merge pull request #792 from mindeavor/stable
Updated legacy staticmatic link
2012-03-15 10:22:34 -07:00
Gilbert
dbeed9d595 Updated staticmatic link since staticmatic now supports compass 0.12.x by default. 2012-03-14 23:40:09 -06:00
Chris Eppstein
9cfd753837 link to downloads page 2012-03-14 01:11:41 -07:00
Chris Eppstein
2b6380b272 Version bump and prepare for release. 2012-03-14 00:46:52 -07:00
Chris Eppstein
48d532b748 Merge branch 'stable'
Conflicts:
	VERSION.yml
	doc-src/Gemfile.lock
2012-03-14 00:23:50 -07:00
Chris Eppstein
b90f9c5be0 Add support for packager to build one-click installers 2012-03-14 00:19:54 -07:00
Chris Eppstein
95844e1b51 Add anthony to the gem authors list. 2012-03-14 00:15:14 -07:00
Chris Eppstein
7bb8c8ee29 Merge pull request #778 from JohnAlbin/vert-rhythm-codestyle-3
Rename $leader variable in vertical_rhythm's leader() and trailer() mixins
2012-03-13 22:52:20 -07:00
Chris Eppstein
80ebf71782 Merge pull request #782 from MoOx/stable
Add ability to append stuffs after font urls
2012-03-13 22:41:05 -07:00
Chris Eppstein
c1820cc611 Merge pull request #777 from JohnAlbin/vert-rhythm-codestyle-2
Simplify code in vertical_rhythm's adjust-leading-to() using rhythm() function
2012-03-13 22:40:31 -07:00
Chris Eppstein
795c91d262 Merge pull request #776 from JohnAlbin/vert-rhythm-codestyle-1
Fix code style in vertical_rhythm's apply-side-rhythm-border().
2012-03-13 22:38:55 -07:00
Maxime Thirouin
1fb9e7adba Add one more test to make sure a more complex query param is handled 2012-03-13 22:20:19 +01:00
Maxime Thirouin
fac1a2c1ef Merge branch 'stable' of https://github.com/chriseppstein/compass into font-eot 2012-03-13 21:54:56 +01:00
Maxime Thirouin
11b3526b85 Add tests about the new ability to append stuffs on font urls 2012-03-13 21:54:07 +01:00
Maxime Thirouin
788a344278 Update outdated doc 2012-03-13 21:53:19 +01:00
Maxime Thirouin
b8321a4db0 Add ability to append stuffs after font urls 2012-03-13 21:53:03 +01:00
JohnAlbin
e92d63fd21 Round px values in rhythm() function of vertical_rhythm partial.
Also simplify code for vertical_rhythm's leader and trailer mixins.

Alternate to the pull-request in #778
2012-03-14 03:14:45 +08:00
Scott Davis
ea5c305a72 Merge pull request #779 from MoOx/stable
Add "css" keywords on the Compass Sprite helpers doc.
2012-03-13 11:38:04 -07:00
Chris Eppstein
ea28759fa6 Document selectors in compass modules. This is mostly for upcoming placeholder selectors. 2012-03-13 09:21:05 -07:00
Chris Eppstein
a8147adf25 Update gemfile. 2012-03-13 09:20:25 -07:00
Maxime Thirouin
8fa1e8b97b Add "css" keywords on the Compass Sprite helpers doc.
Following this "Will someone please do some SEO so that compass is on the first page for this query: css sprites"
https://twitter.com/#!/chriseppstein/status/141632327565578240
2012-03-13 12:46:46 +01:00
JohnAlbin
a1ff692e58 Simplify code in vertical_rhythm's adjust-leading-to() using rhythm() function. 2012-03-13 17:19:10 +08:00
JohnAlbin
c1584f9212 Fix code style in vertical_rhythm's apply-side-rhythm-border(). 2012-03-13 16:47:29 +08:00
Chris Eppstein
a700e5d521 Merge pull request #771 from JohnAlbin/docs-vertical-rhythm
Improve documentation of veritcal_rhythm partial.
2012-03-12 10:23:54 -07:00
JohnAlbin
eac243def0 Improve documentation of veritcal_rhythm partial. 2012-03-12 17:01:53 +08:00
Chris Eppstein
a16f163e51 Update the blog post for official release. 2012-03-12 00:39:54 -07:00
Chris Eppstein
6754be1dc2 Version bump 2012-03-12 00:32:03 -07:00
Chris Eppstein
0815f22165 Anthony Short 2012-03-12 00:32:03 -07:00
Chris Eppstein
dc8c9b6c86 Compass 0.13 will depend on Sass 3.2 2012-03-11 23:17:56 -07:00
Chris Eppstein
a8f2f2069a Merge pull request #765 from JohnAlbin/docs-running-tests
Update docs for running tests. fixes #731
2012-03-11 22:18:28 -07:00
Chris Eppstein
d1f09e5c33 fix broken test. 2012-03-11 21:48:39 -07:00
Chris Eppstein
da6fafee26 Merge branch 'stable' 2012-03-11 21:25:04 -07:00
Chris Eppstein
48aff36331 Handle ruby 1.8.7 Math.log api difference. 2012-03-11 21:19:20 -07:00
Chris Eppstein
174fab3616 Fix broken import in test fixture. 2012-03-11 21:02:15 -07:00
Chris Eppstein
d871d77759 Remove import of the removed gradient module. 2012-03-11 20:55:47 -07:00
Chris Eppstein
45571de0f7 Rename the log function to logarithm to avoid collisions with the log
function for logging.

Add keyword argument support for the math functions.

Add square-root as as an alias to sqrt.
2012-03-11 20:52:27 -07:00
Chris Eppstein
9cbab2bd27 Newlines at ends of files 2012-03-11 20:49:56 -07:00
Chris Eppstein
2072cac4cb Remove deprecated gradient mixins and 2012-03-11 20:49:15 -07:00
Chris Eppstein
9baa7a0282 fix failing test. 2012-03-11 20:17:35 -07:00
Chris Eppstein
1f03d96cc9 Merge branch 'stable' 2012-03-11 20:05:14 -07:00
Chris Eppstein
c1eedc721d Fix failing test for compass stats. 2012-03-11 20:04:58 -07:00
Chris Eppstein
1d78bfd7cc Merge pull request #763 from pivotal-casebook/relative_home_path
Fix for Compass.shared_extension_paths when HOME is a relative path or some other stupid value.
2012-03-11 19:41:30 -07:00
Andrew Pietsch
7042337393 Replaced all references to "icons" in the tutorial with "my-icons" to make it clearer that the @include all-icon-sprites is dependent on the directory name.
Updated the naming in the magic selectors section to be more clear.

Conflicts:

	doc-src/content/help/tutorials/spriting.markdown
2012-03-11 19:37:33 -07:00
Chris Eppstein
beddcd0bde changelog for allowing numeric sprite files. 2012-03-11 19:25:31 -07:00
Chris Eppstein
bb716926ef Merge pull request #739 from zanker/master
Allow numeric filenames in sprites
2012-03-11 19:22:44 -07:00
Chris Eppstein
306c14fd7a Master is now 0.13 2012-03-11 18:34:42 -07:00
Chris Eppstein
c8174b5679 Merge branch 'master' into stable
Conflicts:
	Gemfile
	lib/compass/sass_extensions/functions.rb
	lib/compass/sass_extensions/functions/trig.rb
	test/units/sass_extensions_test.rb
2012-03-11 18:30:25 -07:00
Chris Eppstein
325e376b55 ruby prof too 2012-03-11 18:17:26 -07:00
Chris Eppstein
4e4d813950 update the changelog with mention of new math functions. 2012-03-11 18:12:36 -07:00
Chris Eppstein
76f341b3dc Merge pull request #758 from silvenon/stable
Add more math functions and unite them with Trig
2012-03-11 18:12:12 -07:00
Chris Eppstein
34540bb753 CHANGELOG entry for transiitions mixin fixes. 2012-03-11 18:06:41 -07:00
Chris Eppstein
06ac18ec9d Merge pull request #728 from doctyper/prefixed-transition-properties
Adding support for prefixed transition properties
2012-03-11 18:04:16 -07:00
Chris Eppstein
07c92170cf Add font file support changes to the changelog. 2012-03-11 18:02:01 -07:00
Chris Eppstein
aa71abb601 Add mime-type for eot fonts 2012-03-11 17:59:49 -07:00
Chris Eppstein
d9cbb8e104 Merge pull request #753 from MoOx/font-eot
Add .eot (Embedded OpenType) to fonts format
2012-03-11 17:58:17 -07:00
Chris Eppstein
22968d7f48 Merge pull request #755 from aaronchi/patch-1
Correct Mime type for woff font files
2012-03-11 17:57:14 -07:00
Chris Eppstein
716ddf5d3b Take the beta status off of the new modules in 0.11 2012-03-11 17:49:19 -07:00
Chris Eppstein
17ae2294ab Update the changelog 2012-03-11 17:48:37 -07:00
Chris Eppstein
32d8517f32 Add the squish text mixin for hiding text in inline elements. 2012-03-11 17:48:00 -07:00
JohnAlbin
48723276e8 Update docs for running tests. fixes #731 2012-03-10 18:35:42 +08:00
Chris Eppstein
d38fee361f When an error occurs, display the imported file that caused the error if the error was not local error. 2012-03-09 00:42:04 -08:00
Chris Eppstein
1fef2b2e5e Add docs for the user interface module 2012-03-09 00:08:41 -08:00
Chris Eppstein
046d4688d1 Use Scott Kellum's method of text hiding that is more performant and has no issue with em-based margins. 2012-03-09 00:01:15 -08:00
Chris Eppstein
abcd6c897c Revert "Bring the legacy implementation of hide-text back as move-text-out-of-view and make hide-text a front end for the two methods."
This reverts commit 0c290edd07.
2012-03-08 23:44:13 -08:00
Matija Marohnić
d11ec3c74f Fix math function tests 2012-03-08 23:55:49 +01:00
Michael Schubert & Sam Obukwelu
2d4e0e400f Fix for Compass.shared_extension_paths when HOME is a relative path.
This should fully resolve https://github.com/chriseppstein/compass/issues/364 for when HOME is not just nil but also "." (or any other relative path). Added a complete set of unit tests around the method as well.
2012-03-08 12:05:56 -05:00
Matija Marohnić
ef6d8f5b3e Add tests for math functions 2012-03-08 10:41:52 +01:00
Chris Eppstein
0c290edd07 Bring the legacy implementation of hide-text back as move-text-out-of-view and make hide-text a front end for the two methods. 2012-03-07 23:35:02 -08:00
Matija Marohnić
e954c469f0 Wrap missing span elements around some arguments 2012-03-08 03:00:01 +01:00
Matija Marohnić
3dc42c8473 Add more math functions and unite them with Trig.
Added math functions are as follows:

- e()
- log(number[, base])
- sqrt(number)
- pow(number, exponent)

Because trigonometry is also math, these functions are united with
Compass' trigonometry functions under the Math module.
2012-03-08 03:00:01 +01:00
aaronchi
55d4d36240 Use the corrent mime type for woff font files:
http://stackoverflow.com/questions/3594823/mime-type-for-woff-fonts
2012-03-06 21:09:20 -08:00
Maxime Thirouin
4812c5fea1 Fix #752 Add .eot (Embedded OpenType) to fonts format 2012-03-06 11:13:13 +01:00
Brandon Mathis
3fded65735 Added hide-text improvement to changelog 2012-03-05 17:14:12 -06:00
Brandon Mathis
f1187ba44e Improved hide-text mixin performance and accessibility, closes #743 2012-03-05 16:25:49 -06:00
Chris Eppstein
92181e074f Merge branch 'stable'
Conflicts:
	Gemfile
2012-03-05 12:08:56 -08:00
Chris Eppstein
da895dab70 ruby prof too 2012-03-05 12:05:30 -08:00
Chris Eppstein
8ed750c103 rcov doesn't work on 1.9 2012-03-05 11:34:42 -08:00
Chris Eppstein
b8c0928f86 Merge branch 'stable'
Conflicts:
	doc-src/content/CHANGELOG.markdown
	lib/compass/commands/watch_project.rb
2012-03-05 11:30:52 -08:00
Chris Eppstein
6a89268404 Whitespace 2012-03-04 17:46:27 -08:00
Chris Eppstein
fe1c465482 Missing quote. 2012-03-03 09:36:05 -08:00
Scott Davis
9b39b5707f removed unneeded timecop 2012-03-01 13:48:34 -05:00
Chris Eppstein
63250a9075 Merge pull request #744 from nickcooley/stable
Issue #707 - Fix link in documentation.
2012-02-28 16:50:19 -08:00
Nick Cooley
c36e3843eb Issue #707
updated link to "http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#partials"
2012-02-28 19:18:47 -05:00
Zachary Anker
15b94d0ed0 Added a test to ensure importing of numeric filenames for sprites works 2012-02-27 09:15:08 -08:00
Zachary Anker
cb80f1f371 Check the full CSS selector to see if it's valid to allow numeric selectors when manually calling sprite methods 2012-02-27 09:11:08 -08:00
Chris Eppstein
06af286c4a Add filesize to the compass stats output. 2012-02-26 17:34:44 -08:00
Chris Eppstein
fee53b1a60 Handle the transparent keyword identifier in gradients.
Closes GH-356
2012-02-26 17:34:44 -08:00
Chris Eppstein
001fa41142 fix broken test 2012-02-26 17:34:44 -08:00
Richard Herrera
94bef38312 Adding a single transform transition stylesheet test. 2012-02-26 14:52:35 -08:00
Richard Herrera
c1ce093cbc Keeping things DRY, refactoring some shared functionality. All prefix fixes now route through an @build-prefix-values mixin. 2012-02-26 14:51:59 -08:00
Richard Herrera
3f23287afb Adding test for multiple transitions. 2012-02-26 12:28:03 -08:00
Richard Herrera
14a553f0f4 Redundant use of a built-in helper function. Removing array-push() for append(). 2012-02-26 12:27:49 -08:00
Richard Herrera
177fda7460 Per @chriseppstein: we don't need to use -compass-space-list anymore. Sass provides () to construct an empty space-delimited list. 2012-02-26 11:53:10 -08:00
Richard Herrera
4d01676a76 Redundant use of a built-in helper function. Removing string-join() for compact(join()). 2012-02-26 11:43:00 -08:00
Richard Herrera
3b586059cd Test for multiple transition properties. 2012-02-26 11:39:58 -08:00
Richard Herrera
9a40ba9ec3 transition-property mixin now includes support for multiple prefixed values. 2012-02-26 11:39:30 -08:00
Richard Herrera
388e3a611f Using transition property in lieu of @experimental mixin. 2012-02-26 11:38:55 -08:00
Richard Herrera
6a3d024cc1 Updated with the following:
- Added stylesheet tests for prefixed transition properties.
- transition-property mixin now passes all tests.
- single-transition mixin now passes all tests.
- Updated rewrite to respect user specified browser support.
2012-02-26 00:55:52 -08:00
Scott Davis
ef1d39952c Merge pull request #736 from ry5n/master
Fix link to partials in docs (help/tutorials/best_practices)
2012-02-25 18:31:58 -08:00
Ryan Frederick
eec7b438e6 Fix link to partials in docs (help/tutorials/best_practices) 2012-02-25 12:30:20 -08:00
Scott Davis
ece75ff49c Merge pull request #729 from cosmic/load_sprites_base
Load sprites base
2012-02-25 10:37:14 -08:00
Scott Davis
9a3cbbe470 Merge pull request #730 from roytomeij/stable
Fix typo and use periods more consistently on the "contributing" page
2012-02-25 10:36:23 -08:00
Roy Tomeij
0dae5b5668 Fix typo and use periods more consistently 2012-02-21 21:34:20 +01:00
Sunny Ripert
52065da5d4 When @importing "compass/utilities/sprites" also load "sprites/base" 2012-02-21 18:06:05 +01:00
Richard Herrera
cf60a90931 Adding support for prefixed transition properties, e.g. transform & transform-origin. Can easily be extended for further properties. 2012-02-18 11:36:49 -08:00
Scott Davis
e437f405b6 Merge pull request #721 from naehrstoff/patch-1
Fixed syntax error in Growl example code so it runs on copy and paste.
2012-02-15 05:01:24 -08:00
Peter Gassner
a3bc6b4c63 Fixed syntax error in Growl example code so it runs on copy and paste. 2012-02-15 07:53:54 +01:00
Scott Davis
734f2a6f33 Merge pull request #714 from dmattes/patch-1
typo: replace inline-block-link through inline-block-list
2012-02-14 08:29:55 -08:00
Scott Davis
ecb3f38a8f Merge pull request #717 from nathggns/master
Fix 404 links.
2012-02-14 08:29:26 -08:00
Nathaniel Higgins
75df388aef Fix links in spriting that result in 404s 2012-02-14 01:59:28 +00:00
Daniel Mattes
133418524d typo: replace inline-block-link through inline-block-list 2012-02-13 11:54:38 +01:00
Scott Davis
bbdb179df1 Revert "Merge pull request #712 from Xananax/sprite_background_image"
This reverts commit 0c208d58fa, reversing
changes made to c81af69c69.
2012-02-09 19:50:20 -05:00
Scott Davis
0c208d58fa Merge pull request #712 from Xananax/sprite_background_image
Sprite background image
2012-02-09 14:00:22 -08:00
Xananax
205f059adb Changed the background property into
background-image property in order
to allow one to set a background-color;
previously, background-color was
overriden by the background style.
Also added background-repeat property.
2012-02-09 15:29:52 +02:00
Xananax
234304d713 updated sprite tests to reflect property
background to background-image change
2012-02-09 15:28:04 +02:00
Scott Davis
c81af69c69 Merge pull request #706 from hcatlin/master
Documentation Tweak
2012-02-08 08:36:09 -08:00
Hampton Catlin
6cca0c4852 small documentation change to 3d transforms. referenced here: http://css3.bradshawenterprises.com/support/ 2012-02-06 13:52:06 -08:00
Scott Davis
99c1d372d7 version bump 2012-02-02 17:29:11 -05:00
Chris Eppstein
87e57cf6ea Upgrade notifications for compass rails users to use the compass-rails gem. 2012-02-02 13:59:20 -08:00
Scott Davis
c403ac9035 Merge branch 'master' of github.com:chriseppstein/compass 2012-01-31 12:07:58 -05:00
Scott Davis
2c42399725 fixed test 2012-01-31 12:07:38 -05:00
Scott Davis
ea677274a4 rogue quote 2012-01-31 12:05:52 -05:00
Scott Davis
05364e0a36 merge 2012-01-31 12:04:03 -05:00
Chris Eppstein
050e45d2fc Add img to the inline-block display type for elements-of-type(). 2012-01-31 09:01:50 -08:00
Scott Davis
fedc4fa47c fixed version 2012-01-31 11:58:50 -05:00
Scott Davis
addbc94716 Merge branch 'no_rails_integration' 2012-01-31 11:55:59 -05:00
Scott Davis
e7332268f3 Merge branch 'no_rails_integration' of github.com:chriseppstein/compass into no_rails_integration 2012-01-31 11:29:50 -05:00
Scott Davis
5cd4136676 fixed problem with path and ree/1.8.7 in test case 2012-01-31 11:29:39 -05:00
Chris Eppstein
144ae4f672 Compass 0.12 blog post 2012-01-31 08:03:12 -08:00
Scott Davis
3d4ddca76a strip nils 2012-01-31 04:12:36 -05:00
Scott Davis
0e74efb13e change version 2012-01-31 04:03:22 -05:00
Chris Eppstein
cef86e2bbc Account for the fact that ruby 1.8 returns strings from the local_variables method. 2012-01-30 21:26:57 -08:00
Jannis Leidel
ff51850b90 Flush stdout buffer to make sure the stdout message show up correctly. 2012-01-30 21:09:51 -08:00
Chris Eppstein
e3d50c19e5 Merge commit 'bac8667fb4d0103b975dacc261ed1da08f455e49' into no_rails_integration 2012-01-30 21:07:10 -08:00
Scott Davis
097c88dc45 Merge branch 'no_rails_integration' of github.com:chriseppstein/compass into no_rails_integration 2012-01-30 22:32:41 -05:00
Scott Davis
f11e5a3205 refactored the previous change 2012-01-30 22:32:05 -05:00
Scott Davis
7198a69909 sprite importer will now error if it does not find the associated glob 2012-01-30 22:12:01 -05:00
Scott Davis
11cf736066 fixed bug where application integrations would not load if there was a config file 2012-01-30 22:11:34 -05:00
Chris Eppstein
ee1adf9535 Update the madlib for compass 0.12 and compass-rails. 2012-01-30 18:57:17 -08:00
Scott Davis
e4681e2672 fixed weird bug with data inheritance 2012-01-30 19:59:31 -05:00
Scott Davis
f70afea8db failing test for weird data inheritance bug 2012-01-30 19:22:26 -05:00
Scott Davis
96e0a8ccb2 Merge pull request #689 from Davidhidalgo/stable
I added the time of scss change for control more efficiently of the last...
2012-01-30 13:23:06 -08:00
Scott Davis
028234cda6 Merge pull request #680 from muffinresearch/stable
Fix link to sass options docs
2012-01-30 13:14:36 -08:00
Scott Davis
7aeccf11d2 Merge pull request #681 from nickcooley/stable
Fixed it's -> its typo (starting small :) )
2012-01-30 13:13:52 -08:00
Chris Eppstein
a6c045785d Allow some config attributes that are arrays to be inherited properly
from inherited config data.
2012-01-30 11:21:29 -08:00
Chris Eppstein
d642ae7b74 Changelog for rc.0 and a blog post. 2012-01-29 08:27:07 -08:00
Scott Davis
c3b0f0117a remove todo comment 2012-01-28 20:57:30 -05:00
Scott Davis
7d87a2eee8 strip .css from file names w/ test 2012-01-28 20:56:56 -05:00
Chris Eppstein
36b0da8caf Merge branch 'stable'
Conflicts:
	doc-src/content/CHANGELOG.markdown
2012-01-28 16:30:03 -08:00
Chris Eppstein
fc41c452b8 Don't set the quiet option unless disable_warnings is passed via the nested :sass options hash. 2012-01-28 16:25:04 -08:00
Chris Eppstein
938829de9a Update changelog 2012-01-28 16:24:46 -08:00
Chris Eppstein
e1ad1a808e Merge pull request #688 from bcardarella/patch-1
I'm noticing that fonts in IE8 are not working without this fix.
2012-01-28 16:22:12 -08:00
Scott Davis
7b263fab5c Merge branch 'no_rails_integration' of github.com:chriseppstein/compass into no_rails_integration 2012-01-28 15:41:19 -05:00
Scott Davis
5948a7e38a dont require defaults only assets group 2012-01-28 15:40:51 -05:00
David Hidalgo
208c49af93 I added the time of scss change for control more efficiently of the last change 2012-01-26 15:16:26 +01:00
Brian Cardarella
f37800ba36 I'm noticing that fonts on IE8 are not working without this fix. 2012-01-26 04:13:26 -05:00
Nick Cooley
c0afcb67b3 Fixed it's -> its typo (starting small :) ) 2012-01-19 15:32:53 -05:00
Stuart Colville
4aacce2c35 Fix link to sass options docs 2012-01-19 10:39:55 +00:00
Scott Davis
4e50273fdb Merge branch 'master' into no_rails_integration 2012-01-18 20:05:58 -05:00
Scott Davis
8c84869b0b fixed tests 2012-01-18 20:02:00 -05:00
Scott Davis
3df5ba3369 merge stable 2012-01-18 19:55:24 -05:00
Scott Davis
be7b419479 Merge pull request #666 from ShishKabab/patch-1
Fix wrong degree to radian conversion in trig function. Might break some...
2012-01-18 16:49:07 -08:00
Eric Meyer
0642deebc6 seems khtml might actually need the prefix for background-clip 2012-01-13 16:13:22 -07:00
Eric Meyer
236efc264b update background-clip browser support and add tests. 2012-01-13 15:49:06 -07:00
Scott Davis
233ec887eb compass command is now bundler aware 2012-01-11 23:24:00 -05:00
Scott Davis
297c0b2426 Merge pull request #668 from ry5n/master
Added the one typo fix that wasn’t already in master
2012-01-10 05:40:14 -08:00
Ryan Frederick
df6524ef42 Fix typo in …help/turorials/contributing 2012-01-09 23:51:38 -08:00
ShishKabab
317999bc4e Fix wrong degree to radian conversion in trig function. Might break some stylesheets for users so proceed with caution! 2012-01-08 13:54:58 +01:00
Scott Davis
bffba48375 fixed rouge puts 2012-01-06 14:21:05 -05:00
Scott Davis
7c8c0164b8 nuked merb 2012-01-06 14:05:34 -05:00
Chris Eppstein
2bd1775d71 Version bump 2012-01-05 08:50:42 -08:00
Chris Eppstein
1f1f4e2832 Fix a gemspec issue. 2012-01-05 08:47:21 -08:00
Chris Eppstein
31e77fe2ae Version bump for gemspec error 2012-01-05 08:45:28 -08:00
Chris Eppstein
25b0defa26 Fix a gemspec issue. 2012-01-05 08:45:28 -08:00
Scott Davis
c337982c3a Merge pull request #657 from kuroir/stable
Improves index/functions - adds links to sass functions and differentiat...
2012-01-03 20:37:51 -08:00
Scott Davis
b87dffb990 removed merb 2012-01-02 20:44:54 -05:00
Scott Davis
810a543400 Merge branch 'master' into no_rails_integration 2012-01-02 11:40:11 -05:00
Scott Davis
f1a6d3a8aa changlog 2012-01-02 11:33:16 -05:00
Scott Davis
88aa3b3c7e removed border-image ... someone needs to learn to close old issues =( 2012-01-02 11:32:10 -05:00
Scott Davis
cf4805958d app integration 2012-01-02 11:27:20 -05:00
Scott Davis
49faec1756 changelog 2012-01-02 02:50:06 -05:00
Scott Davis
a8e48c5a2a added support for --debug-info and --no-debug-info to compass compile 2012-01-02 02:49:38 -05:00
Scott Davis
f8378d039d changelog updated 2012-01-02 02:49:08 -05:00
Scott Davis
9c0539aadf docs for border-image 2012-01-02 02:46:19 -05:00
Scott Davis
3d23b36f63 inital implimentation of border-image 2012-01-02 02:29:16 -05:00
Scott Davis
a7a8ccab62 added tests for transition-duration via #575 2012-01-02 01:30:10 -05:00
Scott Davis
f4dda8a5d0 added sprite_names sass function and test closes #620 2012-01-02 01:01:11 -05:00
Scott Davis
6c98ff1d5c removed ms prefix from box-sizing and added a test case 2012-01-02 00:48:43 -05:00
Scott Davis
dec5c9cb3b added test for alternating rows and columns 2012-01-02 00:32:46 -05:00
Scott Davis
0f0c92e1bb added -ms prefix to transitions via #590 2012-01-02 00:14:48 -05:00
Chris Eppstein
39db29cafb Merge branch 'stable' 2011-12-30 15:25:09 -08:00
Chris Eppstein
643539f40b trying out fusion ads. 2011-12-30 15:24:42 -08:00
Mario Kuroir Ricalde
55b049e1fa Improves index/functions - adds links to sass functions and differentiate them from Compass ones. 2011-12-28 02:57:00 -06:00
Chris Eppstein
4171c0eef7 update changelog for release 2011-12-23 17:26:10 -08:00
Chris Eppstein
c4e9d00d61 Merge branch 'stable'
Conflicts:
	VERSION.yml
	doc-src/content/CHANGELOG.markdown
	lib/compass/configuration/helpers.rb
	test/units/sass_extensions_test.rb
2011-12-23 17:16:44 -08:00
Chris Eppstein
1046a553c7 Version bump 2011-12-23 17:10:19 -08:00
Chris Eppstein
b361ac54c8 Update CHANGELOG for release. 2011-12-23 17:02:57 -08:00
Chris Eppstein
5138d5a187 Support for new versions of sass where the callback name changed. 2011-12-23 17:00:59 -08:00
Chris Eppstein
309a0ea7d3 Don't put the fill keyword in prefixed versions of the border-image property. 2011-12-23 16:54:49 -08:00
Chris Eppstein
ca59adfa12 Add a new helper function to reject values from a list. 2011-12-23 16:53:48 -08:00
Chris Eppstein
fc46730b36 Fix broken tests. 2011-12-23 16:53:23 -08:00
Chris Eppstein
3110fc5d9e Support for new versions of sass where the callback name changed. 2011-12-23 16:23:14 -08:00
Chris Eppstein
e6b967a8c3 Make the -line-padding variable in the vertical rhythm module configurable. 2011-12-23 16:23:14 -08:00
Scott Davis
c669be8888 removed rails features 2011-12-22 13:23:45 -05:00
Scott Davis
16fff73ed7 removed rails tests and total rails itegration 2011-12-20 22:25:30 -05:00
Scott Davis
829d44f581 removed rails integration files 2011-12-20 21:54:07 -05:00
tka
bac8667fb4 update docs for missing manifest file 2011-12-20 02:28:11 +08:00
tka
b263bfdcaf if manifest_file not exists, discover :all 2011-12-20 02:28:00 +08:00
Scott Davis
986714a013 changelog 2011-12-19 12:47:15 -05:00
Scott Davis
4b99aff3b7 Merge branch 'master' of github.com:chriseppstein/compass 2011-12-19 12:45:39 -05:00
Scott Davis
c92766ba99 added reset-baseline to vertical rhythym 2011-12-19 12:44:35 -05:00
Chris Eppstein
fdfca46d28 Allow the vertical rhythm to adjust to half lines when -to-nearest-half-line is set to true in order to avoid awkwardly large gaps between lines. This setting is false by default. 2011-12-17 17:36:55 -08:00
Scott Davis
57dcbad3ae Revert "bump sprite version for next release"
This reverts commit 03f648d5c4.
2011-12-13 18:17:24 -05:00
Scott Davis
1e74425e9b merge from stable 2011-12-13 18:16:12 -05:00
Scott Davis
03f648d5c4 bump sprite version for next release 2011-12-13 18:14:20 -05:00
Chris Eppstein
69ef6afea0 Merge pull request #648 from rvock/stable
remove less files, when cleaning up old sprites
2011-12-13 14:51:40 -08:00
Robert Vock
570ce43d96 remove less files, when cleaning up old sprites (fixes deleting to many generated sprites in some cases) 2011-12-13 22:56:54 +01:00
Scott Davis
7d22d3668c detecting rails was breaking features on traivis ci will investigate 2011-12-11 01:38:11 -05:00
Scott Davis
89de5cb492 fixed some issues with test runners calling out the the command line which was creating unexpected results 2011-12-11 01:31:54 -05:00
Scott Davis
684ad8754a compass will now detect if your in a rails app and attempt to load its configuration from the application.rb if you are not using a compass configuration file 2011-12-10 15:13:29 -05:00
Scott Davis
5bf3b68d2c tuned Gemfile for travis-ci 2011-12-10 13:07:21 -05:00
Scott Davis
073c04cde8 1.8.7 fix 2011-12-10 12:55:54 -05:00
Scott Davis
3fc9dc79dc added 1.9.3 to travis ci 2011-12-10 12:54:39 -05:00
Scott Davis
26249208a0 forgot to test left position 2011-12-10 12:52:47 -05:00
Scott Davis
6194cb478a fixed repeat-x issues closes #633" 2011-12-10 12:49:34 -05:00
Scott Davis
f8377d15ac refactoring and code cleanup 2011-12-10 00:55:16 -05:00
Scott Davis
104f3cbf44 moved test to correct spot 2011-12-09 21:26:43 -05:00
Scott Davis
4e81fafac3 extracted layout tests 2011-12-09 21:13:18 -05:00
Scott Davis
a1d13dc3ec Merge branch 'master' of github.com:chriseppstein/compass 2011-12-09 20:43:19 -05:00
Scott Davis
1280fce2be added guard support 2011-12-09 20:42:31 -05:00
Scott Davis
2e6c224e80 removed Gemfile.lock yehuda commands it http://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/ 2011-12-09 20:41:59 -05:00
Scott Davis
aa49b7de1b removed autotest gross 2011-12-09 20:20:45 -05:00
Scott Davis
97bd379398 Merge pull request #642 from shama/master
Fixing typos
2011-12-07 19:27:11 -08:00
Kyle Robinson Young
95358b0b83 Fix typos 2011-12-07 18:33:41 -08:00
Scott Davis
cd5b1949dd -o-box-shadow does not exist closes #631 with tests 2011-12-01 15:49:49 -05:00
Scott Davis
70ee152f79 fixed typo via #634 2011-12-01 15:04:50 -05:00
Scott Davis
ac0136981a fixed cucumber deprication notice 2011-12-01 15:02:15 -05:00
Scott Davis
701c8d33c7 fixed sass deprication error of Sass::Compiler#on_updating_stylesheet closes #635 2011-12-01 14:54:39 -05:00
Chris Eppstein
aab827f3c4 Prep for v0.12.alpha.2 2011-11-28 09:23:55 -08:00
Chris Eppstein
2dbf44c263 Fix for the default path of generated images in rails 2.x 2011-11-28 09:09:08 -08:00
Chris Eppstein
37de6efc24 Fix an issue with rails 2.x due to the image_url changing modules. 2011-11-28 09:09:08 -08:00
Scott Davis
79d94647f9 merge closes #628 2011-11-22 10:42:57 -05:00
Scott Davis
4766890388 Merge branch 'patch-1' of https://github.com/jfelchner/compass into merge-1 2011-11-22 10:39:33 -05:00
Jeff Felchner
f52d3078be Fix tests so that output matches the story told by the code 2011-11-22 02:08:39 -06:00
Jeff Felchner
e6d3fcd3be Arguments order differs from the standard order being passed to 2011-11-22 01:03:05 -06:00
Scott Davis
db61efc78f tweatk readme 2011-11-17 19:02:49 -05:00
Scott Davis
b10758142e added build status 2011-11-17 18:59:51 -05:00
Scott Davis
b96789ce5b fixed cucumber features 2011-11-17 18:40:42 -05:00
Scott Davis
b2f420db66 updated feature for sprite change 2011-11-17 16:08:23 -05:00
Scott Davis
7d2d537e0a forgot test file 2011-11-17 15:58:11 -05:00
Scott Davis
32b6c7fe25 fixed sorting issues with jruby and rbx 2011-11-17 15:53:20 -05:00
Scott Davis
d33585581e closes #600 fixed to_path issue caused by sprokets 2011-11-17 15:07:03 -05:00
Chris Eppstein
3bc39aae2b typos 2011-11-14 15:58:21 -08:00
Chris Eppstein
1cd0c41c6f versions and dates 2011-11-14 15:56:10 -08:00
Chris Eppstein
129652d382 Merge branch 'stable' 2011-11-14 15:48:42 -08:00
Chris Eppstein
88c90f4397 Merge remote-tracking branch 'ericam/stable' into stable 2011-11-14 15:48:23 -08:00
Scott Davis
1d13ce1afc Merge pull request #616 from daniely/stable
fix link and reword section on overriding constants
2011-11-14 09:20:38 -08:00
daniely
91ca5a27bd fix link and reword section on overriding constants 2011-11-14 19:54:26 +08:00
Chris Eppstein
730acb62f4 Remove deprecated forms of the box-shadow, text-shadow, and transition mixins. 2011-11-11 09:19:43 -08:00
Eric Meyer
33ee8b0969 remove 'underline.png' reference from vertical-rhythms. 2011-11-10 15:04:49 -07:00
Eric Meyer
298a97d7bb Merge branch 'stable' of github.com:chriseppstein/compass into stable 2011-11-10 14:45:54 -07:00
Chris Eppstein
ebd758a799 Merge branch 'stable'
Conflicts:
	bin/compass
2011-11-06 18:02:41 -08:00
Chris Eppstein
4183a60e31 Handle frameworks without a templates directory. 2011-11-06 18:01:27 -08:00
Chris Eppstein
720cc891ae Return an error exit code if no exit code is provided by the command. 2011-11-06 18:01:27 -08:00
Chris Eppstein
9888efdbc2 We actually count css selectors, not rules in compass stats 2011-11-06 18:01:27 -08:00
Eric Meyer
209e25a8b9 Merge branch 'stable' of github.com:chriseppstein/compass into stable 2011-11-04 11:09:49 -06:00
Eric Meyer
d5f1bb991f Merge branch 'stable' of github.com:ericam/compass into stable 2011-11-04 11:07:02 -06:00
Scott Davis
5ac790a419 change log 2011-11-04 10:55:13 -04:00
Scott Davis
b67c471780 cleaned up test file 2011-11-04 10:51:34 -04:00
Scott Davis
bc3334bec9 you can now inline sprite images using $<map>-inline:true; before calling the @import closes #611 2011-11-04 10:47:31 -04:00
Scott Davis
7334285950 closes #598 enjoy your increase in bytes! 2011-11-04 10:15:23 -04:00
Scott Davis
7e031ec179 gemfile.lock 2011-11-04 10:14:50 -04:00
Scott Davis
57f35d477a closes #572 2011-11-04 09:42:35 -04:00
Scott Davis
dc878a16a0 forgot test files 2011-11-04 09:20:22 -04:00
Scott Davis
f458519e01 fixes issue #602 2011-11-04 09:19:37 -04:00
Scott Davis
eb10566e02 fixed and issue with Sprokets trying to the the supreme ruler of the file paths! 2011-11-03 15:45:32 -04:00
Scott Davis
044855e04d Merge pull request #610 from coderanger/fix/inheritance
Handle Rails adding methods to nil that it really shouldn't.
2011-11-01 17:59:41 -07:00
Noah Kantrowitz
ca4af48b7d Handle Rails adding methods to nil that it really shouldn't. 2011-11-01 17:45:00 -07:00
Scott Davis
724a5dcc7d Merge pull request #603 from jdelStrother/precompile
Fix Railtie initialization when initialize_on_precompile is disabled
2011-11-01 11:05:35 -07:00
Scott Davis
3a4c5c75dc Merge pull request #607 from chriseppstein/sprite_demensions
Sprite demensions
2011-10-25 13:34:39 -07:00
Scott Davis
fa49a6b933 i cant spell =( 2011-10-25 16:33:51 -04:00
Scott Davis
063803c5cc updated docs for new functions 2011-10-25 16:29:36 -04:00
Scott Davis
ab20a7b9d1 added sass functions to allow getting the unit value demensions of a sprite image 2011-10-25 16:14:46 -04:00
Scott Davis
16ff623732 desmelled the binding class 2011-10-25 15:55:06 -04:00
Scott Davis
98775ea1ec sprite importer will now use erb to generate scss to its easyer to manage 2011-10-25 15:47:58 -04:00
Scott Davis
e8becc7fee working on sprite importer with erb templates 2011-10-25 13:49:34 -04:00
Chris Eppstein
a00044cc49 Merge branch 'stable' 2011-10-16 12:54:38 -07:00
Chris Eppstein
b4d6550135 a different presentation for suggesting GUIs on the install page. 2011-10-16 12:54:13 -07:00
Chris Eppstein
c69e95b925 update nanoc version. 2011-10-16 12:42:38 -07:00
Chris Eppstein
fe7f70d35c [docs] upgrade nanoc 2011-10-16 12:12:55 -07:00
neilparikh
38ccee8708 Added link to the Scout GUI for Compass. 2011-10-16 11:16:25 -07:00
Chris Eppstein
64c21f6fac Merge branch 'stable'
Conflicts:
	test/fixtures/stylesheets/compass/css/user-interface.css
2011-10-16 11:12:06 -07:00
Chris Eppstein
2f5cc38457 Further doc cleanup 2011-10-16 11:05:51 -07:00
Chris Eppstein
3d1502484c Merge pull request #558 from Methemer/patch-1
converts some code docs to scss.
2011-10-16 11:01:08 -07:00
Jonathan del Strother
87d3bdc09d Fix Railtie initialization when initialize_on_precompile is disabled 2011-10-12 15:27:00 +01:00
Scott Davis
616af1c139 Merge pull request #593 from davidchambers/master
Use `transition` shorthand if appropriate
2011-10-11 17:45:41 -07:00
Dan Gayle
afdd208594 Created tutorial for removing vendor specific prefixes 2011-10-11 19:19:34 -04:00
Scott Davis
ebb2e42acc closes #378 2011-10-09 11:34:39 -04:00
Scott Davis
3337b07ec7 closes #507 2011-10-09 09:44:00 -04:00
Scott Davis
0b169fec22 closes #237 2011-10-09 09:36:35 -04:00
Scott Davis
7caec96642 closes #478 2011-10-09 09:29:50 -04:00
Scott Davis
c6d9e3fb35 closes #588 2011-10-09 09:28:49 -04:00
Scott Davis
dd75f7241e micro optimization via @brainopia 2011-10-09 09:19:27 -04:00
brainopia
93ff7b31ec merge 2011-10-09 09:15:57 -04:00
Scott Davis
efdb00cc14 updated tests that the previous commit from @paulirish broke 2011-10-09 09:00:26 -04:00
Paul Irish
8ede06f001 more attractive whitespace for prefixed and aligned styles 2011-10-09 08:38:05 -04:00
David Chambers
7c738cd379 css3: use transition shorthand if appropriate (closes #585) 2011-10-06 21:41:41 -07:00
Eric Meyer
6f2ac833fd Merge pull request #581 from rykov/stable
Fix to remove prefix to -moz-user-select values
2011-10-05 09:35:46 -07:00
Michael Rykov
e12eb7b6d9 Fix to remove prefix to -moz-user-select values 2011-10-05 00:46:18 -07:00
Scott Davis
bd204a4f58 typo 2011-10-05 02:14:29 -04:00
Scott Davis
4fba9604eb Merge branch 'master' of github.com:chriseppstein/compass 2011-10-05 02:06:48 -04:00
Scott Davis
7e32d91ae6 updated spriting docs via #403 closes #403 2011-10-05 02:01:27 -04:00
Chris Eppstein
4c9656f35a Removed UTF-8 Character from the comments. 2011-10-04 13:26:06 -07:00
Colin Dean
656f12a4ab Fixed type conversion error
I encountered this when using jruby and passing an illegal option.
2011-10-02 01:58:32 -07:00
Scott Davis
067fb963df updated rake and cucumber so tests pass in 1.9.3 2011-09-26 13:42:12 -04:00
Chris Eppstein
d794394ceb Add missing test fixture. 2011-09-26 09:31:12 -07:00
Chris Eppstein
fecc98219d Refactor loggin within sprites
Handle missing logger instance more elegantly and centralize
relativizing and quiet mode checking.

Closes GH-84.
2011-09-26 09:00:51 -07:00
Scott Davis
9b56dc6169 updated for image_size monkey patch for api change 2011-09-24 01:21:41 -04:00
Chris Eppstein
d03d529909 Add a new compass-env() helper that returns the compass environment. 2011-09-20 09:36:40 -07:00
Chris Eppstein
972c53ecb5 Respect the --force option with sprite generation. 2011-09-19 18:19:42 -07:00
Chris Eppstein
38e4b3a3d9 Run a callback when a sprite is removed. 2011-09-19 18:19:04 -07:00
Chris Eppstein
71e5d28a29 Respect the --quiet option with sprite logging 2011-09-19 18:18:38 -07:00
Chris Eppstein
28daff6771 Assert that sprite offsets are numbers. 2011-09-19 17:59:37 -07:00
Chris Eppstein
1b3e7a3a6b Fix failing integration test. 2011-09-19 12:45:22 -07:00
Chris Eppstein
6b3b71ab37 Merge pull request #560 from johnbintz/rbx-sort-fix
Rubinius/JRuby sort fix
2011-09-19 12:31:39 -07:00
Chris Eppstein
c217edeed9 Fix broken tests 2011-09-19 11:04:35 -07:00
Chris Eppstein
942a84dca0 Tests need a logger. 2011-09-19 09:03:17 -07:00
Chris Eppstein
bfcff75c32 Handle the case where the there is not relative path to the images directory. 2011-09-19 09:03:02 -07:00
Chris Eppstein
b5ca89425d code cleanup 2011-09-19 07:41:32 -07:00
Chris Eppstein
de029babb5 Slightly prettier output during sprite file generation. 2011-09-19 07:41:32 -07:00
Chris Eppstein
ce853df6bf In some cases changing the layout doesn't force the sprite hash to change, so we have to make the layout part of the hash. 2011-09-19 07:41:32 -07:00
Chris Eppstein
8b33471229 Bump sprite version for this release. 2011-09-19 07:41:32 -07:00
Chris Eppstein
cd907d17a7 Log the creation or unchanged status of sprites during compilation. 2011-09-19 07:41:31 -07:00
Methemer
2359f8f213 I think it's time to move to SCSS Format, therefore I would like to start making SASS to SCSS Forks :) 2011-09-19 16:27:35 +03:00
Chris Eppstein
5fd2c14d06 A better setting to check if we are precompiling 2011-09-18 08:57:05 -07:00
John Bintz
c9593794bd better sorting of images coming into sprites, fixes one rbx error 2011-09-17 12:02:51 -04:00
Chris Eppstein
fe4edff7d4 Workaround for the deprecated static_root 2011-09-17 07:44:20 -07:00
Scott Davis
88ee68de5d Merge branch 'master' of github.com:chriseppstein/compass 2011-09-17 00:46:07 -04:00
Scott Davis
6cba5520aa fixed issue with showing positions and made the internal api consistant with the documentation 2011-09-17 00:45:35 -04:00
Chris Eppstein
d7a579ce58 Fix broken tests. 2011-09-16 18:00:00 -07:00
Chris Eppstein
87377ad7ff slightly better error message 2011-09-16 17:59:11 -07:00
Chris Eppstein
77321fdb80 Revert "Revert "removed useless unit""
This reverts commit f0f4ac9700.
2011-09-16 17:47:08 -07:00
Chris Eppstein
493f01c2c2 Update changelog 2011-09-16 16:02:48 -07:00
Chris Eppstein
78c102297b Merge pull request #537 from pzgz/master
Fixed errors when trying to compile examples by rake command. Update reference to the 960 grid plugin.
2011-09-16 16:01:01 -07:00
Chris Eppstein
155834b341 Merge remote branch 'botandrose/patch-4'
* botandrose/patch-4:
  add test for inline_font_files()
  Inline fonts weren't being base64 encoded.
2011-09-16 15:49:49 -07:00
Chris Eppstein
ea10cf43fc Merge branch 'stable'
* stable:
  Use the default compass images directory in the spriting tutorial
  added detail to rhythm-border documentation.
  update PIE.htc to Version 1.0beta5
  update PIE.htc to Version 1.0beta4
2011-09-16 15:21:55 -07:00
Chris Eppstein
9d1e2c9bea Update changelog 2011-09-16 15:19:57 -07:00
Chris Eppstein
49ea916c58 Merge pull request #549 from ravinggenius/master
Test and refactoring of font_files (issues #543 and #544) on master branch
2011-09-16 14:57:02 -07:00
Beau Smith
9d48b2539c Fixing funny typo, abiding by the rules of using Compass. 2011-09-16 14:46:06 -07:00
Scott Davis
660c5697db image_size was causing issue with rails and the sass evaluation context 2011-09-15 11:25:57 -04:00
Scott Davis
e52184b6fe fixes #551 with failing test 2011-09-14 12:47:20 -04:00
Scott Davis
35b9b60c7c Sprite importer now passes the correct filename to the sass engine which was causeing unexpected uris to get returned
This fixes the 'to_tree' error that wasn't really a sass bug it was an error on the sprite importers part
2011-09-12 20:44:12 -04:00
Scott Davis
f0f4ac9700 Revert "removed useless unit"
This reverts commit a8ff39a8e4.

This commit was breaking tests
2011-09-12 20:42:33 -04:00
Chris Eppstein
edc7942396 Merge branch 'stable'
* stable:
  changelog for user-select
  removed useless unit
  user-select mixin with docs and tests

Conflicts:
	doc-src/content/CHANGELOG.markdown
2011-09-12 13:37:32 -07:00
Eric Meyer
cc8e03581a added detail to rhythm-border documentation. 2011-09-12 14:36:40 -06:00
Scott Davis
3e5b3cfbf6 dont cache in custom 2011-09-10 16:47:10 -04:00
Scott Davis
ec90cf515f fixed typo =( 2011-09-10 16:44:49 -04:00
Scott Davis
45b19df315 cache the image dimensions in sass options 2011-09-10 16:42:12 -04:00
Scott Davis
2367b9b9be dont cache 2011-09-10 16:38:36 -04:00
Scott Davis
2792ea3be4 prefix with :: just incase 2011-09-10 16:31:31 -04:00
Scott Davis
91aaa29df8 monkey patch to rails 3.1 image functions 2011-09-10 16:30:23 -04:00
Scott Davis
7f8b6c29e0 moved to private 2011-09-10 16:29:57 -04:00
Scott Davis
abace68275 some internal refactoring im image_functions 2011-09-10 16:22:43 -04:00
Raving Genius
3514898ea1 Stop requiring font type when type can be guessed from URL (issue #544) 2011-09-08 23:12:11 -04:00
Raving Genius
8a2da92c91 Added test coverage for font_files (issue #543) 2011-09-08 20:59:03 -04:00
Micah Geisel
d644e54a38 add test for inline_font_files() 2011-09-07 13:06:10 -07:00
Scott Davis
0667ccf89c true not false 2011-09-06 22:50:50 -04:00
Scott Davis
16bbc81763 broke out sprite docs to be less complex 2011-09-06 22:39:31 -04:00
Scott Davis
e95ba13082 new sprite tutorials 2011-09-06 22:37:43 -04:00
Micah Geisel
bced277049 Inline fonts weren't being base64 encoded. 2011-09-06 14:57:34 -07:00
Scott Davis
8ccdab41cc refactored for cleanliness 2011-09-06 15:48:10 -04:00
Leon Guan
7fabdf1ffe Fixed the issues on compiling examples
Getting errors when running "rake examples", making following updates:
* Use https instead http for github access * Set use SSL flag for http
client * Fix the link for compass-960-plugin
2011-09-07 01:06:25 +08:00
Scott Davis
b7f44a48d3 sprite layout tutorial 2011-09-03 16:32:57 -04:00
Scott Davis
8ae841785a updated gemfile so rcov will only install with mri_18 2011-09-03 15:57:25 -04:00
Scott Davis
09dd9456e1 diagonal layout now goes i nthe correct direction and refactored some internals 2011-09-03 15:56:57 -04:00
Scott Davis
c7c007672f refactored docs to use latest nanoc and extracted styles to compass-theme gem 2011-09-03 00:38:11 -04:00
Chris Eppstein
374aed6783 Merge pull request #523 from lloydk/master
Compass does not work with Rails 3.1 and the asset pipeline disabled
2011-08-30 21:00:58 -07:00
Lloyd Kupchanko
375c08b60e Fix for issue #522 2011-08-30 21:39:02 -06:00
Scott Davis
7733f21dd0 another typo 2011-08-30 11:13:25 -03:00
Scott Davis
fe7bbdd84b fixed a typo 2011-08-30 11:12:29 -03:00
Chris Eppstein
2fea4c105d Fix stupid 0 in version 2011-08-30 00:17:49 -07:00
Chris Eppstein
89c44698ac update changelog 2011-08-30 00:05:13 -07:00
Chris Eppstein
7147147e24 Make sprites work with the asset pipeline. 2011-08-29 08:52:14 -07:00
Chris Eppstein
e2960d81b0 Move callbacks to the configuration base class and make them work correctly with inherited data. 2011-08-28 12:58:08 -07:00
Chris Eppstein
5896711c8a Set a default value for the default_http_generated_images_path in rails 3.1 2011-08-28 12:55:57 -07:00
Chris Eppstein
d0bbb66e73 Add a generated-image-url helper for rails31 specifically 2011-08-28 12:54:52 -07:00
Chris Eppstein
02f268f1b1 Properly detect minimum rails31 version. 2011-08-28 10:47:09 -07:00
Chris Eppstein
7d743941d1 fix error message 2011-08-28 09:22:13 -07:00
Chris Eppstein
210a1d4771 only define the compass url helpers if they are not already defined. 2011-08-28 09:22:13 -07:00
Chris Eppstein
f23bf58e8d Add support for a separate output location for generated images. This is necessary for rails 3.1 support of sprites. 2011-08-20 17:24:03 -07:00
Scott Davis
8a407a6df7 Merge branch 'master' of github.com:chriseppstein/compass into rails31 2011-08-19 19:58:00 -04:00
Scott Davis
4187f88970 fixed a bug that was causeing compass to remove non sprite images 2011-08-19 19:55:55 -04:00
Chris Eppstein
000e4e1ed7 Merge branch 'master' into rails31
* master: (23 commits)
  updated change log
  fixed horizontal height and width calculation
  horizontal layout now respects positions and spacing correctly
  Changed the descriptions of the sin, cos, and tan to be more descriptive.
  derp double require
  smart pack docs - forgot something
  smart pack docs
  smart packing implimentation thanks @johnbintz
  tests for smart packing
  smart packing helper classes
  new tests
  docs for diagonal layout
  layout for diagonal sprite
  added test for diagonal layout
  fixed trig functions closes #498
  patched image functions to accept a real path
  Fix failing test for change to http_path in rails
  Failing test for changing http_path with rails
  reverted sorting back to one liner
  more importer tests
  ...

Conflicts:
	Gemfile.lock
2011-08-19 14:42:42 -07:00
Scott Davis
a82a3dd5d4 updated change log 2011-08-19 17:04:32 -04:00
Scott Davis
1cdfab7c03 fixed horizontal height and width calculation 2011-08-12 15:34:04 -04:00
Scott Davis
4aa052d9e4 horizontal layout now respects positions and spacing correctly 2011-08-12 15:12:31 -04:00
Tyrinslys Valinlore
d8e43bfdd7 Changed the descriptions of the sin, cos, and tan to be more descriptive. 2011-08-03 11:28:59 -04:00
Scott Davis
6a166d0145 derp double require 2011-08-02 23:46:03 -04:00
Scott Davis
e49581c18f smart pack docs - forgot something 2011-08-02 23:37:59 -04:00
Scott Davis
590123aeba smart pack docs 2011-08-02 23:37:31 -04:00
Scott Davis
59722ef4ad smart packing implimentation thanks @johnbintz 2011-08-02 23:36:20 -04:00
Scott Davis
ef4c897de5 tests for smart packing 2011-08-02 23:35:53 -04:00
Scott Davis
87240723e7 smart packing helper classes 2011-08-02 23:35:27 -04:00
Scott Davis
d4227346af new tests 2011-08-02 23:34:59 -04:00
Scott Davis
5f2cf884b6 docs for diagonal layout 2011-08-02 22:13:13 -04:00
Scott Davis
08e92fadb2 layout for diagonal sprite 2011-08-02 22:08:27 -04:00
Scott Davis
26b2d1fcba added test for diagonal layout 2011-08-02 22:08:05 -04:00
Scott Davis
acfd1e43a2 fixed trig functions closes #498 2011-08-02 18:49:06 -04:00
Scott Davis
289c452d64 patched image functions to accept a real path 2011-07-27 21:31:56 -04:00
Joeri Samson
ec7c4b2e9c Fix failing test for change to http_path in rails 2011-07-27 19:47:43 +02:00
Joeri Samson
b57822c134 Failing test for changing http_path with rails 2011-07-27 19:47:42 +02:00
Scott Davis
3a4d1e07b7 reverted sorting back to one liner 2011-07-27 03:01:28 -04:00
Scott Davis
8c48248a72 more importer tests 2011-07-27 02:39:24 -04:00
Scott Davis
0984b48b24 adjust spritmap class to usr load path to get relative sprite names 2011-07-27 02:11:45 -04:00
Scott Davis
71494cecfe rename sprite_search_path to sprite_load_path for consistancy 2011-07-26 17:53:56 -04:00
Scott Davis
5e89865192 fixed rails 3.0.x 2011-07-26 17:43:08 -04:00
Scott Davis
91a748a916 merge from master 2011-07-26 16:35:50 -04:00
Scott Davis
9c472b3c36 sprite_seach_path implimentation and test case 2011-07-26 16:21:59 -04:00
Scott Davis
9966421f58 configuration for sprite_search_path 2011-07-26 16:21:21 -04:00
Scott Davis
c950d87432 abstracted out test helpers 2011-07-26 16:20:51 -04:00
Scott Davis
1ad4dcaae8 hoping this fixes the ci server issues 2011-07-26 15:11:52 -04:00
Scott Davis
3f72a549d3 fixed sprite hash in features 2011-07-26 14:59:08 -04:00
Scott Davis
387a2ffe1f fixed features to be more lieniet on sprite hashes 2011-07-26 14:42:57 -04:00
Scott Davis
64d0787ce2 Merge branch 'stable' 2011-07-26 14:02:00 -04:00
Scott Davis
ac43297822 merged lyuba stable 2011-07-26 14:01:51 -04:00
Scott Davis
8f482da5db merge 2011-07-26 02:30:47 -04:00
Scott Davis
40f96b94b0 Merge branch 'stable' of github.com:chriseppstein/compass 2011-07-26 02:25:56 -04:00
Scott Davis
c79e997098 merged in stable and added a test image 2011-07-26 02:08:29 -04:00
Scott Davis
b78bb69674 Merge branch 'stable' of github.com:chriseppstein/compass 2011-07-26 02:07:54 -04:00
Scott Davis
b581d2e1a7 passing tests for new vertical layout based on file size 2011-07-26 02:03:38 -04:00
Scott Davis
7a183754b7 merge 454 closes 454 2011-07-25 23:05:37 -04:00
Scott Davis
38cf0e571b merge 2011-07-25 22:47:29 -04:00
Chris Eppstein
33263caffe Don't nuke the css files due to config changes during rails boot unless compilation is enabled. 2011-07-22 10:55:06 -07:00
Scott Davis
b1b6273b3f docs for horizontal spriting 2011-07-21 13:07:32 -04:00
Chris Eppstein
2c1fcfcad7 Fix broken test cases 2011-07-19 11:44:24 -07:00
Chris Eppstein
c3062b9fe3 Revert "removed string compairson in configuration tests it was compairing comments which is unneeded when also testing for proper values"
This reverts commit 400623f4eb.
2011-07-19 11:44:14 -07:00
Scott Davis
400623f4eb removed string compairson in configuration tests it was compairing comments which is unneeded when also testing for proper values 2011-07-19 12:34:05 -04:00
Scott Davis
98350c3e19 fixed a nil bug in the latest ruby 1.9.2 2011-07-19 12:32:26 -04:00
Chris Eppstein
0c1342746e Better configuration defaults for rails31 2011-07-18 22:00:06 -07:00
lyuba
fce52690b9 font weight and style default to false 2011-07-15 23:31:30 +02:00
lyuba
937a15a41a Merge branch 'master' of github.com:lyuba/compass into stable 2011-07-14 15:54:47 +02:00
Chris Eppstein
5ac72d5b0a Merge branch 'stable'
* stable:
  Version Bump.
  Update changelog for 0.11.5
  Reset only the block HTML elements #339
  fix warning logic in vertical-rhythms module

Conflicts:
	VERSION.yml
2011-07-10 17:36:15 -07:00
Chris Eppstein
6c12749194 Merge branch 'stable'
* stable:
  Fix failing test when updating to latest SASS
  Gemfile.lock should not be part of a library / gem
  fix typo
  Fix issue with parent directory references within the sass_path in the compass compiler.
  Version bump.
  Update changelog
  Return a non-zero exit code if there are any stylesheet compilation errors. Closes GH-432.
  Fix test failures.
  Better docs for the shadow mixins. Closes GH-433.
  Include the Compass logger to prevent "uninitialized constant Compass::Logger"
  Broken link fixed to what I think is the correct section of the SASS docs.
  grid-background vertical rhythm should be based off of $blueprint-font-size, rather than a static value.
  :focus should not use shorthand border property, since it only need to change the border-color
  update changelog
  Fix absolute path detection on Windows.
  Fix the mime type returned for svg images. Closes GH-442.

Conflicts:
	Gemfile.lock
2011-07-03 14:21:09 -07:00
Chris Eppstein
1c65f4c52b Fix gem issue 2011-07-02 20:52:54 -07:00
Chris Eppstein
3786a8312a Merge branch 'stable'
* stable:
  Fix edge case issue when there's no cache location.
  Fix broken test.
  Transitions accepting multiple transitions separated by commas
  Added force-wrap mixin to prevent URLs and long lines of text from breaking layouts.
2011-07-02 18:05:32 -07:00
Caged
a08d0319d0 Fixes #449. Accept and honor offsets in selectors 2011-07-02 13:27:32 -07:00
Chris Eppstein
793965872e Merge branch 'stable'
* stable:
  update the font-face example
2011-07-02 10:35:03 -07:00
Chris Eppstein
f89f3839dc Merge remote-tracking branch 'origin/master'
* origin/master:
  Add a test for the new sprite offset passing.
  Pass through offset parameters to the :hover, :target, and :active magic sprite selectors.
2011-07-01 22:23:34 -07:00
Chris Eppstein
f18b5bcbc1 Merge branch 'stable'
* stable:
  Update CHANGELOG
  When the unit is in pixels, round down in the leader and up in the trailer.
  Ensure there is a minimum of padding in each line when calculating how many lines are needed.
  Support absolute font sizing in the vertical rhythm module
  Update homepage
  Adding the generated css files from the msfilter change
  Removing -ms-filter as it drives IE9+ crazy. plus existing filter works anyway for IE9-
  In case you want to buy stuff.
  Update Gemfile to use rake 0.8.7
  Handle pathnames being assigned to the working path of a command. Closes GH-434.
  Fix docs
  Fix compass version in the docs.

Conflicts:
	Gemfile.lock
2011-07-01 22:23:05 -07:00
Scott Davis
1f59755991 Merge pull request #450 from coderanger/feature/sprite-offsets
Pass through offset parameters to the :hover, :target, and :active magic
2011-06-30 18:47:28 -07:00
Noah Kantrowitz
c9145a4aca Add a test for the new sprite offset passing. 2011-06-30 18:44:19 -07:00
Noah Kantrowitz
7e07e55f13 Pass through offset parameters to the :hover, :target, and :active magic sprite selectors. 2011-06-30 16:35:22 -07:00
Scott Davis
2124003550 updated test file 2011-06-27 01:26:11 -04:00
Scott Davis
71d8111454 renamed test 2011-06-27 01:21:45 -04:00
Scott Davis
dfb7c70113 merge 2011-06-27 01:07:53 -04:00
Scott Davis
9da1d44d45 merge 2011-06-27 00:59:08 -04:00
Scott Davis
642d0b2007 Merge branch 'stable' into rails31 2011-06-27 00:58:14 -04:00
Scott Davis
cc81fe6fac merged version.yml 2011-06-27 00:56:29 -04:00
Scott Davis
43868ecabd test files for horizontal sprites 2011-06-25 01:28:01 -04:00
Scott Davis
18c79f51a2 horizontal sprite layout 2011-06-25 01:23:50 -04:00
Scott Davis
8d2ad57e18 Thanks @ngauthier for spellchecking! 2011-06-23 06:32:41 -07:00
Scott Davis
1178c940bb fixed tests 2011-06-19 12:26:38 -04:00
Scott Davis
e0abb38e2f fixed problem with decimal math and being able to position sprites with "%"s fixes #415 2011-06-19 11:24:44 -04:00
Scott Davis
124a193345 Merge branch 'master' of github.com:chriseppstein/compass into stable 2011-06-15 23:41:08 -04:00
Scott Davis
cfe5b8ed7e refactor 2011-06-15 23:37:23 -04:00
Chris Eppstein
4213375c00 Merge branch 'stable'
* stable:
  forgot to add features to the ci file
2011-06-11 23:59:32 -07:00
Chris Eppstein
2772a70e00 travis.ci 2011-06-11 23:59:00 -07:00
Chris Eppstein
696d84562d Track rails branch as a different version state. 2011-06-10 16:00:56 -07:00
Chris Eppstein
ba5bec3e09 Merge branch 'master' into rails31
* master:
  Prepare the next release version
  Fix CSS3 background attribute
  Version Bump & Prepare for v0.11.2
  Strong tags in the docs should be bold.
  Fixes sprites file names with sprockets, modifies tests accordingly to new structure.
  removed all cacheing from importer class it causes more problems then it was worth
  gemfile
  removed another instance cache in the importer that could be problematic
  updated importer to validate that sprites are png files
  run bundle exec when running tests
  cleaned up some over zelious cacheing that was causing inconsistancy problems
  added test for sprite importer
  removed unneeded cache
  readded mtime to importer class
  typo: appliction
  Update test case for flexible box.
  Enable IE 10 support for flexible box with the -ms prefix.
2011-06-10 16:00:04 -07:00
Chris Eppstein
24ed97d920 Merge branch 'master' into rails31
* master:
  Revert "Disable 1.8.7 and rbx for now."
  Ignore charset in blueprint files
  This file has utf-8 chars in the comments.
  Fix encoding issue.
2011-06-07 11:23:33 -07:00
Chris Eppstein
275635a88f Merge branch 'master' into rails31
* master:
  Rename the sprite Base class to SpriteMap
  Move the sprite importer to the compass module and rename it to be more clear about what it does.
2011-06-07 07:55:54 -07:00
Chris Eppstein
b0e89239c3 Merge branch 'master' into rails31
* master:
  The compass watcher is in quiet mode except for important actions.
  Clear up a Logger class lookup issue that was reported.
  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.
  Previously, calling directory("/hi") would error, because options would remain nil if self doesn't respond_to?(:options)
  moved config check to perform
  added @chriseppsteins suggestion for issue #300
  forgot test files
  added failing test for issue #400 and fixed the callback typo closes #400
  move hashing and comparison methods into SpriteMap class
  removed unneeded file
  refactored the sass importer for sprites

Conflicts:
	lib/compass/sass_extensions/sprites/sprites.rb
2011-06-05 18:04:29 -07:00
Chris Eppstein
52e41d0455 This file has utf-8 chars in the comments. 2011-06-03 15:29:47 -07:00
Chris Eppstein
1a84305a04 Fix encoding issue. 2011-06-03 15:06:02 -07:00
Chris Eppstein
1b689ce966 Basic Rails 3.1 integration. 2011-06-03 10:29:59 -07:00
Chris Eppstein
4852e7803c Fix a bug where import paths are added twice when using add_import_path in a configuration file. 2011-06-03 09:45:51 -07:00
Chris Eppstein
5681f38e50 Better string representation for the sprite importer. 2011-06-03 09:44:24 -07:00
Chris Eppstein
e31e62bdd9 Strong tags in the docs should be bold. 2011-05-28 02:11:30 -07:00
lyuba
279124cc19 font styles in the @font-face 2011-05-22 01:32:34 +02:00
280 changed files with 6200 additions and 5066 deletions

1
.gitignore vendored
View File

@ -29,3 +29,4 @@ devbin
vendor/ruby vendor/ruby
vendor vendor
Gemfile.lock Gemfile.lock
*.pkg

View File

@ -1,6 +1,7 @@
rvm: rvm:
- 1.8.7 - 1.8.7
- 1.9.2 - 1.9.2
- 1.9.3
- jruby - jruby
- rbx - rbx
- ree - ree

32
Gemfile
View File

@ -2,28 +2,30 @@ source :rubygems
gemspec gemspec
gem "cucumber", "~> 0.9.2" unless ENV['PKG']
gem "cucumber", "~> 1.1.4"
gem "rspec", "~>2.0.0" gem "rspec", "~>2.0.0"
gem "rails", "~>3.0.0.rc" gem "rails", "~> 3.1"
gem "compass-validator", "3.0.1" gem "compass-validator", "3.0.1"
gem "css_parser", "~> 1.0.1" gem "css_parser", "~> 1.0.1"
gem "sass", "~>3.1" gem "sass", "~> 3.2.0.alpha.93"
gem "haml", "~> 3.1" gem "haml", "~> 3.1"
gem "rcov", :platform => :mri
gem "rubyzip" gem "rubyzip"
gem "livereload"
gem "ruby-prof", :platform => :mri
gem 'autotest'
gem 'autotest-fsevent' if RUBY_PLATFORM =~ /darwin/
gem 'fakefs', :git => 'git://github.com/johnbintz/fakefs.git'
gem 'mocha' gem 'mocha'
gem 'timecop'
gem 'diff-lcs', '~> 1.1.2' gem 'diff-lcs', '~> 1.1.2'
gem 'rake', '~> 0.9.2'
gem 'rake', '0.8.7' # Warning becarful adding OS dependant gems above this line it will break the CI server please
# place them below so they are excluded
group :mac do unless ENV["CI"]
gem "rb-fsevent" gem 'rb-fsevent'
gem 'ruby_gntp'
gem "ruby-prof", :platform => :mri_18
gem "rcov", :platform => :mri_18
gem 'guard'
gem 'guard-test'
gem 'guard-cucumber'
gem 'packager'
end
end end

16
Guardfile Normal file
View File

@ -0,0 +1,16 @@
group :tests do
guard :test do
watch(%r{^lib/(.+)\.rb$}) { |m| "test/#{m[1]}_test.rb" }
watch(%r{^test/.+_test\.rb$})
watch(%r{^test/units/.+_test\.rb$})
watch('test/test_helper.rb') { "test" }
end
end
group :features do
guard :cucumber do
watch(%r{^features/.+\.feature$})
watch(%r{^features/support/.+$}) { 'features' }
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) { |m| Dir[File.join("**/#{m[1]}.feature")][0] || 'features' }
end
end

View File

@ -1,56 +1,29 @@
# Compass # Compass Stylesheet Authoring Framework
A [Sass][sass]-based CSS Meta-Framework that allows you to mix and match any of the following CSS frameworks:
- [Compass Core][compass_core_website] - [Wiki Documentation][compass_core_wiki] Build Status: ![Build Status](https://secure.travis-ci.org/chriseppstein/compass.png)
- [Blueprint][blueprint_website] - [Wiki Documentation][bleuprint_wiki]
- [960][ninesixty_website] - [Wiki Documentation][ninesixty_wiki]
- [Susy][susy_website] - [Wiki Documentation][susy_wiki]
- [YUI][yui_website] - [Wiki Documentation][yui_wiki]
- New frameworks and extensions are [tracked on the wiki][plugins_wiki] as they are created.
- Other frameworks can be added relatively easily. Create your own!
## Compass Provides ## Resources
1. A [command line tool][command_line_wiki] for managing your Sass projects. * [Compass Homepage](http://compass-style.org/)
2. Simple integration with [Ruby-on-Rails][ruby_on_rails_wiki], [Merb][merb_wiki], [StaticMatic][static_matic_wiki], and even [non-ruby application servers][command_line_wiki]. * [Installing Compass](http://compass-style.org/install/)
3. Loads of Sass mixins to make building your website a snap. * [Compass Reference](http://compass-style.org/install/reference/)
## Quick Start
$ (sudo) gem install compass
$ compass create my_compass_project --using blueprint
$ cd my_compass_project
$ compass watch
## More Information
Please see the [wiki][wiki]
## Author ## Author
Compass is written by [Chris Eppstein][chris_eppstein].<br> Compass is written by [Chris Eppstein][chris_eppstein].<br>
Chris is the Software Architect of [Caring.com][caring.com] and a member of the [Sass][sass] core team. Chris is the Software Architect of [Caring.com][caring.com] and a member of the [Sass][sass] core team.
## Core Team Members
* [Scott Davis](https://github.com/scottdavis)
* [Eric Meyer](https://github.com/ericam)
* [Brandon Mathis](https://github.com/imathis)
* [Anthony Short](https://github.com/anthonyshort/)
## Major Contributors
* [Nico Hagenburger](https://github.com/hagenburger)
## License ## License
Copyright (c) 2008-2009 Christopher M. Eppstein<br> Copyright (c) 2008-2009 Christopher M. Eppstein<br>
All Rights Reserved.<br> All Rights Reserved.<br>
Released under a [slightly modified MIT License][license]. Released under a [slightly modified MIT License][license].
[sass]: http://sass-lang.com/ "Syntactically Awesome StyleSheets"
[compass_core_website]: http://github.com/chriseppstein/compass/tree/master/frameworks/compass
[compass_core_wiki]: http://github.com/chriseppstein/compass/wikis/compass-core-documentation
[blueprint_website]: http://blueprintcss.org/
[bleuprint_wiki]: http://github.com/chriseppstein/compass/wikis/blueprint-documentation
[yui_website]: http://developer.yahoo.com/yui/grids/
[yui_wiki]: http://github.com/chriseppstein/compass/wikis/yui-documentation
[plugins_wiki]: http://github.com/chriseppstein/compass/wikis/compass-plugins
[ninesixty_website]: http://960.gs/
[ninesixty_wiki]: http://github.com/chriseppstein/compass/wikis/960gs-documentation
[command_line_wiki]: http://wiki.github.com/chriseppstein/compass/command-line-tool
[wiki]: http://github.com/chriseppstein/compass/wikis/home
[ruby_on_rails_wiki]: http://wiki.github.com/chriseppstein/compass/ruby-on-rails-integration
[merb_wiki]: http://wiki.github.com/chriseppstein/compass/merb-integration
[static_matic_wiki]: http://wiki.github.com/chriseppstein/compass/staticmatic-integration
[chris_eppstein]: http://chriseppstein.github.com
[caring.com]: http://www.caring.com/ "Senior Care Resources"
[license]: http://github.com/chriseppstein/compass/tree/master/LICENSE.markdown
[susy_website]: http://www.oddbird.net/susy/
[susy_wiki]: http://github.com/chriseppstein/compass/wikis/susy-documentation

View File

@ -1,6 +1,16 @@
require 'rubygems' require 'rubygems'
require 'bundler' if ENV["PKG"]
Bundler.setup $: << File.expand_path(File.dirname(__FILE__))+"/lib"
else
require 'bundler'
Bundler.setup
end
begin
require 'rake/dsl_definition'
rescue LoadError
#pass
end
require 'compass' require 'compass'
# ----- Default: Testing ------ # ----- Default: Testing ------
@ -9,12 +19,17 @@ task :default => [:test, :features]
require 'rake/testtask' require 'rake/testtask'
require 'fileutils' require 'fileutils'
begin
require 'cucumber' require 'cucumber'
require 'cucumber/rake/task' require 'cucumber/rake/task'
Cucumber::Rake::Task.new(:features) do |t| Cucumber::Rake::Task.new(:features) do |t|
t.cucumber_opts = "features --format progress" t.cucumber_opts = "features --format progress"
end end
rescue LoadError
$stderr.puts "cannot load cucumber"
end
Rake::TestTask.new :test do |t| Rake::TestTask.new :test do |t|
t.libs << 'lib' t.libs << 'lib'
@ -29,6 +44,16 @@ To run with an alternate version of Rails, make test/rails a symlink to that ver
To run with an alternate version of Haml & Sass, make test/haml a symlink to that version. To run with an alternate version of Haml & Sass, make test/haml a symlink to that version.
END END
Rake::TestTask.new :units do |t|
t.libs << 'lib'
t.libs << 'test'
test_files = FileList['test/units/**/*_test.rb']
test_files.exclude('test/rails/*', 'test/haml/*')
t.test_files = test_files
t.verbose = true
end
desc "Compile Examples into HTML and CSS" desc "Compile Examples into HTML and CSS"
task :examples do task :examples do
linked_haml = "tests/haml" linked_haml = "tests/haml"
@ -113,3 +138,20 @@ rescue LoadError => e
puts "WARNING: #{e}" puts "WARNING: #{e}"
end end
begin
require 'packager/rake_task'
require 'compass/version'
# Building a package:
# 1. Get packager installed and make sure your system is setup correctly according to their docs.
# 2. Make sure you are actually using a universal binary that has been nametooled.
# 3. PKG=1 OFFICIAL=1 rake packager:pkg
Packager::RakeTask.new(:pkg) do |t|
t.package_name = "Compass"
t.version = Compass::VERSION
t.domain = "compass-style.org"
t.bin_files = ["compass"]
t.resource_files = FileList["frameworks/**/*"] + ["VERSION.yml", "LICENSE.markdown"]
end
rescue LoadError => e
puts "WARNING: #{e}"
end

View File

@ -1,5 +1,6 @@
--- ---
:major: 0 :major: 0
:minor: 11 :minor: 13
:patch: 5 :state: alpha
:name: Antares :build: 0
:name: Markab

View File

@ -1,5 +0,0 @@
Autotest.add_discovery { 'rspec2' }

View File

@ -21,6 +21,10 @@ fallback_load_path(File.join(File.dirname(__FILE__), '..', 'lib')) do
require 'compass/exec' require 'compass/exec'
end end
if defined?(Bundler)
Bundler.require :assets
end
runner = Proc.new do runner = Proc.new do
Compass::Exec::SubCommandUI.new(ARGV).run! Compass::Exec::SubCommandUI.new(ARGV).run!
end end
@ -36,5 +40,5 @@ if ARGV.delete("--profile")
printer.print(STDERR, 0) printer.print(STDERR, 0)
exit exit_code exit exit_code
else else
exit runner.call exit runner.call || 1
end end

View File

@ -3,10 +3,11 @@ require File.join(path, 'compass/version')
Gem::Specification.new do |gemspec| Gem::Specification.new do |gemspec|
gemspec.name = "compass" gemspec.name = "compass"
gemspec.version = Compass::VERSION # Update the VERSION.yml file to set this. gemspec.date = Date.today
gemspec.version = Compass::VERSION # Update VERSION.yml file to set this.
gemspec.description = "Compass is a Sass-based Stylesheet Framework that streamlines the creation and maintainance of CSS." gemspec.description = "Compass is a Sass-based Stylesheet Framework that streamlines the creation and maintainance of CSS."
gemspec.homepage = "http://compass-style.org" gemspec.homepage = "http://compass-style.org"
gemspec.authors = ["Chris Eppstein", "Eric A. Meyer", "Brandon Mathis", "Nico Hagenburger", "Scott Davis"] gemspec.authors = ["Chris Eppstein", "Scott Davis", "Eric A. Meyer", "Brandon Mathis", "Anthony Short", "Nico Hagenburger"]
gemspec.email = "chris@eppsteins.net" gemspec.email = "chris@eppsteins.net"
#gemspec.default_executable = "compass" #deprecated #gemspec.default_executable = "compass" #deprecated
gemspec.executables = %w(compass) gemspec.executables = %w(compass)
@ -15,7 +16,7 @@ Gem::Specification.new do |gemspec|
gemspec.rubygems_version = "1.3.5" gemspec.rubygems_version = "1.3.5"
gemspec.summary = %q{A Real Stylesheet Framework} gemspec.summary = %q{A Real Stylesheet Framework}
gemspec.add_dependency 'sass', '~> 3.1' gemspec.add_dependency 'sass', '~> 3.2.0.alpha.93'
gemspec.add_dependency 'chunky_png', '~> 1.2' gemspec.add_dependency 'chunky_png', '~> 1.2'
gemspec.add_dependency 'fssm', '>= 0.2.7' gemspec.add_dependency 'fssm', '>= 0.2.7'

View File

@ -1,7 +1,7 @@
# Require any additional compass plugins here. # Require any additional compass plugins here.
require 'susy' require 'susy'
require 'css-slideshow' require 'css-slideshow'
require 'compass-theme'
# Set this to the root of your project when deployed: # Set this to the root of your project when deployed:
http_path = "/" http_path = "/"
project_path = File.expand_path(File.join(File.dirname(__FILE__), '..')) project_path = File.expand_path(File.join(File.dirname(__FILE__), '..'))

View File

@ -1,6 +1,8 @@
source :gemcutter source :gemcutter
gem 'nanoc3', :git => "git://github.com/chriseppstein/nanoc.git" gem 'nanoc', "3.2.4"
gem 'nanoc3', "3.2.4"
gem 'asdf'
gem 'rdiscount' gem 'rdiscount'
gem 'thor' gem 'thor'
gem 'rack' gem 'rack'
@ -8,12 +10,13 @@ gem 'mime-types'
gem 'serve', "1.0.0" gem 'serve', "1.0.0"
gem 'nokogiri' gem 'nokogiri'
gem 'coderay' gem 'coderay'
gem 'sass', ">= 3.1" gem 'haml'
gem 'haml', ">= 3.1"
gem 'rake' gem 'rake'
gem 'activesupport', '~> 3.0.10', :require => 'active_support/inflector'
gem 'compass', :path => ".." gem 'compass', :path => ".."
gem 'compass-susy-plugin', ">=0.7.0.pre8" gem 'compass-theme', :git => 'git://github.com/Compass/compass-theme.git'
gem 'css-slideshow', "0.2.0" # gem 'compass-susy-plugin', ">=0.7.0.pre8"
# gem 'css-slideshow', "0.2.0"
gem 'json' gem 'json'
gem 'css_parser', "1.0.1" gem 'css_parser', "1.0.1"
gem 'ruby-prof' gem 'ruby-prof'

View File

@ -1,71 +1,80 @@
GIT GIT
remote: git://github.com/chriseppstein/nanoc.git remote: git://github.com/Compass/compass-theme.git
revision: 4eee0e60c5121b90498caa88605d416521553378 revision: e870bc7c1d9124636280b974ccfc395eed097411
specs: specs:
nanoc3 (3.2.0a3) compass-theme (0.0.2)
cri (>= 1.0.0) compass (~> 0.11)
compass-susy-plugin (~> 0.7.0)
css-slideshow (= 0.2.0)
PATH PATH
remote: .. remote: ..
specs: specs:
compass (0.11.1.93b89a2) compass (0.13.alpha.0.0c13d98)
chunky_png (~> 1.1) chunky_png (~> 1.2)
fssm (>= 0.2.7) fssm (>= 0.2.7)
sass (~> 3.1) sass (~> 3.2.0.alpha.93)
GEM GEM
remote: http://rubygems.org/ remote: http://rubygems.org/
specs: specs:
activesupport (3.0.7) activesupport (3.0.12)
builder (2.1.2) asdf (0.5.0)
chunky_png (1.2.0) rack (~> 1.2.1)
coderay (0.9.7) builder (3.0.0)
compass-susy-plugin (0.9.beta.3) chunky_png (1.2.5)
compass (>= 0.11.beta.3) coderay (1.0.5)
cri (1.0.1) compass-susy-plugin (0.7.0)
compass (>= 0.10.0)
cri (2.2.1)
css-slideshow (0.2.0) css-slideshow (0.2.0)
compass (>= 0.10.0.rc3) compass (>= 0.10.0.rc3)
css_parser (1.0.1) css_parser (1.0.1)
fssm (0.2.7) fssm (0.2.8.1)
haml (3.1.0) haml (3.1.4)
i18n (0.4.2) i18n (0.4.2)
json (1.5.1) json (1.6.5)
mime-types (1.16) mime-types (1.17.2)
nokogiri (1.4.4) nanoc (3.2.4)
rack (1.2.2) nanoc3 (>= 3.2.4)
rake (0.8.7) nanoc3 (3.2.4)
rb-fsevent (0.4.0) cri (~> 2.0)
nokogiri (1.5.2)
rack (1.2.5)
rake (0.9.2.2)
rb-fsevent (0.9.0)
rdiscount (1.6.8) rdiscount (1.6.8)
ruby-prof (0.9.2) ruby-prof (0.10.8)
sass (3.1.0) sass (3.2.0.alpha.101)
serve (1.0.0) serve (1.0.0)
activesupport (~> 3.0.1) activesupport (~> 3.0.1)
i18n (~> 0.4.1) i18n (~> 0.4.1)
rack (~> 1.2.1) rack (~> 1.2.1)
tzinfo (~> 0.3.23) tzinfo (~> 0.3.23)
thor (0.14.6) thor (0.14.6)
tzinfo (0.3.26) tzinfo (0.3.32)
PLATFORMS PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
activesupport (~> 3.0.10)
asdf
builder builder
coderay coderay
compass! compass!
compass-susy-plugin (>= 0.7.0.pre8) compass-theme!
css-slideshow (= 0.2.0)
css_parser (= 1.0.1) css_parser (= 1.0.1)
haml (>= 3.1) haml
json json
mime-types mime-types
nanoc3! nanoc (= 3.2.4)
nanoc3 (= 3.2.4)
nokogiri nokogiri
rack rack
rake rake
rb-fsevent rb-fsevent
rdiscount rdiscount
ruby-prof ruby-prof
sass (>= 3.1)
serve (= 1.0.0) serve (= 1.0.0)
thor thor

View File

@ -63,6 +63,7 @@ end
compile '*' do compile '*' do
if item[:extension] == "markdown" if item[:extension] == "markdown"
filter :erb
filter :rdiscount filter :rdiscount
elsif item[:extension] == "haml" elsif item[:extension] == "haml"
filter :haml, :ugly => true filter :haml, :ugly => true

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 34 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 33 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 36 KiB

View File

@ -4,15 +4,38 @@ function showInstallCommand() {
var notes = []; var notes = [];
var project_name = "&lt;myproject>"; var project_name = "&lt;myproject>";
var can_be_bare = true; var can_be_bare = true;
commands.push("$ gem install compass"); var in_working_dir = false;
var use_bundler = false;
if ($("#app-type").val() != "rails") {
commands.push("$ gem install compass");
}
if (cmd == "init") { if (cmd == "init") {
commands.push("$ cd " + project_name); commands.push("$ cd " + project_name);
in_working_dir = true
project_name = "."; project_name = ".";
$(".creating").hide();
} else {
$(".creating").show();
if ($("#project_name").val() != "")
project_name = $("#project_name").val();
}
if ($("#app-type").val() == "rails") {
notes.push("<p class='note warning'>Rails 2.3 and 3.0 users require additional installation steps. For full rails installation and upgrade instructions please refer to the compass-rails <a href='https://github.com/Compass/compass-rails/blob/master/README.md'>README</a>.</p>");
use_bundler = true;
} }
if ($("#app-type").val() == "rails") { if ($("#app-type").val() == "rails") {
if (cmd == "create") { if (cmd == "create") {
commands.push("$ rails new " + project_name); commands.push("$ rails new " + project_name);
commands.push("$ cd " + project_name);
in_working_dir = true
project_name = ".";
} }
commands.push("> Edit Gemfile and add this:");
commands.push(" group :assets do");
commands.push(" gem 'compass-rails'");
commands.push(" # Add any compass extensions here");
commands.push(" end");
commands.push("$ bundle");
cmd = "init rails"; cmd = "init rails";
can_be_bare = false; can_be_bare = false;
} else if ($("#app-type").val() == "other") { } else if ($("#app-type").val() == "other") {
@ -28,9 +51,12 @@ function showInstallCommand() {
var framework = $("#framework").val(); var framework = $("#framework").val();
var create_command; var create_command;
if (cmd == "install") { if (cmd == "install") {
create_command = "$ compass install " + framework + " " + project_name; create_command = "$ compass install " + framework;
} else { } else {
create_command = "$ compass " + cmd + " " + project_name; create_command = "$ compass " + cmd;
}
if (!in_working_dir) {
create_command = create_command + " " + project_name;
} }
if (framework != "compass" && framework != "bare" && cmd != "install") { if (framework != "compass" && framework != "bare" && cmd != "install") {
create_command = create_command + " --using " + framework; create_command = create_command + " --using " + framework;
@ -46,14 +72,20 @@ function showInstallCommand() {
} }
if ($("#options").val() == "customized") { if ($("#options").val() == "customized") {
$("#directories").show(); $("#directories").show();
create_command = create_command + if ($("#sassdir").val() != "")
" --sass-dir \"" + $("#sassdir").val() + "\"" + create_command += " --sass-dir \"" + $("#sassdir").val() + "\"";
" --css-dir \"" + $("#cssdir").val() + "\"" + if ($("#cssdir").val() != "")
" --javascripts-dir \"" + $("#jsdir").val() + "\"" + create_command += " --css-dir \"" + $("#cssdir").val() + "\"";
" --images-dir \"" + $("#imagesdir").val() + "\""; if ($("#jsdir").val() != "")
create_command += " --javascripts-dir \"" + $("#jsdir").val() + "\"";
if ($("#imagesdir").val() != "")
create_command += " --images-dir \"" + $("#imagesdir").val() + "\"";
} else { } else {
$("#directories").hide(); $("#directories").hide();
} }
if (use_bundler) {
create_command = "$ bundle exec " + create_command.replace(/\$ /,'');
}
commands.push(create_command); commands.push(create_command);
var instructions = "<pre><code>" + commands.join("\n") + "</code></pre>"; var instructions = "<pre><code>" + commands.join("\n") + "</code></pre>";
if (instructions.match(/&lt;/)) { if (instructions.match(/&lt;/)) {

View File

@ -14,10 +14,147 @@ The Documentation for the [latest stable release](http://compass-style.org/docs/
The Documentation for the [latest preview release](http://beta.compass-style.org/) The Documentation for the [latest preview release](http://beta.compass-style.org/)
0.11.6 (UNRELEASED) 0.13.alpha.0 (UNRELEASED)
-------------------------
* Allow numeric sprite names when not using sprite selector generation capability.
* Add new mixin for styling [input
placeholders](/reference/compass/css3/user_interface/#mixin-input-placeholder).
* Add [css animations module](/reference/compass/css3/animation/).
* When `$relative-font-sizing` is true, vertical-rhythm font sizes are declared in relative units throughout the document, including `establish-baseline`. This ensures that user defaults set in the browser are respected.
0.12.2 (UNRELEASED)
------------------- -------------------
* Added `user-select` mixin to control the selection model and granularity of an element. It accepts one argument (`$select`) from the following options: `none` | `text` | `toggle` | `element` | `elements` | `all` | `inherit`. * [Vertical Rhythm Module] Removed the `$ie-font-ratio` constatnt in
favor of a more clear `$browser-default-font-size` constant.
* [Vertical Rhythm Module] The `establish-baseline` mixin now styles the
`<html>` element instead of the `<body>` element. This makes the
vertical rhythm module work better with `rem` based measurements.
* [CSS3] Added 3D transform support for Mozillia, IE, and Opera.
* [CSS3] Added `-ms` support for css3 columns. Add support for the columns shorthand property.
* [CSS3] Added `-ms` and `-webkit` support for CSS Regions. [Docs](/reference/compass/css3/regions/)
* [CLI] Added a `-I` option for adding sass import paths via the CLI during compilation and project set up.
* [Configuration] For better ruby and rails integration, the `add_import_path` command now accepts
[Sass::Importer](http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#custom_importers) objects
and [Ruby Pathname](http://www.ruby-doc.org/stdlib-1.9.3/libdoc/pathname/rdoc/Pathname.html) objects.
0.12.1 (03/14/2012)
-------------------
* Fixed a bug in font-files mime-type detection.
* Code cleanup and better documentation for the vertical-rhythm module.
* Add support for installing compass on Macs using a [one-click installer](https://github.com/chriseppstein/compass/downloads).
0.12.rc.2 (03/11/2012)
----------------------
### Stylesheet Changes
* Improved [hide-text mixin](/reference/compass/typography/text/replacement/#mixin-hide-text) for better performance and accessibility.
* Added [squish-text mixin](/reference/compass/typography/text/replacement/#mixin-squish-text) to hide text on inline elements.
* Compass css3 transitions module now correctly handled transitioning of
prefixed properties.
### Misc Changes
* Fix the mime-type of embedded `woff` font files. Add support for Embedded OpenType fonts.
* New math functions are now available: `e()`, `logarithm($number[, $base = e()])`, `square-root($number)`
and `pow($number, $exponent)`
0.12.rc.1 (02/02/2012)
----------------------
Give warnings for users who upgrade without knowing about the compass-rails gem.
0.12.rc.0 (01/31/2012)
----------------------
### Stylesheet Changes
* Removed -ms prefix from box-sizing
* Added sprite_names sass function
* Added -ms prefix to transitions
### Command Line
* Added support for `--debug-info` and `--no-debug-info` to the compass compile command
### Rails Integration
Rails projects must now use the [`compass-rails`](https://github.com/compass/compass-rails)
gem to integrate with compass. Please read the [README](https://github.com/Compass/compass-rails/blob/master/README.md) for upgrade instructions. More information in this [blog post](/blog/2012/01/29/compass-and-rails-integration/).
0.12.alpha.3 (12/23/2011)
-------------------------
* The `$round-to-nearest-half-line` config variable was added. When
true, the vertical rhythm module will round line heights to the
nearest half-line to avoid awkwardly large gaps between lines of text.
Defaults to false.
* Added `reset-baseline` to the vertical rhythm module so you can force the baseline to reset.
* Merges in the stable changes between 0.11.5 and 0.11.6.
0.12.alpha.2 (11/28/2011)
-------------------------
* Bug fixes for Rails 2.x applications.
0.12.alpha.1 (11/14/2011)
-------------------------
* font-files helper: Stop requiring font type when the type can be guessed from URL
* inline-font-files: actually works now
* Upgrade CSS3 Pie to 1.0beta5
* log sprite generation and removal to the console
* Added a new helper function `compass-env()` that returns the current compass environment (development, production)
* Added the ability to inline a sprite image by setting `$<map>-inline:true` before you call `@import`
* Removed `-khtml` prefixes by default you can still enable them by setting `$experimental-support-for-khtml:true;`
* Improved rails 3.1 integration
* `true` and `false` are now valid sprite names
* Removed deprecated forms of the box-shadow, text-shadow, and transform
mixins.
0.12.alpha.0 (8/30/2011)
------------------------
* Support for the rails 3.1 asset pipeline
* Added support for diagonal, horizontal, and smart sprite layout
* Fixed a bug with spacing in horizontal layout
* Changed the descriptions of the sin, cos, and tan to be more descriptive
* Fixed trig functions via issue #498
* Fixed the default `http_path` in rails
* Sprites can now have a `sprite_load_path` that is an array of directories that
contain source images for sprites handy for using sprites in extensions or gems
* Added a new set of configuration properties for generated images.
`generated_images_dir`, `generated_images_path`, `http_generated_images_dir`,
and `http_generated_images_path` can now be set to control where generated
images are written and how they are served. Added a corresponding
`generated-image-url()` helper function. These should rarely be needed and
will default to your corresponding image directories and paths.
0.11.8 (02/26/2012)
-------------------
* Fix a bug in gradients that used the transparent keyword
* Add filesize to the `compass stats` output.
0.11.7 (01/05/2012)
-------------------
* Update to font-face mixin to make it work on IE8.
0.11.6 (12/23/2011)
-------------------
* Added `user-select` mixin to control the selection model and granularity of an element.
It accepts one argument (`$select`) from the following options:
`none` | `text` | `toggle` | `element` | `elements` | `all` | `inherit`.
* The border-image property now takes a keyword called `fill` to
indicate that the image should also fill the element. If you pass the
`fill` keyword to the `border-image` mixin it will only be output in the
standard (non-prefixed) versions of the property.
* Don't use the deprecated callback method `on_updating_stylesheet` in Sass if
the new version is available.
0.11.5 (07/10/2011) 0.11.5 (07/10/2011)
------------------- -------------------

View File

@ -1,6 +1,6 @@
@import compass/css3 @import compass/css3
+font-face("Blooming Grove", font-files("examples/bgrove.ttf", truetype, "examples/bgrove.otf", opentype)) +font-face("Blooming Grove", font-files("examples/bgrove.ttf", "examples/bgrove.otf"))
.example .example
font-family: "Blooming Grove" font-family: "Blooming Grove"

View File

@ -0,0 +1,8 @@
---
title: Input Placeholder
description: css3 mixin to style input placeholders
framework: compass
stylesheet: compass/css3/_user-interface.scss
example: true
---
= render "partials/example"

View File

@ -0,0 +1,3 @@
%form{:action => "", :method => "get"}
%label{:for => "input"} Input
%input{:type => "text", :name => "input", :placeholder => "Type something…"}

View File

@ -0,0 +1,6 @@
@import compass/css3/user-interface
input[type="text"]
+input-placeholder
color: #bfbfbf
font-style: italic

View File

@ -0,0 +1,8 @@
---
title: CSS Regions
description: css3 mixin for css regions
framework: compass
stylesheet: compass/css3/_regions.scss
example: true
---
= render "partials/example"

View File

@ -0,0 +1,7 @@
.source
%p
This is the source material
.new-container
%p
This is the target location

View File

@ -0,0 +1,13 @@
@import compass/css3
.source
+flow-into(target)
border: 10px solid green
margin: 20px
width: 200px
.new-container
+flow-from(target)
border: 10px solid red
margin: 20px
width: 200px

View File

@ -39,7 +39,7 @@ crumb: Plugins and frameworks
%a %a
http://compass-style.org http://compass-style.org
%td %td
You are currently vising the Compass docs. You are currently viewing the Compass docs.
%tr %tr
%td Blueprint %td Blueprint
%td 0.8.0 %td 0.8.0

View File

@ -19,7 +19,7 @@ layout: default
1. [**Contribute to Compass**](/help/tutorials/contributing). 1. [**Contribute to Compass**](/help/tutorials/contributing).
2. [**Develop a Compass Extension**](/help/tutorials/extensions). 2. [**Develop a Compass Extension**](/help/tutorials/extensions).
3. [**Contribute to Sass Recipies**](http://chriseppstein.github.com/sass-recipes/). 3. [**Contribute to Sass Recipes**](http://chriseppstein.github.com/sass-recipes/).
4. Publish your code somewhere and email a link to the [mailing list](http://groups.google.com/group/compass-users). 4. Publish your code somewhere and email a link to the [mailing list](http://groups.google.com/group/compass-users).
## Help Others ## Help Others

View File

@ -45,9 +45,8 @@ Then you can include this file in all other stylesheets:
// etc. // etc.
It is important to define any compass/framework constants that you want to override It is important to define any compass/framework constants that you want to override
in base.scss first, before @import-ing the framework files. See [Overriding in base.scss first, before @import-ing the framework files. See [Working with
Constants][3] , for an example of where the number of grid columns for blueprint Configurable Variables][3], for a specific example. Note that you can refer to `_base.scss` without the
is overridden/set to 32. Note that you can refer to `_base.scss` without the
leading underscore and without the extension, since it is a [partial][1]. leading underscore and without the extension, since it is a [partial][1].
## Write your own Custom Mixins ## Write your own Custom Mixins
@ -108,8 +107,8 @@ For instance, don't use `table thead tr th` when a simple `th` selector will
suffice. This might mean that you have to separate your styles into several suffice. This might mean that you have to separate your styles into several
selectors and let the document cascade work to your advantage. selectors and let the document cascade work to your advantage.
[1]: http://sass-lang.com/yardoc/file.SASS_REFERENCE.html#partials [1]: http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#partials
[2]: http://groups.google.com/group/compass-users/browse_frm/thread/0ed216d409476f88 [2]: http://groups.google.com/group/compass-users/browse_frm/thread/0ed216d409476f88
[3]: http://wiki.github.com/chriseppstein/compass/overriding-constants [3]: http://compass-style.org/help/tutorials/configurable-variables/
[4]: http://c2.com/cgi/wiki?DontRepeatYourself [4]: http://c2.com/cgi/wiki?DontRepeatYourself
[5]: http://chriseppstein.github.com/blog/2009/09/20/why-stylesheet-abstraction-matters/ [5]: http://chriseppstein.github.com/blog/2009/09/20/why-stylesheet-abstraction-matters/

View File

@ -143,7 +143,7 @@ later on.
<td style="vertical-align:top;"><code>sass_dir</code> </td> <td style="vertical-align:top;"><code>sass_dir</code> </td>
<td style="vertical-align:top;">String </td> <td style="vertical-align:top;">String </td>
<td style="vertical-align:top;">The directory where the sass stylesheets are kept. <td style="vertical-align:top;">The directory where the sass stylesheets are kept.
It is relative to the <code>project_path</code>. Defaults to <code>"src"</code>. It is relative to the <code>project_path</code>. Defaults to <code>"sass"</code>.
</td> </td>
</tr> </tr>
<tr> <tr>
@ -170,11 +170,33 @@ later on.
</tr> </tr>
<tr> <tr>
<td style="vertical-align:top;"><code>http_images_path</code> </td> <td style="vertical-align:top;"><code>http_images_path</code> </td>
<td style="vertical-align:top;">String </td> <td style="vertical-align:top;">String</td>
<td style="vertical-align:top;">The full http path to images on the web server. <td style="vertical-align:top;">The full http path to images on the web server.
Defaults to <code>http_path + "/" + images_dir</code>. Defaults to <code>http_path + "/" + images_dir</code>.
</td> </td>
</tr> </tr>
<tr>
<td style="vertical-align:top;"><code>generated_images_dir</code> </td>
<td style="vertical-align:top;">String</td>
<td style="vertical-align:top;">The directory where generated images are kept.
It is relative to the <code>project_path</code>.
Defaults to the value of <code>images_dir</code>.
</td>
</tr>
<tr>
<td style="vertical-align:top;"><code>generated_images_path</code> </td>
<td style="vertical-align:top;">String</td>
<td style="vertical-align:top;">The full path to where generated images are kept.
Defaults to the value of <code>&lt;project_path&gt;/&lt;generated_images_dir&gt;</code>.
</td>
</tr>
<tr>
<td style="vertical-align:top;"><code>http_generated_images_path</code> </td>
<td style="vertical-align:top;">String</td>
<td style="vertical-align:top;">The full http path to generated images on
the web server. Defaults to <code>http_path + "/" + generated_images_dir</code>.
</td>
</tr>
<tr> <tr>
<td style="vertical-align:top;"><code>javascripts_dir</code> </td> <td style="vertical-align:top;"><code>javascripts_dir</code> </td>
<td style="vertical-align:top;">String </td> <td style="vertical-align:top;">String </td>
@ -233,7 +255,7 @@ later on.
<td style="vertical-align:top;">Hash </td> <td style="vertical-align:top;">Hash </td>
<td style="vertical-align:top;">These options are passed directly to the <td style="vertical-align:top;">These options are passed directly to the
Sass compiler. For more details on the format of sass options, please read the Sass compiler. For more details on the format of sass options, please read the
<a href="http://sass-lang.com/yardoc/SASS_REFERENCE.md.html#options">sass options documentation</a>. <a href="http://sass-lang.com/docs/yardoc/SASS_REFERENCE.md.html#options">sass options documentation</a>.
</td> </td>
</tr> </tr>
<tr> <tr>
@ -287,6 +309,13 @@ later on.
Defaults to <code>{:compression => Zlib::BEST_COMPRESSION}</code>. See the chunky_png <a href='https://github.com/wvanbergen/chunky_png/wiki/Constraints' _target='blank'>wiki</a> for more information Defaults to <code>{:compression => Zlib::BEST_COMPRESSION}</code>. See the chunky_png <a href='https://github.com/wvanbergen/chunky_png/wiki/Constraints' _target='blank'>wiki</a> for more information
</td> </td>
</tr> </tr>
<tr>
<td style="vertical-align:top;"><code>sprite_load_path</code></td>
<td style="vertical-align:top;">Array </td>
<td style="vertical-align:top;">
Defaults to <code> [images_path] </code>
</td>
</tr>
</table> </table>
<a name="configuration-functions"></a> <a name="configuration-functions"></a>
@ -383,7 +412,7 @@ to avoid crashing the watcher in the case where the file has been removed.
on_stylesheet_saved do |filename| on_stylesheet_saved do |filename|
Growl.notify { Growl.notify {
self.message "#{File.basename(filename)} updated!" self.message = "#{File.basename(filename)} updated!"
self.icon = '/path/to/success.jpg' self.icon = '/path/to/success.jpg'
} }
end end

View File

@ -10,10 +10,10 @@ Contributing Stylesheets to Compass
Thank you for your interest in contributing to Compass. Our goal is to make it as easy Thank you for your interest in contributing to Compass. Our goal is to make it as easy
as we can for you to contribute changes to compass -- So if there's something here that as we can for you to contribute changes to compass -- So if there's something here that
seems harder than it aught to be, please let us know. seems harder than it ought to be, please let us know.
If you find a bug **in this document**, you are bound to contribute a fix. Stop reading now If you find a bug **in this document**, you are bound to contribute a fix. Stop reading now
if you do not wish to abide by this rool. if you do not wish to abide by this rule.
**Step 1**: If you do not have a github account, create one. **Step 1**: If you do not have a github account, create one.
@ -89,12 +89,12 @@ If the tests fail, fix the tests or the stylesheets accordingly. If the tests, d
fail, that means this aspect was not well enough tested. Please [add or augment fail, that means this aspect was not well enough tested. Please [add or augment
a test](#writing-tests). a test](#writing-tests).
You're done. Please [submit your changes](#patches) You're done. Please [submit your changes](#patches).
<h2 id="stylesheet-changes">Making Stylesheet Changes</h2> <h2 id="stylesheet-changes">Making Stylesheet Changes</h2>
It is a good idea to discuss new features ideas with the compass users and developers It is a good idea to discuss new features ideas with the compass users and developers
before building something. Please don't by shy; send an email to the [compass mailing before building something. Please don't be shy; send an email to the [compass mailing
list](http://groups.google.com/group/compass-users). list](http://groups.google.com/group/compass-users).
Many feature ideas are good but not obviously a good fit for the compass core library. Many feature ideas are good but not obviously a good fit for the compass core library.
@ -112,7 +112,7 @@ making extensions.][extensions]
**Step 6**: Documentation - Add or update the reference documentation. Add **Step 6**: Documentation - Add or update the reference documentation. Add
an example of using the feature. See the [doc readme for details][documentation]. an example of using the feature. See the [doc readme for details][documentation].
You're done. Please [submit your changes](#patches) You're done. Please [submit your changes](#patches).
<h2 id="ruby-changes">Making Ruby Changes</h2> <h2 id="ruby-changes">Making Ruby Changes</h2>
@ -202,7 +202,7 @@ will result:
4. Compass frameworks are not special. If compass can do it, so should an extension 4. Compass frameworks are not special. If compass can do it, so should an extension
be able. be able.
5. Sass is awesome -- Compass should make sass more accessible and 5. Sass is awesome -- Compass should make sass more accessible and
demonstrate how to use Sass to it's fullest potential. demonstrate how to use Sass to its fullest potential.
6. Developing across browsers is hard and will always be hard. It takes 6. Developing across browsers is hard and will always be hard. It takes
a community to get it right. a community to get it right.
7. By default, Compass supports as many browsers as it can. Where it can't 7. By default, Compass supports as many browsers as it can. Where it can't
@ -278,15 +278,28 @@ Getting recent changes from the main repo:
<h3 id="running-tests">Running Tests</h3> <h3 id="running-tests">Running Tests</h3>
1. Install development dependencies: 1. You must have Ruby installed on your system. After [setting up git](#setting-up-git),
change to the root directory of your git checkout of Compass.
cd compass
2. Install the bundler Ruby gem.
gem install bundler
If installing to your system gems, you'll probably need to add `sudo` to the
front of that command. If you don't know what that means, you probably need
to add `sudo` to the front.
3. Install development dependencies:
bundle install --binstubs devbin bundle install --binstubs devbin
2. Running core library and stylesheet tests: 4. Running core library and stylesheet tests:
rake run_tests bundle exec rake test features
3. Running behavior tests 5. Running behavior tests
./devbin/cucumber ./devbin/cucumber

View File

@ -0,0 +1,71 @@
---
title: Removing Vendor Prefixes from Compass Stylesheets
layout: tutorial
crumb: Removing Vendor Prefixes from Compass
classnames:
- tutorial
---
# Removing Vendor Prefixes from Compass Stylesheets
Compass makes it easy to code many of the CSS3 vendor prefixed properties, without having to type it all out by hand.
## Easy Vendor Prefixes
Let's say you wanted to add a border radius to an element like this:
.round {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
border-radius: 4px;
}
With Compass it's easier to use the `border-radius` mixin:
.round {
@include border-radius(4px);
}
That mixin will create all of the vendor prefixed CSS properties you need, with much less of a chance of a typo or inconsistent display. It will also take care of any browser specific implementations of the CSS property that don't match up to the W3C specification.
.round {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-o-border-radius: 4px;
-ms-border-radius: 4px;
-khtml-border-radius: 4px;
border-radius: 4px;
}
## Problem
The problem with that solution, as good as it is, is that all of those browser prefixes will cruft up your stylesheet quickly if you use a lot of them, and/or aren't using `@extend` to keep them to a minimum.
Of particular note are the generated Opera `(-o-border-radius)` and Konquerer `(-khtml-border-radius)` properties, which are added to create support for those browsers. As great as those browsers may be, they often account for a very small minority of a website's traffic, traffic that may not compensate for the full weight of their support when using experimental CSS3 properties.
## Solution
Thankfully, Compass includes a selection of default boolean variables that you can override, allowing you to globally turn off the support for the various vendor prefixes:
$experimental-support-for-mozilla : true !default;
$experimental-support-for-webkit : true !default;
$support-for-original-webkit-gradients : true !default;
$experimental-support-for-opera : true !default;
$experimental-support-for-microsoft : true !default;
$experimental-support-for-khtml : true !default;
If you set any of the above variables to `false`, Compass will skip those prefixes when it processes your stylesheet.
So to exclude Opera and Konquerer vendor prefixes from your CSS, add the following code just above your include of the CSS3 module in your base SCSS file:
$experimental-support-for-opera:false;
$experimental-support-for-khtml:false;
@import "compass/css3";
The resultant output will be as follow:
.round {
-moz-border-radius: 4px;
-webkit-border-radius: 4px;
-ms-border-radius: 4px;
border-radius: 4px;
}

View File

@ -125,7 +125,7 @@ should attempt to adhere to unless there's a good reason not to do so.
pieces for faster load times when they're not using everything. pieces for faster load times when they're not using everything.
3. Use partials (files starting with an underscore) for stylesheets that are meant 3. Use partials (files starting with an underscore) for stylesheets that are meant
to be imported. If you do not Sass will generate css to be imported. If you do not Sass will generate css
files for your libaries in some configurations. files for your libraries in some configurations.
4. Provide a project template. If you do not, your project should only be 4. Provide a project template. If you do not, your project should only be
providing widgets or page designs, etc. providing widgets or page designs, etc.
@ -174,10 +174,13 @@ You may also see some real manifest files here:
### Manifest Declarations ### Manifest Declarations
**Easy Mode:** If you just have some basic files and nothing fancy going on, simply place this line in your manifest: **Easy Mode:** If you just have some basic files and nothing fancy going on, simply place this line in your manifest:
discover :all discover :all
If the file is missing `discover :all` is the default
This will cause compass to find all the files in your template and use the files' extension to determine where they should go. Alternatively, you can request that compass only discover files of a certain type. For example, the following will only discover javascript and image assets, you could then declare other file types on your own. This will cause compass to find all the files in your template and use the files' extension to determine where they should go. Alternatively, you can request that compass only discover files of a certain type. For example, the following will only discover javascript and image assets, you could then declare other file types on your own.
discover :javascripts discover :javascripts

View File

@ -9,6 +9,13 @@ classnames:
## Ruby on Rails ## Ruby on Rails
### Rails 3.1
Just add compass to your Gemfile like so:
gem 'compass'
Also checkout this [gist](https://gist.github.com/1184843)
### Rails 3 ### Rails 3
compass init rails /path/to/myrailsproject compass init rails /path/to/myrailsproject
### Rails 2.3 ### Rails 2.3
@ -16,26 +23,26 @@ classnames:
## Sinatra ## Sinatra
require 'compass'
require 'sinatra' require 'sinatra'
require 'haml' require 'haml'
require 'sass'
require 'compass'
configure do configure do
Compass.configuration do |config| set :haml, {:format => :html5, :escape_html => true}
config.project_path = File.dirname(__FILE__) set :scss, {:style => :compact, :debug_info => false}
config.sass_dir = 'views' Compass.add_project_configuration(File.join(Sinatra::Application.root, 'config', 'compass.rb'))
end
set :haml, { :format => :html5 }
set :sass, Compass.sass_engine_options
end end
get '/screen.css' do get '/stylesheets/:name.css' do
content_type 'text/css', :charset => 'utf-8' content_type 'text/css', :charset => 'utf-8'
sass :screen scss(:"stylesheets/#{params[:name]}" )
end end
get '/' do
haml :index
end
If you keep your stylesheets in “views/stylesheets/” directory instead of just “views/”, remember to update sass_dir configuration accordingly. If you keep your stylesheets in “views/stylesheets/” directory instead of just “views/”, remember to update sass_dir configuration accordingly.
Check out this [sample compass-sinatra project](http://github.com/chriseppstein/compass-sinatra) to get up and running in no time! Check out this [sample compass-sinatra project](http://github.com/chriseppstein/compass-sinatra) to get up and running in no time!
@ -55,29 +62,31 @@ At the top of the Nanoc Rules file, load the Compass configuration, like this:
require 'compass' require 'compass'
Compass.add_project_configuration 'compass/config.rb' # when using Compass 0.10 Compass.add_project_configuration 'compass.rb' # when using Compass > 0.10
Compass.configuration.parse 'compass/config.rb' # when using Compass < 0.10 Compass.configuration.parse 'compass.rb' # when using Compass < 0.10
Your Compass configuration file (in compass/config.rb) could look like this (you may need to change the path to some directories depending on your directory structure): Your Compass configuration file (in compass/config.rb) could look like this (you may need to change the path to some directories depending on your directory structure):
http_path = "/" http_path = "/"
project_path = "." project_path = File.expand_path(File.join(File.dirname(__FILE__), '..'))
css_dir = "output/assets/style" css_dir = "output/stylesheets"
sass_dir = "content/assets/style" sass_dir = "content/stylesheets"
images_dir = "output/assets/images" images_dir = "assets/images"
javascripts_dir = "assets/javascripts"
# when using SCSS: fonts_dir = "assets/fonts"
sass_options = { http_javascripts_dir = "javascripts"
:syntax => :scss http_stylesheets_dir = "stylesheets"
} http_images_dir = "images"
http_fonts_dir = "fonts"
To filter the stylesheets using Sass and Compass, call the sass filter with Sass engine options taken from Compass, like this: To filter the stylesheets using Sass and Compass, call the sass filter with Sass engine options taken from Compass, like this:
filter :sass, Compass.sass_engine_options compile '/stylesheets/*' do
filter :sass, sass_options.merge(:syntax => item[:extension].to_sym)
end
### Nanoc Projects using the formal approach ### Nanoc Projects using the formal approach
* [nanoc Bootstrap](http://github.com/adamstac/nanoc-bootstrap) - a base nanoc project with support for Haml, Sass, Compass, jQuery and more. * [This Site](https://github.com/chriseppstein/compass/tree/master/doc-src)
* [nanoc & Compass Example Project](http://github.com/ddfreyne/nanoc-bootstrap-compass)

View File

@ -5,91 +5,138 @@ crumb: Spriting
classnames: classnames:
- tutorial - tutorial
--- ---
# Spriting with Compass # Spriting with Compass
Spriting has never been easier with Compass. You place the sprite images in a folder, Spriting has never been easier with Compass. You place the sprite images in a folder,
import them into your stylesheet, and then you can use the sprite in your selectors in one import them into your stylesheet, and then you can use the sprite in your selectors in one
of several convenient ways. of several convenient ways.
## Sprite Tutorial Contents
<%= sprite_tutorial_links(true) %>
## Setup ## Setup
For this tutorial, let's imagine that in your project's image folder there are four icons: For this tutorial, let's imagine that in your project's image folder there are four icons:
* `images/icon/new.png` * `images/my-icons/new.png`
* `images/icon/edit.png` * `images/my-icons/edit.png`
* `images/icon/save.png` * `images/my-icons/save.png`
* `images/icon/delete.png` * `images/my-icons/delete.png`
Each is an icon that is 32px square. Each is an icon that is 32px square.
<a name="basic-usage"></a>
## Basic Usage ## Basic Usage
****Note**: The use of `icon` is only for this example, "icon" represents the folder name that contains your sprites.
The simplest way to use these icon sprites is to let compass give you a class for each sprite: The simplest way to use these icon sprites is to let compass give you a class for each sprite:
@import "icon/*.png"; @import "my-icons/*.png";
@include all-icon-sprites; @include all-my-icons-sprites;
And you'll get the following CSS output: And you'll get the following CSS output:
.icon-sprite, .my-icons-sprite,
.icon-delete, .my-icons-delete,
.icon-edit, .my-icons-edit,
.icon-new, .my-icons-new,
.icon-save { background: url('/images/icon-s34fe0604ab.png') no-repeat; } .my-icons-save { background: url('/images/my-icons-s34fe0604ab.png') no-repeat; }
.icon-delete { background-position: 0 0; } .my-icons-delete { background-position: 0 0; }
.icon-edit { background-position: 0 -32px; } .my-icons-edit { background-position: 0 -32px; }
.icon-new { background-position: 0 -64px; } .my-icons-new { background-position: 0 -64px; }
.icon-save { background-position: 0 -96px; } .my-icons-save { background-position: 0 -96px; }
You can now apply the `icon-XXX` classes to your markup as needed. You can now apply the `my-icons-XXX` classes to your markup as needed.
Let's go over what happened there. The import statement told compass to [generate a Let's go over what happened there. The import statement told compass to [generate a
stylesheet that is customized for your sprites](https://gist.github.com/729507). This stylesheet that is customized for your sprites](https://gist.github.com/729507). This
stylesheet is [magic](#magic-imports), it is not written to disk, and it can be customized stylesheet is [magic](#magic-imports), it is not written to disk, and it can be customized
by setting configuration variables before you import it. See the section below on by setting configuration variables before you import it. See the section below on
[Customization Options](#customization-options). The goal of this stylesheet is to provide a [Customization Options](customization-options). The goal of this stylesheet is to provide a
simple naming convention for your sprites so that you they are easy to remember and use. You simple naming convention for your sprites so that you they are easy to remember and use. You
should never have to care what the is name of the generated sprite map, nor where a sprite should never have to care what the is name of the generated sprite map, nor where a sprite
is located within it. is located within it.
<a name="selector-control"></a> <a name='nested-folders' id='nested-folders'></a>
## Nested Folders
****Note**: The use of `orange` is only for this example, "icon" represents the folder name that contains your sprites.
Sprites stored in a nested folder will use the last folder name in the path as the sprite name.
Example:
@import "themes/orange/*.png";
@include all-orange-sprite;
<a name="selector-control" id="selector-control"></a>
## Selector Control ## Selector Control
****Note**: The use of `icon` is only for this example, "icon" represents the folder name that contains your sprites.
If you want control over what selectors are generated, it is easy to do. In this example, If you want control over what selectors are generated, it is easy to do. In this example,
this is done by using the magic `icon-sprite` mixin. Note that the mixin's name is dependent this is done by using the magic `my-icons-sprite` mixin. Note that the mixin's name is dependent
on the name of the folder in which you've placed your icons. on the name of the folder in which you've placed your icons.
@import "icon/*.png"; @import "my-icons/*.png";
.actions { .actions {
.new { @include icon-sprite(new); } .new { @include my-icons-sprite(new); }
.edit { @include icon-sprite(edit); } .edit { @include my-icons-sprite(edit); }
.save { @include icon-sprite(save); } .save { @include my-icons-sprite(save); }
.delete { @include icon-sprite(delete); } .delete { @include my-icons-sprite(delete); }
} }
And your stylesheet will compile to: And your stylesheet will compile to:
.icon-sprite, .my-icons-sprite,
.actions .new, .actions .new,
.actions .edit, .actions .edit,
.actions .save, .actions .save,
.actions .delete { background: url('/images/icon-s34fe0604ab.png') no-repeat; } .actions .delete { background: url('/images/my-icons-s34fe0604ab.png') no-repeat; }
.actions .new { background-position: 0 -64px; } .actions .new { background-position: 0 -64px; }
.actions .edit { background-position: 0 -32px; } .actions .edit { background-position: 0 -32px; }
.actions .save { background-position: 0 -96px; } .actions .save { background-position: 0 -96px; }
.actions .delete { background-position: 0 0; } .actions .delete { background-position: 0 0; }
<a name="magic-imports"></a> <a name="sass_functions" id="sass_functions"></a>
## Sass Functions
****Note**: The use of `icon` is only for this example, "icon" represents the folder name that contains your sprites.
Getting the image dimensions of a sprite
You can get a unit value by using the magical dimension functions `<map>-sprite-height` and `<map>-sprite-width`
If you are looking to just return the dimensions see the [docs](/reference/compass/utilities/sprites/base/#mixin-sprite-dimensions)
Example:
@import "icon/*.png";
$box-padding: 5px;
$height: icon-sprite-height(some_icon);
$width: icon-sprite-width(some_icon);
.somediv {
height:$height + $box-padding;
width:$width + $box-padding;
}
<a name="magic-imports" id="magic-imports"></a>
## Magic Imports ## Magic Imports
****Note**: The use of `icon` is only for this example, "icon" represents the folder name that contains your sprites.
As noted above, compass will magically create sprite stylesheets for you. Some people like As noted above, compass will magically create sprite stylesheets for you. Some people like
magic, some people are scared by it, and others are curious about how the magic works. If magic, some people are scared by it, and others are curious about how the magic works. If
you would like to avoid the magic, you can use compass to generate an import for you. On the you would like to avoid the magic, you can use compass to generate an import for you. On the
command line: command line:
compass sprite "images/icon/*.png" compass sprite "images/my-icons/*.png"
This will create file using your project's preferred syntax, or you can specify the This will create file using your project's preferred syntax, or you can specify the
output filename using the `-f` option and the syntax will be inferred from the extension. output filename using the `-f` option and the syntax will be inferred from the extension.
@ -101,103 +148,7 @@ might want to avoid it. For instance, if your sprite map has more than about 20
sprites, you may find that hand crafting the import will speed up compilation times. See sprites, you may find that hand crafting the import will speed up compilation times. See
the section on [performance considerations](#performance) for more details. the section on [performance considerations](#performance) for more details.
<a name="magic-selectors"></a> <a name="performance" id="performance"></a>
## Magic Selectors
If you want to add selectors for your sprites, it's easy todo by adding `_active` `_target` or `_hover` to the file name, In the example below we have a sprite directory that looks like:
* `selectors/ten-by-ten.png`
* `selectors/ten-by-ten_hover.png`
* `selectors/ten-by-ten_active.png`
* `selectors/ten-by-ten_target.png`
Now in our sass file we add:
@import "selectors/*.png";
a {
@include selectors-sprite(ten-by-ten)
}
And your stylesheet will compile to:
.selectors-sprite, a {
background: url('/selectors-sedfef809e2.png') no-repeat;
}
a {
background-position: 0 0;
}
a:hover, a.ten-by-ten_hover, a.ten-by-ten-hover {
background-position: 0 -20px;
}
a:target, a.ten-by-ten_target, a.ten-by-ten-target {
background-position: 0 -30px;
}
a:active, a.ten-by-ten_active, a.ten-by-ten-active {
background-position: 0 -10px;
}
Alternatively you can use the `@include all-selectors-sprites;` after the import and get the following output:
.selectors-sprite, .selectors-ten-by-ten {
background: url('/selectors-sedfef809e2.png') no-repeat;
}
.selectors-ten-by-ten {
background-position: 0 0;
}
.selectors-ten-by-ten:hover, .selectors-ten-by-ten.ten-by-ten_hover, .selectors-ten-by-ten.ten-by-ten-hover {
background-position: 0 -20px;
}
.selectors-ten-by-ten:target, .selectors-ten-by-ten.ten-by-ten_target, .selectors-ten-by-ten.ten-by-ten-target {
background-position: 0 -30px;
}
.selectors-ten-by-ten:active, .selectors-ten-by-ten.ten-by-ten_active, .selectors-ten-by-ten.ten-by-ten-active {
background-position: 0 -10px;
}
<a name="customization-options"></a>
## Customization Options
### Options per Sprite Map
When constructing the sprite map, the entire sprite map and it's associated stylesheet
can be configured in the following ways. Each option is specified by setting a [configuration
variable](/help/tutorials/configurable-variables/) before importing the sprite. The variables
are named according to the name of the folder containing the sprites. In the examples below
the sprites were contained within a folder called `icon`.
* `$<map>-spacing` -- The amount of transparent space, in pixels, around each sprite.
Defaults to `0px`. E.g. `$icon-spacing: 20px`.
* `$<map>-repeat` -- Wether or not each sprite should repeat along the x axis. Defaults
to `no-repeat`. E.g. `$icon-repeat: repeat-x`.
* `$<map>-position` -- The position of the sprite in the sprite map along the x-axis. Can
be specified in pixels or percentage of the sprite map's width. `100%` would cause the
sprite to be on the right-hand side of the sprite map. Defaults to `0px`.
E.g. `$icon-position: 100%`.
* `$<map>-sprite-dimensions` -- Whether or not the dimensions of the sprite should be
included in each sprite's CSS output. Can be `true` or `false`. Defaults to `false`.
* `$<map>-sprite-base-class` -- The base class for these sprites. Defaults to `.<map>-sprite`.
E.g. `$icon-sprite-base-class: ".action-icon"`
* `$<map>-clean-up` -- Whether or not to removed the old sprite file when a new one is created. Defaults to true
### Options per Sprite
When constructing the sprite map, each sprite can be configured in the following ways:
* `$<map>-<sprite>-spacing` -- The amount of transparent space, in pixels, around the sprite. Defaults
to the sprite map's spacing which defaults to `0px`. E.g. `$icon-new-spacing: 20px`.
* `$<map>-<sprite>-repeat` -- Wether or not the sprite should repeat along the x axis. Defaults
to the sprite map's repeat which defaults to `no-repeat`. E.g. `$icon-new-repeat: repeat-x`.
* `$<map>-<sprite>-position` -- The position of the sprite in the sprite map along the x-axis. Can
be specified in pixels or percentage of the sprite map's width. `100%` would cause the
sprite to be on the right-hand side of the sprite map. Defaults to the sprite map's
position value which defaults to `0px`. E.g. `$icon-new-position: 100%`.
<a name="performance"></a>
## Performance Considerations ## Performance Considerations
Reading PNG files and assembling new images and saving them to disk might have a non-trivial Reading PNG files and assembling new images and saving them to disk might have a non-trivial

View File

@ -0,0 +1,45 @@
---
title: Sprite Customization
layout: tutorial
crumb: Customization
classnames:
- tutorial
---
#Sprite Tutorial
<%= sprite_tutorial_links %>
## Customization Options
### Options per Sprite Map
When constructing the sprite map, the entire sprite map and it's associated stylesheet
can be configured in the following ways. Each option is specified by setting a [configuration
variable](/help/tutorials/configurable-variables/) before importing the sprite. The variables
are named according to the name of the folder containing the sprites. In the examples below
the sprites were contained within a folder called `icon`.
* `$<map>-spacing` -- The amount of transparent space, in pixels, around each sprite.
Defaults to `0px`. E.g. `$icon-spacing: 20px`.
* `$<map>-repeat` -- Wether or not each sprite should repeat along the x axis. Defaults
to `no-repeat`. E.g. `$icon-repeat: repeat-x`.
* `$<map>-position` -- The position of the sprite in the sprite map along the x-axis. Can
be specified in pixels or percentage of the sprite map's width. `100%` would cause the
sprite to be on the right-hand side of the sprite map. Defaults to `0px`.
E.g. `$icon-position: 100%`.
* `$<map>-sprite-dimensions` -- Whether or not the dimensions of the sprite should be
included in each sprite's CSS output. Can be `true` or `false`. Defaults to `false`.
* `$<map>-sprite-base-class` -- The base class for these sprites. Defaults to `.<map>-sprite`.
E.g. `$icon-sprite-base-class: ".action-icon"`
* `$<map>-clean-up` -- Whether or not to removed the old sprite file when a new one is created. Defaults to true
### Options per Sprite
When constructing the sprite map, each sprite can be configured in the following ways:
* `$<map>-<sprite>-spacing` -- The amount of transparent space, in pixels, around the sprite. Defaults
to the sprite map's spacing which defaults to `0px`. E.g. `$icon-new-spacing: 20px`.
* `$<map>-<sprite>-repeat` -- Wether or not the sprite should repeat along the x axis. Defaults
to the sprite map's repeat which defaults to `no-repeat`. E.g. `$icon-new-repeat: repeat-x`.
* `$<map>-<sprite>-position` -- The position of the sprite in the sprite map along the x-axis. Can
be specified in pixels or percentage of the sprite map's width. `100%` would cause the
sprite to be on the right-hand side of the sprite map. Defaults to the sprite map's
position value which defaults to `0px`. E.g. `$icon-new-position: 100%`.

View File

@ -0,0 +1,73 @@
---
title: Sprite Magic Selectors
layout: tutorial
crumb: Magic Selectors
classnames:
- tutorial
---
# Sprite Tutorial
<%= sprite_tutorial_links %>
## Magic Selectors
If you want to add selectors for your sprites, it's easy todo by adding `_active` `_target` or `_hover` to the file name, In the example below we have a sprite directory that looks like:
* `my-buttons/glossy.png`
* `my-buttons/glossy_hover.png`
* `my-buttons/glossy_active.png`
* `my-buttons/glossy_target.png`
Now in our sass file we add:
@import "my-buttons/*.png";
a {
@include my-buttons-sprite(glossy)
}
And your stylesheet will compile to:
.my-buttons-sprite, a {
background: url('/my-buttons-sedfef809e2.png') no-repeat;
}
a {
background-position: 0 0;
}
a:hover, a.glossy_hover, a.glossy-hover {
background-position: 0 -40px;
}
a:target, a.glossy_target, a.glossy-target {
background-position: 0 -60px;
}
a:active, a.glossy_active, a.glossy-active {
background-position: 0 -20;
}
Alternatively you can use the `@include all-my-buttons-sprites;` after the import and get the following output:
.my-buttons-sprite, .my-buttons-glossy {
background: url('/my-buttons-sedfef809e2.png') no-repeat;
}
.my-buttons-glossy {
background-position: 0 0;
}
.my-buttons-glossy:hover, .my-buttons-glossy.glossy_hover, .my-buttons-glossy.glossy-hover {
background-position: 0 -40px;
}
.my-buttons-glossy:target, .my-buttons-glossy.glossy_target, .my-buttons-glossy.glossy-target {
background-position: 0 -60px;
}
.my-buttons-glossy:active, .my-buttons-glossy.glossy_active, .my-buttons-glossy.glossy-active {
background-position: 0 -20px;
}
## Disabling
To disable this feature set `$disable-magic-sprite-selectors` to true before calling the sprite mixin
a {
$disable-magic-sprite-selectors:true;
@include my-buttons-sprite(glossy)
}

View File

@ -0,0 +1,69 @@
---
title: Sprite layouts
layout: tutorial
crumb: Sprite layouts
classnames:
- tutorial
---
# Sprite Tutorial
<%= sprite_tutorial_links %>
## Sprite Layouts
Example:
$icon-layout:horizontal;
@import "icon/*.png";
$dropcap-layout:diagonal
@import "dropcap/*.png";
## Vertical
@import "mysprite/*.png";
Example Output:
![Vertical Example](/images/tutorials/sprites/layout/vert.png)
## Horizontal
$mysprite-layout:horizontal;
@import "mysprite/*.png";
Example Output:
![Horizontal Example](/images/tutorials/sprites/layout/horizontal.png)
Notes:
* Responds to the same configuration options that vertical has.
## Diagonal
$mysprite-layout:diagonal;
@import "mysprite/*.png";
Example Output:
![Diagonal Example](/images/tutorials/sprites/layout/diagonal.png)
Notes:
* Configuration options do not effect the layout
* This is incredibly resource intensive on the browser
## Smart
$mysprite-layout:smart;
@import "mysprite/*.png";
Example Output:
![Smart Example](/images/tutorials/sprites/layout/smart.png)
Notes:
* Configuration options do not effect the layout
* Most efficient use of browser memory
Example icons from [Open Icon Library](http://openiconlibrary.sourceforge.net/) and are released under public domain

View File

@ -0,0 +1,24 @@
---
title: Testing Your Stylesheets
layout: tutorial
crumb: Testing
classnames:
- tutorial
---
# Test Unit
require 'compass/test_case'
class StylesheetsTest < Compass::TestCase
def test_stylesheets
my_sass_files.each do |sass_file|
assert_compiles(sass_file) do |result|
assert_not_blank result
end
end
end
protected
def my_sass_files
Dir.glob(File.expand_path(File.join(File.dirname(__FILE__), "../..", "app/stylesheets/**/[^_]*.sass")))
end
end

View File

@ -7,21 +7,23 @@ layout: homepage
%h1#logo Compass %h1#logo Compass
%h2 <strong>Compass</strong> is an open-source <em>CSS Authoring Framework</em>. %h2 <strong>Compass</strong> is an open-source <em>CSS Authoring Framework</em>.
.overview .overview
.compass .info-box.compass
%h4 Why designers love Compass. %h4 Why designers love Compass.
%ol %ol
%li Experience cleaner markup without presentational classes. %li Experience cleaner markup without presentational classes.
%li Its chock full of the webs best reusable patterns. %li Its chock full of the webs best <a href="/reference/compass/">reusable patterns</a>.
%li Developing a personal framework is simple. %li It makes creating <a href="/help/tutorials/spriting/">sprites</a> a breeze.
%li Compass mixins make CSS3 easy. %li Compass mixins make <a href="/reference/compass/css3/">CSS3</a> easy.
%li Create beautiful <a href="/reference/compass/typography/vertical_rhythm/">typographic rhythms</a>.
%li Download and create extensions with ease. %li Download and create extensions with ease.
.sass .info-box.sass
%h4 Compass uses Sass. %h4 Compass uses Sass.
%p %p
<a href="http://sass-lang.com/">Sass</a> is an extension of CSS3 which <a href="http://sass-lang.com/">Sass</a> is an extension of CSS3 which
adds nested rules, variables, mixins, selector inheritance, and more. adds nested rules, variables, mixins, selector inheritance, and more.
Sass generates well formatted CSS and makes your stylesheets Sass generates well formatted CSS and makes your stylesheets
easier to organize and maintain. easier to organize and maintain.
= render 'partials/ad'
%h3 Brilliant people use Compass, including these <em>wildly talented</em> folks: %h3 Brilliant people use Compass, including these <em>wildly talented</em> folks:
%ul#featured_sites %ul#featured_sites
%li %li
@ -89,7 +91,7 @@ layout: homepage
%img(src="/images/compass.app.png") %img(src="/images/compass.app.png")
%p %p
Buy <a href="http://compass.handlino.com/">Compass.app</a> Buy <a href="http://compass.handlino.com/">Compass.app</a>
for Windows and Mac for just $7. for Windows and Mac for just $10.
%p.note %p.note
Note: Compass.app is a product of Handlino, Inc but Note: Compass.app is a product of Handlino, Inc but
30% of all proceeds go to Compass's charity of choice: <a href="http://umdf.org/compass">UMDF.org</a>. 30% of all proceeds go to Compass's charity of choice: <a href="http://umdf.org/compass">UMDF.org</a>.

View File

@ -13,12 +13,22 @@ body_id: home
%li %li
%a{:href=>"#{i.path}#function-#{f.name}"}= f.sass_signature(:html) %a{:href=>"#{i.path}#function-#{f.name}"}= f.sass_signature(:html)
- sass_function_list = []
%h1#logo All Ruby Based Functions %h1#logo All Ruby Based Functions
%h3 Compass Functions
%ul %ul
- Sass::Script::Functions.public_instance_methods.sort_by{|m| m.to_s}.each do |m| - Sass::Script::Functions.public_instance_methods.sort_by{|m| m.to_s}.each do |m|
%li - name = m.to_s.gsub("_","-")
- name = m.to_s.gsub("_","-") - unless name =~ /^\-compass/ # Private Fuctions!
- if i = item_for_function_name(name) - if i = item_for_function_name(name)
%a{:href=>"#{i.path}##{name}"}= name %li
%a{:href=>"#{i.path}##{name}"}= name
- elsif sass_functions().include? m
- sass_function_list << '<a href="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html#%s-instance_method">%s</a>' % [m.to_s, name]
- else - else
= name %li
= name
%h3 Sass Functions
%ul
- sass_function_list.each do |m|
%li= m

View File

@ -30,6 +30,9 @@ body_id: install
%option{:value => "rails"} rails %option{:value => "rails"} rails
%option{:value => "other"} other %option{:value => "other"} other
project project
%span.creating
named
%input#project_name(placeholder="<myproject>")
with with
%select#framework %select#framework
%option{:value => "compass"} compass's %option{:value => "compass"} compass's
@ -48,14 +51,14 @@ body_id: install
%option{:value => "customized"} customize my project's %option{:value => "customized"} customize my project's
directory structure<span id="directories" style="display:none;"> directory structure<span id="directories" style="display:none;">
using using
%input#sassdir(value="sass") %input#sassdir(placeholder="sass")
for the sass source directory, for the sass source directory,
%input#cssdir(value="css") %input#cssdir(placeholder="css")
for the css output directory, for the css output directory,
%input#jsdir(value="javascripts") %input#jsdir(placeholder="javascripts")
for the javascripts directory, for the javascripts directory,
and and
%input#imagesdir(value="images") %input#imagesdir(placeholder="images")
for the images directory</span></span>. for the images directory</span></span>.
%h4 Thanks. Now run the following steps in your terminal: %h4 Thanks. Now run the following steps in your terminal:
@ -68,7 +71,12 @@ body_id: install
%p.note Note: <code>$</code> is a placeholder for your terminal's prompt. You don't type it. %p.note Note: <code>$</code> is a placeholder for your terminal's prompt. You don't type it.
%h4 Then follow the instructions that compass provides in the output. %h4 Then follow the instructions that compass provides in the output.
%h4 Or you can buy a <a href="http://compass.handlino.com/">GUI for Compass</a> from Handlino. %h2 Hate the Command Line?
%p Try one of these Community supported GUI applications:
%ul
%li <a href="http://compass.handlino.com/">Compass.app</a> from <a href="http://handlino.com/">Handlino</a>.
%li <a href="http://mhs.github.com/scout-app/">Scout</a> from <a href="http://mutuallyhuman.com/">Mutually Human</a>.
%h2 Next Steps %h2 Next Steps
%ul %ul

View File

@ -0,0 +1,49 @@
---
title: "Compass/Rails Integration in v0.12"
description: "Starting in Compass v0.12 compass's rails integration is
done via a new project called compass-rails."
author: chris
---
The Compass v0.12 release is way behind schedule but it's finally getting
very close to release. The main goal of the v0.12 release has been to add
support for the rails asset pipeline and we hope that you'll agree that this
release achieves the very best integration with rails that compass has
ever provided.
In v0.12, we've create a new gem called `compass-rails` to provide full
support for rails 2.3 and greater. Let me tell you, this was no small
feat. 2.3 lacks Railtie support and 3.1 introduced the asset pipeline.
Backflips were performed; blood, sweat, and tears were shed; Monkeys
were patched and Ducks were punched.
The compass command line tool will now be aware of and compass
configuration settings you've made in your rails configuration files
and/or in the compass configuration file. You can use the approach that
best suites your workflow.
While the asset pipeline is convenient, large applications with lots of
stylesheets and many imports can become sluggish in development mode. To
make things snappier, you can now run the compass watcher in a separate
terminal to begin compilation as soon as you save. In combination with
tools like [live-reload](https://github.com/mockko/livereload), you may
not even need to reload your webpage to see the result in your browser.
Compass extensions and their starter files can be added to your rails
project following the extensions' existing installation instructions.
No special consideration is needed to support rails except to note
that the extension gem should be listed in the `:assets` group of your
Gemfile and you might need to use `bundle exec` to launch the compass
command line tool.
Having a dedicated gem for integration provides a number of benefits.
First, it means that we can release rails integration fixes on a
separate release schedule from the main compass library. Second, it
solves a chicken & egg problem we had where the command-line tools
didn't know whether they were dealing with a rails project until it was
too late. Finally, it allowed us to clean up some of the Compass
internals. To be clear, this gem doesn't mean that Rails support is
deprecated or a second class citizen in any way.
Huge thanks go to [Scott Davis](https://github.com/scottdavis) for his
hard work on the compass-rails gem.

View File

@ -0,0 +1,49 @@
---
title: "Compass v0.12 is Released"
description: "Compass 0.12: Flexible Sprites, Rails Integration"
author: chris
---
Compass 0.12 is out! Install it now:
$ (sudo) gem install compass
This release is primarily to support the Rails Asset Pipeline which
required major changes to the Compass internals. If you use rails
with Compass please read the [blog post about the new compass-rails
gem][compass-rails].
In addition to the rails improvements this release contains many updates
to Compass Sprites:
* **Sprite Layouts**: `vertical` (default), `horizontal`, `diagonal`, and `smart`
layouts are now available. Different layouts may allow you to use
sprites more easily with differing design requirements. The `smart`
layout will efficiently pack sprites of different sizes -- resulting
in smaller file sizes. To select a layout set the
`$<spritename>-layout` variable to your desired layout name.
* **Sprite Load Path**: Sprite source files can now be stored in more locations than
just your images directory. To add sprite locations in your compass
configuration: `sprite_load_path << 'my/sprite/folder'
* **Sprite output location**: If you need to output sprites to a
location other than the images directory set `generated_images_dir`,
`generated_images_path`, `http_generated_images_dir`, and
`http_generated_images_path` in your compass configuration according
to your needs. You can refer to images in your generated images
directory using the `generated-image-url()` function.
Additionally there are many new CSS3 improvements, bug fixes, and other
small enhancements that you can read about in the
[CHANGELOG](/CHANGELOG/).
What's next for Compass? First, we've added [Anthony
Short](/blog/2012/03/11/anthony-short-joins-the-compass-core-team/) to
the team and we're really excited to see him come make our stylesheets
even more awesome. The Sass 3.2 release is coming soon and the 0.13
release of compass will take advantage of the great features that it
offers. Additionally, we're working on an extension registry where you
can post your compass extensions and discover new ones. Lastly, we'll
be extracting blueprint to a compass extension as that project seems to
have stagnated. I'd say we're getting pretty close to a 1.0 release!
[compass-rails]: /blog/2012/01/29/compass-and-rails-integration/

View File

@ -0,0 +1,25 @@
---
title: "Anthony Short joins the Compass core team"
description: "We're excited to announce a new team member: Anthony Short"
author: chris
---
Please join us in welcoming Anthony Short to the Compass core team.
Anthony has been an active member in the "CSS Compiler" community for
a very long time now. A couple years ago he shut down his own CSS
compiler project called [Scaffold](https://github.com/anthonyshort/Scaffold)
and gave his backing to the Sass/Compass community. Since then, he
has been an active member of our community.
Anthony is a Designer and Developer at [Newism](http://newism.com.au/) a
web design and marketing firm in Newcastle, Australia. His depth and
breadth of knowledge about CSS and cutting-edge design is evident in
his work and his excellent pattern library for Compass:
[Stitch](https://github.com/anthonyshort/stitch-css).
You can find Anthony on the web at these fine locations:
* [Github](https://github.com/anthonyshort)
* [Twitter](https://twitter.com/#!/anthonyshort)
* [Blog](http://anthonyshort.me/)

View File

@ -0,0 +1,16 @@
---
title: Compass Animation
crumb: Animation
framework: compass
stylesheet: compass/css3/_animation.scss
meta_description: Specify the CSS3 animation property and all its sub-properties.
layout: core
classnames:
- reference
- core
- css3
---
- render 'reference' do
:markdown
Provides a mixin for `animation` and all its sub-properties.
See the CSS3 specification: [animation](http://www.w3.org/TR/css3-animations/).

View File

@ -5,7 +5,6 @@ framework: compass
stylesheet: compass/css3/_box-shadow.scss stylesheet: compass/css3/_box-shadow.scss
meta_description: Specify the box shadow for all browsers. meta_description: Specify the box shadow for all browsers.
layout: core layout: core
beta: true
classnames: classnames:
- reference - reference
- core - core

View File

@ -1,19 +0,0 @@
---
title: Compass Gradient
crumb: Gradient
framework: compass
stylesheet: compass/css3/_gradient.scss
deprecated: true
meta_description: Specify linear gradients and radial gradients for all browsers.
layout: core
classnames:
- reference
- core
- css3
---
- render 'reference' do
:markdown
**<span class="warning">IMPORTANT:</span>** This module has been deprecated. See the new
[images module](../images/) for the new, more flexible approach to gradients.
Provides mixins to create cross-browser CSS3 gradients.

View File

@ -5,7 +5,6 @@ framework: compass
stylesheet: compass/css3/_images.scss stylesheet: compass/css3/_images.scss
meta_description: Specify linear gradients and radial gradients for many browsers. meta_description: Specify linear gradients and radial gradients for many browsers.
layout: core layout: core
beta: true
classnames: classnames:
- reference - reference
- core - core

View File

@ -5,7 +5,6 @@ framework: compass
stylesheet: compass/css3/_pie.scss stylesheet: compass/css3/_pie.scss
meta_description: Compass integration with the css3pie tool. meta_description: Compass integration with the css3pie tool.
layout: core layout: core
beta: true
classnames: classnames:
- reference - reference
- core - core

View File

@ -0,0 +1,15 @@
---
title: Compass CSS Regions
crumb: CSS Regions
framework: compass
stylesheet: compass/css3/_regions.scss
meta_description: Specify CSS Regions for supported browsers.
layout: core
classnames:
- reference
- core
- css3
---
- render 'reference' do
%p
Provides two mixins for CSS regions, properties which allow you to flow content into new containers. See <a href="http://dev.w3.org/csswg/css3-regions/">the spec draft</a> and <a href="http://labs.adobe.com/technologies/cssregions/">Adobe's page on the topic</a>.

View File

@ -4,7 +4,6 @@ crumb: Text Shadow
framework: compass framework: compass
stylesheet: compass/css3/_text-shadow.scss stylesheet: compass/css3/_text-shadow.scss
meta_description: Specify the text shadow for all browsers. meta_description: Specify the text shadow for all browsers.
beta: true
layout: core layout: core
classnames: classnames:
- reference - reference

View File

@ -5,7 +5,6 @@ framework: compass
stylesheet: compass/css3/_transform.scss stylesheet: compass/css3/_transform.scss
meta_description: Specify transformations for many browsers. meta_description: Specify transformations for many browsers.
layout: core layout: core
beta: true
classnames: classnames:
- reference - reference
- core - core

View File

@ -0,0 +1,15 @@
---
title: Compass User Interface
crumb: User Interface
framework: compass
stylesheet: compass/css3/_user-interface.scss
meta_description: Declare an element inline block for all browsers.
layout: core
classnames:
- reference
- core
- css3
---
- render 'reference' do
%p
Provides mixins for the CSS3 User Interface module.

View File

@ -23,8 +23,9 @@ layout: core
* [adjust-saturation()](/reference/compass/helpers/colors/#adjust-saturation) * [adjust-saturation()](/reference/compass/helpers/colors/#adjust-saturation)
* [append-selector()](/reference/compass/helpers/selectors/#append-selector) * [append-selector()](/reference/compass/helpers/selectors/#append-selector)
* [color-stops()](/reference/compass/helpers/color-stops/) * [color-stops()](/reference/compass/helpers/color-stops/)
* [cos()](/reference/compass/helpers/trig/#cos) * [cos()](/reference/compass/helpers/math/#cos)
* [css2-fallback()](/reference/compass/helpers/cross-browser/#css2-fallback) * [css2-fallback()](/reference/compass/helpers/cross-browser/#css2-fallback)
* [e()](/reference/compass/helpers/math/#e)
* [elements-of-type()](/reference/compass/helpers/display/) * [elements-of-type()](/reference/compass/helpers/display/)
* [enumerate()](/reference/compass/helpers/selectors/#enumerate) * [enumerate()](/reference/compass/helpers/selectors/#enumerate)
* [font-files()](/reference/compass/helpers/font-files/) * [font-files()](/reference/compass/helpers/font-files/)
@ -35,14 +36,17 @@ layout: core
* [image-url()](/reference/compass/helpers/urls/#image-url) * [image-url()](/reference/compass/helpers/urls/#image-url)
* [inline-font-files()](/reference/compass/helpers/inline-data/#inline-font-files) * [inline-font-files()](/reference/compass/helpers/inline-data/#inline-font-files)
* [inline-image()](/reference/compass/helpers/inline-data/#inline-image) * [inline-image()](/reference/compass/helpers/inline-data/#inline-image)
* [log()](/reference/compass/helpers/math/#log)
* [nest()](/reference/compass/helpers/selectors/#nest) * [nest()](/reference/compass/helpers/selectors/#nest)
* [pow()](/reference/compass/helpers/math/#pow)
* [prefix()](/reference/compass/helpers/cross-browser/#prefix) * [prefix()](/reference/compass/helpers/cross-browser/#prefix)
* [prefixed()](/reference/compass/helpers/cross-browser/#prefixed) * [prefixed()](/reference/compass/helpers/cross-browser/#prefixed)
* [pi()](/reference/compass/helpers/trig/#pi) * [pi()](/reference/compass/helpers/math/#pi)
* [sin()](/reference/compass/helpers/trig/#sin) * [sin()](/reference/compass/helpers/math/#sin)
* [sqrt()](/reference/compass/helpers/math/#sqrt)
* [stylesheet-url()](/reference/compass/helpers/urls/#stylesheet-url) * [stylesheet-url()](/reference/compass/helpers/urls/#stylesheet-url)
* [scale-lightness()](/reference/compass/helpers/colors/#scale-lightness) * [scale-lightness()](/reference/compass/helpers/colors/#scale-lightness)
* [tan()](/reference/compass/helpers/trig/#tan) * [tan()](/reference/compass/helpers/math/#tan)
* [-css2()](/reference/compass/helpers/cross-browser/#-css2) * [-css2()](/reference/compass/helpers/cross-browser/#-css2)
* [-moz()](/reference/compass/helpers/cross-browser/#-moz) * [-moz()](/reference/compass/helpers/cross-browser/#-moz)
* [-ms()](/reference/compass/helpers/cross-browser/#-ms) * [-ms()](/reference/compass/helpers/cross-browser/#-ms)

View File

@ -18,7 +18,7 @@ documented_functions:
%p %p
These color functions are useful for creating generic libraries that have to accept a These color functions are useful for creating generic libraries that have to accept a
range of inputs. For more color functions see range of inputs. For more color functions see
<a href="http://sass-lang.com/yardoc/Sass/Script/Functions.html">the sass reference <a href="http://sass-lang.com/docs/yardoc/Sass/Script/Functions.html">the sass reference
documentation</a> documentation</a>
#adjust-lightness.helper #adjust-lightness.helper

View File

@ -19,7 +19,7 @@ documented_functions:
#opposite-position.helper #opposite-position.helper
%h3 %h3
%a(href="#opposite-position") %a(href="#opposite-position")
opposite-position($position) opposite-position(<span class="arg">$position</span>)
.details .details
:markdown :markdown
Returns the opposition position for the position given. Examples: Returns the opposition position for the position given. Examples:

View File

@ -16,13 +16,10 @@ documented_functions:
#font-files.helper #font-files.helper
%h3 %h3
%a(href="#font-files") %a(href="#font-files")
font-files([<span class="arg">$font</span>, <span class="arg">$format</span>]*) font-files([<span class="arg">$font</span>]*)
.details .details
%p %p
The <code>font-files</code> function takes any even number of arguments. The <code>font-files</code> function takes a list of arguments containing the path to each font files relative to your project's font directory.
For each pair of arguments, the first is the path to the font file
relative to your project's font directory and the second is the format of
that font.
%p %p
This helper is used with the <a href="/reference/compass/css3/font_face/#mixin-font-face"><code>font-face</code> mixin</a> This helper is used with the <a href="/reference/compass/css3/font_face/#mixin-font-face"><code>font-face</code> mixin</a>
and is what makes it possible to pass any number of font files. and is what makes it possible to pass any number of font files.

View File

@ -0,0 +1,101 @@
---
title: Compass Math Helpers
crumb: Math
framework: compass
meta_description: Helper math functions.
layout: core
classnames:
- reference
- core
- helpers
documented_functions:
- "pi"
- "sin"
- "cos"
- "tan"
- "e"
- "log"
- "sqrt"
- "pow"
---
%h1 Compass Math Helpers
:markdown
Sass math functions are sufficient for most cases, but in those moments of extreme geekiness these additional functions can really come in handy.
#pi.helper
%h3
%a(href="#pi")
pi()
.details
%p
Returns the value of π.
#sin.helper
%h3
%a(href="#sin")
sin(<span class="arg">$number</span>)
.details
%p
Returns the sine of a number. If the number is unitless or has a unit of <code>deg</code>
then it will return a unitless result. Unless the number has a unit of <code>deg</code> it
will be evaluated as radians. Degrees will first be converted to radians.
If the number is any other unit, the units will be passed thru to the result,
and the number will be treated as radians.
#cos.helper
%h3
%a(href="#cos")
cos(<span class="arg">$number</span>)
.details
%p
Returns the cosine of a number. If the number is unitless or has a unit of <code>deg</code>
then it will return a unitless result. Unless the number has a unit of <code>deg</code> it
will be evaluated as radians. Degrees will first be converted to radians.
If the number is any other unit, the units will be passed thru to the result,
and the number will be treated as radians.
#tan.helper
%h3
%a(href="#tan")
tan(<span class="arg">$number</span>)
.details
%p
Returns the tangent of a number. If the number is unitless or has a unit of <code>deg</code>
then it will return a unitless result. Unless the number has a unit of <code>deg</code> it
will be evaluated as radians. Degrees will first be converted to radians.
If the number is any other unit, the units will be passed thru to the result,
and the number will be treated as radians.
#e.helper
%h3
%a(href="#e")
e()
.details
%p
Returns the value of <a href="http://en.wikipedia.org/wiki/E_(mathematical_constant)">e</a>.
#log.helper
%h3
%a(href="#log")
log(<span class="arg">$number</span>, <span class="arg" data-default-value="e" title="Defaults to: e">$base</span>)
.details
%p
Calculates the logarithm of a number to a base. Base defaults to <code>e</code>.
#sqrt.helper
%h3
%a(href="#sqrt")
sqrt(<span class="arg">$number</span>)
.details
%p
Calculates the square root of a number.
#pow.helper
%h3
%a(href="#pow")
pow(<span class="arg">$number</span>, <span class="arg">$exponent</span>)
.details
%p
Calculates the value of a number raised to the power of an exponent.

View File

@ -20,7 +20,7 @@ documented_functions:
#nest.helper #nest.helper
%h3 %h3
%a(href="#nest") %a(href="#nest")
nest($selector1, $selector2, ...) nest(<span class="arg">$selector1</span>, <span class="arg">$selector2</span>, ...)
.details .details
%p %p
Nest selectors as if they had been nested within a sass file. Nest selectors as if they had been nested within a sass file.

View File

@ -1,8 +1,8 @@
--- ---
title: Compass Sprite Helpers title: CSS Sprite Helpers for Compass
crumb: Sprites crumb: Sprites
framework: compass framework: compass
meta_description: Helper functions for working with Sprite images. meta_description: Helper functions for working with CSS Sprite images.
layout: core layout: core
classnames: classnames:
- reference - reference
@ -16,13 +16,13 @@ documented_functions:
- "sprite-url" - "sprite-url"
- "sprite-position" - "sprite-position"
--- ---
%h1 Compass Sprite Helpers %h1 <strong>CSS Sprite</strong> Helpers for Compass
:markdown :markdown
These helpers make it easier to build and to work with sprites. These helpers make it easier to build and to work with <em>css sprites</em>.
While it is allowed to use these directly, to do so is considered "advanced usage". While it is allowed to use these directly, to do so is considered "advanced usage".
It is recommended that you instead use the sprite mixins that are designed to work It is recommended that you instead use the css sprite mixins that are designed to work
with these functions. with these functions.
See the [Spriting Tutorial](/help/tutorials/spriting/) for more information. See the [Spriting Tutorial](/help/tutorials/spriting/) for more information.
@ -33,31 +33,31 @@ documented_functions:
sprite-map(<span class="arg">$glob</span>, <span class="arg">...</span>) sprite-map(<span class="arg">$glob</span>, <span class="arg">...</span>)
.details .details
:markdown :markdown
Generates a sprite map from the files matching the glob pattern. Uses the Generates a css sprite map from the files matching the glob pattern. Uses the
keyword-style arguments passed in to control the placement. keyword-style arguments passed in to control the placement.
Only PNG files can be made into sprites at this time. Only PNG files can be made into css sprites at this time.
The `$glob` should be glob pattern relative to the images directory that specifies The `$glob` should be glob pattern relative to the images directory that specifies
what files will be in the sprite. For example: what files will be in the css sprite. For example:
$icons: sprite-map("icons/*.png"); $icons: sprite-map("icons/*.png");
background: $icons; background: $icons;
This will generate a sprite map and return a reference to it. It's important to This will generate a css sprite map and return a reference to it. It's important to
capture this to a variable, because you will need to use it later when creating capture this to a variable, because you will need to use it later when creating
sprites. In the above example you might end up with a new file named css sprites. In the above example you might end up with a new file named
`images/sprites/icons-a2ef041.png` and your css stylesheet will have: `images/sprites/icons-a2ef041.png` and your css stylesheet will have:
background: url('/images/sprites/icons-a2ef041.png?1234678') no-repeat; background: url('/images/sprites/icons-a2ef041.png?1234678') no-repeat;
The exact image name is not something you should depend on as it may change based on the The exact image name is not something you should depend on as it may change based on the
arguments you pass in. Instead, you can use the `sprite-url()` function to create a arguments you pass in. Instead, you can use the `sprite-url()` function to create a
reference to the sprite map without generating the image again. Alternatively, simply reference to the css sprite map without generating the image again. Alternatively, simply
using the sprite map variable in an property will have the same effect as calling using the sprite map variable in an property will have the same effect as calling
`sprite-url()`. `sprite-url()`.
For each sprite in the sprite map you can control the position, spacing, and whether or For each sprite in the css sprite map you can control the position, spacing, and whether or
not it repeats. You do this by passing arguments to this function that tell each sprite not it repeats. You do this by passing arguments to this function that tell each sprite
how to behave. For instance if there is a icons/new.png then you can control it like so: how to behave. For instance if there is a icons/new.png then you can control it like so:
@ -91,8 +91,8 @@ documented_functions:
sprite-map-name(<span class="arg">$map</span>) sprite-map-name(<span class="arg">$map</span>)
.details .details
:markdown :markdown
Returns the name of a sprite map Returns the name of a css sprite map
The name is derived from the folder than contains the sprites. The name is derived from the folder than contains the css sprites.
#sprite-file.helper #sprite-file.helper
%h3 %h3

View File

@ -1,62 +0,0 @@
---
title: Compass Trigonometric Helpers
crumb: Trig
framework: compass
meta_description: Helper functions for working with angles.
layout: core
classnames:
- reference
- core
- helpers
documented_functions:
- "pi"
- "sin"
- "cos"
- "tan"
---
%h1 Compass Trig Helpers
:markdown
Trigonometric functions can help you manage complex calculations involving angles.
Or maybe they can be used to create pretty pictures. Who knows?
#pi.helper
%h3
%a(href="#pi")
pi()
.details
%p
Returns the value of π.
#sin.helper
%h3
%a(href="#sin")
sin($number)
.details
%p
Takes the sine of a number. If the number is unitless or has a unit of <code>deg</code>
then it will return a unitless result. Degrees will first be converted to radians.
If the number is any other unit, the units will be passed thru to the result,
and the number will be treated as radians.
#cos.helper
%h3
%a(href="#cos")
cos($number)
.details
%p
Takes the cosine of a number. If the number is unitless or has a unit of <code>deg</code>
then it will return a unitless result. Degrees will first be converted to radians.
If the number is any other unit, the units will be passed thru to the result,
and the number will be treated as radians.
#tan.helper
%h3
%a(href="#tan")
tan($number)
.details
%p
Takes the tangent of a number. If the number is unitless or has a unit of <code>deg</code>
then it will return a unitless result. Degrees will first be converted to radians.
If the number is any other unit, the units will be passed thru to the result,
and the number will be treated as radians.

View File

@ -12,6 +12,7 @@ documented_functions:
- "stylesheet-url" - "stylesheet-url"
- "font-url" - "font-url"
- "image-url" - "image-url"
- "generated-image-url"
--- ---
%h1 Compass URL Helpers %h1 Compass URL Helpers
@ -25,37 +26,55 @@ documented_functions:
#stylesheet-url.helper #stylesheet-url.helper
%h3 %h3
%a(href="#stylesheet-url") %a(href="#stylesheet-url")
stylesheet-url($path, $only-path: false) stylesheet-url(<span class="arg">$path</span>, <span class="arg" data-default-value="false" title="Defaults to: false">$only-path</span>)
.details .details
%p %p
Generates a path to an asset found relative to the project's css directory. Generates a path to an asset found relative to the project's css directory.
%br %br
Passing a true value as the second argument will cause the only the path to be returned Passing a true value as the second argument will cause the only the path to be returned
instead of a `url()` function instead of a <code>url()</code> function
#font-url.helper #font-url.helper
%h3 %h3
%a(href="#font-url") %a(href="#font-url")
font-url($path, $only-path: false) font-url(<span class="arg">$path</span>, <span class="arg" data-default-value="false" title="Defaults to: false">$only-path</span>)
.details .details
%p %p
Generates a path to an asset found relative to the project's font directory. Generates a path to an asset found relative to the project's font directory.
%br %br
Passing a true value as the second argument will cause the only the path to be returned Passing a true value as the second argument will cause the only the path to be returned
instead of a `url()` function instead of a <code>url()</code> function
#image-url.helper #image-url.helper
%h3 %h3
%a(href="#image-url") %a(href="#image-url")
image-url($path, $only-path: false, $cache-buster: true) image-url(<span class="arg">$path</span>, <span class="arg" data-default-value="false" title="Defaults to: false">$only-path</span>, <span class="arg" data-default-value="true" title="Defaults to: true">$cache-buster</span>)
.details .details
%p %p
Generates a path to an asset found relative to the project's images directory. Generates a path to an asset found relative to the project's images directory.
%p %p
Passing a true value as the second argument will cause the only the path to be returned Passing a true value as the second argument will cause the only the path to be returned
instead of a `url()` function instead of a <code>url()</code> function
%p %p
The third argument is used to control the cache buster on a per-use basis. The third argument is used to control the cache buster on a per-use basis.
When set to `false` no cache buster will be used. When a string, that When set to <code>false</code> no cache buster will be used. When a string, that
value will be used as the cache buster. value will be used as the cache buster.
#generated-image-url.helper
%h3
%a(href="#generated-image-url")
generated-image-url($path, $cache-buster: false)
.details
%p
Generates a path to an image generated during compilation using the
<code>generated_image</code> related configuration properties.
%p
Most users will never call this helper directly, it is primarily provided
for use by plugins that need to generate paths to images they create. E.g.
The <code>sprite-url()</code> helper calls this helper.
%p
The second argument is used to control the cache buster on a per-use basis.
Defaults to <code>false</code>, meaning that no cache buster will be used.
When a string, that value will be used as the cache buster, when <code>true</code>
Compass will generate a cache-buster based on the image's modification time.

View File

@ -1,70 +0,0 @@
$default-rounded-corner: 4
.group
+pie-clearfix
.truncate
+ellipsis
.border-box
+box-sizing(border-box)
.round-corners-4
+border-radius(4px)
.round-corners-em
+border-radius(1em)
=round-corners($num: $default-rounded-corner)
@extend .round-corners-#{$num}
=round-top-corners($num: $default-rounded-corner)
+round-corners($num)
@extend .clear-bottom-right-corner
@extend .clear-bottom-left-corner
=round-bottom-corners($num: $default-rounded-corner)
+round-corners($num)
@extend .clear-top-right-corner
@extend .clear-top-left-corner
=round-left-corners($num: $default-rounded-corner)
+round-corners($num)
@extend .clear-top-right-corner
@extend .clear-bottom-right-corner
=round-right-corners($num: $default-rounded-corner)
+round-corners($num)
@extend .clear-top-left-corner
@extend .clear-bottom-left-corner
=round-top-left-corner($num: $default-rounded-corner)
+round-corners($num)
@extend .clear-top-right-corner
@extend .clear-bottom-right-corner
@extend .clear-bottom-left-corner
=round-top-right-corner($num: $default-rounded-corner)
+round-corners($num)
@extend .clear-top-left-corner
@extend .clear-bottom-right-corner
@extend .clear-bottom-left-corner
=round-bottom-left-corner($num: $default-rounded-corner)
+round-corners($num)
@extend .clear-top-right-corner
@extend .clear-bottom-right-corner
@extend .clear-top-left-corner
=round-bottom-right-corner($num: $default-rounded-corner)
+round-corners($num)
@extend .clear-top-right-corner
@extend .clear-top-left-corner
@extend .clear-bottom-left-corner
=square-top-left-corner($num: $default-rounded-corner)
+round-corners($num)
@extend .clear-top-left-corner
=square-top-right-corner($num: $default-rounded-corner)
+round-corners($num)
@extend .clear-top-right-corner
=square-bottom-left-corner($num: $default-rounded-corner)
+round-corners($num)
@extend .clear-bottom-left-corner
=square-bottom-right-corner($num: $default-rounded-corner)
+round-corners($num)
@extend .clear-bottom-right-corner

View File

@ -1,17 +0,0 @@
.clear-top-left-corner
+border-top-left-radius(0)
.clear-top-right-corner
+border-top-right-radius(0)
.clear-bottom-left-corner
+border-bottom-left-radius(0)
.clear-bottom-right-corner
+border-bottom-right-radius(0)
.hide
display: none
.clear-box-shadow
+box-shadow(none)
.clear-border-radius
@extend .clear-rounded-corners
.clear-rounded-corners
+border-radius(0)

View File

@ -1,10 +0,0 @@
@mixin reset($reset-type: false){
@if($reset-type){
@if($reset-type == global){
@include global-reset;
}
@if($reset-type == html5){
@include reset-html5;
}
}
}

View File

@ -10,6 +10,7 @@
@import "partials/typography"; @import "partials/typography";
@import "partials/main"; @import "partials/main";
@import "partials/home"; @import "partials/home";
@import "partials/ads";
html.dark { @include dark-theme; } html.dark { @include dark-theme; }
html.light { @include light-theme; } html.light { @include light-theme; }

View File

@ -0,0 +1,42 @@
.advertisement {
padding: 8px 5px !important;
text-align: center;
line-height: 1.1em !important;
@include opacity(0);
@include transition(opacity 1s ease-in 1.5s);
&.visible {
@include opacity(1);
}
a:not(.pagerankspam) {
display: block;
color: white;
@extend .heading-font;
text-decoration: none;
&:hover {
@include text-shadow(0 0 2px #aaa);
}
}
.pagerankspam { font-size: 9px; }
.dark & {
@extend .code-block-dark;
img:hover { @include single-box-shadow(white); }
}
.light & {
@extend .code-block-light;
a:not(.pagerankspam) { color: #222}
img:hover { @include single-box-shadow(#222); }
}
#home & {
float: right;
width: 380px;
margin-top: 11px;
.fusionimg {
margin: 6px 8px;
float: left;
}
.fusiontext {
padding-top: 6px;
}
}
}

View File

@ -1,6 +0,0 @@
body#blog-archive {
.timestamp {
margin-right: 1em;
font-size: 12px;
}
}

View File

@ -1,113 +0,0 @@
//html.sass .mixin-source .scss, html.scss .mixin-source .sass { @extend .hide;}
.mixin-source, .example-source, .function-source {
position: relative; @extend .fixed-font;
.syntaxhighlighter, pre {
&.scss, &.sass, &.css, &.haml, &.html { display: none; } } }
html.sass { .mixin-source, .example-source, .function-source { .syntaxhighlighter.sass { display: block; } } }
html.scss { .mixin-source, .example-source, .function-source { .syntaxhighlighter.scss { display: block; } } }
html.css .example-source .syntaxhighlighter.css { display: block; }
html.html .example-source .syntaxhighlighter.html { display: block; }
html.haml .example-source .syntaxhighlighter.haml { display: block; }
.mixin-source, .function-source { display: none; }
html.light .syntaxhighlighter, html.dark .syntaxhighlighter {
margin: 0 0 2px;
code { padding: 0; }
//font-size: 1.1em;
text-shadow: none;
.code-block { background: none; @extend .clear-box-shadow; }
table td.gutter { .line { &:first-child { padding-top: 10px !important; } &:last-child { padding-bottom: 10px !important; } } }
.toolbar { display: none; }
//a.help { font-size: 1.5em; @extend .pictos; color: #aaa; position: relative; right: 6px; top: 2px; }
}
a[rel="github-source"] {
position: relative;
float: right;
top: 1.1em;
}
pre {
margin: 1.5em 0;
overflow: auto;
.code-block:first-child { padding: .6em; display: block; }
.code-block:first-child { width: 100%; @include box-sizing(border-box); overflow: auto; }
}
.code-block { @extend .round-corners-4; @extend .fixed-font;
display: inline-block;
font-size: .95em;
padding: 0 .4em;
line-height: 1.5em;
}
.source-documentation {
@extend .round-corners-4;
padding: 10px 15px;
@include round-bottom-corners
}
h3 { @include round-corners;
padding: 10px 15px;
margin: 20px 0 20px;
font-weight: bold;
position: relative;
a { text-decoration: none;}
code, .arg { font-weight: normal; }
}
h3.mixin, h3.function { @include round-top-corners; margin-bottom: 2px;}
.arg {
display: inline-block;
padding: 0 2px;
&[data-default-value] {
font-style: italic;
&:before { content: "[" ; }
&:after { content: "]" ; }}
}
a[rel="view source"]{ float: right; padding: 9px 15px; margin-top: 20px; position: relative; z-index: 2; font-size: .8em; @include hover-link;}
h2 + a[rel="view source"]{ margin-top: 6px;}
.syntaxhighlighter {
a, div, code, table, table td, table tr, table tbody, table thead, table caption, textarea {
background: none; border: 0; bottom: auto; float: none; height: auto; left: auto; line-height: 1.2em !important;
padding: 0; margin: 0; outline: 0;
overflow: visible; position: static; right: auto;
text-align: left; top: auto; vertical-align: baseline;
width: auto;
font: { weight: normal; style: normal;
size: 1em;
}
min: { height: inherit; }
}
}
.syntaxhighlighter { width: 100%; margin: 1em 0 1em 0; position: relative; overflow: auto; font-size: 1em;
// set up bold and italic
.bold { font-weight: bold; }
.italic { font-style: italic; }
.line { white-space: pre; }
// main table and columns
table { width: 100%;
td.code { width: 100%;
.line { padding: 0 .6em; } }
td.gutter .line { text-align: right; padding: 0 0.8em 0 1em; } } // middle spacing between line numbers and lines
// Styles for the toolbar
.toolbar { position: absolute; right: 1px; top: 1px; width: 11px; height: 11px; font-size: 10px; z-index: 10;
span.title { display: inline; }
a { display: block; text-align: center; text-decoration: none; padding-top: 1px; } }
.container { position: relative; }
textarea { @include stretch(0, .65em, 0, .65em); @extend .fixed-font; font-size: .95em; line-height: 1.3em !important;}
}
.syntaxhighlighter, pre .code-block:first-child, pre {
&::-webkit-scrollbar { height: 12px; }
&::-webkit-scrollbar-button { &:start:decrement, &:end:increment { display: block; width: 0; height: 0; } }
&::-webkit-scrollbar-thumb:horizontal { -webkit-border-radius: 5px; -webkit-background-clip: padding-box; }
}

View File

@ -1,29 +0,0 @@
html.light #demo, html.dark #demo {
color: #333;
}
#demo {
@include round-corners;
@extend .group;
background: #fff;
margin-bottom: 1.2em;
padding: 40px;
code {
@include box-shadow(rgba(#000, .3) 0 1px 3px, rgba(#000, .15) 0 1px 0 0 inset);
background: #fff;
color: inherit;
}
}
#how {
section { width: 49%; float: left; }
section + section { float: right; }
.example-source { clear: both; }
}
#reference {
float: right;
margin-top: 1em;
}

View File

@ -1,99 +0,0 @@
body#home {
width: 810px;
#page { padding-top: 31px;}
h1#logo {
$logo: 'compass-logo.png';
background: image-url($logo) no-repeat;
text-indent: -9999px;
overflow: hidden;
width: image-width($logo);
height: image-height($logo)/2;
padding: 0;
margin: 0 auto 18px;
}
#{headings()}{ @extend .heading-font; }
h2 {
text-align: center;
font-size: 30px;
padding-bottom: 15px;
margin-bottom: 30px;
line-height: 1.1em;
}
h3 {
text-align: center;
font-size: 25px;
margin-top: 32px;
}
h4 { font-size: 1.5em; }
.overview {
@extend .group;
.compass { width: 406px; float: left;
h4:before { content: "k"; } }
.sass { width: 275px; float: right;
h4:before { content: "2"; } }
div {
padding: 20px;
h4 {
padding-bottom: 12px;
margin-bottom: 12px;
&:before {
@extend .pictos;
color: #fb292d;
display: inline-block;
font-size: 1.2em;
padding-right: .3em;
}
}
}
ol { padding-left: 0; list-style: inside decimal; margin-bottom: 0; }
p { margin-bottom: 0; }
ol, p { line-height: 1.8em; font-size: .95em;}
}
}
ul#featured_sites {
@extend .group;
overflow: visible;
margin-top: 30px;
list-style: none;
padding: 0px;
li {
float: left;
text-shadow: none;
overflow: visible;
position: relative;
&:nth-child(3n+2){ margin: 0 7px; }
&:nth-child(1n+4){ margin-top: 7px; }
&:nth-child(3n+4){ clear: left; }
padding: 6px;
a { text-decoration: none; }
img { float: left; width: 240px; }
span { display: none;}
&:hover { z-index: 100;
padding: 3px 2px;
img { width: 248px; }
span { display: block; position: absolute; text-shadow: none;}
}
.url {
bottom: 2px; left: 2px; right: 2px; background: #000; background: rgba(#000, .8); z-index: 102; padding: 2.2em 10px 6px;
font-size: .8em; border-top: 1px solid rgba(#fff, .2); }
.title { bottom: 1.7em; left: 0; z-index: 103; text-decoration: none; padding: 0 11px; color: #fff; }
}
}
section.book, section.gui {
width: 48%;
float: left;
@extend .group;
h3 { margin-bottom: 1em; height: 2em; text-align: left; }
}
section.book {
margin-right: 2%;
img { float: left; margin-right: 1em; margin-bottom: 1em; }
}
section.gui {
text-align: center;
.note {
font-size: smaller;
}
}
html.light body#home { h1#logo { background-position: bottom;} }

View File

@ -1,10 +0,0 @@
body#install {
#steps, p.madlib, p.note, h4 { margin-top: 1em; }
p.note { font-size: smaller; font-style: italic; }
p.warning { color: #c00; }
.customization { display: none; }
.customizable .customization { display: inline; }
blockquote { border-left: 2px solid #ccc;
text-indent: 0; padding-left: 0.5em; }
.customization input { width: 8em; }
}

View File

@ -1,21 +0,0 @@
$min-width: 700px;
$side-nav-width: 160px;
$main-min-width: $min-width - $side-nav-width;
body {
max-width: 1500px;
min-width: $min-width;
margin: 0 auto;
@extend .sans-font;
line-height: 1.45em;
}
#wrap { @extend .group; padding: 0 20px 20px; }
#page { @extend .group; padding-bottom: 30px; }
footer { @extend .group; clear: both; padding-top: 20px;}
header { padding: 22px 0 0; position: relative; }
#page aside + article { margin-left: $side-nav-width + 22px; padding-left: 23px; }
aside { float: left; width: $side-nav-width; position: relative; z-index: 2;}
body#home #page article { padding-left: 0;}
body.site, body#changelog, body.default { max-width: 1024px; }

View File

@ -1,63 +0,0 @@
body.get-involved h1 + p { font-size: 1.2em; line-height: 1.45em; }
#page {
position: relative;
padding-top: 40px;
& > article { padding-top: 10px; font-size: 15px;
img { max-width: 100%; } } }
#theme_pref {
a { display: block; font-size: 18px; width: .9em; position: relative; text-decoration: none; @extend .pictos; } }
#docs_panel {
position: absolute; top: 0; right: 0;
width: 100%;
& > div { float: right; margin-left: 10px; @include round-bottom-corners; border: 1px solid; border-top: 0;}
a { text-decoration: none; }
#theme_pref { padding: 3px 12px 6px; a { position: relative; top: 2px;} }
#version { font-size: .75em; padding: 4px 0 5px; background: none; border: none; position: absolute; left: 0; a { @include hover-link; } }
}
#syntax_pref, .syntax_pref { padding: 4px 8px 5px; a { font-size: .9em; padding: 0px 6px 1px; display: inline-block; line-height: 1.45em;} }
.syntax_pref {
float: left; @include round-top-corners; border: 1px solid; border-bottom: 0;
a { text-decoration: none; }
}
footer {
.links { float: left; font-size: .9em;
img { vertical-align: middle; padding-right: 5px; position: relative; top: -2px;}
span { position: relative; top: -1px; }
ul { @include horizontal-list(15px); overflow: visible;
li { padding-top: 3px; }
li:last-child {border: 0; @include box-shadow(none); } } }
}
#page article h2 {
margin-top: 1.5em;
}
h2 a.help {
text-indent: -9999px;
display: inline-block;
position: relative;
text-decoration: none;
@include opacity(.3);
&:hover { @include opacity(.7); }
&:before {
@extend .pictos;
content: "?";
text-indent: 0;
position: absolute;
top: 2px;
left: 0;
font-size: .85em;
}
}
hr {
height: 0px;
border: 0;
border-bottom-width: 4px;
margin: 3em 0;
background: transparent;
}

View File

@ -1,96 +0,0 @@
.triangle-marker {
border-color: transparent transparent;
content: "\00a0";
height: 0; width: 0;
position: absolute;
border-style: solid; }
nav a { @include hover-link; }
nav .selected a:hover { text-decoration: none;}
header { @extend .group;
font-size: 1.3em; @extend .heading-font; border-width: 4px;}
#main-nav {
display: inline-block;
padding-bottom: 10px;
ul {
@include horizontal-list(10px);
line-height: 2em; }}
#sub-nav {
@extend .group;
padding: 8px 0; }
#docs-nav, #module-nav {
display: inline-block;
float: left;
a {
padding: 2px 10px;
display: inline-block; }}
#docs-nav { padding-right: 30px;
& + #module-nav {
padding-left: 20px;
}}
#module-nav {
display: inline-block;
ul { @include horizontal-list(false); }}
body.getting-started #module-nav li.getting-started,
body.tutorial #module-nav li.tutorials,
body.support #module-nav li.support,
#module-nav li.selected {
position: relative;
a {
text-decoration: none;
}
a:before{ @extend .triangle-marker;
border-width: 0 8px 8px;
z-index: 2;
bottom: -9px;
left: 50%;
margin-left: -8px;
border-bottom-color: #121212;
}
&:before { @extend .triangle-marker;
border-bottom-color: #414141;
border-width: 0 6px 6px;
z-index: 3;
bottom: -9px;
left: 50%;
margin-left: -6px;
}
&:after { @extend .triangle-marker;
border-bottom-color: #343434;
border-width: 0 5px 5px;
z-index: 3;
bottom: -10px;
left: 50%;
margin-left: -5px;
}
}
#search-docs {
width: 170px;
float: right;
position: relative;
top: .3em;
//position: absolute; top: 29px; right: 0;
&:before {
content: "s";
display: block;
@extend .pictos;
position: absolute;
left: 6px;
top: 4px;
font-size: .8em;
z-index: 20;
@include opacity(.8)
}
input { @extend .sans-font; @include round-corners;
@include box-sizing(border-box);
width: 170px; border: 0; margin: 0; padding: 5px 8px 5px 26px;
font-size: .8em;
float: right;
position: relative; } }

View File

@ -1,31 +0,0 @@
aside {
padding-top: 15px;
text-align: right;
padding-right: 22px;
h2, h3 {
text-align: left;
font-size: 1.3em;
line-height: 1.45em;
padding-bottom: .2em;
margin-bottom: .4em;
@extend .clear-border-radius;
}
h3 {
padding: 0 0 .5em; line-height: 1.1em;
}
a {
font-size: .85em;
}
ul ul a {
&.selected, &.selected:hover {
font-weight: bold;
text-decoration: underline;
}
}
.deprecated {
text-decoration: line-through;
}
.beta span:after {
content: " (\3B2)";
}
}

View File

@ -1,275 +0,0 @@
@mixin site-theme($theme, $page-bg, $text, $strong-text, $heading, $link, $code, $search, $nav-link, $main-nav, $main-nav-selected, $option-panel-border, $option-panel-bg){
background: $page-bg;
body { background: $page-bg; color: $text;
a { color: $link; } }
#page { @extend .horizontal-rule-#{$theme}; }
header { @extend .horizontal-rule-#{$theme}; border-width: 4px; }
nav a { color: $nav-link; }
#main-nav a { color: $main-nav;}
body#home #main-nav a[rel=home],
body#help #main-nav a[rel=help],
body.tutorial #main-nav a[rel=help],
body.reference #main-nav a[rel=documentation],
body#changelog #main-nav a[rel=documentation],
body.demo #main-nav a[rel=documentation],
body#get-involved #main-nav a[rel=get-involved]{ color: $main-nav-selected; }
#search-docs input {
@extend .inset-panel-#{$theme}; color: $search;
&::-webkit-input-placeholder { color: $search; } }
#{headings()}{ color: $heading;
strong { color: $main-nav-selected; }
em { color: $code; } }
#page > article h2 { @extend .horizontal-rule-top-#{$theme}; }
hr { @extend .horizontal-rule-#{$theme};
border-bottom-width: 8px}
body#home h2 { @extend .horizontal-rule-#{$theme}; }
#page aside + article { @extend .vertical-rule-left-#{$theme}; }
aside {
h2 a { color: $strong-text; }
h2, h3 { @extend .horizontal-rule-#{$theme}; }}
footer .links li { @extend .vertical-rule-#{$theme}; }
code { @extend .code-block-#{$theme}; color: $code; }
#theme_pref { @extend .theme-switch-#{$theme}; }
#docs_panel div, .syntax_pref { background: $option-panel-bg; border-color: $option-panel-border; }
body#home .overview div { @extend .inset-panel-#{$theme};
h4 { @extend .horizontal-rule-#{$theme}; } }
#featured_sites li { @extend .inset-panel-#{$theme}; }
}
@mixin docs-theme($theme, $heading, $code, $nav-link, $docs-nav-selected, $module-nav-selected){
#page > article {
h1 { @extend .horizontal-rule-#{$theme}; }
h2 { @extend .horizontal-rule-top-#{$theme}; }
h3 { @extend .heading-panel-#{$theme}; }
h1 + h2, hr + h2 {
@extend .clear-box-shadow; border-top: 0;
margin-top: 0;}
}
#sub-nav { @extend .horizontal-rule-#{$theme}; }
#docs-nav { @extend .vertical-rule-#{$theme}; }
body.core a[rel=core], body.blueprint a[rel=blueprint]{ @extend .inset-panel-#{$theme}; color: $docs-nav-selected; @extend .round-corners-4;}
#main-nav a[rel=home] { @include replace-text-with-dimensions("compass-logo-small-#{$theme}.png"); display: inline-block; float: left; }
#module-nav {
ul { overflow: visible; }}
body.getting-started #module-nav li.getting-started,
body.tutorial #module-nav li.tutorials,
body.support #module-nav li.support,
#module-nav li.selected { @extend .selected-marker-#{$theme};
a { color: $module-nav-selected; } }
a[rel=sass], a[rel=scss], a[rel=css], a[rel=html], a[rel=haml] { @extend .syntax-switch-#{$theme}; }
&.sass a[rel=sass], &.scss a[rel=scss], &.css a[rel=css], &.html a[rel=html], &.haml a[rel=haml] { color: $heading; color: rgba($heading, .7); @extend .round-corners-em; @extend .inset-panel-#{$theme}; }
#version { color: rgba($heading, .3); a { color: rgba($nav-link, .7); } }
.mixin-source, .example-source, .function-source { @extend .mixin-panel-#{$theme};
.container textarea { color: $code; }
}
h2 a.help { color: $heading;}
.source-documentation { @extend .doc-panel-#{$theme}; }
#demo { @extend .demo-#{$theme}; }
.arg { color: $code; }
.arg[data-default-value] { color: rgba($code, .7); }
a[rel="view source"]{ color: rgba($heading, .5); &:hover{ color: rgba($heading, .8);} }
}
// Dark theme
.inset-panel-dark {
@include box-shadow(rgba(#fff, .1) 0 1px 0, rgba(#000, .8) 0 1px 7px 0px inset);
background: darken(#2f2f2f, 6); background-color: rgba(#000, .3); }
.horizontal-rule-dark {
@include box-shadow(rgba(#fff, .07) 0 1px 0);
border-bottom: 1px solid #121212; }
.horizontal-rule-top-dark {
@include box-shadow(rgba(#fff, .07) 0 1px 0 inset);
border-top: 1px solid #121212; }
.vertical-rule-dark {
@include box-shadow(rgba(#fff, .07) 1px 0 0);
border-right: 1px solid #121212; }
.vertical-rule-left-dark {
@include box-shadow(rgba(#fff, .07) 1px 0 0 inset);
border-left: 1px solid #121212; }
.code-block-dark { @extend .code-block; @extend .inset-panel-dark; }
.demo-dark {
@include box-shadow(rgba(#000, .5) 0 2px 10px inset, rgba(#fff, .3) 0 1px 2px 0px, rgba(#000, .8) 0 0 0 1px inset); }
.heading-panel-dark {
background: darken(#2f2f2f, 6);
background: rgba(#000, .2);
@include box-shadow(rgba(#000, .2) 0 0 0 1px inset);
a:hover { color: #fff;
.arg { color: rgba(#fff, .6);}
}
}
.doc-panel-dark {
background: darken(#2f2f2f, 4);
background: rgba(#000, .1);
@include box-shadow(rgba(#000, .2) 0 0 0 1px inset);
}
.syntax-switch-dark {
color: #000; text-shadow: rgba(#fff, .08) 0 1px 0;
&:hover { color: #fff; text-shadow: #000 0 1px 0; } }
.theme-switch-dark {
cursor: pointer;
a { color: #000; color: rgba(#000, .8); text-shadow: rgba(#fff, .08) 0 1px 0; }
&:hover a { color: #eee; text-shadow: #000 0 1px 0; } }
.selected-marker-dark {
a:before{ border-bottom-color: #121212; }
&:before { border-bottom-color: #414141; }
&:after { border-bottom-color: #323232; }
}
.mixin-panel-dark {
@extend .inset-panel-dark;
td.gutter { background: rgba(#fff, .05); .line { border-right: 2px solid rgba(#fff, .15); color: rgba(#fff, .5); }}
.container textarea { background: darken(#2f2f2f, 6); }
}
@mixin dark-theme($docs: false) {
$page-bg: #2f2f2f;
$text: #c6c6c6;
$heading: white;
$strong-text: #dbdbdb;
$search: #6e6e6e;
$code: #dadbb1;
$nav-link: #bfbfbf;
$link: saturate(lighten(#85AFC9, 4), 19);
$main-nav: white;
$main-nav-selected: #fb292d;
$docs-nav-selected: $strong-text;
$module-nav-selected: $link;
$option-panel-border: rgba(#000, .5);
$option-panel-bg: rgba(#fff, .06);
@include site-theme(dark, $page-bg, $text, $strong-text, $heading, $link, $code, $search, $nav-link, $main-nav, $main-nav-selected, $option-panel-border, $option-panel-bg);
@if($docs){
@include docs-theme(dark, $heading, $code, $nav-link, $docs-nav-selected, $module-nav-selected);
.syntaxhighlighter, pre, pre .code-block:first-child {
&::-webkit-scrollbar-track-piece { -webkit-box-shadow: rgba(#000, .5) 0 0 3px 1px inset; background: rgba(#000, .2); }
}
.syntaxhighlighter, pre, pre .code-block:first-child {
&::-webkit-scrollbar-thumb:horizontal { background: -webkit(linear-gradient(rgba(#fff, .3), rgba(#fff, 0))) #000; -webkit-box-shadow: rgba(black, 0.8) 0px 0 0 1px inset; }
}
}
}
// Light Theme
.inset-panel-light {
@include box-shadow(rgba(#fff, 1) 0 1px 0, rgba(#000, .5) 0 1px 3px 0px inset);
text-shadow: 0 1px 1px #fff;
background: darken(#fff, .04); background-color: rgba(#000, .04); }
.horizontal-rule-light {
@include box-shadow(#fff 0 1px 0);
border-bottom: 1px solid #bbb; }
.horizontal-rule-top-light {
@include box-shadow(#fff 0 1px 0 inset);
border-top: 1px solid #bbb; }
.vertical-rule-light {
@include single-box-shadow(rgba(#fff, 1), 1px, 0, 0);
border-right: 1px solid #bbb; }
.vertical-rule-left-light {
@include single-box-shadow(rgba(#fff, 1), 1px, 0, 0 inset);
border-left: 1px solid #bbb; }
.code-block-light { @extend .code-block; @extend .inset-panel-light; background: rgba(#fff, .5); }
.demo-light { @include box-shadow(rgba(#000, .3) 0 2px 10px inset, #fff 0 1px 2px 0px, rgba(#000, .05) 0 0 0 1px inset); }
.syntax-switch-light {
color: rgba(#000, .3); text-shadow: rgba(#fff, .08) 0 1px 0;
&:hover { color: #000; text-shadow: #fff 0 1px 0; }}
.theme-switch-light {
cursor: pointer;
a {color: rgba(#000, .2); text-shadow: rgba(#fff, 1) 0 1px 0;}
&:hover a { color: #000; } }
.heading-panel-light {
background: rgba(#fff, .5);
@include box-shadow(rgba(#000, .13) 0 0 0 1px inset);
a:hover { color: #000;
.arg { color: rgba(#000, .6); } }
}
.selected-marker-light {
a:before{ border-bottom-color: #bbbbbb; }
&:before { border-bottom-color: #fff; }
&:after { border-bottom-color: #e5e5e5; }
}
.doc-panel-light {
background: rgba(#000, .03);
text-shadow: rgba(#fff, .9) 0 1px 1px;
@include box-shadow(rgba(#000, .15) 0 0 0 1px inset);
}
.mixin-panel-light {
@extend .inset-panel-light;
background: rgba(#fff, .8);
td.gutter { background: rgba(#000, .08); .line { border-right: 2px solid rgba(#000, .2); color: rgba(#000, .4); } }
.container textarea { background: darken(#fff, .04); }
}
@mixin light-theme($docs: false) {
$page-bg: #ececec; // image-url('bg-light.jpg');
$text: #111;
$heading: #222;
$strong-text: #000;
$search: #666;
$link: #307eb6;
$nav-link: #444;
$code: #222;
$main-nav: #000;
$main-nav-selected: darken(#fb292d, 15);
$docs-nav-selected: $strong-text;
$module-nav-selected: $link;
$option-panel-border: rgba(#000, .2);
$option-panel-bg: #fff;
@include site-theme(light, $page-bg, $text, $strong-text, $heading, $link, $code, $search, $nav-link, $main-nav, $main-nav-selected, $option-panel-border, $option-panel-bg);
@if($docs){
@include docs-theme(light, $heading, $code, $nav-link, $docs-nav-selected, $module-nav-selected);
.syntaxhighlighter::-webkit-scrollbar-track-piece { -webkit-box-shadow: rgba(#000, .3) 0 0 3px 1px inset; background: rgba(#ddd, .8); }
.syntaxhighlighter::-webkit-scrollbar-thumb:horizontal { background: -webkit(linear-gradient(rgba(#000, 0) 40%, rgba(#000, .2))) #fff; -webkit-box-shadow: rgba(black, 0.2) 0px 0 0 1px inset; }
}
}

View File

@ -1,47 +0,0 @@
@font-face {
font-family: "pictos-web";
src: url('/otherfonts/pictos-web.eot');
src: local("?"), url('/otherfonts/pictos-web.woff') format('woff'), url('/otherfonts/pictos-web.ttf') format('truetype'), url('/otherfonts/pictos-web.svg#webfontIyfZbseF') format('svg');}
@include font-face("museosans-web", font-files("museosans-web.woff", woff, "museosans-web.ttf", truetype, "museosans-web.svg#webfontJHBEijmD", svg), 'museosans-web.eot');
.sans-font { font-family: 'Lucida Grande', Arial, sans-serif; }
.heading-font { font-family: 'Museo Sans', "museosans-web", 'serif'; }
.pictos { font-family: pictos, pictos-web; font-weight: normal; font-style: normal;}
.fixed-font { font-family: menlo, monaco, "andale mono", "courier new", fixed;}
#page {
line-height: 1.45em;
ol { list-style: outside decimal; padding-left: 2.5em; }
ol ol { list-style: outside lower-alpha; padding-left: 2.5em; }
ul, ol, dl { margin-bottom: 1.5em;}
p { margin-bottom: 1.2em;}
#{headings(1,2)}{ @extend .heading-font; line-height: 1.2em; }
h1 { font-size: 35px; margin-bottom: 15px; padding-bottom: 6px; }
h2 { font-size: 26px; margin: 1em 0 15px; padding-bottom: 6px; }
h3 { font-size: 18px; }
h4 { font-size: 18px; margin: .4em 0; }
ul { list-style: inside disc; }
dt { font-weight: bold; }
}
#page aside {
ul { list-style: none; margin-bottom: 1em;}
h2 { line-height: 1.3em; margin-top: 0; padding-top: 3px;}
}
em { font-style: italic; }
strong { font-weight: bold; }
#page > article {
ul ul { padding-left: 1em; }
position: relative;
h2 { font-size: 26px; margin: .5em 0 .6em;
padding: 1em 0 6px;}
hr + h2 { padding-top: 0; }
hr + h3, h4, h5 { margin-top: 0; }
}
dl.table dt, dl.table dd { display: inline-block; }
dg { display: block; margin-bottom: 1.5em; }
.warning { color: #c00; }

View File

@ -13,6 +13,7 @@
@import "partials/nav"; @import "partials/nav";
@import "partials/sidebar"; @import "partials/sidebar";
@import "partials/ads";
@import "partials/main"; @import "partials/main";
@import "partials/code"; @import "partials/code";
@import "partials/example"; @import "partials/example";

View File

@ -1,216 +0,0 @@
@mixin round_corners_custom($top, $right, $bottom, $left) {
-moz-border-radius: $top $right $bottom $left !important;
-webkit-border-radius: $top $right $bottom $left !important;
}
@mixin round_corners($radius) {
@include round_corners_custom($radius, $radius, $radius, $radius);
}
.syntaxhighlighter {
a,
div,
code,
table,
table td,
table tr,
table tbody,
table thead,
table caption,
textarea {
@include round_corners(0);
background: none !important;
border: 0 !important;
bottom: auto !important;
float: none !important;
height: auto !important;
left: auto !important;
line-height: 1.1em !important;
margin: 0 !important;
outline: 0 !important;
overflow: visible !important;
padding: 0 !important;
position: static !important;
right: auto !important;
text-align: left !important;
top: auto !important;
vertical-align: baseline !important;
width: auto !important;
box-sizing: content-box !important;
font: {
family: "Consolas", "Bitstream Vera Sans Mono", "Courier New", Courier, monospace !important;
weight: normal !important;
style: normal !important;
size: 1em !important;
}
min: {
// For IE8, FF & WebKit
height: inherit !important;
// For IE7
height: auto !important;
}
}
}
.syntaxhighlighter {
width: 100% !important;
margin: 1em 0 1em 0 !important;
position: relative !important;
overflow: auto !important;
font-size: 1em !important;
&.source { overflow: hidden !important; }
// set up bold and italic
.bold { font-weight: bold !important; }
.italic { font-style: italic !important; }
.line { white-space: pre !important; }
// main table and columns
table {
width: 100% !important;
caption {
text-align: left !important;
padding: .5em 0 0.5em 1em !important;
}
td.code {
width: 100% !important;
.container {
position: relative !important;
textarea {
box-sizing: border-box !important;
position: absolute !important;
left: 0 !important;
top: 0 !important;
width: 100% !important;
height: 100% !important;
border: none !important;
background: white !important;
padding-left: 1em !important;
overflow: hidden !important;
white-space: pre !important;
}
}
}
// middle spacing between line numbers and lines
td.gutter .line {
text-align: right !important;
padding: 0 0.5em 0 1em !important;
}
td.code .line {
padding: 0 1em !important;
}
}
&.nogutter {
td.code {
.container textarea, .line { padding-left: 0em !important; }
}
}
&.show { display: block !important; }
// Adjust some properties when collapsed
&.collapsed {
table { display: none !important; }
.toolbar {
padding: 0.1em 0.8em 0em 0.8em !important;
font-size: 1em !important;
position: static !important;
width: auto !important;
height: auto !important;
span {
display: inline !important;
margin-right: 1em !important;
a {
padding: 0 !important;
display: none !important;
&.expandSource { display: inline !important; }
}
}
}
}
// Styles for the toolbar
.toolbar {
position: absolute !important;
right: 1px !important;
top: 1px !important;
width: 11px !important;
height: 11px !important;
font-size: 10px !important;
z-index: 10 !important;
span.title { display: inline !important; }
a {
display: block !important;
text-align: center !important;
text-decoration: none !important;
padding-top: 1px !important;
&.expandSource { display: none !important; }
}
}
&.ie {
font-size: .9em !important;
padding: 1px 0 1px 0 !important;
.toolbar {
line-height: 8px !important;
a {
padding-top: 0px !important;
}
}
}
// Print view.
// Colors are based on the default theme without background.
&.printing {
.line.alt1 .content,
.line.alt2 .content,
.line.highlighted .number,
.line.highlighted.alt1 .content,
.line.highlighted.alt2 .content { background: none !important; }
// Gutter line numbers
.line {
.number { color: #bbbbbb !important; }
// Add border to the lines
.content { color: black !important; }
}
// Toolbar when visible
.toolbar { display: none !important; }
a { text-decoration: none !important; }
.plain, .plain a { color: black !important; }
.comments, .comments a { color: #008200 !important; }
.string, .string a { color: blue !important; }
.keyword {
color: #006699 !important;
font-weight: bold !important;
}
.preprocessor { color: gray !important; }
.variable { color: #aa7700 !important; }
.value { color: #009900 !important; }
.functions { color: #ff1493 !important; }
.constants { color: #0066cc !important; }
.script { font-weight: bold !important; }
.color1, .color1 a { color: gray !important; }
.color2, .color2 a { color: #ff1493 !important; }
.color3, .color3 a { color: red !important; }
.break, .break a { color: black !important; }
}
}

View File

@ -1,113 +0,0 @@
// Dark Theme
$background: none;
$line_highlighted_background: #323E41;
$line_highlighted_number: #b9bdb6;
$gutter_text: #afafaf;
$gutter_border_color: rgba(#fff, .15);
$toolbar_collapsed_a: #5ba1cf;
$toolbar_collapsed_a_hover: #5ce638;
$toolbar_collapsed_background: #000;
$toolbar_a: #fff;
$toolbar_a_hover: #e0e8ff;
$code_plain: #dadbb1;
$code_comments: #878a85;
$code_string: #64b041;
$code_keyword: #6cc7eb;
$code_preprocessor: #cd5c57;
$code_variable: $code_keyword;
$code_value: #ffa0a0;
$code_functions: #3d95e6;
$code_constants: #e0e8ff;
$code_script: $code_keyword;
$code_script_background: none;
$code_color1: #b0b76b;
$code_color2: #98f77a;
$code_color3: #ffaa3e;
$code_color4: $code_plain;
//@import "theme_template.scss";
// Interface elements.
html.dark .syntaxhighlighter {
// Actual syntax highlighter colors.
.plain, .plain a { color: $code_plain; }
.comments, .comments a { color: $code_comments; }
.string, .string a { color: $code_string; }
.keyword { color: $code_keyword; }
.preprocessor { color: $code_preprocessor; }
.variable { color: $code_variable; }
.value { color: $code_value; }
.functions { color: $code_functions; }
.constants { color: $code_constants; }
.script {
font-weight: bold;
color: $code_script;
background-color: $code_script_background;
}
.color1, .color1 a { color: $code_color1; }
.color2, .color2 a { color: $code_color2; }
.color3, .color3 a { color: $code_color3; }
.color4, .color4 a { color: $code_color4; }
}
// Light Theme
$background: none;
$line_highlighted_background: #c3defe;
$line_highlighted_number: #fff;
$gutter_text: #787878;
$gutter_border_color: #d4d0c8;
$toolbar_collapsed_a: #3f5fbf;
$toolbar_collapsed_a_hover: #aa7700;
$toolbar_collapsed_background: #fff;
$toolbar_a: #a0a0a0;
$toolbar_a_hover: red;
$code_plain: black;
$code_comments: #3f5fbf;
$code_string: #4fa33f;
$code_keyword: #7f0055;
$code_preprocessor: #006699;
$code_variable: #aa7700;
$code_value: #4fa33f;
$code_functions: #b553ba;
$code_constants: #0066cc;
$code_color1: gray;
$code_color2: #ca6436;
$code_color3: red;
$code_color4: $code_plain;
// Interface elements.
html.light .syntaxhighlighter {
// Actual syntax highlighter colors.
.plain, .plain a { color: $code_plain; }
.comments, .comments a { color: $code_comments; }
.string, .string a { color: $code_string; }
.keyword { color: $code_keyword; }
.preprocessor { color: $code_preprocessor; }
.variable { color: $code_variable; }
.value { color: $code_value; }
.functions { color: $code_functions; }
.constants { color: $code_constants; }
.script {
font-weight: bold;
color: $code_script;
background-color: $code_script_background;
}
.color1, .color1 a { color: $code_color1; }
.color2, .color2 a { color: $code_color2; }
.color3, .color3 a { color: $code_color3; }
.color4, .color4 a { color: $code_color4; }
}

View File

@ -1,8 +0,0 @@
// Default Syntax Highlighter theme.
//@import "shCore.scss";
@import "shThemeRDark.scss";
/*.syntaxhighlighter {
.keyword { font-weight: bold !important; }
}*/

View File

@ -1,120 +0,0 @@
$background: white !default;
$line_alt1_background: $background !default;
$line_alt2_background: $background !default;
$line_highlighted_background: #e0e0e0 !default;
$line_highlighted_number: black !default;
$gutter_text: #afafaf !default;
$gutter_border_color: #6ce26c !default;
$gutter_border: 3px solid $gutter_border_color !default;
$toolbar_collapsed_a: #00f !default;
$toolbar_collapsed_a_hover: #f00 !default;
$toolbar_collapsed_background: #fff !default;
$toolbar_collapsed_border: 1px solid $gutter_border_color !default;
$toolbar_a: #fff !default;
$toolbar_a_hover: #000 !default;
$toolbar_background: $gutter_border_color !default;
$toolbar_border: none !default;
$code_plain: black !default;
$code_comments: #008200 !default;
$code_string: blue !default;
$code_keyword: #006699 !default;
$code_preprocessor: gray !default;
$code_variable: #aa7700 !default;
$code_value: #009900 !default;
$code_functions: #ff1493 !default;
$code_constants: #0066cc !default;
$code_script: $code_keyword !default;
$code_script_background: none !default;
$code_color1: gray !default;
$code_color2: #ff1493 !default;
$code_color3: red !default;
$caption_color: $code_plain !default;
// Interface elements.
.syntaxhighlighter {
background-color: $background !important;
// Highlighed line number
.line {
&.alt1 { background-color: $line_alt1_background !important; }
&.alt2 { background-color: $line_alt2_background !important; }
// Highlighed line
&.highlighted {
&.alt1, &.alt2 { background-color: $line_highlighted_background !important; }
&.number { color: $line_highlighted_number !important; }
}
}
table {
caption {
color: $caption_color !important;
}
}
// Add border to the lines
.gutter {
color: $gutter_text !important;
.line {
border-right: $gutter_border !important;
&.highlighted {
background-color: $gutter_border_color !important;
color: $background !important;
}
}
}
&.printing .line .content { border: none !important; }
&.collapsed {
overflow: visible !important;
.toolbar {
color: $toolbar_collapsed_a !important;
background: $toolbar_collapsed_background !important;
border: $toolbar_collapsed_border !important;
a {
color: $toolbar_collapsed_a !important;
&:hover { color: $toolbar_collapsed_a_hover !important; }
}
}
}
.toolbar {
color: $toolbar_a !important;
background: $toolbar_background !important;
border: $toolbar_border !important;
a {
color: $toolbar_a !important;
&:hover { color: $toolbar_a_hover !important; }
}
}
// Actual syntax highlighter colors.
.plain, .plain a { color: $code_plain !important; }
.comments, .comments a { color: $code_comments !important; }
.string, .string a { color: $code_string !important; }
.keyword { color: $code_keyword !important; }
.preprocessor { color: $code_preprocessor !important; }
.variable { color: $code_variable !important; }
.value { color: $code_value !important; }
.functions { color: $code_functions !important; }
.constants { color: $code_constants !important; }
.script {
font-weight: bold !important;
color: $code_script !important;
background-color: $code_script_background !important;
}
.color1, .color1 a { color: $code_color1 !important; }
.color2, .color2 a { color: $code_color2 !important; }
.color3, .color3 a { color: $code_color3 !important; }
}

View File

@ -5,6 +5,8 @@
%meta{:charset => "utf-8"}/ %meta{:charset => "utf-8"}/
%meta{:content => "chrome=1", "http-equiv" => "X-UA-Compatible"} %meta{:content => "chrome=1", "http-equiv" => "X-UA-Compatible"}
%meta(name="viewport" content="width=780") %meta(name="viewport" content="width=780")
- if ENV["BETA"]
%meta(name="robots" content="noindex")
%link(rel="shortcut icon" type="image/png" href="/images/compass_icon.png") %link(rel="shortcut icon" type="image/png" href="/images/compass_icon.png")
%link{:href=>"/blog/atom.xml", :rel=>"alternate", :title=>"Compass Blog", :type=>"application/atom+xml"} %link{:href=>"/blog/atom.xml", :rel=>"alternate", :title=>"Compass Blog", :type=>"application/atom+xml"}
%title %title

View File

@ -4,6 +4,8 @@
%meta{:charset => "utf-8"}/ %meta{:charset => "utf-8"}/
%meta{:content => "chrome=1", "http-equiv" => "X-UA-Compatible"} %meta{:content => "chrome=1", "http-equiv" => "X-UA-Compatible"}
%meta(name="viewport" content="width=780") %meta(name="viewport" content="width=780")
- if ENV["BETA"]
%meta(name="robots" content="noindex")
%link(rel="shortcut icon" type="image/png" href="/images/compass_icon.png") %link(rel="shortcut icon" type="image/png" href="/images/compass_icon.png")
%title %title
#{@item[:title]} | Compass Documentation #{@item[:title]} | Compass Documentation

View File

@ -4,10 +4,12 @@
%meta{:charset => "utf-8"}/ %meta{:charset => "utf-8"}/
%meta{:content => "chrome=1", "http-equiv" => "X-UA-Compatible"} %meta{:content => "chrome=1", "http-equiv" => "X-UA-Compatible"}
%meta(name="viewport" content="width=810") %meta(name="viewport" content="width=810")
- if ENV["BETA"]
%meta(name="robots" content="noindex")
%link(rel="shortcut icon" type="image/png" href="/images/compass_icon.png") %link(rel="shortcut icon" type="image/png" href="/images/compass_icon.png")
%title %title
#{@item[:title]} | Compass Documentation #{@item[:title]} | Compass Documentation
%link{:charset => "utf-8", :href => "/stylesheets/home.css", :rel => "stylesheet", :type => "text/css"} %link{:charset => "utf-8", :href => "/stylesheets/home.css?v=1", :rel => "stylesheet", :type => "text/css"}
= render "partials/js-core" = render "partials/js-core"
/[if lte IE 8] /[if lte IE 8]
%link{:charset => "utf-8", :href => "/stylesheets/ie.css", :rel => "stylesheet", :type => "text/css"} %link{:charset => "utf-8", :href => "/stylesheets/ie.css", :rel => "stylesheet", :type => "text/css"}

View File

@ -0,0 +1,4 @@
.advertisement
<script type="text/javascript">(function(){ var fusion = document.createElement('script'); fusion.src = window.location.protocol + '//adn.fusionads.net/api/1.0/ad.js?zoneid=158&rand=' + Math.floor(Math.random()*9999999); fusion.async = true; (document.head || document.getElementsByTagName('head')[0]).appendChild(fusion); })(); $(function(){ $(".advertisement").addClass("visible")});</script>
#fusion_ad
%a.pagerankspam(href="http://fusionads.net") Powered by Fusion

View File

@ -4,7 +4,7 @@
%h1 Demo: #{@item[:title]} %h1 Demo: #{@item[:title]}
#demo= example_html #demo= example_html
= yield = yield if block_given?
#how #how
%section#markup %section#markup

View File

@ -0,0 +1,13 @@
- if (sels = selectors(@item)).any?
%h2 Selectors
- sels.each do |selector|
%a{:href=>"#selector-#{selector.identifier}-source", :rel => "view source"} view source
%h3.selector{:id=>"selector-#{selector.identifier}"}
%a.permalink{:href => "#selector-#{selector.identifier}"}= selector.name
.selector-source{:id=>"selector-#{selector.identifier}-source"}
%pre.source-code.sass= selector.to_sass
%pre.source-code.scss= selector.to_scss
.source-documentation
= format_doc(selector.comment)

View File

@ -3,3 +3,6 @@
- sidebar_item ||= sidebar_item(@item) - sidebar_item ||= sidebar_item(@item)
- sidebar_item ||= reference_item(:stylesheet => @default_stylesheet) - sidebar_item ||= reference_item(:stylesheet => @default_stylesheet)
%ul= item_tree(sidebar_item, :depth => 1, :omit_self => get_var(:omit_self){true}, :heading_level => get_var(:heading_level){1}, :heading_depth => get_var(:heading_depth){10}) %ul= item_tree(sidebar_item, :depth => 1, :omit_self => get_var(:omit_self){true}, :heading_level => get_var(:heading_level){1}, :heading_depth => get_var(:heading_depth){10})
= render 'partials/ad'

View File

@ -8,7 +8,7 @@
%p.beta %p.beta
This module is fairly new and is currently in BETA (&beta;). This module is fairly new and is currently in BETA (&beta;).
= yield = yield if block_given?
%p %p
This file can be imported using: This file can be imported using:
@ -23,3 +23,5 @@
= render "partials/reference/functions" = render "partials/reference/functions"
= render "partials/reference/mixins" = render "partials/reference/mixins"
= render "partials/reference/selectors"

View File

@ -4,6 +4,8 @@
%meta{:charset => "utf-8"}/ %meta{:charset => "utf-8"}/
%meta{:content => "chrome=1", "http-equiv" => "X-UA-Compatible"} %meta{:content => "chrome=1", "http-equiv" => "X-UA-Compatible"}
%meta(name="viewport" content="width=780") %meta(name="viewport" content="width=780")
- if ENV["BETA"]
%meta(name="robots" content="noindex")
%link(rel="shortcut icon" type="image/png" href="/images/compass_icon.png") %link(rel="shortcut icon" type="image/png" href="/images/compass_icon.png")
%title %title
#{@item[:title]} | Compass Documentation #{@item[:title]} | Compass Documentation

View File

@ -1,6 +1,7 @@
# All files in the 'lib' directory will be loaded # All files in the 'lib' directory will be loaded
# before nanoc starts compiling. # before nanoc starts compiling.
require 'erb'
require 'active_support/inflector'
include Nanoc3::Helpers::LinkTo include Nanoc3::Helpers::LinkTo
include Nanoc3::Helpers::Capturing include Nanoc3::Helpers::Capturing
include Nanoc3::Helpers::Rendering include Nanoc3::Helpers::Rendering
@ -137,3 +138,16 @@ def long_compass_version
require 'compass/commands' require 'compass/commands'
Compass::Commands::PrintVersion.long_output_string Compass::Commands::PrintVersion.long_output_string
end end
def sprite_tutorial_links(index=false)
string = <<-ERB
<% unless index %>
* [Sprite Tutorial Index](/help/tutorials/spriting/)
<% end %>
<% Dir["./content/help/tutorials/spriting/**/*.markdown"].sort.each do |file| %>
* [<%= File.basename(file, '.markdown').gsub('-', ' ').titleize %>](/help/tutorials/spriting/<%= File.basename(file, '.markdown') %>)
<% end %>
ERB
::ERB.new(string).result(binding)
end

View File

@ -118,6 +118,31 @@ def mixins(item)
mixins.reject{|m| m.comment =~ /@private/} mixins.reject{|m| m.comment =~ /@private/}
end end
def selectors(item)
sass_tree = tree(item)
# Visitors::CheckNesting.visit(sass_tree)
# sass_tree = Visitors::Perform.visit(sass_tree)
selectors = []
comment = nil
sass_tree.children.each do |child|
case child
when Sass::Tree::RuleNode
child.comment = comment && Sass::Tree::CommentNode.clean(comment)
comment = nil
selectors << child
when Sass::Tree::CommentNode
comment ||= ""
comment << "\n" unless comment.empty?
comment << child.docstring
else
comment = nil
end
end
selectors.reject!{|s| s.comment =~ /@private/}
# selectors.select!{|s| s.comment.strip.size > 0} # this would cause only documented selectors to be output
selectors
end
def functions(item) def functions(item)
sass_tree = tree(item) sass_tree = tree(item)
functions = [] functions = []
@ -183,6 +208,12 @@ def all_functions
end end
end end
# Sass Only Functions from 3.1.10 (Brainy Betty)
# Not as elegant, but does the trick.
def sass_functions
[:rgb, :rgba, :hsl, :hsla, :red, :green, :blue, :hue, :saturation, :lightness, :alpha, :opacity, :opacify, :fade_in, :transparentize, :fade_out, :lighten, :darken, :saturate, :desaturate, :adjust_hue, :adjust_color, :scale_color, :change_color, :mix, :grayscale, :complement, :invert, :unquote, :quote, :type_of, :unit, :unitless, :comparable, :percentage, :round, :ceil, :floor, :abs, :length, :nth, :join, :append, :zip, :index, :if]
end
def example_items def example_items
@site.cached("examples") do @site.cached("examples") do
@items.select do |i| @items.select do |i|

View File

@ -1,6 +1,20 @@
require 'sass' require 'sass'
module Sass module Sass
module Tree module Tree
class RuleNode
attr_accessor :comment unless method_defined? :comment
def identifier
@identifier ||= begin
id = name.gsub(/[^a-zA-Z]+/,"-").downcase
id = id[1..-1] if id[0..0] == "-"
id = id[0..-2] if id[-1..-1] == "-"
id
end
end
def name
@name ||= rule.map{|part| Sass::Script::Node === part ? "\#{#{part.to_sass}}" : part}.join('')
end
end
class VariableNode < Node class VariableNode < Node
attr_accessor :name unless method_defined? :name attr_accessor :name unless method_defined? :name
attr_accessor :expr unless method_defined? :expr attr_accessor :expr unless method_defined? :expr
@ -86,7 +100,9 @@ module Sass
docstring.gsub(/@doc off(.*?)@doc on/m, '') docstring.gsub(/@doc off(.*?)@doc on/m, '')
end end
def docstring def docstring
value.gsub(PRE_COMMENT, '').gsub(POST_COMMENT, '') v = value
v = v.join("\n") if v.respond_to?(:join)
v.gsub(PRE_COMMENT, '').gsub(POST_COMMENT, '')
end end
def doc def doc
if value == "@doc off" if value == "@doc off"

View File

@ -9,8 +9,9 @@ def fetch(uri_str, limit = 10)
url = URI.parse(uri_str) url = URI.parse(uri_str)
http = Net::HTTP.new(url.host, url.port) http = Net::HTTP.new(url.host, url.port)
http.open_timeout = 2 http.open_timeout = 10
http.read_timeout = 30 http.read_timeout = 30
http.use_ssl = true
response = http.start do |http| response = http.start do |http|
puts "getting #{url.path}" puts "getting #{url.path}"
http.request_get(url.path) http.request_get(url.path)
@ -25,7 +26,7 @@ def fetch(uri_str, limit = 10)
end end
def install_from_github(user, project, ext_name, branch = "master", working_directory = Dir.pwd) def install_from_github(user, project, ext_name, branch = "master", working_directory = Dir.pwd)
download_link = "http://github.com/#{user}/#{project}/zipball/#{branch}" download_link = "https://github.com/#{user}/#{project}/zipball/#{branch}"
extdir = File.join(working_directory,'extensions') extdir = File.join(working_directory,'extensions')
if !File.exists?("#{extdir}/#{ext_name}") if !File.exists?("#{extdir}/#{ext_name}")

View File

@ -1,4 +1,4 @@
require File.join(File.dirname(__FILE__), '..', 'downloader') require File.join(File.dirname(__FILE__), '..', 'downloader')
install_from_github('chriseppstein', 'compass-960-plugin', 'ninesixty') install_from_github('nextmat', 'compass-960-plugin', 'ninesixty')

View File

@ -77,16 +77,6 @@ Feature: Command Line
Then an error message is printed out: A bare project cannot be created when a framework is specified. Then an error message is printed out: A bare project cannot be created when a framework is specified.
And the command exits with a non-zero error code And the command exits with a non-zero error code
Scenario: Initializing a rails project
Given ruby supports fork
Given I'm in a newly created rails project: my_rails_project
When I initialize a project using: compass init rails --sass-dir app/stylesheets --css-dir public/stylesheets/compiled
Then a config file config/compass.rb is reported created
Then a config file config/compass.rb is created
And a sass file app/stylesheets/screen.scss is created
And a sass file app/stylesheets/print.scss is created
And a sass file app/stylesheets/ie.scss is created
Scenario: Compiling an existing project. Scenario: Compiling an existing project.
Given I am using the existing project in test/fixtures/stylesheets/compass Given I am using the existing project in test/fixtures/stylesheets/compass
When I run: compass compile When I run: compass compile
@ -161,6 +151,7 @@ Feature: Command Line
| watch | | watch |
And I should see the following "other" commands: And I should see the following "other" commands:
| config | | config |
| extension |
| frameworks | | frameworks |
| grid-img | | grid-img |
| help | | help |
@ -200,7 +191,7 @@ Feature: Command Line
| tmp/box_shadow.css | | tmp/box_shadow.css |
| tmp/columns.css | | tmp/columns.css |
| tmp/fonts.css | | tmp/fonts.css |
| images/flag-s03c3b29b35.png | | images/flag-s4798b5a210.png |
And the following files are removed: And the following files are removed:
| .sass-cache/ | | .sass-cache/ |
| tmp/border_radius.css | | tmp/border_radius.css |
@ -208,7 +199,7 @@ Feature: Command Line
| tmp/box_shadow.css | | tmp/box_shadow.css |
| tmp/columns.css | | tmp/columns.css |
| tmp/fonts.css | | tmp/fonts.css |
| images/flag-s03c3b29b35.png | | images/flag-s4798b5a210.png |
Scenario: Watching a project for changes Scenario: Watching a project for changes
Given ruby supports fork Given ruby supports fork
@ -277,21 +268,20 @@ Feature: Command Line
Given I am using the existing project in test/fixtures/stylesheets/compass Given I am using the existing project in test/fixtures/stylesheets/compass
When I run: compass stats When I run: compass stats
Then I am told statistics for each file: Then I am told statistics for each file:
| Filename | Rules | Properties | Mixins Defs | Mixins Used | CSS Rules | CSS Properties | | Filename | Rules | Properties | Mixins Defs | Mixins Used | Filesize | CSS Selectors | CSS Properties | CSS Filesize |
| sass/border_radius.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ | | sass/border_radius.scss | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| sass/box.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ | | sass/box.sass | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| sass/fonts.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ | | sass/fonts.sass | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| sass/gradients.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ | | sass/gradients.sass | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| sass/image_size.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ | | sass/image_size.sass | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| sass/images.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ | | sass/images.scss | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| sass/layout.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ | | sass/layout.sass | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| sass/legacy_clearfix.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ | | sass/legacy_clearfix.scss | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| sass/lists.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ | | sass/lists.scss | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| sass/print.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ | | sass/print.sass | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| sass/reset.sass | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ | | sass/reset.sass | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| sass/utilities.scss | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ | | sass/utilities.scss | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| ------------------------- | ----- | ---------- | -------------- | ----------- | --------- | -------------- | | Total.* | \d+ | \d+ | \d+ | \d+ | \d+ K?B | \d+ | \d+ | \d+ K?B |
| Total.* | \d+ | \d+ | \d+ | \d+ | \d+ | \d+ |
@listframeworks @listframeworks
Scenario: List frameworks registered with compass Scenario: List frameworks registered with compass

Some files were not shown because too many files have changed in this diff Show More