]> git.ipfire.org Git - thirdparty/bootstrap.git/commitdiff
adding placeholder font-face mixin which doesn't work yet
authorMark Otto <mark.otto@twitter.com>
Tue, 4 Oct 2011 07:48:31 +0000 (00:48 -0700)
committerMark Otto <mark.otto@twitter.com>
Tue, 4 Oct 2011 07:48:31 +0000 (00:48 -0700)
bootstrap.css
lib/mixins.less

index 75928c7490425e25610afbcf306132ad2f75c03d..2b0e88c86d5f9763cbcdbd04fc7ad24a3a70d988 100644 (file)
@@ -6,7 +6,7 @@
  * http://www.apache.org/licenses/LICENSE-2.0
  *
  * Designed and built with all the love in the world @twitter by @mdo and @fat.
- * Date: Tue Oct  4 00:16:55 PDT 2011
+ * Date: Tue Oct  4 00:48:20 PDT 2011
  */
 /* Reset.less
  * Props to Eric Meyer (meyerweb.com) for his CSS reset file. We're using an adapted version here that cuts out some of the reset HTML elements we will never need here (i.e., dfn, samp, etc).
index c43f1663283ec6a0dc38a3e8b72e958812132761..47eb1a1c384fbf154125b78e8d7ac9464d8069ac 100644 (file)
   }
 }
 
+// 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;