spike 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +21 -0
- data/.gitmodules +6 -0
- data/LICENSE +20 -0
- data/README.md +45 -0
- data/Rakefile +56 -0
- data/VERSION +1 -0
- data/bin/spike +5 -0
- data/lib/initializers/960.rb +33 -0
- data/lib/initializers/jquery.rb +1 -0
- data/lib/spike.rb +61 -0
- data/lib/template/app.css +0 -0
- data/lib/template/css/960/README.txt +52 -0
- data/lib/template/css/960/code/css/960.css +1 -0
- data/lib/template/css/960/code/css/960_24_col.css +1 -0
- data/lib/template/css/960/code/css/reset.css +1 -0
- data/lib/template/css/960/code/css/rtl_960.css +1 -0
- data/lib/template/css/960/code/css/rtl_960_24_col.css +1 -0
- data/lib/template/css/960/code/css/rtl_text.css +1 -0
- data/lib/template/css/960/code/css/text.css +1 -0
- data/lib/template/css/960/code/css/uncompressed/960.css +628 -0
- data/lib/template/css/960/code/css/uncompressed/960_24_col.css +599 -0
- data/lib/template/css/960/code/css/uncompressed/demo.css +47 -0
- data/lib/template/css/960/code/css/uncompressed/reset.css +53 -0
- data/lib/template/css/960/code/css/uncompressed/rtl_960.css +628 -0
- data/lib/template/css/960/code/css/uncompressed/rtl_960_24_col.css +599 -0
- data/lib/template/css/960/code/css/uncompressed/rtl_text.css +84 -0
- data/lib/template/css/960/code/css/uncompressed/text.css +84 -0
- data/lib/template/css/960/code/demo.html +538 -0
- data/lib/template/css/960/code/demo_24_col.html +411 -0
- data/lib/template/css/960/code/img/12_col.gif +0 -0
- data/lib/template/css/960/code/img/16_col.gif +0 -0
- data/lib/template/css/960/code/img/24_col.gif +0 -0
- data/lib/template/css/960/code/rtl_demo.html +538 -0
- data/lib/template/css/960/code/rtl_demo_24_col.html +411 -0
- data/lib/template/css/960/fireworks_extension/960.gs Grid Commands.mxp +0 -0
- data/lib/template/css/960/fireworks_extension/_source/12 columns.jsf +26 -0
- data/lib/template/css/960/fireworks_extension/_source/16 columns.jsf +26 -0
- data/lib/template/css/960/fireworks_extension/_source/24 columns.jsf +26 -0
- data/lib/template/css/960/fireworks_extension/_source/960.gs Grid Commands.mxi +22 -0
- data/lib/template/css/960/licenses/GPL_license.txt +674 -0
- data/lib/template/css/960/licenses/MIT_license.txt +20 -0
- data/lib/template/css/960/sketch_sheets/960_sketch.pdf +0 -0
- data/lib/template/css/960/templates/acorn/960_grid_12_col.acorn +0 -0
- data/lib/template/css/960/templates/acorn/960_grid_16_col.acorn +0 -0
- data/lib/template/css/960/templates/acorn/960_grid_24_col.acorn +0 -0
- data/lib/template/css/960/templates/corel_draw/960_grid_12_col.cdt +0 -0
- data/lib/template/css/960/templates/corel_draw/960_grid_16_col.cdt +0 -0
- data/lib/template/css/960/templates/corel_draw/960_grid_24_col.cdt +0 -0
- data/lib/template/css/960/templates/expression_design/960_grid_12_col.design +0 -0
- data/lib/template/css/960/templates/expression_design/960_grid_16_col.design +0 -0
- data/lib/template/css/960/templates/expression_design/960_grid_24_col.design +0 -0
- data/lib/template/css/960/templates/fireworks/960_grid_12_col.png +0 -0
- data/lib/template/css/960/templates/fireworks/960_grid_16_col.png +0 -0
- data/lib/template/css/960/templates/fireworks/960_grid_24_col.png +0 -0
- data/lib/template/css/960/templates/flash/960_grid_12_col.fla +0 -0
- data/lib/template/css/960/templates/flash/960_grid_16_col.fla +0 -0
- data/lib/template/css/960/templates/flash/960_grid_24_col.fla +0 -0
- data/lib/template/css/960/templates/gimp/960_grid_12_col.xcf +0 -0
- data/lib/template/css/960/templates/gimp/960_grid_16_col.xcf +0 -0
- data/lib/template/css/960/templates/gimp/960_grid_24_col.xcf +0 -0
- data/lib/template/css/960/templates/illustrator/960_grid_12_col.ai +372 -0
- data/lib/template/css/960/templates/illustrator/960_grid_16_col.ai +361 -0
- data/lib/template/css/960/templates/indesign/960_grid_12_col.inx +1197 -0
- data/lib/template/css/960/templates/indesign/960_grid_16_col.inx +1214 -0
- data/lib/template/css/960/templates/inkscape/960_grid_12_col.svg +217 -0
- data/lib/template/css/960/templates/inkscape/960_grid_16_col.svg +265 -0
- data/lib/template/css/960/templates/inkscape/960_grid_24_col.svg +174 -0
- data/lib/template/css/960/templates/omnigraffle/960_graffle.graffle +0 -0
- data/lib/template/css/960/templates/photoshop/960_grid_12_col.psd +0 -0
- data/lib/template/css/960/templates/photoshop/960_grid_16_col.psd +0 -0
- data/lib/template/css/960/templates/photoshop/960_grid_24_col.psd +0 -0
- data/lib/template/css/960/templates/visio/960_visio.vsd +0 -0
- data/lib/template/css/blueprint/AUTHORS.textile +42 -0
- data/lib/template/css/blueprint/CHANGELOG +159 -0
- data/lib/template/css/blueprint/LICENSE +22 -0
- data/lib/template/css/blueprint/README.textile +81 -0
- data/lib/template/css/blueprint/TUTORIAL.textile +206 -0
- data/lib/template/css/blueprint/blueprint/ie.css +35 -0
- data/lib/template/css/blueprint/blueprint/plugins/buttons/icons/cross.png +0 -0
- data/lib/template/css/blueprint/blueprint/plugins/buttons/icons/key.png +0 -0
- data/lib/template/css/blueprint/blueprint/plugins/buttons/icons/tick.png +0 -0
- data/lib/template/css/blueprint/blueprint/plugins/buttons/readme.txt +32 -0
- data/lib/template/css/blueprint/blueprint/plugins/buttons/screen.css +97 -0
- data/lib/template/css/blueprint/blueprint/plugins/fancy-type/readme.txt +14 -0
- data/lib/template/css/blueprint/blueprint/plugins/fancy-type/screen.css +71 -0
- data/lib/template/css/blueprint/blueprint/plugins/link-icons/icons/doc.png +0 -0
- data/lib/template/css/blueprint/blueprint/plugins/link-icons/icons/email.png +0 -0
- data/lib/template/css/blueprint/blueprint/plugins/link-icons/icons/external.png +0 -0
- data/lib/template/css/blueprint/blueprint/plugins/link-icons/icons/feed.png +0 -0
- data/lib/template/css/blueprint/blueprint/plugins/link-icons/icons/im.png +0 -0
- data/lib/template/css/blueprint/blueprint/plugins/link-icons/icons/pdf.png +0 -0
- data/lib/template/css/blueprint/blueprint/plugins/link-icons/icons/visited.png +0 -0
- data/lib/template/css/blueprint/blueprint/plugins/link-icons/icons/xls.png +0 -0
- data/lib/template/css/blueprint/blueprint/plugins/link-icons/readme.txt +18 -0
- data/lib/template/css/blueprint/blueprint/plugins/link-icons/screen.css +40 -0
- data/lib/template/css/blueprint/blueprint/plugins/rtl/readme.txt +10 -0
- data/lib/template/css/blueprint/blueprint/plugins/rtl/screen.css +110 -0
- data/lib/template/css/blueprint/blueprint/print.css +29 -0
- data/lib/template/css/blueprint/blueprint/screen.css +258 -0
- data/lib/template/css/blueprint/blueprint/src/forms.css +65 -0
- data/lib/template/css/blueprint/blueprint/src/grid.css +280 -0
- data/lib/template/css/blueprint/blueprint/src/grid.png +0 -0
- data/lib/template/css/blueprint/blueprint/src/ie.css +76 -0
- data/lib/template/css/blueprint/blueprint/src/print.css +85 -0
- data/lib/template/css/blueprint/blueprint/src/reset.css +45 -0
- data/lib/template/css/blueprint/blueprint/src/typography.css +106 -0
- data/lib/template/css/blueprint/lib/blueprint/blueprint.rb +39 -0
- data/lib/template/css/blueprint/lib/blueprint/compressor.rb +290 -0
- data/lib/template/css/blueprint/lib/blueprint/core_ext.rb +39 -0
- data/lib/template/css/blueprint/lib/blueprint/css_parser.rb +72 -0
- data/lib/template/css/blueprint/lib/blueprint/custom_layout.rb +72 -0
- data/lib/template/css/blueprint/lib/blueprint/grid.css.erb +146 -0
- data/lib/template/css/blueprint/lib/blueprint/grid_builder.rb +63 -0
- data/lib/template/css/blueprint/lib/blueprint/namespace.rb +38 -0
- data/lib/template/css/blueprint/lib/blueprint/semantic_class_names.rb +64 -0
- data/lib/template/css/blueprint/lib/blueprint/validate/COPYRIGHT.html +93 -0
- data/lib/template/css/blueprint/lib/blueprint/validate/JIGSAW_COPYRIGHT +64 -0
- data/lib/template/css/blueprint/lib/blueprint/validate/README.html +83 -0
- data/lib/template/css/blueprint/lib/blueprint/validate/XERCES_COPYING.txt +56 -0
- data/lib/template/css/blueprint/lib/blueprint/validate/css-validator-javadoc.jar +0 -0
- data/lib/template/css/blueprint/lib/blueprint/validate/css-validator.jar +0 -0
- data/lib/template/css/blueprint/lib/blueprint/validate/jigsaw.jar +0 -0
- data/lib/template/css/blueprint/lib/blueprint/validate/xerces.jar +0 -0
- data/lib/template/css/blueprint/lib/blueprint/validator.rb +49 -0
- data/lib/template/css/blueprint/lib/compress.rb +167 -0
- data/lib/template/css/blueprint/lib/settings.example.yml +33 -0
- data/lib/template/css/blueprint/lib/validate.rb +15 -0
- data/lib/template/css/blueprint/templates/psd/fixed-width.psd +0 -0
- data/lib/template/css/blueprint/tests/index.html +83 -0
- data/lib/template/css/blueprint/tests/parts/elements.html +247 -0
- data/lib/template/css/blueprint/tests/parts/forms.html +191 -0
- data/lib/template/css/blueprint/tests/parts/grid.html +163 -0
- data/lib/template/css/blueprint/tests/parts/sample.html +75 -0
- data/lib/template/css/blueprint/tests/parts/test-small.jpg +0 -0
- data/lib/template/css/blueprint/tests/parts/test.jpg +0 -0
- data/lib/template/css/blueprint/tests/parts/valid.png +0 -0
- data/lib/template/index.html +16 -0
- data/spike.gemspec +190 -0
- data/test/helper.rb +10 -0
- data/test/test_spike.rb +7 -0
- metadata +227 -0
@@ -0,0 +1,206 @@
|
|
1
|
+
h1. Blueprint CSS Framework Tutorial
|
2
|
+
|
3
|
+
Welcome to this tutorial on Blueprint. It will give you a thorough intro to what you can do with the framework, and a few notes on what you shouldn't do with it. Let's get started.
|
4
|
+
|
5
|
+
h2. About Blueprint
|
6
|
+
|
7
|
+
Blueprint is a CSS framework, designed to cut down on your development time. It gives you a solid foundation to build your CSS on top of, including some sensible default typography, a customizable grid, a print stylesheet and much more.
|
8
|
+
|
9
|
+
However, BP is not a silver bullet, and it's best suited for websites where each page may require its own design. Take a look at existing BP pages before deciding if the framework is right for you. You may also check out the test files in the @tests@ directory, which demonstrates most of the features in Blueprint.
|
10
|
+
|
11
|
+
The word "framework" may be a bit misleading in this context, since BP does not make suggestions on how you should organize or write your CSS. It's more like a "css toolbox" with helpful bits and pieces, from which you may pick and choose based on your needs.
|
12
|
+
|
13
|
+
h2. Structural Overview
|
14
|
+
|
15
|
+
From the bottom up, here are the CSS layers in Blueprint:
|
16
|
+
|
17
|
+
# *CSS reset*: Removes any default CSS rules set by each browser.
|
18
|
+
# *Typography*: Gives you some nice default typography and colors.
|
19
|
+
# *Grid*: Provides a set of CSS classes for making grid layouts.
|
20
|
+
|
21
|
+
The second part of Blueprint are the scripts, which let you customize most
|
22
|
+
aspects of the framework, from column count and widths, to output paths and
|
23
|
+
CSS class namespaces. We have two scripts:
|
24
|
+
|
25
|
+
# *Compressor*: For compressing and customizing the source files.
|
26
|
+
# *Validator*: For validating the Blueprint core files.
|
27
|
+
|
28
|
+
That's the quick overview, so now we can finally get into the details. First, we'll take
|
29
|
+
a look at the CSS in Blueprint. We'll then move on to the scripts, where I'll show you
|
30
|
+
how to customize the framework.
|
31
|
+
|
32
|
+
h2. Setting Up Blueprint
|
33
|
+
|
34
|
+
To use Blueprint, you must include three files in your HTML:
|
35
|
+
|
36
|
+
* @blueprint/screen.css@: All CSS for screen, projection viewing.
|
37
|
+
* @blueprint/print.css@: A basic stylesheet for printing.
|
38
|
+
* @blueprint/ie.css@: A few needed corrections for Internet Explorer
|
39
|
+
|
40
|
+
To include them, use the following HTML (make sure the href paths are correct):
|
41
|
+
<pre>
|
42
|
+
<link rel="stylesheet" href="css/blueprint/screen.css" type="text/css" media="screen, projection">
|
43
|
+
<link rel="stylesheet" href="css/blueprint/print.css" type="text/css" media="print">
|
44
|
+
<!--[if lt IE 8]>
|
45
|
+
<link rel="stylesheet" href="css/blueprint/ie.css" type="text/css" media="screen, projection">
|
46
|
+
<![endif]-->
|
47
|
+
</pre>
|
48
|
+
Remember to add trailing slashes if you're using XHTML (" />").
|
49
|
+
|
50
|
+
h2. Using the CSS in Blueprint
|
51
|
+
|
52
|
+
As mentioned before, there's basically three layers of CSS in Blueprint. The first two layers, the browser CSS reset and the default typography, apply themselves by changing the CSS of standard HTML elements. In other words, you don't need to change anything in these files. If you, for instance, want to change the font size, do this in your own stylesheet, so that it's easy to upgrade Blueprint when new versions arrive.
|
53
|
+
|
54
|
+
h3. Classes for Typography
|
55
|
+
|
56
|
+
While the typography of Blueprint mainly applies itself, there's a few classes
|
57
|
+
provided. Here's a list of their names and what they do:
|
58
|
+
|
59
|
+
<dl>
|
60
|
+
<dt>@.small@</dt><dd>Makes the text of this element smaller.</dd>
|
61
|
+
<dt>@.large@</dt><dd>Makes the text of this element larger.</dd>
|
62
|
+
<dt>@.hide@</dt><dd>Hides an element.</dd>
|
63
|
+
<dt>@.quiet@</dt><dd>Tones down the font color for this element.</dd>
|
64
|
+
<dt>@.loud@</dt><dd>Makes this elements text black.</dd>
|
65
|
+
<dt>@.highlight@</dt><dd>Adds a yellow background to the text.</dd>
|
66
|
+
<dt>@.added@</dt><dd>Adds green background to the text.</dd>
|
67
|
+
<dt>@.removed@</dt><dd>Adds red background to the text.</dd>
|
68
|
+
<dt>@.first@</dt><dd>Removes any left sided margin/padding from the element.</dd>
|
69
|
+
<dt>@.last@</dt><dd>Removes any right sided margin/padding from the element.</dd>
|
70
|
+
<dt>@.top@</dt><dd>Removes any top margin/padding from the element.</dd>
|
71
|
+
<dt>@.bottom@</dt><dd>Removes any bottom margin/padding from the element.</dd>
|
72
|
+
</dl>
|
73
|
+
|
74
|
+
h3. Styling Forms
|
75
|
+
|
76
|
+
To make Blueprint style your input elements, each text input element should
|
77
|
+
have the class @.text@, or @.title@, where @.text@ is the normal size,
|
78
|
+
and @.title@ gives you an input field with larger text.
|
79
|
+
|
80
|
+
There's also a few classes you may use for success and error messages:
|
81
|
+
|
82
|
+
<dl>
|
83
|
+
<dt>@div.error@</dt><dd>Creates an error box (red).</dd>
|
84
|
+
<dt>@div.notice@</dt><dd>Creates a box for notices (yellow).</dd>
|
85
|
+
<dt>@div.success@</dt><dd>Creates a box for success messages (green).</dd>
|
86
|
+
</dl>
|
87
|
+
|
88
|
+
h3. Creating a Grid
|
89
|
+
|
90
|
+
The third layer is the grid CSS classes, which is the tool Blueprint gives you to create almost any kind of grid layout for your site. Keep in mind that most of the CSS behind the grid can be customized (explained below). In this section however, I'm using the default settings.
|
91
|
+
|
92
|
+
The default grid is made up of 24 columns, each spanning 30px, with a 10px margin between each column. The total width comes to 950px, which is a good width for 1024x768 resolution displays. If you're interested in a narrower design, see the section on customizing the grid, below.
|
93
|
+
|
94
|
+
So how do you set up a grid? By using classes provided by Blueprint. To create a column, make a new @<div/>@, and apply one of the @.span-x@ classes to it. For instance, if you want a 3-column setup, with two narrow and one wide column, a header and a footer here's how you do it:
|
95
|
+
|
96
|
+
<pre>
|
97
|
+
<div class="container">
|
98
|
+
<div class="span-24">
|
99
|
+
The header
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<div class="span-4">
|
103
|
+
The first column
|
104
|
+
</div>
|
105
|
+
<div class="span-16">
|
106
|
+
The center column
|
107
|
+
</div>
|
108
|
+
<div class="span-4 last">
|
109
|
+
The last column
|
110
|
+
</div>
|
111
|
+
|
112
|
+
<div class="span-24">
|
113
|
+
The footer
|
114
|
+
</div>
|
115
|
+
</div>
|
116
|
+
</pre>
|
117
|
+
|
118
|
+
In addition to the spans, there are two important classes you need to know about. First of all, every Blueprint site needs to be wrapped in a div with the class @.container@, which is usually placed right after the body tag.
|
119
|
+
|
120
|
+
Second, the last column in a row (which by default has 24 columns), needs the class @.last@ to remove its left hand margin. Note, however, that each @.span-24@ don't need the @.last@ class, since these always span the entire width of the page.
|
121
|
+
|
122
|
+
To create basic grids, this is all you need to know. The grid CSS however, provides many more classes for more intricate designs. To see some of them in action, check out the files in @tests/parts/@. These files demonstrate what's possible with the grid in Blueprint.
|
123
|
+
|
124
|
+
Here's a quick overview of the other classes you can use in to make your grid:
|
125
|
+
|
126
|
+
<dl>
|
127
|
+
<dt>@.append-x@</dt><dd>Appends x number of empty columns after a column.</dd>
|
128
|
+
<dt>@.prepend-x@</dt><dd>Preppends x number of empty columns before a column.</dd>
|
129
|
+
<dt>@.push-x@</dt><dd>Pushes a column x columns to the left. Can be used to swap columns.</dd>
|
130
|
+
<dt>@.pull-x@</dt><dd>Pulls a column x columns to the right. Can be used to swap columns.</dd>
|
131
|
+
<dt>@.border@</dt><dd>Applies a border to the right side of the column.</dd>
|
132
|
+
<dt>@.colborder@</dt><dd>Appends one empty column, with a border down the middle.</dd>
|
133
|
+
<dt>@.clear@</dt><dd>Makes a column drop below a row, regardless of space.</dd>
|
134
|
+
<dt>@.showgrid@</dt><dd>Add to container or column to see the grid and baseline.</dd>
|
135
|
+
</dl>
|
136
|
+
|
137
|
+
In this list, @x@ is a number from 1 through 23 for append/prepend and 1 through 24 for push/pull. These numbers will of course change if you set a new number of columns in the settings file.
|
138
|
+
|
139
|
+
Here's another example where we have four columns of equal width, with a border between the two first and the two last columns, as well as a four column gap in the middle:
|
140
|
+
|
141
|
+
<pre>
|
142
|
+
<div class="container">
|
143
|
+
<div class="span-5 border">
|
144
|
+
The first column
|
145
|
+
</div>
|
146
|
+
<div class="span-5 append-4">
|
147
|
+
The second column
|
148
|
+
</div>
|
149
|
+
<div class="span-5 border">
|
150
|
+
The third column
|
151
|
+
</div>
|
152
|
+
<div class="span-5 last">
|
153
|
+
The fourth (last) column
|
154
|
+
</div>
|
155
|
+
</div>
|
156
|
+
</pre>
|
157
|
+
|
158
|
+
You may also nest columns to achieve the desired layout. Here's a setup where we want four rectangles with two on top and two below on the first half of the page, and one single column spanning the second half of the page:
|
159
|
+
|
160
|
+
<pre>
|
161
|
+
<div class="container">
|
162
|
+
<div class="span-12">
|
163
|
+
<div class="span-6">
|
164
|
+
Top left
|
165
|
+
</div>
|
166
|
+
<div class="span-6 last">
|
167
|
+
Top right
|
168
|
+
</div>
|
169
|
+
<div class="span-6">
|
170
|
+
Bottom left
|
171
|
+
</div>
|
172
|
+
<div class="span-6 last">
|
173
|
+
Bottom right
|
174
|
+
</div>
|
175
|
+
</div>
|
176
|
+
<div class="span-12 last">
|
177
|
+
Second half of page
|
178
|
+
</div>
|
179
|
+
</div>
|
180
|
+
</pre>
|
181
|
+
|
182
|
+
Try this code in your browser it it's difficult to understand what it would look like. To see more examples on how to use these classes, check out @/tests/parts/grid.html@.
|
183
|
+
|
184
|
+
h2. The Scripts
|
185
|
+
|
186
|
+
Blueprint comes with two scripts: one for compressing and customizing the CSS, and one for validating the core CSS files, which is handy if you're making changes to these files.
|
187
|
+
|
188
|
+
h3. The Validator
|
189
|
+
|
190
|
+
The validator has a fairly simple job - validate the CSS in the core BP files. The script uses a bundled version of the W3C CSS validator to accomplish this. To run it, you'll need to have Ruby installed on your machine. You can then run the script like so: @$ ruby validate.rb@.
|
191
|
+
|
192
|
+
Note that there are a few validation errors shipping with Blueprint. These are known, and comes from a few CSS hacks needed to ensure consistent rendering across the vast browser field.
|
193
|
+
|
194
|
+
h3. The Compressor
|
195
|
+
|
196
|
+
As the files you'll include in your HTML are the compressed versions of the core CSS files, you'll have to recompress the core if you've made any changes. This is what the compressor script is for.
|
197
|
+
|
198
|
+
In addition this is where you customize the grid. To customize the grid, a special settings file is used, and the new CSS is generated once you run the compressor. The new compressed files will then reflect your settings file.
|
199
|
+
|
200
|
+
To recompress, you just have to run the script. This will parse the core CSS files and output new compressed files in the blueprint folder. As with the validator, Ruby has to be installed to use this script. In the @lib@ directory, run: @$ruby compress.rb@
|
201
|
+
|
202
|
+
Calling this file by itself will pull files from @blueprint/src@ and concatenate them into three files; @ie.css@, @print.css@, and @screen.css@. However, argument variables can be set to change how this works. Calling @$ruby compress.rb -h@ will reveal basic arguments you can pass to the script.
|
203
|
+
|
204
|
+
h3. Custom Settings
|
205
|
+
|
206
|
+
To learn how to use custom settings, read through the documentation within @lib/compress.rb@
|
@@ -0,0 +1,35 @@
|
|
1
|
+
/* -----------------------------------------------------------------------
|
2
|
+
|
3
|
+
|
4
|
+
Blueprint CSS Framework 0.9
|
5
|
+
http://blueprintcss.org
|
6
|
+
|
7
|
+
* Copyright (c) 2007-Present. See LICENSE for more info.
|
8
|
+
* See README for instructions on how to use Blueprint.
|
9
|
+
* For credits and origins, see AUTHORS.
|
10
|
+
* This is a compressed file. See the sources in the 'src' directory.
|
11
|
+
|
12
|
+
----------------------------------------------------------------------- */
|
13
|
+
|
14
|
+
/* ie.css */
|
15
|
+
body {text-align:center;}
|
16
|
+
.container {text-align:left;}
|
17
|
+
* html .column, * html .span-1, * html .span-2, * html .span-3, * html .span-4, * html .span-5, * html .span-6, * html .span-7, * html .span-8, * html .span-9, * html .span-10, * html .span-11, * html .span-12, * html .span-13, * html .span-14, * html .span-15, * html .span-16, * html .span-17, * html .span-18, * html .span-19, * html .span-20, * html .span-21, * html .span-22, * html .span-23, * html .span-24 {display:inline;overflow-x:hidden;}
|
18
|
+
* html legend {margin:0px -8px 16px 0;padding:0;}
|
19
|
+
sup {vertical-align:text-top;}
|
20
|
+
sub {vertical-align:text-bottom;}
|
21
|
+
html>body p code {*white-space:normal;}
|
22
|
+
hr {margin:-8px auto 11px;}
|
23
|
+
img {-ms-interpolation-mode:bicubic;}
|
24
|
+
.clearfix, .container {display:inline-block;}
|
25
|
+
* html .clearfix, * html .container {height:1%;}
|
26
|
+
fieldset {padding-top:0;}
|
27
|
+
textarea {overflow:auto;}
|
28
|
+
input.text, input.title, textarea {background-color:#fff;border:1px solid #bbb;}
|
29
|
+
input.text:focus, input.title:focus {border-color:#666;}
|
30
|
+
input.text, input.title, textarea, select {margin:0.5em 0;}
|
31
|
+
input.checkbox, input.radio {position:relative;top:.25em;}
|
32
|
+
form.inline div, form.inline p {vertical-align:middle;}
|
33
|
+
form.inline label {position:relative;top:-0.25em;}
|
34
|
+
form.inline input.checkbox, form.inline input.radio, form.inline input.button, form.inline button {margin:0.5em 0;}
|
35
|
+
button, input.button {position:relative;top:0.25em;}
|
Binary file
|
Binary file
|
@@ -0,0 +1,32 @@
|
|
1
|
+
Buttons
|
2
|
+
|
3
|
+
* Gives you great looking CSS buttons, for both <a> and <button>.
|
4
|
+
* Demo: particletree.com/features/rediscovering-the-button-element
|
5
|
+
|
6
|
+
|
7
|
+
Credits
|
8
|
+
----------------------------------------------------------------
|
9
|
+
|
10
|
+
* Created by Kevin Hale [particletree.com]
|
11
|
+
* Adapted for Blueprint by Olav Bjorkoy [bjorkoy.com]
|
12
|
+
|
13
|
+
|
14
|
+
Usage
|
15
|
+
----------------------------------------------------------------
|
16
|
+
|
17
|
+
1) Add this plugin to lib/settings.yml.
|
18
|
+
See compress.rb for instructions.
|
19
|
+
|
20
|
+
2) Use the following HTML code to place the buttons on your site:
|
21
|
+
|
22
|
+
<button type="submit" class="button positive">
|
23
|
+
<img src="css/blueprint/plugins/buttons/icons/tick.png" alt=""/> Save
|
24
|
+
</button>
|
25
|
+
|
26
|
+
<a class="button" href="/password/reset/">
|
27
|
+
<img src="css/blueprint/plugins/buttons/icons/key.png" alt=""/> Change Password
|
28
|
+
</a>
|
29
|
+
|
30
|
+
<a href="#" class="button negative">
|
31
|
+
<img src="css/blueprint/plugins/buttons/icons/cross.png" alt=""/> Cancel
|
32
|
+
</a>
|
@@ -0,0 +1,97 @@
|
|
1
|
+
/* --------------------------------------------------------------
|
2
|
+
|
3
|
+
buttons.css
|
4
|
+
* Gives you some great CSS-only buttons.
|
5
|
+
|
6
|
+
Created by Kevin Hale [particletree.com]
|
7
|
+
* particletree.com/features/rediscovering-the-button-element
|
8
|
+
|
9
|
+
See Readme.txt in this folder for instructions.
|
10
|
+
|
11
|
+
-------------------------------------------------------------- */
|
12
|
+
|
13
|
+
a.button, button {
|
14
|
+
display:block;
|
15
|
+
float:left;
|
16
|
+
margin: 0.7em 0.5em 0.7em 0;
|
17
|
+
padding:5px 10px 5px 7px; /* Links */
|
18
|
+
|
19
|
+
border:1px solid #dedede;
|
20
|
+
border-top:1px solid #eee;
|
21
|
+
border-left:1px solid #eee;
|
22
|
+
|
23
|
+
background-color:#f5f5f5;
|
24
|
+
font-family:"Lucida Grande", Tahoma, Arial, Verdana, sans-serif;
|
25
|
+
font-size:100%;
|
26
|
+
line-height:130%;
|
27
|
+
text-decoration:none;
|
28
|
+
font-weight:bold;
|
29
|
+
color:#565656;
|
30
|
+
cursor:pointer;
|
31
|
+
}
|
32
|
+
button {
|
33
|
+
width:auto;
|
34
|
+
overflow:visible;
|
35
|
+
padding:4px 10px 3px 7px; /* IE6 */
|
36
|
+
}
|
37
|
+
button[type] {
|
38
|
+
padding:4px 10px 4px 7px; /* Firefox */
|
39
|
+
line-height:17px; /* Safari */
|
40
|
+
}
|
41
|
+
*:first-child+html button[type] {
|
42
|
+
padding:4px 10px 3px 7px; /* IE7 */
|
43
|
+
}
|
44
|
+
button img, a.button img{
|
45
|
+
margin:0 3px -3px 0 !important;
|
46
|
+
padding:0;
|
47
|
+
border:none;
|
48
|
+
width:16px;
|
49
|
+
height:16px;
|
50
|
+
float:none;
|
51
|
+
}
|
52
|
+
|
53
|
+
|
54
|
+
/* Button colors
|
55
|
+
-------------------------------------------------------------- */
|
56
|
+
|
57
|
+
/* Standard */
|
58
|
+
button:hover, a.button:hover{
|
59
|
+
background-color:#dff4ff;
|
60
|
+
border:1px solid #c2e1ef;
|
61
|
+
color:#336699;
|
62
|
+
}
|
63
|
+
a.button:active{
|
64
|
+
background-color:#6299c5;
|
65
|
+
border:1px solid #6299c5;
|
66
|
+
color:#fff;
|
67
|
+
}
|
68
|
+
|
69
|
+
/* Positive */
|
70
|
+
body .positive {
|
71
|
+
color:#529214;
|
72
|
+
}
|
73
|
+
a.positive:hover, button.positive:hover {
|
74
|
+
background-color:#E6EFC2;
|
75
|
+
border:1px solid #C6D880;
|
76
|
+
color:#529214;
|
77
|
+
}
|
78
|
+
a.positive:active {
|
79
|
+
background-color:#529214;
|
80
|
+
border:1px solid #529214;
|
81
|
+
color:#fff;
|
82
|
+
}
|
83
|
+
|
84
|
+
/* Negative */
|
85
|
+
body .negative {
|
86
|
+
color:#d12f19;
|
87
|
+
}
|
88
|
+
a.negative:hover, button.negative:hover {
|
89
|
+
background-color:#fbe3e4;
|
90
|
+
border:1px solid #fbc2c4;
|
91
|
+
color:#d12f19;
|
92
|
+
}
|
93
|
+
a.negative:active {
|
94
|
+
background-color:#d12f19;
|
95
|
+
border:1px solid #d12f19;
|
96
|
+
color:#fff;
|
97
|
+
}
|
@@ -0,0 +1,14 @@
|
|
1
|
+
Fancy Type
|
2
|
+
|
3
|
+
* Gives you classes to use if you'd like some
|
4
|
+
extra fancy typography.
|
5
|
+
|
6
|
+
Credits and instructions are specified above each class
|
7
|
+
in the fancy-type.css file in this directory.
|
8
|
+
|
9
|
+
|
10
|
+
Usage
|
11
|
+
----------------------------------------------------------------
|
12
|
+
|
13
|
+
1) Add this plugin to lib/settings.yml.
|
14
|
+
See compress.rb for instructions.
|
@@ -0,0 +1,71 @@
|
|
1
|
+
/* --------------------------------------------------------------
|
2
|
+
|
3
|
+
fancy-type.css
|
4
|
+
* Lots of pretty advanced classes for manipulating text.
|
5
|
+
|
6
|
+
See the Readme file in this folder for additional instructions.
|
7
|
+
|
8
|
+
-------------------------------------------------------------- */
|
9
|
+
|
10
|
+
/* Indentation instead of line shifts for sibling paragraphs. */
|
11
|
+
p + p { text-indent:2em; margin-top:-1.5em; }
|
12
|
+
form p + p { text-indent: 0; } /* Don't want this in forms. */
|
13
|
+
|
14
|
+
|
15
|
+
/* For great looking type, use this code instead of asdf:
|
16
|
+
<span class="alt">asdf</span>
|
17
|
+
Best used on prepositions and ampersands. */
|
18
|
+
|
19
|
+
.alt {
|
20
|
+
color: #666;
|
21
|
+
font-family: "Warnock Pro", "Goudy Old Style","Palatino","Book Antiqua", Georgia, serif;
|
22
|
+
font-style: italic;
|
23
|
+
font-weight: normal;
|
24
|
+
}
|
25
|
+
|
26
|
+
|
27
|
+
/* For great looking quote marks in titles, replace "asdf" with:
|
28
|
+
<span class="dquo">“</span>asdf”
|
29
|
+
(That is, when the title starts with a quote mark).
|
30
|
+
(You may have to change this value depending on your font size). */
|
31
|
+
|
32
|
+
.dquo { margin-left: -.5em; }
|
33
|
+
|
34
|
+
|
35
|
+
/* Reduced size type with incremental leading
|
36
|
+
(http://www.markboulton.co.uk/journal/comments/incremental_leading/)
|
37
|
+
|
38
|
+
This could be used for side notes. For smaller type, you don't necessarily want to
|
39
|
+
follow the 1.5x vertical rhythm -- the line-height is too much.
|
40
|
+
|
41
|
+
Using this class, it reduces your font size and line-height so that for
|
42
|
+
every four lines of normal sized type, there is five lines of the sidenote. eg:
|
43
|
+
|
44
|
+
New type size in em's:
|
45
|
+
10px (wanted side note size) / 12px (existing base size) = 0.8333 (new type size in ems)
|
46
|
+
|
47
|
+
New line-height value:
|
48
|
+
12px x 1.5 = 18px (old line-height)
|
49
|
+
18px x 4 = 72px
|
50
|
+
72px / 5 = 14.4px (new line height)
|
51
|
+
14.4px / 10px = 1.44 (new line height in em's) */
|
52
|
+
|
53
|
+
p.incr, .incr p {
|
54
|
+
font-size: 10px;
|
55
|
+
line-height: 1.44em;
|
56
|
+
margin-bottom: 1.5em;
|
57
|
+
}
|
58
|
+
|
59
|
+
|
60
|
+
/* Surround uppercase words and abbreviations with this class.
|
61
|
+
Based on work by Jørgen Arnor Gårdsø Lom [http://twistedintellect.com/] */
|
62
|
+
|
63
|
+
.caps {
|
64
|
+
font-variant: small-caps;
|
65
|
+
letter-spacing: 1px;
|
66
|
+
text-transform: lowercase;
|
67
|
+
font-size:1.2em;
|
68
|
+
line-height:1%;
|
69
|
+
font-weight:bold;
|
70
|
+
padding:0 2px;
|
71
|
+
}
|