CSS overrides for Twitter Bootstrap, for use in Computer Science House websites.
Includes two themes:
public
- The "Hacker" theme (green), for CSH public sitesmembers
- The "PDP-11" theme (purple and pink), for internal CSH sites
Minified and compiled files can be found in the release
directory. Original development files can be found in the dev
directory. Example pages using both themes can be found in the test
directory.
To contribute to this project:
- Fork the repository.
- Make your changes to
members.less
and/orpublic.less
in the "dev" directory. - Compile and minify your changes (see "Using Grunt" below).
- Verify your changes on the test pages (
test/members/
ortest/public/
). - Push your changes and submit a pull request.
Learn more about Grunt: http://gruntjs.com
First, install grunt-cli: npm install -g grunt-cli
Next, install dependencies: npm install
Recommended grunt workflow:
- In one terminal window, run
grunt dev
to automatically compile and minify LESS files whenever a change is made to either theme. - In another terminal window, run
grunt test
to spin up a web server and view your changes athttp://localhost:9000/public/
orhttp://localhost:9000/members/
.
All available grunt tasks:
grunt
orgrunt default
: Compile LESS and minify CSS for both themesgrunt defaultMembers
: Compile LESS and minify CSS for themembers
theme onlygrunt defaultPublic
: Compile LESS and minify CSS for thepublic
theme onlygrunt dev
: Compile LESS, minify CSS, and watch for changes in both themesgrunt devMembers
Compile LESS, minfiy CSS, and watch for changes in themembers
themegrunt devPublic
Compile LESS, minfiy CSS, and watch for changes in thepublic
themegrunt test
: Spin up a local web server athttp://localhost:9000
to view the test pagesgrunt testMembers
: Spin up a local web server and open themembers
test page athttp://localhost:9000/members/
grunt testPublic
: Spin up a local web server and open thepublic
test page athttp://localhost:9000/public/