waldyrious / primerpedia

Simplified extracts of Wikipedia articles, showing just the basic information.
https://primerpedia.toolforge.org
Other
11 stars 7 forks source link

Get rid of flowtype.js and use CSS instead #27

Closed waldyrious closed 6 years ago

waldyrious commented 6 years ago

Currently we're using (a variant of) flowtype.js for dynamically adjusting text size and line spacing according to the container element's size. Modern browsers make this possible using only CSS (based on the available screen size), so it would be nice to get rid of the extra script.

Here's a very simple (2-line) implementation, which could be adapted for this project.

waldyrious commented 6 years ago

Unfortunately I pushed the merge of #35 into the gh-pages branch before force-pushing the rebase of the remove-flowtype branch, so github didn't automatically detect that it was merged, and didn't automatically close this issue as resolved. Closing now manually (and lesson learned).