Giter VIP home page Giter VIP logo

bootstrap-csh's Introduction

bootstrap-csh

CSS overrides for Twitter Bootstrap, for use in Computer Science House websites.

Includes two themes:

  • public - The "Hacker" theme (green), for CSH public sites
  • members - 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.

Contributing

To contribute to this project:

  • Fork the repository.
  • Make your changes to members.less and/or public.less in the "dev" directory.
  • Compile and minify your changes (see "Using Grunt" below).
  • Verify your changes on the test pages (test/members/ or test/public/).
  • Push your changes and submit a pull request.

Using Grunt

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 at http://localhost:9000/public/ or http://localhost:9000/members/.

All available grunt tasks:

  • grunt or grunt default: Compile LESS and minify CSS for both themes
  • grunt defaultMembers: Compile LESS and minify CSS for the members theme only
  • grunt defaultPublic: Compile LESS and minify CSS for the public theme only
  • grunt dev: Compile LESS, minify CSS, and watch for changes in both themes
  • grunt devMembers Compile LESS, minfiy CSS, and watch for changes in the members theme
  • grunt devPublic Compile LESS, minfiy CSS, and watch for changes in the public theme
  • grunt test: Spin up a local web server at http://localhost:9000 to view the test pages
  • grunt testMembers: Spin up a local web server and open the members test page at http://localhost:9000/members/
  • grunt testPublic: Spin up a local web server and open the public test page at http://localhost:9000/public/

bootstrap-csh's People

Contributors

bencentra avatar brandonhudson avatar harlanhaskins avatar mbillow avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

bootstrap-csh's Issues

Update README

We don't use the hacker green anymore, stuff like that.

Public - Which should be green: @color-success or @color-primary?

In Bootstrap, @color-success is green by default. However, the primary color of the theme is green, so @color-primary should be green as well. You can't have two context sharing the same color, so which one deserves to be green?

Possible compromise: shades of green!

Don't override "context" colors; use "primary", "secondary", and "tertiary" instead

Overriding context colors (beyond tweaking shades a bit) can cause confusion, not only to end-users but developers who are used to using default Bootstrap. For example, the Member's theme uses the theme-appropriate pink for the "danger" context, which isn't exactly the same as the normal "red = danger".

Instead, override "primary" only and also provide "secondary" and "tertiary" colors that match the theme. This would mean additional classes for buttons, panels, alerts, and more.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.