Improve the fonts.less experience

Summary:
Create a fonts.less file which generates identical css to fonts.css, but using
less rules to be more understandable and customizable. For example, add the
ability to change where the fonts directory is located (instead of mandating it
be located next to the less file), and add the ability to disable specific font
formats (like disable EOTs when IE8 support isn't needed).

Test Plan:
 - Ensure that the test page and huxley page still work
 - Ensure that the output of `./node_modules/.bin/lessc static/fonts.less` is
   the same as the original css by running both through
   `./node_modules/.bin/cleancss` and diffing them.
 - Ensure that the huxley screenshots haven't changed
 - Ensure that the build step still works

Reviewers: alpert

Reviewed By: alpert

Differential Revision: http://phabricator.khanacademy.org/D13326
This commit is contained in:
Emily Eisenberg
2014-09-22 14:23:23 -07:00
parent 824fb7fd2f
commit bd6f762f94
8 changed files with 82 additions and 250 deletions

View File

@@ -16,7 +16,7 @@
"devDependencies": {
"browserify": "~2.29.1",
"express": "~3.3.3",
"less": "~1.4.2",
"less": "~1.7.5",
"uglify-js": "~2.4.15",
"clean-css": "~2.2.15",
"huxley": "~0.8.1",