summaryrefslogtreecommitdiff
path: root/cosmo
diff options
context:
space:
mode:
authorThomas Park <thomas@thomaspark.co>2015-09-03 16:39:50 -0400
committerThomas Park <thomas@thomaspark.co>2015-09-03 16:39:50 -0400
commit913f54b9483b99fa12c7feccfa18ee5cc0206043 (patch)
tree6ff4cb55fb019e25233c2652b4e62a8e5c425757 /cosmo
parent884b1111fabf1b06470eb36836bb13d74a0b93bd (diff)
set web font path as variable that can be overridden, closes #507
Diffstat (limited to 'cosmo')
-rw-r--r--cosmo/_bootswatch.scss7
-rw-r--r--cosmo/bootswatch.less7
2 files changed, 12 insertions, 2 deletions
diff --git a/cosmo/_bootswatch.scss b/cosmo/_bootswatch.scss
index 428eaf35..e8da4309 100644
--- a/cosmo/_bootswatch.scss
+++ b/cosmo/_bootswatch.scss
@@ -2,7 +2,12 @@
// Bootswatch
// -----------------------------------------------------
-@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700");
+$web-font-path: "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700" !default;
+
+@mixin web-font($path){
+ @import url("#{$path}");
+}
+@include web-font($web-font-path);
// Navbar =====================================================================
diff --git a/cosmo/bootswatch.less b/cosmo/bootswatch.less
index 792f2e59..562bc73e 100644
--- a/cosmo/bootswatch.less
+++ b/cosmo/bootswatch.less
@@ -2,7 +2,12 @@
// Bootswatch
// -----------------------------------------------------
-@import url("https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700");
+@web-font-path: "https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,700";
+
+.web-font(@path) {
+ @import url("@{path}");
+}
+.web-font(@web-font-path);
// Navbar =====================================================================