diff options
author | Thomas Park <thomas@thomaspark.co> | 2015-09-03 16:39:50 -0400 |
---|---|---|
committer | Thomas Park <thomas@thomaspark.co> | 2015-09-03 16:39:50 -0400 |
commit | 913f54b9483b99fa12c7feccfa18ee5cc0206043 (patch) | |
tree | 6ff4cb55fb019e25233c2652b4e62a8e5c425757 /spacelab | |
parent | 884b1111fabf1b06470eb36836bb13d74a0b93bd (diff) |
set web font path as variable that can be overridden, closes #507
Diffstat (limited to 'spacelab')
-rw-r--r-- | spacelab/_bootswatch.scss | 7 | ||||
-rw-r--r-- | spacelab/bootswatch.less | 7 |
2 files changed, 12 insertions, 2 deletions
diff --git a/spacelab/_bootswatch.scss b/spacelab/_bootswatch.scss index c1f07504..804f1d6a 100644 --- a/spacelab/_bootswatch.scss +++ b/spacelab/_bootswatch.scss @@ -2,7 +2,12 @@ // Bootswatch // ----------------------------------------------------- -@import url("https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700"); +$web-font-path: "https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700" !default; + +@mixin web-font($path){ + @import url("#{$path}"); +} +@include web-font($web-font-path); @mixin btn-shadow($color){ @include gradient-vertical-three-colors(lighten($color, 15%), $color, 50%, darken($color, 4%)); diff --git a/spacelab/bootswatch.less b/spacelab/bootswatch.less index 16f89436..3496e3ec 100644 --- a/spacelab/bootswatch.less +++ b/spacelab/bootswatch.less @@ -2,7 +2,12 @@ // Bootswatch // ----------------------------------------------------- -@import url("https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700"); +@web-font-path: "https://fonts.googleapis.com/css?family=Open+Sans:400italic,700italic,400,700"; + +.web-font(@path) { + @import url("@{path}"); +} +.web-font(@web-font-path); .btn-shadow(@color) { #gradient > .vertical-three-colors(lighten(@color, 15%), @color, 50%, darken(@color, 4%)); |