diff --git a/css.html b/css.html index 4edcc3a613..ab29020422 100644 --- a/css.html +++ b/css.html @@ -2874,7 +2874,7 @@ a {

Vendor mixins are mixins to help support multiple browsers by including all relevant vendor prefixs in your compiled CSS.

-

Box-sizing

+

Box-sizing

Reset your components' box model with a single mixin. For context, see this helpful article from Mozilla.

{% highlight css %} .box-sizing(@box-model) { @@ -2884,7 +2884,7 @@ a { } {% endhighlight %} -

Rounded corners

+

Rounded corners

Today all modern browsers support the non-prefixed border-radius property. As such, there is no .border-radius() mixin, but Preboot does include shortcuts for quickly rounding two corners on a particular side of an object.

{% highlight css %} .border-top-radius(@radius) { @@ -2905,7 +2905,7 @@ a { } {% endhighlight %} -

Box (Drop) shadows

+

Box (Drop) shadows

If your target audience is using the latest and greatest browsers and devices, be sure to just use the box-shadow property on it's own. If you need support for older Android (pre-v4) and iOS devices (pre-iOS 5), use of the mixin to pick up the required -webkit prefix.

Be sure to use rgba() colors in your box shadows so they blend as seamlessly as possible with backgrounds.

{% highlight css %} @@ -2915,7 +2915,7 @@ a { } {% endhighlight %} -

Transitions

+

Transitions

Three mixins for flexibility. Set all transition information with one, or specify a separate delay and duration as needed.

{% highlight css %} .transition(@transition) { @@ -2942,7 +2942,7 @@ a { } {% endhighlight %} -

Transformations

+

Transformations

Rorate, scale, translate (move), or skew any object.

{% highlight css %} .rotate(@degrees) { @@ -2998,7 +2998,7 @@ a { } {% endhighlight %} -

Animations

+

Animations

A single mixin for using all CSS3's animation properties in one declarations and other mixins for individual properties.

{% highlight css %} .animation(@animation) { @@ -3031,7 +3031,7 @@ a { } {% endhighlight %} -

Opacity

+

Opacity

Set the opacity for all browsers and provide a filter fallback for IE8.

{% highlight css %} .opacity(@opacity) { @@ -3042,7 +3042,7 @@ a { } {% endhighlight %} -

Placeholder text

+

Placeholder text

Provide context for form controls within each field.

{% highlight css %} .placeholder(@color: @input-color-placeholder) { @@ -3053,7 +3053,7 @@ a { } {% endhighlight %} -

Columns

+

Columns

Generate columns via CSS within a single element.

{% highlight css %} .content-columns(@width; @count; @gap) { @@ -3069,7 +3069,7 @@ a { } {% endhighlight %} -

Gradients

+

Gradients

Easily turn any two colors into a background gradient. Get more advanced and set a direction, use three colors, or use a radial gradient. With a single mixin you get all the prefixed syntaxes you'll need.

{% highlight css %} #gradient > .vertical(#333; #000); @@ -3095,7 +3095,7 @@ a {

Utility mixins

Utility mixins are mixins that combine otherwise unrelated CSS properties to achieve a specific goal or task.

-

Clearfix

+

Clearfix

Forget adding class="clearfix" to any element and instead add the .clearfix() mixin where appropriate. Uses the micro clearfix from Nicolas Gallager.

{% highlight css %} // Mixin @@ -3116,7 +3116,7 @@ a { } {% endhighlight %} -

Horizontal centering

+

Horizontal centering

Quickly center any element within its parent. Requires width or max-width to be set.

{% highlight css %} // Mixin @@ -3133,7 +3133,7 @@ a { } {% endhighlight %} -

Sizing helpers

+

Sizing helpers

Specify the dimensions of an object more easily.

{% highlight css %} // Mixins @@ -3150,7 +3150,7 @@ a { .avatar { .square(48px); } {% endhighlight %} -

Resizable textareas

+

Resizable textareas

Easily configure the resize options for any textarea, or any other element. Defaults to normal browser behavior (both).

{% highlight css %} .resizable(@direction: both) { @@ -3161,7 +3161,7 @@ a { } {% endhighlight %} -

Truncating text

+

Truncating text

Easily truncate text with an ellipsis with a single mixin. Requires element to be block or inline-block level.

{% highlight css %} // Mixin @@ -3179,7 +3179,7 @@ a { } {% endhighlight %} -

Retina images

+

Retina images

Specify two image paths and the @1x image dimensions, and Preboot will provide an @2x media query. If you have many images to serve, consider writing your retina image CSS manually in a single media query.

{% highlight css %} .img-retina(@file-1x; @file-2x; @width-1x; @height-1x) {