Add sub nav to helpers section

This commit is contained in:
Mark Perkins
2012-06-26 17:29:20 +01:00
parent a587b8b836
commit 5beb219ae4
3 changed files with 22 additions and 7 deletions

View File

@@ -96,6 +96,20 @@ Shortcuts & Helpers
These are the most basic mixins. *Shortcuts* typically provide a quick way to generate all the required vendor-prefixed versions of a property, and/or give a more manageable syntax for defining things like CSS gradients. *Helpers* are mixins that typically generate boilerplate code for common use cases, such as `display: inline-block;` statements with IE7 fixes, or image replacement code.
* [.border-radius()](#border-radius)
* [.box-sizing()](#box-sizing)
* [.box-shadow()](#box-shadow)
* [.transition()](#transition)
* [.rotate()](#rotate)
* [.placeholder()](#placeholder)
* [#gradient > .vertical()](#gradient--vertical)
* [#gradient > .horizontal()](#gradient--horizontal)
* [.clearfix()](#clearfix)
* [.inline-block()](#inline-block)
* [.ir()](#ir)
* [.hidden()](#hidden)
* [.visually-hidden()](#visually-hidden)
* [.size()](#size)
### .border-radius()
@@ -796,6 +810,8 @@ Icons
The icons mixins let you easily place an icon before or after an element, using absolutely positioned :before and :after pseudo elements to display them. There are also sprited icon mixins build on the sprite mixins above.
The exact output of all the icon mixins depends on the value of the `@using-modernizer` setting.
### .prepend-icon()
Prepends an icon to the element it's called on.
@@ -1137,7 +1153,11 @@ A [partial mixin](#optimising-output-using-partial-mixins) to generate image-spe
Grids
-------
Documentation coming soon.
The ClearLess grid system is a straightforward grid system that supports either floated columns or columns created using inline-block. It supports infinite levels of nested columns.
Gutters are applied using the margin-left property. The columns that represent the last in a row at any time need to have the `.end-column()` (for floated grids) or `.inline-end-column()` (for inline-block grids) applied to them to stop them dropping down.
*Full documentation coming soon...*
Some notes on usage and best practices

View File

@@ -534,13 +534,8 @@ h2 {
width: 32px;
height: 32px;
}
.social--twitter {
padding-left: 22px;
}
.social--twitter:before {
background: url('../img/twitter-32x32.png') no-repeat 0 0;
width: 12px;
height: 12px;
}
.social--feed:before {
background: url('../img/feed-32x32.png') no-repeat 0 0;

View File

@@ -286,7 +286,7 @@ h2 {
}
.social--twitter {
.prepend-icon-image('../img/twitter-32x32.png', 12px, 12px);
.prepend-icon-image('../img/twitter-32x32.png');
}
.social--feed {
.prepend-icon-image('../img/feed-32x32.png');