MoveOnOrg / giraffe

MoveOn CSS from 2018 rebrand
1 stars 1 forks source link

MoveOn Style

Live version

This repository contains CSS and the needed fonts/images/etc. It also contains a styleguide (and implicitly visual tests) to help build HTML that conforms to MoveOn's style and design.

The two largest sources that use the live version of this CSS are front.moveon.org (WordPress) and act.moveon.org (ActionKit).

Visit https://static.moveon.org/giraffe/index.html for the live styleguide with details of how to reference and build out other pages.

Development

For development please read CONTRIBUTING.md.

Deployment

Deploy CSS, JS, images and fonts to AWS S3 (for MoveOn devs)

Updating main branch and pushing to github with ENV=production (in .env) triggers AWS S3 autodeploy via Travis. Minified assets are copied from public/fonts, public/images, public/scripts and public/styles into the deploy directory and then pushed to https://static.moveon.org/giraffe/. See .travis.yml for details.

To generate a new encrypted secret_access_key, install the travis command line tool https://github.com/travis-ci/travis.rb#installation and then run the travis encrypt command in https://docs.travis-ci.com/user/deployment/s3/ using the credentials for an aws user with write access to the proper s3 bucket. Be sure to lint your updated config with travis lint .travis.yml!

Uglify and minify assets

Setting ENV=production in .env ensures that assets are minified in gulp tasks that run before deployment. To uglify, set ENV=LOCAL before running gulp or gulp watch.

History

External documentation

MoveOn's custom WordPress theme implements giraffe and has documentation on how to manually configure key content on a site running the theme.