Commit Graph

60 Commits

Author SHA1 Message Date
Chris Eppstein
bc27541378 New framework discovery mechanism: Compass can now load any number of
frameworks by passing a directory that contains those frameworks. Each
framework can choose to adhere to the naming convention of providing a
'stylesheets' directory and a 'templates' directory, or it can register
itself by providing a ruby file at one of the following locations:

<plugin>/compass_init.rb
<plugin>/lib/<plugin>.rb
<plugin>/<plugin>.rb

The first file found in the above order will be required. The framework
should register itself there using the Compass::Frameworks.register method.
2009-08-29 15:14:51 -07:00
John Debs
8679a926f1 [Compass Core] Fixes to +sticky-footer mixin for IE6.
Added two rules (':height auto !important' and ':height 100%') to the !root_selector of the sticky-footer mixin so that it also works with IE6.
Tested and working with Firefox 3.5, Safari 4, Chrome 3, and IE6.
2009-08-29 13:31:42 -07:00
Gabriel Mansour
a1bb1a9691 [Compass Core] There is no longer any outline on unstyled links in the :active and :focused states. 2009-08-29 13:24:37 -07:00
Chris Eppstein
d7636bae4d [Compass Core] Use the elements_of_type() helper function to enumerate the elements of a particular display type. No functional change. 2009-08-29 13:20:30 -07:00
Eric Meyer
6870d21814 css3 and inline-block patches 2009-08-29 13:20:30 -07:00
Chris Eppstein
2eba93858b [Compass Core] Extract css3 compatibility mixins from the general module
to the new compass/utilities/css3 module. If you were explicitly importing
compass/utilities/general, compass/utilities/general/inline_block or
compass/utilities/general/opacity to access the opacity or
inline-block mixins, you'll need to update your imports.
2009-08-29 13:20:29 -07:00
Brandon Mathis
0d3e5fb301 new rounded corners mixin makes rounded corners easy (for browsers that support them) and allows rounding all corners, corners on one side, or single corners.
changed rounded corners mixin to border radius mixin, and changed the functions to match the border-radius CSS3 standard
2009-08-29 13:20:11 -07:00
Brandon Mathis
851f001756 the sprite mixin now has new functions which enable style grouping and require fewer arguments for non-default cases 2009-08-29 13:19:36 -07:00
Chris Eppstein
74141399af [Compass Core] +opaque and +transparent mixins for convenience. Built on top of the opacity mixin. 2009-08-29 13:19:35 -07:00
Brandon Mathis
31bdbe815b [Compass Core] New mixin: +opacity(amount). Provides cross-browser css opacity.
Amount should be between 0 and 1, where 0 is transparent and 1 is opaque.
2009-08-29 12:29:02 -07:00
Brandon Mathis
60ac9dba0e [Compass Core] Bug fix to sprites: fixed width and height assignments for x and y position variables 2009-08-22 08:25:39 -07:00
Chris Eppstein
e277ed2cd3 [Compass Core] Fixed a bug in alternating_rows_and_columns. Improper nesting caused some styles to be improperly rendered. 2009-07-21 11:32:34 -07:00
Chris Eppstein
3d909ceda9 [Compass Core] Cross browser ellipsis mixin.
Since this requires the installation of an additional xml file for
firefox support, it is provided as a pattern.

To install:
compass -p ellipsis

To use:
Mix +ellipsis into a selector targeting the textual element that will
truncate via ellipsis. By default, ellipsis text is set tono-wrap. Pass
false as the first argument if you don't want that.

Note:
Firefox is the lame browser in this respect, it requires a lot of bending
over backwards and has many quirky behaviors. Please read the blog post at
http://mattsnider.com/css/css-string-truncation-with-ellipsis/ for a full
explanation of the issues. Also note that ellipsis text is white-space
sensitive in Firefox, an issue that is sure to affect Haml users more than
most.
2009-07-06 07:18:25 -07:00
tdreyno
1f21d63091 [Compass Core] Initial css-sprite implementation. 2009-06-20 22:34:38 -07:00
Chris Eppstein
4533a00085 [Compass Core] More clear comments describing how to use the +replace-text mixin. Closes #16. 2009-06-20 21:27:47 -07:00
Chris Eppstein
27b821617a [Compass Core] +reset-display mixin and Sass Extensions for appending selectors and enumerating the elements for a given display type. 2009-06-20 18:06:47 -07:00
Chris Eppstein
dc982841cf [Compass Core] Added a +reset-html5 mixin that can be used to reset new HTML5 elements and add default rendering for them in browsers that do not support them.
Credit: http://jacobrask.net/blog/2009/html5-css-reset/
2009-06-20 17:22:22 -07:00
Noel Gomez
2126240a1a [Compass Core] [Blueprint] The compass reset is now based on Eric Meyer's reset. The old compass/reset.sass was moved to blueprint/reset.sass -- the original source for it. 2009-06-20 17:16:13 -07:00
Enrico Bianco
77f6e02c0e [Blueprint] Upgrade to 0.9: Make IE conditional comments more configurable in project manifests 2009-06-20 15:52:36 -07:00
Bjørn Arild Mæland
be5c0ff673 Added missing syntax to _tag_cloud.sass, fixes invalid CSS for :line-height
Signed-off-by: Chris Eppstein <chris@eppsteins.net>
2009-06-13 05:01:35 +08:00
Gustavo Delfino
f033ee2ec0 Fixed a bug in +horizontal-list mixin 2009-05-28 18:47:47 -07:00
Chris Eppstein
faadde2379 [Compass Core] Extracted two new mixins from +horizontal-list. Closes GH-9.
The new +horizontal-list-container and +horizontal-list-item mixins can
be used to build your horizontal list when you need more control over
the selectors (E.g. when working with nested lists).
2009-05-23 09:15:33 -07:00
Chris Eppstein
da4c73d676 [Compass Core] Make all compass core library mixins use the image_url function where appropriate. 2009-04-29 08:27:18 -07:00
Chris Eppstein
c040c1d2d9 Fix some test failures. 2009-04-02 22:53:42 -07:00
Andrew Vit
d9416f65fa Changed standard +clearfix to use overflow: hidden.
Added alternate +pie-clearfix using content :after
2009-04-02 22:40:25 -07:00
Andrew Vit
150e7bf6a7 Updated frameworks to use new float implementation
Avoided changing YUI due to its complex inheritance and float:none overrides.
2009-04-02 22:40:25 -07:00
Andrew Vit
b36e2d2622 Added +float-left and +float-right as mixins
In order to include fixes for IE's double-margin bug universally, floats
were implemented as a utility mixins.
2009-04-02 22:40:16 -07:00
Chris Eppstein
923703b058 Credit where credit is due. 2009-03-12 11:22:05 -07:00
Chris Eppstein
6280f97071 Added a mixin for styling the Unobtrusive stylesheet logo. 2009-03-12 11:10:26 -07:00
Chris Eppstein
af6f16d4b8 Eric Meyer's reset uses a line-height value of 1. Blueprint uses 1.5 and
YUI doesn't even consider it part of the reset. With so much
disagreement, I decided to make the compass reset agnostic and let
individual frameworks decide what the body line-height ought to be.
2009-02-21 00:15:24 -08:00
Chris Eppstein
79ee96dcf4 Polish the table scaffolding mixin and add the table borders mixins. 2009-02-21 00:15:24 -08:00
Tim Riley
77e19e512b move the CSS rules extracted from alternating-rows-and-columns into a table-scaffolding mixin. 2009-02-21 00:15:24 -08:00
Tim Riley
3d340b6972 remove any non-colour related CSS from the alternating-rows-and-columns mixin. this mixin works best when it _only_ affects your table's background colours. 2009-02-21 00:15:24 -08:00
Chris Eppstein
94f4471ad5 Better followup messages after installation. 2009-02-08 03:45:48 -08:00
Chris Eppstein
91e081cd50 New project creation implemented using manifests and installation strategies. 2009-02-08 03:45:48 -08:00
Chris Eppstein
e8d249fa38 Better comments/instructions on the compass project stylesheets. 2009-02-08 03:45:47 -08:00
Chris Eppstein
91aa83cbfd Silence implicit string deprecation warnings. 2008-12-17 09:02:48 -08:00
Andrew Vit
208d0b1f04 Added +sticky-footer mixin
Forces page layout to expand, pinning the footer
to the bottom edge of the browser window.

Refer to:
http://ryanfait.com/resources/footer-stick-to-bottom-of-page/
2008-12-08 20:37:06 -08:00
Chris Eppstein
b9d2f78a82 Meant to include this mixin, not (re)define it. 2008-12-08 20:32:29 -08:00
Chris Eppstein
faed0a0061 Work around a bug in Sass comments at the start of a file. 2008-12-08 13:57:30 -08:00
Chris Eppstein
2c3e57bec6 Created top level imports for all frameworks. This change broke backwards compatibility for YUI, where users should now @import yui.sass instead of yui/screen.sass 2008-12-08 10:44:36 -08:00
Chris Eppstein
e42bc133dd extracted a +global-reset and +nested-reset mixins from the reset library which got moved to compass/utilities/general/reset. 2008-12-08 09:51:36 -08:00
Chris Eppstein
2177bc8e24 The no-print and print-only classes were never part of blueprint-css, so I'm moving them to compass utilities. 2008-12-06 13:46:03 -08:00
Chris Eppstein
dd6fb6473a Added unit tests for YUI and did some cleanup/restructuring of the test fixtures as well as a way to validate generated css. 2008-12-04 12:35:00 -08:00
Chris Eppstein
d66f659d9a Reuse the reset and clearfix mixins in the horizontal-list declaration. 2008-11-01 11:49:03 -07:00
Chris Eppstein
1182a5cb4d Allow the padding between the list items in horizontal-list mixin to be specified as an argument. 2008-11-01 11:47:36 -07:00
Chris Eppstein
16f83b496a Generate less CSS output for the same effect in the reset. 2008-11-01 11:44:49 -07:00
Chris Eppstein
08ec9ec5c3 Improvements to the YUI fonts. These changes are not backwards compatible. 2008-10-29 09:23:54 -07:00
Chris Eppstein
419f2d3e41 A cross-browser inline-block mixin that supports ie6-8, ff2-3, opera, and webkit. 2008-10-21 22:51:10 -07:00
Chris Eppstein
28f8e53485 Slighltly cleaner horizontal-list implementation. 2008-10-11 10:36:26 -07:00