Curabitur vulputate, ligula lacinia scelerisque tempor, lacus lacus ornare ante, ac egestas est urna sit amet arcu. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed molestie augue sit amet leo consequat posuere. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Proin vel ante a orci tempus eleifend ut et.
<div class="ui-media">
<div class="ui-media__image">
<img src="http://placehold.it/120x120" />
</div>
<p class="ui-media__body">
Curabitur vulputate, ligula lacinia scelerisque tempor, lacus lacus ornare ante, ac egestas est urna sit amet arcu. Class aptent taciti sociosqu ad litora torquent per conubia nostra, per inceptos himenaeos. Sed molestie augue sit amet leo consequat posuere. Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Proin vel ante a orci tempus eleifend ut et.
</p>
</div>
Maintain a strong baseline and vertical grid with the unit
function. Each
unit is a multiple of the em
equivalent of 30px
.
padding: unit(1) unit(0.5) unit(2) unit(0.5);
Given a SASS map key, find it's value. Source
$haystack
- A SASS map$needle
- A key in $haystackz-index: match($element, modal);
Returns the opposite position of a the argument.
$position
- Any valid CSS position value. Returns a string with the opposite
positionposition: opposite-position(bottom); // Returns top
Vertically centers text within an element of a defined height. Text should be single-line text.
$height
- Overall height of the element$min
- Boolean. Use min-height
instead of height
. Default is false
.$line-height
- line-height
for the element. This optional param is helpful
if your element has top or bottom padding.@include vertically-center(unit(1));
Makes a little pointer arrow on the element. Source
$position
- String. CSS position (top
, right
, bottom
, left
). Default is top
.$size
- Unit. Any border-accepted length (px
, em
, etc., not %
). Default is 7px
.$color
- Any color. Default is white
.$border-width
- Unit. Any border-accepted length with units comparable to $size
. Defautl is 1px
.$border-color
- Any color. Default is $borderColor1
.$border-style
- String. CSS border style (dotted
, dashed
, solid
, double
, groove
, ridge
, inset
, outset
). Default is solid
.@include css-arrow(top, 10px, $colorGray6, $border-color: $colorBorder2);
Ellipsizes the element.
$width
- Unit. Optional, defines the max-width
of the element.@include ellipsis;
Elements or rules defined within the mixin will compile as children of
.lte-ie9
and only render in IE9.
@include ie9 { ... }
Creates a link with a specified default state color
, that changes to a link
color on hover.
$color
- Any color. Default state color
. Default is $colorGray4.$colorHover
- Any color. Hover state color
. Default is $colorPrimary@include no-color-link($colorText);
Helps organize z-index
. This should make use of Sass maps if Rails can ever
get around to updating to 3.3.
$element
- Corresponds to the element being stacked. Accepted values are overlay
, modal
, alert
, flash
, nav
, panels
, header
, content
$step
- Integer. Amount above or below $element
to stack the element.@include z-index(modal, 1); // result is z-index: 501;
Ensures that fixed items don't need to be repainted on the DOM when you scroll. Not supported by older broswers.
@include position-fixed-high-performance;
Based on "height" of the floating element off the page. Higher the value, the darker/more diffuse/more offset the shadow is.
$height
- integer. 1
is the default value.
@include box-shadow(2);
Use the breakpoint mixin to set screen-width dependant styles. You can find all breakpoint variables under Grid.
$width
- Unit. Defines the point at which the breakpoint occurs.$minmax
- Sets whether the styles apply to screen widths larger (min
) or smaller (max
) than the $width
. Default is max
.@include breakpoint($breakSmall) { ... }
Easily float an element from the markup. Can extend from the SCSS
.
<div class="pull-right">...</div>
<div class="pull-left">...</div>
You got your floats in your markup, so you might want a clearfix.
<div class="clearfix"></div>