CSS Framework ReadmeBlueprint
Welcome to Blueprint! This is a CSS framework designed to cut down on your CSS development time. It gives you a solid foundation to build your own CSS on. Here are some of the features BP provides out-of-the-box:
- An easily customizable grid
- Sensible default typography
- A typographic baseline
- Perfected browser CSS reset
- A stylesheet for printing
- Powerful scripts for customization
- Absolutely no bloat!
- Web: http://blueprintcss.org
- Source: http://github.com/joshuaclayton/blueprint-css
- Wiki: http://github.com/joshuaclayton/blueprint-css/wikis/home
- Bug/Feature Tracking: http://blueprintcss.lighthouseapp.com
Here’s how you set up Blueprint on your site.
- Upload the “blueprint” folder in this folder to your server, and place it in whatever folder you’d like. A good choice would be your CSS folder.
- Add the following three lines to every
<head/>of your site. Make sure the three
hrefpaths are correct (here, BP is in my CSS folder):
<link rel="stylesheet" href="css/blueprint/screen.css" type="text/css" media="screen, projection"> <link rel="stylesheet" href="css/blueprint/print.css" type="text/css" media="print"> <!--[if lt IE 8]> <link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection"> <![endif]-->
Remember to include trailing slashes (" />") in these lines if you’re using XHTML.
- For development, add the .showgrid class to any container or column to see the underlying grid. Check out the
pluginsdirectory for more advanced functionality.
- How to customize BP with the compressor script
- How to use a grid in a layout
- How to use a baseline in your typography
Files in Blueprint
The framework has a few files you should check out. Every file in the
src directory contains lots of (hopefully) clarifying comments.
Compressed files (these go in the HTML):
This file resets CSS values that browsers tend to set for you.
This file sets up the grid (it’s true). It has a lot of classes you apply to
<div/>elements to set up any sort of column-based grid.
This file is used by the compressor (see below) when generating grids. All changes to grid.css are mirrored in this file, manually.
This file sets some default typography. It also has a few methods for some really fancy stuff to do with your text.
Includes some minimal styling of forms.
This file sets some default print rules, so that printed versions of your site looks better than they usually would. It should be included on every page.
Includes every hack for our beloved IE6 and 7.
A Ruby script for compressing and customizing your CSS. Set a custom namespace, column count, widths, output paths, multiple projects, and semantic class names. See commenting in
$ruby compress.rb -hfor more information.
Validates the Blueprint core files with the W3C CSS validator.
Contains additional functionality in the form of simple plugins for Blueprint. See individual readme files in the directory of each plugin for further instructions.
Contains html files which tests most aspects of Blueprint. Open
tests/index.htmlfor further instructions.
- For credits and origins, see AUTHORS.
- For license instructions, see LICENSE.
- For the latest updates, see CHANGELOG.
removed selectors which made it impossible to overwrite the background color of input fields
If one wants to change the background color of an input field, this would currently fail (tested in FF3.6.17) as the selectors ([type=...]) take precedence.
With this patch one is able to e.g. have a red input field with <input class="error" ... />
Let me know if it negatively influences other areas of blueprint.
Generated .colborder is too wide
Hello, i'm new to blueprint so maybe my fix is not right.
I have generated my own blueprint css with help from compress.rb and realized that the colborder is too wide. Hope you can check again.
The input type 'url' is in HTML5, can you add it in the blueprint style ?
There is lot of new types of input ( http://www.w3.org/TR/html-markup/input.html ), but I'm not sure of the others.
Added travis config to install Qt for capybara-webkit
Travis build has been broken since introducing
capybara-webkitto the gem stack in bd1f0b5. This gem requires a manual install of Qt. Adding this step to a
.travis.ymlfile should solve this.
Small tweaks to compress.rb (optional PNG grid flag, fixed semantic classes for ruby 1.9+)
ChunkyPNG seems to be flaky on a lot of peoples dev environments, so i made it optional w/ the -g flag. Semantic Classes was using Array's implicit .to_s, which causes a ["...", "..."] output in newer versions of Ruby.
Optimise images (93 KB reduction)
I've taken the liberty of putting blueprint-css's image assets though a range of optimisation tools. Image optimisation allows us to reduce the footprint of images - meaning faster load times at no cost to image quality. It does this by finding the best (lossless) compression parameters, stripping embedded comments, and removing unnecessary colour profiles. See more.
I found 13 optimisable images, making a 93 KB reduction in size. That's about 68.95% of your total image assets.
Tools used: advpng, gifsicle, jpegoptim, jpegrescan, jpegtran, optipng, pngcrush, pngout. This is an automated bot maintained by @skattyadz
Remove Goudy due to IE9 sucking and making it always appear in italics
...http://stackoverflow.com/questions/8868222/why-does-goudy-old-style-only-display-in-italics-in-ie9 and http://stackoverflow.com/questions/7910391/ie9-causes-all-webpage-text-to-render-as-italic-when-font-familygoudy-oldstyle