A mixin for writing @font-face rules in SASS.
Create a font face rule. Embedded OpenType, WOFF2, WOFF, TrueType, and SVG files are automatically sourced.
@include font-face(Samplino, fonts/Samplino);
/* | |
Incredibly simple Node.js and Express application server for serving static assets. | |
DON'T USE THIS IN PRODUCTION! | |
It is meant for learning purposes only. This server is not optimized for performance, | |
and is missing key features such as error pages, compression, and caching. | |
For production, I recommend using an application framework that supports server-side rendering, | |
such as Next.js. https://nextjs.org |
$base-font-size: 16px; | |
/** | |
* Strips the unit from a given number-unit-combination and returns the number. | |
* @link: http://stackoverflow.com/a/12335841/1779999 | |
* @usage: parse-int(10px) => 10 | |
*/ | |
@function parse-int($number) { | |
@return $number / ($number * 0 + 1); |