simple font-face mixin scss
/* SCSS */
@mixin font-face($name, $file) {
@font-face {
font-family: "#{$name}";
src: url("../fonts/#{$file}.eot");
src: url("../fonts/#{$file}.eot?#iefix") format("embedded-opentype"),
url("../fonts/#{$file}.woff") format("woff"),
url("../fonts/#{$file}.ttf") format("truetype"),
url("../fonts/#{$file}.svg?#webfont") format("svg");
}
}
Also in CSS:
- css grid generator
- how To target a particular td in css
- update npm
- how to align an image left in css
- font size css
- avd device reboot
- comment css
- scss gradient mixin
- free css templates
- image rotate css
- show central part of rectangle image css
- add background image css
- bind css
- position sticky css
- hide scrollbar html css
- what is css
- css variables
- simple font-face mixin scss
- css can't override bootstrap
- history of css
- font weight css
- make buttons round css
- how to link fonts css
- how do I add a vertical margin in css