deb-python-xstatic-roboto-f.../roboto-fontface.less
Christian Hoffmeister ba950cb686 Add woff2 to css, less and scss
Close #5
2014-09-22 19:28:06 +02:00

28 lines
976 B
Plaintext

@roboto-font-path: 'fonts';
.roboto-font(@type, @weight, @style) {
@font-face {
font-family: 'Roboto';
src: url('@{roboto-font-path}/Roboto-@{type}.eot');
src: 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;
}
}
.roboto-font-pair(@type, @weight) {
.roboto-font('@{type}', @weight, normal);
.roboto-font('@{type}Italic', @weight, italic);
}
.roboto-font-pair(Thin, 100);
.roboto-font-pair(Light, 300);
.roboto-font-pair(Regular, 400);
.roboto-font-pair(Medium, 500);
.roboto-font-pair(Bold, 700);
.roboto-font-pair(Black, 900);