Extracted mixins to the separate files and separated normal and italic variants
This commit is contained in:
parent
a0e6979480
commit
118410a744
@ -31,6 +31,11 @@ of the following files:
|
|||||||
* `roboto-fontface-(thin|light|regular|medium|bold|black).scss`
|
* `roboto-fontface-(thin|light|regular|medium|bold|black).scss`
|
||||||
* `roboto-fontface-(thin|light|regular|medium|bold|black).less`
|
* `roboto-fontface-(thin|light|regular|medium|bold|black).less`
|
||||||
|
|
||||||
|
Their italic variants can be imported by adding `-italic` suffix:
|
||||||
|
|
||||||
|
* `roboto-fontface-(thin|light|regular|medium|bold|black)-italic.scss`
|
||||||
|
* `roboto-fontface-(thin|light|regular|medium|bold|black)-italic.less`
|
||||||
|
|
||||||
## Hinting
|
## Hinting
|
||||||
|
|
||||||
Some of the included font files have [hinting](http://en.wikipedia.org/wiki/Font_hinting).
|
Some of the included font files have [hinting](http://en.wikipedia.org/wiki/Font_hinting).
|
||||||
|
34
css/mixins.less
Normal file
34
css/mixins.less
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
@roboto-font-path: '../fonts';
|
||||||
|
|
||||||
|
.roboto-font(@type, @weight, @style) {
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
||||||
|
src: local('Roboto @{type}'),
|
||||||
|
local('Roboto-@{type}'),
|
||||||
|
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
||||||
|
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
||||||
|
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
||||||
|
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
||||||
|
font-weight: @weight;
|
||||||
|
font-style: @style;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto-@{type}';
|
||||||
|
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
||||||
|
src: local('Roboto @{type}'),
|
||||||
|
local('Roboto-@{type}'),
|
||||||
|
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
||||||
|
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
||||||
|
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
||||||
|
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
.roboto-font-pair(@type, @weight) {
|
||||||
|
.roboto-font('@{type}', @weight, normal);
|
||||||
|
.roboto-font('@{type}Italic', @weight, italic);
|
||||||
|
}
|
34
css/mixins.scss
Normal file
34
css/mixins.scss
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
$roboto-font-path: '../fonts' !default;
|
||||||
|
|
||||||
|
@mixin roboto-font($type, $weight, $style) {
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto';
|
||||||
|
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
||||||
|
src: local('Roboto #{$type}'),
|
||||||
|
local('Roboto-#{$type}'),
|
||||||
|
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
||||||
|
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
||||||
|
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
||||||
|
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
||||||
|
font-weight: $weight;
|
||||||
|
font-style: $style;
|
||||||
|
}
|
||||||
|
|
||||||
|
@font-face {
|
||||||
|
font-family: 'Roboto-#{$type}';
|
||||||
|
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
||||||
|
src: local('Roboto #{$type}'),
|
||||||
|
local('Roboto-#{$type}'),
|
||||||
|
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
||||||
|
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
||||||
|
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
||||||
|
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
||||||
|
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@mixin roboto-font-pair($type, $weight) {
|
||||||
|
@include roboto-font($type, $weight, normal);
|
||||||
|
@include roboto-font(#{$type}Italic, $weight, italic);
|
||||||
|
}
|
3
css/roboto-fontface-black-italic.less
Normal file
3
css/roboto-fontface-black-italic.less
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
.roboto-font('BlackItalic', 900, italic);
|
3
css/roboto-fontface-black-italic.scss
Normal file
3
css/roboto-fontface-black-italic.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
@include roboto-font('BlackItalic', 900, italic);
|
@ -1,36 +1,3 @@
|
|||||||
@roboto-font-path: '../fonts';
|
@import "mixins";
|
||||||
|
|
||||||
.roboto-font(@type, @weight, @style) {
|
.roboto-font('Black', 900, normal);
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: @weight;
|
|
||||||
font-style: @style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-@{type}';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair(@type, @weight) {
|
|
||||||
.roboto-font('@{type}', @weight, normal);
|
|
||||||
.roboto-font('@{type}Italic', @weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair('Black', 900);
|
|
||||||
|
@ -1,36 +1,3 @@
|
|||||||
$roboto-font-path: '../fonts' !default;
|
@import "mixins";
|
||||||
|
|
||||||
@mixin roboto-font($type, $weight, $style: normal) {
|
@include roboto-font('Black', 900, normal);
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: $weight;
|
|
||||||
font-style: $style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-#{$type}';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin roboto-font-pair($type, $weight) {
|
|
||||||
@include roboto-font($type, $weight);
|
|
||||||
@include roboto-font(#{$type}Italic, $weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
@include roboto-font-pair('Black', 900);
|
|
||||||
|
3
css/roboto-fontface-bold-italic.less
Normal file
3
css/roboto-fontface-bold-italic.less
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
.roboto-font('BoldItalic', 700, italic);
|
3
css/roboto-fontface-bold-italic.scss
Normal file
3
css/roboto-fontface-bold-italic.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
@include roboto-font('BoldItalic', 700, italic);
|
@ -1,36 +1,3 @@
|
|||||||
@roboto-font-path: '../fonts';
|
@import "mixins";
|
||||||
|
|
||||||
.roboto-font(@type, @weight, @style) {
|
.roboto-font('Bold', 700, normal);
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: @weight;
|
|
||||||
font-style: @style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-@{type}';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair(@type, @weight) {
|
|
||||||
.roboto-font('@{type}', @weight, normal);
|
|
||||||
.roboto-font('@{type}Italic', @weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair('Bold', 700);
|
|
||||||
|
@ -1,36 +1,3 @@
|
|||||||
$roboto-font-path: '../fonts' !default;
|
@import "mixins";
|
||||||
|
|
||||||
@mixin roboto-font($type, $weight, $style: normal) {
|
@include roboto-font('Bold', 700, normal);
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: $weight;
|
|
||||||
font-style: $style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-#{$type}';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin roboto-font-pair($type, $weight) {
|
|
||||||
@include roboto-font($type, $weight);
|
|
||||||
@include roboto-font(#{$type}Italic, $weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
@include roboto-font-pair('Bold', 700);
|
|
||||||
|
3
css/roboto-fontface-light-italic.less
Normal file
3
css/roboto-fontface-light-italic.less
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
.roboto-font('LightItalic', 300, italic);
|
3
css/roboto-fontface-light-italic.scss
Normal file
3
css/roboto-fontface-light-italic.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
@include roboto-font('LightItalic', 300, italic);
|
@ -1,36 +1,3 @@
|
|||||||
@roboto-font-path: '../fonts';
|
@import "mixins";
|
||||||
|
|
||||||
.roboto-font(@type, @weight, @style) {
|
.roboto-font('Light', 300, normal);
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: @weight;
|
|
||||||
font-style: @style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-@{type}';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair(@type, @weight) {
|
|
||||||
.roboto-font('@{type}', @weight, normal);
|
|
||||||
.roboto-font('@{type}Italic', @weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair('Light', 300);
|
|
||||||
|
@ -1,36 +1,3 @@
|
|||||||
$roboto-font-path: '../fonts' !default;
|
@import "mixins";
|
||||||
|
|
||||||
@mixin roboto-font($type, $weight, $style: normal) {
|
@include roboto-font('Light', 300, normal);
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: $weight;
|
|
||||||
font-style: $style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-#{$type}';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin roboto-font-pair($type, $weight) {
|
|
||||||
@include roboto-font($type, $weight);
|
|
||||||
@include roboto-font(#{$type}Italic, $weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
@include roboto-font-pair('Light', 300);
|
|
||||||
|
3
css/roboto-fontface-medium-italic.less
Normal file
3
css/roboto-fontface-medium-italic.less
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
.roboto-font('MediumItalic', 500, italic);
|
3
css/roboto-fontface-medium-italic.scss
Normal file
3
css/roboto-fontface-medium-italic.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
@include roboto-font('MediumItalic', 500, italic);
|
@ -1,36 +1,3 @@
|
|||||||
@roboto-font-path: '../fonts';
|
@import "mixins";
|
||||||
|
|
||||||
.roboto-font(@type, @weight, @style) {
|
.roboto-font('Medium', 500, normal);
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: @weight;
|
|
||||||
font-style: @style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-@{type}';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair(@type, @weight) {
|
|
||||||
.roboto-font('@{type}', @weight, normal);
|
|
||||||
.roboto-font('@{type}Italic', @weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair('Medium', 500);
|
|
||||||
|
@ -1,36 +1,3 @@
|
|||||||
$roboto-font-path: '../fonts' !default;
|
@import "mixins";
|
||||||
|
|
||||||
@mixin roboto-font($type, $weight, $style: normal) {
|
@include roboto-font('Medium', 500, normal);
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: $weight;
|
|
||||||
font-style: $style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-#{$type}';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin roboto-font-pair($type, $weight) {
|
|
||||||
@include roboto-font($type, $weight);
|
|
||||||
@include roboto-font(#{$type}Italic, $weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
@include roboto-font-pair('Medium', 500);
|
|
||||||
|
3
css/roboto-fontface-regular-italic.less
Normal file
3
css/roboto-fontface-regular-italic.less
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
.roboto-font('RegularItalic', 400, italic);
|
3
css/roboto-fontface-regular-italic.scss
Normal file
3
css/roboto-fontface-regular-italic.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
@include roboto-font('RegularItalic', 400, italic);
|
@ -1,36 +1,3 @@
|
|||||||
@roboto-font-path: '../fonts';
|
@import "mixins";
|
||||||
|
|
||||||
.roboto-font(@type, @weight, @style) {
|
.roboto-font('Regular', 400, normal);
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: @weight;
|
|
||||||
font-style: @style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-@{type}';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair(@type, @weight) {
|
|
||||||
.roboto-font('@{type}', @weight, normal);
|
|
||||||
.roboto-font('@{type}Italic', @weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair('Regular', 400);
|
|
||||||
|
@ -1,36 +1,3 @@
|
|||||||
$roboto-font-path: '../fonts' !default;
|
@import "mixins";
|
||||||
|
|
||||||
@mixin roboto-font($type, $weight, $style: normal) {
|
@include roboto-font('Regular', 400, normal);
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: $weight;
|
|
||||||
font-style: $style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-#{$type}';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin roboto-font-pair($type, $weight) {
|
|
||||||
@include roboto-font($type, $weight);
|
|
||||||
@include roboto-font(#{$type}Italic, $weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
@include roboto-font-pair('Regular', 400);
|
|
||||||
|
3
css/roboto-fontface-thin-italic.less
Normal file
3
css/roboto-fontface-thin-italic.less
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
.roboto-font('ThinItalic', 100, italic);
|
3
css/roboto-fontface-thin-italic.scss
Normal file
3
css/roboto-fontface-thin-italic.scss
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
@import "mixins";
|
||||||
|
|
||||||
|
@include roboto-font('ThinItalic', 100, italic);
|
@ -1,36 +1,3 @@
|
|||||||
@roboto-font-path: '../fonts';
|
@import "mixins";
|
||||||
|
|
||||||
.roboto-font(@type, @weight, @style) {
|
.roboto-font('Thin', 100, normal);
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: @weight;
|
|
||||||
font-style: @style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-@{type}';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair(@type, @weight) {
|
|
||||||
.roboto-font('@{type}', @weight, normal);
|
|
||||||
.roboto-font('@{type}Italic', @weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair('Thin', 100);
|
|
||||||
|
@ -1,36 +1,3 @@
|
|||||||
$roboto-font-path: '../fonts' !default;
|
@import "mixins";
|
||||||
|
|
||||||
@mixin roboto-font($type, $weight, $style: normal) {
|
@include roboto-font('Thin', 100, normal);
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: $weight;
|
|
||||||
font-style: $style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-#{$type}';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin roboto-font-pair($type, $weight) {
|
|
||||||
@include roboto-font($type, $weight);
|
|
||||||
@include roboto-font(#{$type}Italic, $weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
@include roboto-font-pair('Thin', 100);
|
|
||||||
|
@ -1,37 +1,4 @@
|
|||||||
@roboto-font-path: '../fonts';
|
@import "mixins";
|
||||||
|
|
||||||
.roboto-font(@type, @weight, @style) {
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: @weight;
|
|
||||||
font-style: @style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-@{type}';
|
|
||||||
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
|
|
||||||
src: local('Roboto @{type}'),
|
|
||||||
local('Roboto-@{type}'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff2') format('woff2'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.woff') format('woff'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.ttf') format('truetype'),
|
|
||||||
url('@{roboto-font-path}/Roboto-@{type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair(@type, @weight) {
|
|
||||||
.roboto-font('@{type}', @weight, normal);
|
|
||||||
.roboto-font('@{type}Italic', @weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
.roboto-font-pair('Thin', 100);
|
.roboto-font-pair('Thin', 100);
|
||||||
.roboto-font-pair('Light', 300);
|
.roboto-font-pair('Light', 300);
|
||||||
|
@ -1,37 +1,4 @@
|
|||||||
$roboto-font-path: '../fonts' !default;
|
@import "mixins";
|
||||||
|
|
||||||
@mixin roboto-font($type, $weight, $style: normal) {
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
font-weight: $weight;
|
|
||||||
font-style: $style;
|
|
||||||
}
|
|
||||||
|
|
||||||
@font-face {
|
|
||||||
font-family: 'Roboto-#{$type}';
|
|
||||||
src: url('#{$roboto-font-path}/Roboto-#{$type}.eot');
|
|
||||||
src: local('Roboto #{$type}'),
|
|
||||||
local('Roboto-#{$type}'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.eot?#iefix') format('embedded-opentype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff2') format('woff2'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.woff') format('woff'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.ttf') format('truetype'),
|
|
||||||
url('#{$roboto-font-path}/Roboto-#{$type}.svg#Roboto') format('svg');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@mixin roboto-font-pair($type, $weight) {
|
|
||||||
@include roboto-font($type, $weight);
|
|
||||||
@include roboto-font(#{$type}Italic, $weight, italic);
|
|
||||||
}
|
|
||||||
|
|
||||||
@include roboto-font-pair('Thin', 100);
|
@include roboto-font-pair('Thin', 100);
|
||||||
@include roboto-font-pair('Light', 300);
|
@include roboto-font-pair('Light', 300);
|
||||||
|
Loading…
Reference in New Issue
Block a user