Usage:
h1 {
@include font-size(60px, 68px);
font-weight: 300;
}
Result:
h1 {
font-size: 3.75em; /* 60px */
line-height: 1.13333em; /* 68px */
font-weight: 300;
}
Usage:
p {
float: left;
@include rtl {
float: right;
}
@include rtl {
a {
color: #cc0000;
}
}
}
@include rtl {
background: #cc0000;
}
Result:
p {
float: left;
}
html[dir="rtl"] p {
float: right;
}
html[dir="rtl"] p a {
color: #cc0000;
}
html[dir="rtl"] {
background: #cc0000;
}
Usage:
.wrap {
width: 100%;
@include feature('page-boxed') {
width: 990px;
}
}
@include feature('page-boxed') {
background: #fafafa;
}
Result:
.wrap {
width: 100%;
}
body.page-boxed .wrap {
width: 990px;
}
body.page-boxed {
background: #fafafa;
}
Usage:
.grid {
@include clearfix;
}
footer {
@include clearfix;
}
.gallery {
@include clearfix(false);
}
Result:
.grid::after,
footer::after {
clear: both;
content: "";
display: table;
}
.gallery::after {
clear: both;
content: "";
display: table;
}
Usage:
.container {
width: 100%;
@include mq(tablet) {
width: 740px;
}
@include mq(desktop, print) {
width: 980px;
}
@include mq(wide) {
width: 1300px;
}
}
Result:
.container {
width: 100%;
}
@media (min-width: 37em) {
.container {
width: 740px;
}
}
@media (min-width: 49em) and print {
.container {
width: 980px;
}
}
@media (min-width: 65em) {
.container {
width: 1300px;
}
}
Usage:
strong.w150 {
color: #cc0000;
@include ellipsis(150px);
}
Result:
strong.w150 {
color: #cc0000;
display: inline-block;
max-width: 150px;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}