aboutsummaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorMark Otto <[email protected]>2011-10-04 00:48:31 -0700
committerMark Otto <[email protected]>2011-10-04 00:48:31 -0700
commitcde17c94919ef26093145e5412c6d425d3199d9f (patch)
tree1fd724794b82e1e270405b9109e353d5df1da893 /lib
parent96dd7a2903aa5213ddb364b385660e26396dc670 (diff)
downloadbootstrap-cde17c94919ef26093145e5412c6d425d3199d9f.tar.xz
bootstrap-cde17c94919ef26093145e5412c6d425d3199d9f.zip
adding placeholder font-face mixin which doesn't work yet
Diffstat (limited to 'lib')
-rw-r--r--lib/mixins.less14
1 files changed, 14 insertions, 0 deletions
diff --git a/lib/mixins.less b/lib/mixins.less
index c43f16632..47eb1a1c3 100644
--- a/lib/mixins.less
+++ b/lib/mixins.less
@@ -71,6 +71,20 @@
}
}
+// Font face generator
+.font-face(@fontFamily, @fileName, @style, @weight) {
+ @font-face {
+ font-family: @fontFamily;
+ font-style: @style;
+ font-weight: @weight;
+ src: url('@{fileName}.eot');
+ src: url('@{fileName}.eot?#iefix') format('embedded-opentype'),
+ url('@{fileName}.woff') format('woff'),
+ url('@{fileName}.ttf') format('truetype'),
+ url('@{fileName}.svg#@{fontFamily}') format('svg');
+ }
+}
+
// Grid System
.fixed-container() {
width: @siteWidth;