This repo contains all the standard GrinnellPlans stylesheets, and a tool to quickly compare their behavior across interfaces.
Generate preview files:
- In this directory, run
python preview.py
(ormake previews
) - Previews are created in the
previews
subfolder, grouped by stylesheet.
Generate screenshots:
- Install PhantomJS.
brew install phantomjs
did it for me on a Mac, using Homebrew. - In this directory, run
phantomjs screenshots.js
(ormake screenshots
). - Screenshots are created in the
screenshots
subfolder, grouped by stylesheet.
Generate overview page (optional):
- Install Jinja:
pip install jinja2
. - In this directory, run
python templater.py > index.html
(ormake page
)
Should you choose to accept it, your mission is to descend into
html/styles
and edit the older stylesheets (default
,
oldstyle
, jolly
, blue
, terminal
, parchment
)
such that the postmodern
interface resembles the modern
interface, without changing the original appearance under modern
.
Here's my workflow:
Do the quickstart.
Choose a stylesheet to work on (say
terminal
). Save copies of the unmodified modern interface screenshots, to keep tabs on regression:cd screenshots/terminal for file in *.modern.html.png ; do mv $file `echo $file | sed 's/\(.*\.\)png/\1orig.png/'` ; doneIn
sheets.json
, delete lines related to sheets I'm not working on, and runmake screenshots
again.Open some pages from
previews/terminal
in my web browser, and start editing css files inhtml/styles
so they look right.Habitually invoke
make screenshots
, using an image comparison program to keep tabs on the difference betweenfoo.modern.html.orig.png
,foo.modern.html.png
, andfoo.postmodern.html.png
.