Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

47 lines (40 sloc) 1.536 kB
// ==========================================================================
// Base Mixins - built with LESS - http://www.lesscss.org
// Theme URI: http://matthewhartman.github.com/base/
// Author: Matthew Hartman - http://www.matthewhartman.com.au/
// Version: 0.1 - Last Updated: 18th October, 2012
// ==========================================================================
// Font Icon
.font-icon (@fontname, @fontfile) {
@font-face {
font-family: @fontname;
src: url('fonts/@{fontfile}-webfont.eot');
src: url('fonts/@{fontfile}-webfont.eot?#iefix') format('embedded-opentype'),
url('fonts/@{fontfile}-webfont.woff') format('woff'),
url('fonts/@{fontfile}-webfont.ttf') format('truetype'),
url('fonts/@{fontfile}-webfont.svg#@{fontfile}') format('svg');
font-weight: normal;
font-style: normal;
}
}
// Font Sizes (REMs with PX fallback for older browsers)
.font-size (@sizeValue) {
@remValue: @sizeValue / 16;
@pxValue: (@sizeValue);
font-size: ~"@{pxValue}px";
font-size: ~"@{remValue}rem";
}
// Line Height Sizes (REMs with PX fallback for older browsers)
.line-height (@sizeValue) {
@remValue: @sizeValue / 16;
@pxValue: (@sizeValue);
line-height: ~"@{pxValue}px";
line-height: ~"@{remValue}rem";
}
// Border Rounded Corners
.roundedcorners (@radius: 1px) {
-webkit-border-radius: @radius;
-moz-border-radius: @radius;
border-radius: @radius;
-moz-background-clip: padding; -webkit-background-clip: padding-box; background-clip: padding-box;
}
Jump to Line
Something went wrong with that request. Please try again.