From 913f54b9483b99fa12c7feccfa18ee5cc0206043 Mon Sep 17 00:00:00 2001
From: Thomas Park <thomas@thomaspark.co>
Date: Thu, 3 Sep 2015 16:39:50 -0400
Subject: set web font path as variable that can be overridden, closes #507

---
 readable/_bootswatch.scss | 7 ++++++-
 readable/bootswatch.less  | 7 ++++++-
 2 files changed, 12 insertions(+), 2 deletions(-)

(limited to 'readable')

diff --git a/readable/_bootswatch.scss b/readable/_bootswatch.scss
index 2fd07293..da63d8b1 100644
--- a/readable/_bootswatch.scss
+++ b/readable/_bootswatch.scss
@@ -2,7 +2,12 @@
 // Bootswatch
 // -----------------------------------------------------
 
-@import url("https://fonts.googleapis.com/css?family=Raleway:400,700");
+$web-font-path: "https://fonts.googleapis.com/css?family=Raleway:400,700" !default;
+
+@mixin web-font($path){
+  @import url("#{$path}");
+}
+@include web-font($web-font-path);
 
 // Navbar =====================================================================
 
diff --git a/readable/bootswatch.less b/readable/bootswatch.less
index 95f913ce..c1fd08ee 100644
--- a/readable/bootswatch.less
+++ b/readable/bootswatch.less
@@ -2,7 +2,12 @@
 // Bootswatch
 // -----------------------------------------------------
 
-@import url("https://fonts.googleapis.com/css?family=Raleway:400,700");
+@web-font-path: "https://fonts.googleapis.com/css?family=Raleway:400,700";
+
+.web-font(@path) {
+  @import url("@{path}");
+}
+.web-font(@web-font-path);
 
 // Navbar =====================================================================
 
-- 
cgit v1.2.3