Commit Graph

380 Commits

Author SHA1 Message Date
Chris Eppstein
3100476ff5 Coding spree to clean up the blueprint stylesheets and make them more similar to blueprint-css, more configurable, and more consistent.
Breakdown of changes:

===

Remove the body scope that is unnecessarily added to many blueprint classes due to the way the mixins were constructed and used. Blueprint mixins that operate on the body tag now follow a pattern where they take the body selector as an argument and must always be mixed into the top level of a stylesheet. The classes will be scoped whenever the selector is not a simple "body" selector which is the default. Mixins affected: +blueprint-ie, +blueprint-print, +blueprint-typography, and +blueprint-scaffolding. All of these mixins use corresponding +[mixin]-body and +[mixin]-defaults mixins in their implementations that you can use directly if you feel constrained by the requirement to mix into the top-level.

===

Made all configurable constants possible to override in a base stylesheet using conditional assignment. Moved many colors that were still hard coded to the colors.sass module so they can be overridden.

===

Restored some blueprint defaults even though I didn't like them. With the exception of the blueprint link urls which are now available as a mixin called +blueprint-show-link-urls (they used to just be commented out.)

===

Grid constants have been renamed in both the grid and liquid grid modules. These constants are now conditionally assigned to make the grid easily configured.

===

The liquid grid now uses the compass clearfix.

===

moved the primary mixin for a module (where one exists) to the top of the file for clarity of readers.

===

blueprint grid classes are now appropriately scoped under the .container class.
2008-12-06 13:46:03 -08:00
Chris Eppstein
1c42afb158 The Liquid grid mixin has been renamed from +blueprint-liquid to +blueprint-liquid-grid. 2008-12-06 13:46:03 -08:00
Chris Eppstein
f084ed2314 The incremental leading mixin (+incr) in the fancy type module now accepts arguments and performs the incremental leading calculations for you if you want to use different font sizes. The +dquo mixin now accepts an offset argument if the default isn't appropriate. 2008-12-06 13:46:03 -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
c07a89ef3d test blueprint typography output. 2008-12-06 13:46:02 -08:00
Chris Eppstein
605658fab2 Changes to blueprint mixins so that they can be mixed into the top level and avoid having scoped selectors that add to their weight. 2008-12-06 13:46:02 -08:00
Chris Eppstein
c11289e36a Updated gemspec and version to 0.1.1 2008-12-05 16:30:50 -08:00
Chris Eppstein
cf544a961c Updated the manifest and gemspec. 2008-12-04 20:03:29 -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
31370e20d8 Fixed the --imports command-line option so that it generates useful output for being passed to sass. E.g.:
sass `compass --imports` some_file.sass
2008-12-02 15:48:22 -08:00
Chris Eppstein
e2ec3873c3 Updated manifest and gemspec. 2008-12-01 11:22:47 -08:00
Chris Eppstein
3ca04fdba9 Renamed the yui examples folder. 2008-12-01 11:20:29 -08:00
Chris Eppstein
ead0fd611a Started working on a YUI Grid Subdivisions example. 2008-12-01 11:19:45 -08:00
Chris Eppstein
8089587a3e Renamed utilities haml file to follow new naming scheme. 2008-12-01 11:18:21 -08:00
Chris Eppstein
010cc9ad39 Update manifest and gemspec with new files. 2008-12-01 00:27:30 -08:00
Chris Eppstein
5a81de14c5 Allow the blueprint font family defaults to be configured. 2008-12-01 00:26:33 -08:00
Chris Eppstein
1cbce96bc3 Updated the YUI Examples. 2008-11-30 23:39:26 -08:00
Chris Eppstein
da4275bdec Fixed a duplicate ending bug in the examples generator. 2008-11-30 23:38:48 -08:00
Chris Eppstein
6dc577067c Updated the README. 2008-11-30 21:16:52 -08:00
Chris Eppstein
d1b18370cd Move the #ft and #bd declarations to the the yui-grids-init mixin and allow those styles to be turned off. 2008-11-30 20:35:04 -08:00
Chris Eppstein
70b06a705f Extract the yui-grid-templates mixin for clarity. 2008-11-30 20:33:49 -08:00
Chris Eppstein
5b2c2129f1 Combine the selectors that have the same styles that I previously separated unecessarily. 2008-11-30 20:32:15 -08:00
Chris Eppstein
ca63b91eb8 Use a ruby formatted gemspec instead of yaml. Maybe github will like it better. 2008-11-30 20:17:26 -08:00
Chris Eppstein
ecf64fceeb Updated the Gem Manifest. 2008-11-30 14:29:26 -08:00
Chris Eppstein
562b417197 Added conditional assignment to the yui constants and prefixed them with "yui_". 2008-11-29 19:28:42 -08:00
Chris Eppstein
b5034a917e Added the YUI grids module. It compiles and generates roughly the expected output, but is not well tested yet. 2008-11-29 01:15:12 -08:00
Chris Eppstein
39265bafc3 Added a Sass Function called nest that performs a nesting operation on (possibly) comma delimited selectors and emits the result as a string.
For example:

nest(".foo", "a, em, b")

would render:

.foo a, .foo em, .foo b

The nest function can take any number of arguments and each argument can have any number of comma-delimited selectors.
2008-11-29 01:08:07 -08:00
Roland Moriz
670595484e - added missing entries to cover 'lib/compass/commands/watch_project.rb' 2008-11-19 17:00:34 +01:00
Chris Eppstein
3fe8f6a675 Added a compass command-line option to watch a project and automatically recompile when it changes. Use compass --watch. 2008-11-04 11:55:57 -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
98e13e306d Removed some erroneous entries in the Manifest file and changed the rakefile so they wouldn't happen again. 2008-10-31 13:07:35 -07:00
Chris Eppstein
23ef723d8c Added a gemspec and updated the Manifest. 2008-10-29 15:11:56 -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
f62b5589a7 Command line option to emit the compass import paths suitable for use in a PATH variable. 2008-10-21 09:06:35 -07:00
Chris Eppstein
11def38264 Fixed a bug in the definition of push. The left margin was incorrect. 2008-10-18 17:13:54 -07:00
Chris Eppstein
595b1a0849 Small changes to accomodate Sass language advancements. Negation is now 'not' and @else exists. 2008-10-16 09:16:17 -07:00
Chris Eppstein
e10cc76ca5 Fixed duplicate directory information in the rails initializer generator. 2008-10-13 07:49:44 -07:00
Chris Eppstein
28f8e53485 Slighltly cleaner horizontal-list implementation. 2008-10-11 10:36:26 -07:00
Chris Eppstein
d6d9bd4270 Factor out a reset-box-model mixin for doing selective resets. 2008-10-11 10:36:01 -07:00
Chris Eppstein
fc17de9f62 clearfix for firefox works better with overflow: -moz-scrollbars-none 2008-10-03 17:33:54 -07:00
Chris Eppstein
9af18fa20f Added a basic test case. So far it can be used to make sure your stylesheets compile.
Eventually it should provide assertions for generated rules and styles.
2008-10-03 16:38:39 -07:00
Chris Eppstein
154a22406c Incorrect framework nesting in the compass initializers. The frameworks scope themselves. 2008-10-03 14:13:22 -07:00
Chris Eppstein
2189e28c65 Don't set background properties that aren't relevant to the text replacement. 2008-10-03 11:27:46 -07:00
Chris Eppstein
156b896d97 Don't set display for replaced text -- just use the container's default display. Also, some small refactoring. 2008-10-03 11:06:38 -07:00
Chris Eppstein
2cc690dc6a Changes to the liquid example for the new reset. 2008-10-03 08:30:02 -07:00
Andrew Vit
2cadeceb05 Background is not a typography concern, removed from normal-text mixin. 2008-10-03 08:26:27 -07:00
Andrew Vit
94083e82e1 Introduced replace-text mixin for showing images in place of HTML text. 2008-10-03 08:26:26 -07:00