feat: add -path, -font-path

This commit is contained in:
Drew Rygh
2015-10-30 15:47:15 -05:00
parent 9c23eb45bd
commit e5d28e0639
3 changed files with 7 additions and 5 deletions

View File

@ -2,7 +2,7 @@
// Ionicons // Ionicons
// -------------------------- // --------------------------
$ionicons-font-path: "../fonts" !default; $ionicons-font-path: $font-path !default;
$ionicons-font-family: "Ionicons" !default; $ionicons-font-family: "Ionicons" !default;
$ionicons-version: "3.0.0" !default; $ionicons-version: "3.0.0" !default;

View File

@ -5,31 +5,32 @@
http://www.apache.org/licenses/LICENSE-2.0.html http://www.apache.org/licenses/LICENSE-2.0.html
*/ */
$roboto-font-path: $font-path !default;
@font-face { @font-face {
font-family: 'Roboto'; font-family: 'Roboto';
font-style: normal; font-style: normal;
font-weight: 300; font-weight: 300;
src: local('Roboto Light'), local('Roboto-Light'), url(../fonts/roboto-light.ttf) format('truetype'), url(../fonts/roboto-light.woff) format('woff'); src: local('Roboto Light'), local('Roboto-Light'), url('#{$roboto-font-path}/roboto-light.ttf') format('truetype'), url('#{$roboto-font-path}/roboto-light.woff') format('woff');
} }
@font-face { @font-face {
font-family: 'Roboto'; font-family: 'Roboto';
font-style: normal; font-style: normal;
font-weight: 400; font-weight: 400;
src: local('Roboto'), local('Roboto-Regular'), url(../fonts/roboto-regular.ttf) format('truetype'), url(../fonts/roboto-regular.woff) format('woff'); src: local('Roboto'), local('Roboto-Regular'), url('#{$roboto-font-path}/roboto-regular.ttf') format('truetype'), url('#{$roboto-font-path}/roboto-regular.woff') format('woff');
} }
@font-face { @font-face {
font-family: 'Roboto'; font-family: 'Roboto';
font-style: normal; font-style: normal;
font-weight: 500; font-weight: 500;
src: local('Roboto Medium'), local('Roboto-Medium'), url(../fonts/roboto-medium.ttf) format('truetype'), url(../fonts/roboto-medium.woff) format('woff'); src: local('Roboto Medium'), local('Roboto-Medium'), url('#{$roboto-font-path}/roboto-medium.ttf') format('truetype'), url('#{$roboto-font-path}/roboto-medium.woff') format('woff');
} }
@font-face { @font-face {
font-family: 'Roboto'; font-family: 'Roboto';
font-style: normal; font-style: normal;
font-weight: 700; font-weight: 700;
src: local('Roboto Bold'), local('Roboto-Bold'), url(../fonts/roboto-bold.ttf) format('truetype'), url(../fonts/roboto-bold.woff) format('woff'); src: local('Roboto Bold'), local('Roboto-Bold'), url('#{$roboto-font-path}/roboto-bold.ttf') format('truetype'), url('#{$roboto-font-path}/roboto-bold.woff') format('woff');
} }

View File

@ -49,6 +49,7 @@
// Ionicons // Ionicons
$font-path: "../fonts" !default;
$ionicons: true !default; $ionicons: true !default;
@if ($ionicons) { @if ($ionicons) {
@import "fonts/ionicons"; @import "fonts/ionicons";