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.
-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 %} -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.
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.
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 %} -Rorate, scale, translate (move), or skew any object.
{% highlight css %} .rotate(@degrees) { @@ -2998,7 +2998,7 @@ a { } {% endhighlight %} -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 %} -Set the opacity for all browsers and provide a filter
fallback for IE8.
Provide context for form controls within each field.
{% highlight css %} .placeholder(@color: @input-color-placeholder) { @@ -3053,7 +3053,7 @@ a { } {% endhighlight %} -Generate columns via CSS within a single element.
{% highlight css %} .content-columns(@width; @count; @gap) { @@ -3069,7 +3069,7 @@ a { } {% endhighlight %} -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 are mixins that combine otherwise unrelated CSS properties to achieve a specific goal or task.
-Forget adding class="clearfix"
to any element and instead add the .clearfix()
mixin where appropriate. Uses the micro clearfix from Nicolas Gallager.
Quickly center any element within its parent. Requires width
or max-width
to be set.
Specify the dimensions of an object more easily.
{% highlight css %} // Mixins @@ -3150,7 +3150,7 @@ a { .avatar { .square(48px); } {% endhighlight %} -Easily configure the resize options for any textarea, or any other element. Defaults to normal browser behavior (both
).
Easily truncate text with an ellipsis with a single mixin. Requires element to be block
or inline-block
level.
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) {