Commit Graph

2068 Commits

Author SHA1 Message Date
Chris Eppstein
02570b445b update ignores. 2010-02-07 09:10:14 -08:00
Christoffer Eliesen
c4c9be0256 Take margins into account in liquid grid.
The previous version of liquid grid would not take margins into proper
account. With this patch the margins are a correct percentage of the
container, and adding multiple margins / columns together should add up
to just about 100% (not entirely accurate, but very close).

The math is as follows:

With the previous version, you get these numbers:
4.173% grid width * 24 columns = 100.152%, which due to rounding 'fixes'
in the template becomes exactly 100%. However, this is without any margins.
Once you add margins, you exceed 100%, rendering margins unusable. To add
to the confusion, the margins are not a percentage of the width, but instead
in 'em' units, making it very difficult to keep the entire grid from getting
beyond 100% in width once you add margins.

With this patch, you get these numbers:
(3.167% grid width + 1.042% margin) * 24 columns = 101.1016%. Since you
don't use any margin for the last column, you subtract one margin and end up
with 99.974%. Optimally this number would be 100.000%, but the 0.026% error
is difficult to remove, and an acceptable compromise in my opinion.

In summary, this patch enables margins to be used with the liquid grid,
which is the expected behaviour.
2010-02-06 14:14:30 +01:00
Cody Robbins
9a0b2f5bcd [Compass Core] Support :first-child and :last-child pseudo selectors for +horizontal-list. 2010-02-05 13:50:42 -08:00
Johan Ronsse
7dc9d66fbf Ported following pages from the github wiki to the docs: Adding Frameworks to Compass, Supported Frameworks, Compass Plugins. Added some styles where necessary so the content was readable. Used html2haml with some manual adjustment so likely not super perfect. 2010-02-05 00:13:57 +01:00
Johan Ronsse
4bc02bc53e Corrected metadata for current css3 examples so they show up in reference docs 2010-02-04 23:03:33 +01:00
Johan Ronsse
f549f0c8da Make the docs a little more nicer looking to work in 2010-02-04 22:38:30 +01:00
Johan Ronsse
5569b12f80 Merge remote branch 'chris/docs' into docs
Conflicts:
	doc-src/content/examples/compass/css3/columns/stylesheet.sass
2010-02-04 00:52:31 +01:00
Johan Ronsse
13af3a7521 * Added examples for CSS3 transforms, transitions and gradients.
* Updated every CSS3 example to follow doc conventions: no tabs, spaces(2), colon after property (e.g. background: red), id naming like #id-name, no camelCasing
2010-02-04 00:41:21 +01:00
Chris Eppstein
575d1cfb0f cleanup some display of mixin definitions. 2010-02-03 08:21:30 -08:00
Chris Eppstein
754533022d Cleanup some more titles. 2010-02-03 08:16:12 -08:00
Chris Eppstein
1df482670f silence a compilation warning 2010-02-03 08:15:33 -08:00
Chris Eppstein
e0abcf797f Merge commit 'wolfr/docs' into docs
* commit 'wolfr/docs':
  Added examples for compass/css3: border radius, box shadow, box sizing, columns, inline block, opacity, text shadow. Slighty modified example CSS for better display.
  Formatting changes only; markdown `code` backticks instead of <code>; newlines adjustment in -box-sizing
  Clarify documentation README so it is newbie friendly. Added new section on setting up the docs. Moved setup-related items to that section. Kept Chris' original section on structure and howtos, getting around the docs.
2010-02-03 08:04:11 -08:00
Chris Eppstein
467bc9ebd7 List all the reference content in the sidebar. 2010-02-03 08:02:27 -08:00
Johan Ronsse
acf2182d87 Added examples for compass/css3: border radius, box shadow, box sizing, columns, inline block, opacity, text shadow. Slighty modified example CSS for better display. 2010-02-03 00:11:58 +01:00
Johan Ronsse
244bc0d944 Formatting changes only; markdown code backticks instead of <code>; newlines adjustment in -box-sizing 2010-02-01 23:47:36 +01:00
Johan Ronsse
3d8bdcf152 Clarify documentation README so it is newbie friendly. Added new section on setting up the docs. Moved setup-related items to that section. Kept Chris' original section on structure and howtos, getting around the docs. 2010-02-01 23:00:32 +01:00
Johan Ronsse
de2ece8de4 Merge remote branch 'chris/docs' into docs 2010-02-01 00:45:42 +01:00
Chris Eppstein
76e2e5217b Make the docs more righter. 2010-01-31 10:01:45 -08:00
Chris Eppstein
b1fa724f66 Simple docs homepage 2010-01-31 10:01:04 -08:00
Chris Eppstein
545525deb7 Tell compass we're under /docs 2010-01-31 09:43:19 -08:00
Johan Ronsse
5dec85f59f Merge remote branch 'chris/docs' into docs 2010-01-31 17:33:30 +01:00
Chris Eppstein
6c6acc2126 Merge commit 'wolfr/docs' into docs
* commit 'wolfr/docs':
  Updated documentation for CSS3 module [multi line comment]
  Added descripton for box shadow mixin and updated box-shadow sass file so it gets parsed through markdown correctly
2010-01-31 08:13:51 -08:00
Chris Eppstein
8585cbbecc Use the right path in this example. 2010-01-31 08:07:41 -08:00
Johan Ronsse
44b8c40619 Updated documentation for CSS3 module [multi line comment]
* Wrote a description for the CSS3 module.
  * Wrote a description for every single import in the CSS3 module.
  * Wrote a description for every single mixin in the CSS3 module.
  * Updated sass files to reflect parsing through markdown in the docs.
  * Added missing inline documentation to certain files e.g. _columns.sass.
  * ! Did not modify any mixin
2010-01-31 16:59:25 +01:00
Chris Eppstein
853169f616 two column layout example for blueprint. 2010-01-30 18:01:12 -08:00
Johan Ronsse
64b8f7cab8 Added descripton for box shadow mixin and updated box-shadow sass file so it gets parsed through markdown correctly 2010-01-31 02:09:14 +01:00
Chris Eppstein
5e48e074de document rake watch in the README 2010-01-30 17:06:13 -08:00
Chris Eppstein
033326e9e9 Merge commit 'wolfr/docs' into docs
* commit 'wolfr/docs':
  Added description for the css border-radius mixin
2010-01-30 16:32:57 -08:00
Chris Eppstein
3a1735694f better error reporting using rake watch 2010-01-30 16:32:00 -08:00
Chris Eppstein
72b084ccbe Examples can now be targeted generally at a stylesheet instead of at
only mixins.
2010-01-30 16:31:36 -08:00
Chris Eppstein
41183a2f85 Blueprint should use the shared partial here. 2010-01-30 16:19:33 -08:00
Johan Ronsse
213eb7bfcd Added description for the css border-radius mixin 2010-01-31 01:06:16 +01:00
Chris Eppstein
4fa7fdd14b Speed up compilation a bit. 2010-01-30 15:50:25 -08:00
Chris Eppstein
e71e267eab Make the Gemfile and docs reflect reality. 2010-01-30 14:58:40 -08:00
Chris Eppstein
bdae41bf81 Not using susy at the moment. 2010-01-30 14:54:40 -08:00
Chris Eppstein
6470c6093d improvements to the example generator 2010-01-30 12:39:56 -08:00
Chris Eppstein
932ae8820d new app prefix on the output. 2010-01-30 12:38:15 -08:00
Chris Eppstein
960c665a7d fix some sass output for unary operators. 2010-01-30 12:37:25 -08:00
Chris Eppstein
b6f7a9ea86 a fssm-based watcher so that browsing is snappier. run rake watch to use it. 2010-01-30 12:29:22 -08:00
Chris Eppstein
03c3c2b310 Only parenthize an operation if it's needed. 2010-01-28 10:01:16 -08:00
Chris Eppstein
6b4290472c Fix some operator output in to_sass. 2010-01-28 09:43:27 -08:00
Chris Eppstein
b9af766886 Handle pass-thru @if nodes. 2010-01-28 09:18:32 -08:00
Chris Eppstein
658e543c0d Put the constants on every page too. 2010-01-28 09:18:08 -08:00
Chris Eppstein
fb998794ae put the docs in the docs folder. 2010-01-28 01:11:42 -08:00
Chris Eppstein
d0846d76c5 Handle relative imports 2010-01-28 00:37:17 -08:00
Chris Eppstein
f62f330073 Blueprint reference scaffolds. 2010-01-28 00:07:44 -08:00
Chris Eppstein
f9c73866a7 default reference documentation for compass 2010-01-28 00:02:02 -08:00
Chris Eppstein
3dfd369e88 Directive nodes need to_sass too. 2010-01-28 00:01:23 -08:00
Chris Eppstein
20e24dadf7 Link to the top pages of each reference 2010-01-28 00:00:56 -08:00
Chris Eppstein
18dec52e69 The main page for the compass reference. 2010-01-27 23:47:00 -08:00