blueprint-rails 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
File without changes
@@ -0,0 +1,10 @@
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+
4
+ Rake::TestTask.new do |t|
5
+ t.libs << 'lib'
6
+ t.pattern = 'test/**/*_test.rb'
7
+ t.verbose = false
8
+ end
9
+
10
+ task :default => :test
@@ -0,0 +1,26 @@
1
+ # encoding: utf-8
2
+
3
+ $:.unshift File.expand_path('../lib', __FILE__)
4
+ require 'blueprint-rails/version'
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "blueprint-rails"
8
+ s.version = Blueprint::Rails::VERSION
9
+ s.authors = ["beawesomeinstead"]
10
+ s.email = "graf.otodrakula@gmail.com"
11
+ s.homepage = "http://github.com/bai/blueprint-rails"
12
+ s.summary = "Use Blueprint CSS framework with Rails 3"
13
+ s.description = "This gem provides Blueprint CSS framework for your Rails 3 application."
14
+
15
+ s.required_rubygems_version = ">= 1.3.6"
16
+
17
+ s.files = `git ls-files`.split("\n")
18
+ s.platform = Gem::Platform::RUBY
19
+ s.require_path = 'lib'
20
+ s.rubyforge_project = '[none]'
21
+
22
+ s.add_dependency "railties", "~> 3.0"
23
+ s.add_dependency "thor", "~> 0.14"
24
+ s.add_development_dependency "bundler", "~> 1.0.0"
25
+ s.add_development_dependency "rails", "~> 3.0"
26
+ end
@@ -0,0 +1,9 @@
1
+ module Blueprint
2
+ module Rails
3
+ if ::Rails.version < "3.1"
4
+ require 'blueprint-rails/railtie'
5
+ else
6
+ require 'blueprint-rails/engine'
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,6 @@
1
+ module Blueprint
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
@@ -0,0 +1,10 @@
1
+ # Configure Rails 3.0 to use public/javascripts/* et al
2
+ module Blueprint
3
+ module Rails
4
+ class Railtie < ::Rails::Railtie
5
+ config.before_configuration do
6
+ # config.action_view.javascript_expansions[:defaults] << %w(reset fonts grid)
7
+ end
8
+ end
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ module Blueprint
2
+ module Rails
3
+ VERSION = "0.1.0"
4
+ end
5
+ end
File without changes
@@ -0,0 +1,82 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ forms.css
4
+ * Sets up some default styling for forms
5
+ * Gives you classes to enhance your forms
6
+
7
+ Usage:
8
+ * For text fields, use class .title or .text
9
+ * For inline forms, use .inline (even when using columns)
10
+
11
+ -------------------------------------------------------------- */
12
+
13
+ /*
14
+ A special hack is included for IE8 since it does not apply padding
15
+ correctly on fieldsets
16
+ */
17
+ label { font-weight: bold; }
18
+ fieldset { padding:0 1.4em 1.4em 1.4em; margin: 0 0 1.5em 0; border: 1px solid #ccc; }
19
+ legend { font-weight: bold; font-size:1.2em; margin-top:-0.2em; margin-bottom:1em; }
20
+
21
+ fieldset, #IE8#HACK { padding-top:1.4em; }
22
+ legend, #IE8#HACK { margin-top:0; margin-bottom:0; }
23
+
24
+ /* Form fields
25
+ -------------------------------------------------------------- */
26
+
27
+ /*
28
+ Attribute selectors are used to differentiate the different types
29
+ of input elements, but to support old browsers, you will have to
30
+ add classes for each one. ".title" simply creates a large text
31
+ field, this is purely for looks.
32
+ */
33
+ input[type=text], input[type=password], input[type=url], input[type=email],
34
+ input.text, input.title,
35
+ textarea {
36
+ background-color:#fff;
37
+ border:1px solid #bbb;
38
+ color:#000;
39
+ }
40
+ input[type=text]:focus, input[type=password]:focus, input[type=url]:focus, input[type=email]:focus,
41
+ input.text:focus, input.title:focus,
42
+ textarea:focus {
43
+ border-color:#666;
44
+ }
45
+ select { background-color:#fff; border-width:1px; border-style:solid; }
46
+
47
+ input[type=text], input[type=password], input[type=url], input[type=email],
48
+ input.text, input.title,
49
+ textarea, select {
50
+ margin:0.5em 0;
51
+ }
52
+
53
+ input.text,
54
+ input.title { width: 300px; padding:5px; }
55
+ input.title { font-size:1.5em; }
56
+ textarea { width: 390px; height: 250px; padding:5px; }
57
+
58
+ /*
59
+ This is to be used on forms where a variety of elements are
60
+ placed side-by-side. Use the p tag to denote a line.
61
+ */
62
+ form.inline { line-height:3; }
63
+ form.inline p { margin-bottom:0; }
64
+
65
+
66
+ /* Success, info, notice and error/alert boxes
67
+ -------------------------------------------------------------- */
68
+
69
+ .error,
70
+ .alert,
71
+ .notice,
72
+ .success,
73
+ .info { padding: 0.8em; margin-bottom: 1em; border: 2px solid #ddd; }
74
+
75
+ .error, .alert { background: #fbe3e4; color: #8a1f11; border-color: #fbc2c4; }
76
+ .notice { background: #fff6bf; color: #514721; border-color: #ffd324; }
77
+ .success { background: #e6efc2; color: #264409; border-color: #c6d880; }
78
+ .info { background: #d5edf8; color: #205791; border-color: #92cae4; }
79
+ .error a, .alert a { color: #8a1f11; }
80
+ .notice a { color: #514721; }
81
+ .success a { color: #264409; }
82
+ .info a { color: #205791; }
@@ -0,0 +1,280 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ grid.css
4
+ * Sets up an easy-to-use grid of 24 columns.
5
+
6
+ By default, the grid is 950px wide, with 24 columns
7
+ spanning 30px, and a 10px margin between columns.
8
+
9
+ If you need fewer or more columns, namespaces or semantic
10
+ element names, use the compressor script (lib/compress.rb)
11
+
12
+ -------------------------------------------------------------- */
13
+
14
+ /* A container should group all your columns. */
15
+ .container {
16
+ width: 950px;
17
+ margin: 0 auto;
18
+ }
19
+
20
+ /* Use this class on any .span / container to see the grid. */
21
+ .showgrid {
22
+ background: url(src/grid.png);
23
+ }
24
+
25
+
26
+ /* Columns
27
+ -------------------------------------------------------------- */
28
+
29
+ /* Sets up basic grid floating and margin. */
30
+ .column, .span-1, .span-2, .span-3, .span-4, .span-5, .span-6, .span-7, .span-8, .span-9, .span-10, .span-11, .span-12, .span-13, .span-14, .span-15, .span-16, .span-17, .span-18, .span-19, .span-20, .span-21, .span-22, .span-23, .span-24 {
31
+ float: left;
32
+ margin-right: 10px;
33
+ }
34
+
35
+ /* The last column in a row needs this class. */
36
+ .last { margin-right: 0; }
37
+
38
+ /* Use these classes to set the width of a column. */
39
+ .span-1 {width: 30px;}
40
+
41
+ .span-2 {width: 70px;}
42
+ .span-3 {width: 110px;}
43
+ .span-4 {width: 150px;}
44
+ .span-5 {width: 190px;}
45
+ .span-6 {width: 230px;}
46
+ .span-7 {width: 270px;}
47
+ .span-8 {width: 310px;}
48
+ .span-9 {width: 350px;}
49
+ .span-10 {width: 390px;}
50
+ .span-11 {width: 430px;}
51
+ .span-12 {width: 470px;}
52
+ .span-13 {width: 510px;}
53
+ .span-14 {width: 550px;}
54
+ .span-15 {width: 590px;}
55
+ .span-16 {width: 630px;}
56
+ .span-17 {width: 670px;}
57
+ .span-18 {width: 710px;}
58
+ .span-19 {width: 750px;}
59
+ .span-20 {width: 790px;}
60
+ .span-21 {width: 830px;}
61
+ .span-22 {width: 870px;}
62
+ .span-23 {width: 910px;}
63
+ .span-24 {width:950px; margin-right:0;}
64
+
65
+ /* Use these classes to set the width of an input. */
66
+ input.span-1, textarea.span-1, input.span-2, textarea.span-2, input.span-3, textarea.span-3, input.span-4, textarea.span-4, input.span-5, textarea.span-5, input.span-6, textarea.span-6, input.span-7, textarea.span-7, input.span-8, textarea.span-8, input.span-9, textarea.span-9, input.span-10, textarea.span-10, input.span-11, textarea.span-11, input.span-12, textarea.span-12, input.span-13, textarea.span-13, input.span-14, textarea.span-14, input.span-15, textarea.span-15, input.span-16, textarea.span-16, input.span-17, textarea.span-17, input.span-18, textarea.span-18, input.span-19, textarea.span-19, input.span-20, textarea.span-20, input.span-21, textarea.span-21, input.span-22, textarea.span-22, input.span-23, textarea.span-23, input.span-24, textarea.span-24 {
67
+ border-left-width: 1px;
68
+ border-right-width: 1px;
69
+ padding-left: 5px;
70
+ padding-right: 5px;
71
+ }
72
+
73
+ input.span-1, textarea.span-1 { width: 18px; }
74
+ input.span-2, textarea.span-2 { width: 58px; }
75
+ input.span-3, textarea.span-3 { width: 98px; }
76
+ input.span-4, textarea.span-4 { width: 138px; }
77
+ input.span-5, textarea.span-5 { width: 178px; }
78
+ input.span-6, textarea.span-6 { width: 218px; }
79
+ input.span-7, textarea.span-7 { width: 258px; }
80
+ input.span-8, textarea.span-8 { width: 298px; }
81
+ input.span-9, textarea.span-9 { width: 338px; }
82
+ input.span-10, textarea.span-10 { width: 378px; }
83
+ input.span-11, textarea.span-11 { width: 418px; }
84
+ input.span-12, textarea.span-12 { width: 458px; }
85
+ input.span-13, textarea.span-13 { width: 498px; }
86
+ input.span-14, textarea.span-14 { width: 538px; }
87
+ input.span-15, textarea.span-15 { width: 578px; }
88
+ input.span-16, textarea.span-16 { width: 618px; }
89
+ input.span-17, textarea.span-17 { width: 658px; }
90
+ input.span-18, textarea.span-18 { width: 698px; }
91
+ input.span-19, textarea.span-19 { width: 738px; }
92
+ input.span-20, textarea.span-20 { width: 778px; }
93
+ input.span-21, textarea.span-21 { width: 818px; }
94
+ input.span-22, textarea.span-22 { width: 858px; }
95
+ input.span-23, textarea.span-23 { width: 898px; }
96
+ input.span-24, textarea.span-24 { width: 938px; }
97
+
98
+ /* Add these to a column to append empty cols. */
99
+
100
+ .append-1 { padding-right: 40px;}
101
+ .append-2 { padding-right: 80px;}
102
+ .append-3 { padding-right: 120px;}
103
+ .append-4 { padding-right: 160px;}
104
+ .append-5 { padding-right: 200px;}
105
+ .append-6 { padding-right: 240px;}
106
+ .append-7 { padding-right: 280px;}
107
+ .append-8 { padding-right: 320px;}
108
+ .append-9 { padding-right: 360px;}
109
+ .append-10 { padding-right: 400px;}
110
+ .append-11 { padding-right: 440px;}
111
+ .append-12 { padding-right: 480px;}
112
+ .append-13 { padding-right: 520px;}
113
+ .append-14 { padding-right: 560px;}
114
+ .append-15 { padding-right: 600px;}
115
+ .append-16 { padding-right: 640px;}
116
+ .append-17 { padding-right: 680px;}
117
+ .append-18 { padding-right: 720px;}
118
+ .append-19 { padding-right: 760px;}
119
+ .append-20 { padding-right: 800px;}
120
+ .append-21 { padding-right: 840px;}
121
+ .append-22 { padding-right: 880px;}
122
+ .append-23 { padding-right: 920px;}
123
+
124
+ /* Add these to a column to prepend empty cols. */
125
+
126
+ .prepend-1 { padding-left: 40px;}
127
+ .prepend-2 { padding-left: 80px;}
128
+ .prepend-3 { padding-left: 120px;}
129
+ .prepend-4 { padding-left: 160px;}
130
+ .prepend-5 { padding-left: 200px;}
131
+ .prepend-6 { padding-left: 240px;}
132
+ .prepend-7 { padding-left: 280px;}
133
+ .prepend-8 { padding-left: 320px;}
134
+ .prepend-9 { padding-left: 360px;}
135
+ .prepend-10 { padding-left: 400px;}
136
+ .prepend-11 { padding-left: 440px;}
137
+ .prepend-12 { padding-left: 480px;}
138
+ .prepend-13 { padding-left: 520px;}
139
+ .prepend-14 { padding-left: 560px;}
140
+ .prepend-15 { padding-left: 600px;}
141
+ .prepend-16 { padding-left: 640px;}
142
+ .prepend-17 { padding-left: 680px;}
143
+ .prepend-18 { padding-left: 720px;}
144
+ .prepend-19 { padding-left: 760px;}
145
+ .prepend-20 { padding-left: 800px;}
146
+ .prepend-21 { padding-left: 840px;}
147
+ .prepend-22 { padding-left: 880px;}
148
+ .prepend-23 { padding-left: 920px;}
149
+
150
+
151
+ /* Border on right hand side of a column. */
152
+ .border {
153
+ padding-right: 4px;
154
+ margin-right: 5px;
155
+ border-right: 1px solid #ddd;
156
+ }
157
+
158
+ /* Border with more whitespace, spans one column. */
159
+ .colborder {
160
+ padding-right: 24px;
161
+ margin-right: 25px;
162
+ border-right: 1px solid #ddd;
163
+ }
164
+
165
+
166
+ /* Use these classes on an element to push it into the
167
+ next column, or to pull it into the previous column. */
168
+
169
+
170
+ .pull-1 { margin-left: -40px; }
171
+ .pull-2 { margin-left: -80px; }
172
+ .pull-3 { margin-left: -120px; }
173
+ .pull-4 { margin-left: -160px; }
174
+ .pull-5 { margin-left: -200px; }
175
+ .pull-6 { margin-left: -240px; }
176
+ .pull-7 { margin-left: -280px; }
177
+ .pull-8 { margin-left: -320px; }
178
+ .pull-9 { margin-left: -360px; }
179
+ .pull-10 { margin-left: -400px; }
180
+ .pull-11 { margin-left: -440px; }
181
+ .pull-12 { margin-left: -480px; }
182
+ .pull-13 { margin-left: -520px; }
183
+ .pull-14 { margin-left: -560px; }
184
+ .pull-15 { margin-left: -600px; }
185
+ .pull-16 { margin-left: -640px; }
186
+ .pull-17 { margin-left: -680px; }
187
+ .pull-18 { margin-left: -720px; }
188
+ .pull-19 { margin-left: -760px; }
189
+ .pull-20 { margin-left: -800px; }
190
+ .pull-21 { margin-left: -840px; }
191
+ .pull-22 { margin-left: -880px; }
192
+ .pull-23 { margin-left: -920px; }
193
+ .pull-24 { margin-left: -960px; }
194
+
195
+ .pull-1, .pull-2, .pull-3, .pull-4, .pull-5, .pull-6, .pull-7, .pull-8, .pull-9, .pull-10, .pull-11, .pull-12, .pull-13, .pull-14, .pull-15, .pull-16, .pull-17, .pull-18, .pull-19, .pull-20, .pull-21, .pull-22, .pull-23, .pull-24 {float: left; position:relative;}
196
+
197
+
198
+ .push-1 { margin: 0 -40px 1.5em 40px; }
199
+ .push-2 { margin: 0 -80px 1.5em 80px; }
200
+ .push-3 { margin: 0 -120px 1.5em 120px; }
201
+ .push-4 { margin: 0 -160px 1.5em 160px; }
202
+ .push-5 { margin: 0 -200px 1.5em 200px; }
203
+ .push-6 { margin: 0 -240px 1.5em 240px; }
204
+ .push-7 { margin: 0 -280px 1.5em 280px; }
205
+ .push-8 { margin: 0 -320px 1.5em 320px; }
206
+ .push-9 { margin: 0 -360px 1.5em 360px; }
207
+ .push-10 { margin: 0 -400px 1.5em 400px; }
208
+ .push-11 { margin: 0 -440px 1.5em 440px; }
209
+ .push-12 { margin: 0 -480px 1.5em 480px; }
210
+ .push-13 { margin: 0 -520px 1.5em 520px; }
211
+ .push-14 { margin: 0 -560px 1.5em 560px; }
212
+ .push-15 { margin: 0 -600px 1.5em 600px; }
213
+ .push-16 { margin: 0 -640px 1.5em 640px; }
214
+ .push-17 { margin: 0 -680px 1.5em 680px; }
215
+ .push-18 { margin: 0 -720px 1.5em 720px; }
216
+ .push-19 { margin: 0 -760px 1.5em 760px; }
217
+ .push-20 { margin: 0 -800px 1.5em 800px; }
218
+ .push-21 { margin: 0 -840px 1.5em 840px; }
219
+ .push-22 { margin: 0 -880px 1.5em 880px; }
220
+ .push-23 { margin: 0 -920px 1.5em 920px; }
221
+ .push-24 { margin: 0 -960px 1.5em 960px; }
222
+
223
+ .push-1, .push-2, .push-3, .push-4, .push-5, .push-6, .push-7, .push-8, .push-9, .push-10, .push-11, .push-12, .push-13, .push-14, .push-15, .push-16, .push-17, .push-18, .push-19, .push-20, .push-21, .push-22, .push-23, .push-24 {float: left; position:relative;}
224
+
225
+
226
+ /* Misc classes and elements
227
+ -------------------------------------------------------------- */
228
+
229
+ /* In case you need to add a gutter above/below an element */
230
+ div.prepend-top, .prepend-top {
231
+ margin-top:1.5em;
232
+ }
233
+ div.append-bottom, .append-bottom {
234
+ margin-bottom:1.5em;
235
+ }
236
+
237
+ /* Use a .box to create a padded box inside a column. */
238
+ .box {
239
+ padding: 1.5em;
240
+ margin-bottom: 1.5em;
241
+ background: #e5eCf9;
242
+ }
243
+
244
+ /* Use this to create a horizontal ruler across a column. */
245
+ hr {
246
+ background: #ddd;
247
+ color: #ddd;
248
+ clear: both;
249
+ float: none;
250
+ width: 100%;
251
+ height: 1px;
252
+ margin: 0 0 17px;
253
+ border: none;
254
+ }
255
+
256
+ hr.space {
257
+ background: #fff;
258
+ color: #fff;
259
+ visibility: hidden;
260
+ }
261
+
262
+
263
+ /* Clearing floats without extra markup
264
+ Based on How To Clear Floats Without Structural Markup by PiE
265
+ [http://www.positioniseverything.net/easyclearing.html] */
266
+
267
+ .clearfix:after, .container:after {
268
+ content: "\0020";
269
+ display: block;
270
+ height: 0;
271
+ clear: both;
272
+ visibility: hidden;
273
+ overflow:hidden;
274
+ }
275
+ .clearfix, .container {display: block;}
276
+
277
+ /* Regular clearing
278
+ apply to column that should drop below previous ones. */
279
+
280
+ .clear { clear:both; }
@@ -0,0 +1,79 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ ie.css
4
+
5
+ Contains every hack for Internet Explorer,
6
+ so that our core files stay sweet and nimble.
7
+
8
+ -------------------------------------------------------------- */
9
+
10
+ /* Make sure the layout is centered in IE5 */
11
+ body { text-align: center; }
12
+ .container { text-align: left; }
13
+
14
+ /* Fixes IE margin bugs */
15
+ * html .column, * html .span-1, * html .span-2,
16
+ * html .span-3, * html .span-4, * html .span-5,
17
+ * html .span-6, * html .span-7, * html .span-8,
18
+ * html .span-9, * html .span-10, * html .span-11,
19
+ * html .span-12, * html .span-13, * html .span-14,
20
+ * html .span-15, * html .span-16, * html .span-17,
21
+ * html .span-18, * html .span-19, * html .span-20,
22
+ * html .span-21, * html .span-22, * html .span-23,
23
+ * html .span-24 { display:inline; overflow-x: hidden; }
24
+
25
+
26
+ /* Elements
27
+ -------------------------------------------------------------- */
28
+
29
+ /* Fixes incorrect styling of legend in IE6. */
30
+ * html legend { margin:0px -8px 16px 0; padding:0; }
31
+
32
+ /* Fixes wrong line-height on sup/sub in IE. */
33
+ sup { vertical-align:text-top; }
34
+ sub { vertical-align:text-bottom; }
35
+
36
+ /* Fixes IE7 missing wrapping of code elements. */
37
+ html>body p code { *white-space: normal; }
38
+
39
+ /* IE 6&7 has problems with setting proper <hr> margins. */
40
+ hr { margin:-8px auto 11px; }
41
+
42
+ /* Explicitly set interpolation, allowing dynamically resized images to not look horrible */
43
+ img { -ms-interpolation-mode:bicubic; }
44
+
45
+ /* Clearing
46
+ -------------------------------------------------------------- */
47
+
48
+ /* Makes clearfix actually work in IE */
49
+ .clearfix, .container { display:inline-block; }
50
+ * html .clearfix,
51
+ * html .container { height:1%; }
52
+
53
+
54
+ /* Forms
55
+ -------------------------------------------------------------- */
56
+
57
+ /* Fixes padding on fieldset */
58
+ fieldset { padding-top:0; }
59
+ legend { margin-top:-0.2em; margin-bottom:1em; margin-left:-0.5em; }
60
+
61
+ /* Makes classic textareas in IE 6 resemble other browsers */
62
+ textarea { overflow:auto; }
63
+
64
+ /* Makes labels behave correctly in IE 6 and 7 */
65
+ label { vertical-align:middle; position:relative; top:-0.25em; }
66
+
67
+ /* Fixes rule that IE 6 ignores */
68
+ input.text, input.title, textarea { background-color:#fff; border:1px solid #bbb; }
69
+ input.text:focus, input.title:focus { border-color:#666; }
70
+ input.text, input.title, textarea, select { margin:0.5em 0; }
71
+ input.checkbox, input.radio { position:relative; top:.25em; }
72
+
73
+ /* Fixes alignment of inline form elements */
74
+ form.inline div, form.inline p { vertical-align:middle; }
75
+ form.inline input.checkbox, form.inline input.radio,
76
+ form.inline input.button, form.inline button {
77
+ margin:0.5em 0;
78
+ }
79
+ button, input.button { position:relative;top:0.25em; }
@@ -0,0 +1,92 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ print.css
4
+ * Gives you some sensible styles for printing pages.
5
+ * See Readme file in this directory for further instructions.
6
+
7
+ Some additions you'll want to make, customized to your markup:
8
+ #header, #footer, #navigation { display:none; }
9
+
10
+ -------------------------------------------------------------- */
11
+
12
+ body {
13
+ line-height: 1.5;
14
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
15
+ color:#000;
16
+ background: none;
17
+ font-size: 10pt;
18
+ }
19
+
20
+
21
+ /* Layout
22
+ -------------------------------------------------------------- */
23
+
24
+ .container {
25
+ background: none;
26
+ }
27
+
28
+ hr {
29
+ background:#ccc;
30
+ color:#ccc;
31
+ width:100%;
32
+ height:2px;
33
+ margin:2em 0;
34
+ padding:0;
35
+ border:none;
36
+ }
37
+ hr.space {
38
+ background: #fff;
39
+ color: #fff;
40
+ visibility: hidden;
41
+ }
42
+
43
+
44
+ /* Text
45
+ -------------------------------------------------------------- */
46
+
47
+ h1,h2,h3,h4,h5,h6 { font-family: "Helvetica Neue", Arial, "Lucida Grande", sans-serif; }
48
+ code { font:.9em "Courier New", Monaco, Courier, monospace; }
49
+
50
+ a img { border:none; }
51
+ p img.top { margin-top: 0; }
52
+
53
+ blockquote {
54
+ margin:1.5em;
55
+ padding:1em;
56
+ font-style:italic;
57
+ font-size:.9em;
58
+ }
59
+
60
+ .small { font-size: .9em; }
61
+ .large { font-size: 1.1em; }
62
+ .quiet { color: #999; }
63
+ .hide { display:none; }
64
+
65
+
66
+ /* Links
67
+ -------------------------------------------------------------- */
68
+
69
+ a:link, a:visited {
70
+ background: transparent;
71
+ font-weight:700;
72
+ text-decoration: underline;
73
+ }
74
+
75
+ /*
76
+ This has been the source of many questions in the past. This
77
+ snippet of CSS appends the URL of each link within the text.
78
+ The idea is that users printing your webpage will want to know
79
+ the URLs they go to. If you want to remove this functionality,
80
+ comment out this snippet and make sure to re-compress your files.
81
+ */
82
+ a:link:after, a:visited:after {
83
+ content: " (" attr(href) ")";
84
+ font-size: 90%;
85
+ }
86
+
87
+ /* If you're having trouble printing relative links, uncomment and customize this:
88
+ (note: This is valid CSS3, but it still won't go through the W3C CSS Validator) */
89
+
90
+ /* a[href^="/"]:after {
91
+ content: " (http://www.yourdomain.com" attr(href) ") ";
92
+ } */
@@ -0,0 +1,65 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ reset.css
4
+ * Resets default browser CSS.
5
+
6
+ -------------------------------------------------------------- */
7
+
8
+ html {
9
+ margin:0;
10
+ padding:0;
11
+ border:0;
12
+ }
13
+
14
+ body, div, span, object, iframe,
15
+ h1, h2, h3, h4, h5, h6, p, blockquote, pre,
16
+ a, abbr, acronym, address, code,
17
+ del, dfn, em, img, q, dl, dt, dd, ol, ul, li,
18
+ fieldset, form, label, legend,
19
+ table, caption, tbody, tfoot, thead, tr, th, td,
20
+ article, aside, dialog, figure, footer, header,
21
+ hgroup, nav, section {
22
+ margin: 0;
23
+ padding: 0;
24
+ border: 0;
25
+ font-size: 100%;
26
+ font: inherit;
27
+ vertical-align: baseline;
28
+ }
29
+
30
+ /* This helps to make newer HTML5 elements behave like DIVs in older browers */
31
+ article, aside, details, figcaption, figure, dialog,
32
+ footer, header, hgroup, menu, nav, section {
33
+ display:block;
34
+ }
35
+
36
+ /* Line-height should always be unitless! */
37
+ body {
38
+ line-height: 1.5;
39
+ background: white;
40
+ }
41
+
42
+ /* Tables still need 'cellspacing="0"' in the markup. */
43
+ table {
44
+ border-collapse: separate;
45
+ border-spacing: 0;
46
+ }
47
+ /* float:none prevents the span-x classes from breaking table-cell display */
48
+ caption, th, td {
49
+ text-align: left;
50
+ font-weight: normal;
51
+ float:none !important;
52
+ }
53
+ table, th, td {
54
+ vertical-align: middle;
55
+ }
56
+
57
+ /* Remove possible quote marks (") from <q>, <blockquote>. */
58
+ blockquote:before, blockquote:after, q:before, q:after { content: ''; }
59
+ blockquote, q { quotes: "" ""; }
60
+
61
+ /* Remove annoying border on linked images. */
62
+ a img { border: none; }
63
+
64
+ /* Remember to define your own focus styles! */
65
+ :focus { outline: 0; }
@@ -0,0 +1,123 @@
1
+ /* --------------------------------------------------------------
2
+
3
+ typography.css
4
+ * Sets up some sensible default typography.
5
+
6
+ -------------------------------------------------------------- */
7
+
8
+ /* Default font settings.
9
+ The font-size percentage is of 16px. (0.75 * 16px = 12px) */
10
+ html { font-size:100.01%; }
11
+ body {
12
+ font-size: 75%;
13
+ color: #222;
14
+ background: #fff;
15
+ font-family: "Helvetica Neue", Arial, Helvetica, sans-serif;
16
+ }
17
+
18
+
19
+ /* Headings
20
+ -------------------------------------------------------------- */
21
+
22
+ h1,h2,h3,h4,h5,h6 { font-weight: normal; color: #111; }
23
+
24
+ h1 { font-size: 3em; line-height: 1; margin-bottom: 0.5em; }
25
+ h2 { font-size: 2em; margin-bottom: 0.75em; }
26
+ h3 { font-size: 1.5em; line-height: 1; margin-bottom: 1em; }
27
+ h4 { font-size: 1.2em; line-height: 1.25; margin-bottom: 1.25em; }
28
+ h5 { font-size: 1em; font-weight: bold; margin-bottom: 1.5em; }
29
+ h6 { font-size: 1em; font-weight: bold; }
30
+
31
+ h1 img, h2 img, h3 img,
32
+ h4 img, h5 img, h6 img {
33
+ margin: 0;
34
+ }
35
+
36
+
37
+ /* Text elements
38
+ -------------------------------------------------------------- */
39
+
40
+ p { margin: 0 0 1.5em; }
41
+ /*
42
+ These can be used to pull an image at the start of a paragraph, so
43
+ that the text flows around it (usage: <p><img class="left">Text</p>)
44
+ */
45
+ .left { float: left !important; }
46
+ p .left { margin: 1.5em 1.5em 1.5em 0; padding: 0; }
47
+ .right { float: right !important; }
48
+ p .right { margin: 1.5em 0 1.5em 1.5em; padding: 0; }
49
+
50
+ a:focus,
51
+ a:hover { color: #09f; }
52
+ a { color: #06c; text-decoration: underline; }
53
+
54
+ blockquote { margin: 1.5em; color: #666; font-style: italic; }
55
+ strong,dfn { font-weight: bold; }
56
+ em,dfn { font-style: italic; }
57
+ sup, sub { line-height: 0; }
58
+
59
+ abbr,
60
+ acronym { border-bottom: 1px dotted #666; }
61
+ address { margin: 0 0 1.5em; font-style: italic; }
62
+ del { color:#666; }
63
+
64
+ pre { margin: 1.5em 0; white-space: pre; }
65
+ pre,code,tt { font: 1em 'andale mono', 'lucida console', monospace; line-height: 1.5; }
66
+
67
+
68
+ /* Lists
69
+ -------------------------------------------------------------- */
70
+
71
+ li ul,
72
+ li ol { margin: 0; }
73
+ ul, ol { margin: 0 1.5em 1.5em 0; padding-left: 1.5em; }
74
+
75
+ ul { list-style-type: disc; }
76
+ ol { list-style-type: decimal; }
77
+
78
+ dl { margin: 0 0 1.5em 0; }
79
+ dl dt { font-weight: bold; }
80
+ dd { margin-left: 1.5em;}
81
+
82
+
83
+ /* Tables
84
+ -------------------------------------------------------------- */
85
+
86
+ /*
87
+ Because of the need for padding on TH and TD, the vertical rhythm
88
+ on table cells has to be 27px, instead of the standard 18px or 36px
89
+ of other elements.
90
+ */
91
+ table { margin-bottom: 1.4em; width:100%; }
92
+ th { font-weight: bold; }
93
+ thead th { background: #c3d9ff; }
94
+ th,td,caption { padding: 4px 10px 4px 5px; }
95
+ /*
96
+ You can zebra-stripe your tables in outdated browsers by adding
97
+ the class "even" to every other table row.
98
+ */
99
+ tbody tr:nth-child(even) td,
100
+ tbody tr.even td {
101
+ background: #e5ecf9;
102
+ }
103
+ tfoot { font-style: italic; }
104
+ caption { background: #eee; }
105
+
106
+
107
+ /* Misc classes
108
+ -------------------------------------------------------------- */
109
+
110
+ .small { font-size: .8em; margin-bottom: 1.875em; line-height: 1.875em; }
111
+ .large { font-size: 1.2em; line-height: 2.5em; margin-bottom: 1.25em; }
112
+ .hide { display: none; }
113
+
114
+ .quiet { color: #666; }
115
+ .loud { color: #000; }
116
+ .highlight { background:#ff0; }
117
+ .added { background:#060; color: #fff; }
118
+ .removed { background:#900; color: #fff; }
119
+
120
+ .first { margin-left:0; padding-left:0; }
121
+ .last { margin-right:0; padding-right:0; }
122
+ .top { margin-top:0; padding-top:0; }
123
+ .bottom { margin-bottom:0; padding-bottom:0; }
metadata ADDED
@@ -0,0 +1,111 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: blueprint-rails
3
+ version: !ruby/object:Gem::Version
4
+ prerelease:
5
+ version: 0.1.0
6
+ platform: ruby
7
+ authors:
8
+ - beawesomeinstead
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+
13
+ date: 2011-05-22 00:00:00 Z
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: railties
17
+ prerelease: false
18
+ requirement: &id001 !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ~>
22
+ - !ruby/object:Gem::Version
23
+ version: "3.0"
24
+ type: :runtime
25
+ version_requirements: *id001
26
+ - !ruby/object:Gem::Dependency
27
+ name: thor
28
+ prerelease: false
29
+ requirement: &id002 !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ~>
33
+ - !ruby/object:Gem::Version
34
+ version: "0.14"
35
+ type: :runtime
36
+ version_requirements: *id002
37
+ - !ruby/object:Gem::Dependency
38
+ name: bundler
39
+ prerelease: false
40
+ requirement: &id003 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ version: 1.0.0
46
+ type: :development
47
+ version_requirements: *id003
48
+ - !ruby/object:Gem::Dependency
49
+ name: rails
50
+ prerelease: false
51
+ requirement: &id004 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ version: "3.0"
57
+ type: :development
58
+ version_requirements: *id004
59
+ description: This gem provides Blueprint CSS framework for your Rails 3 application.
60
+ email: graf.otodrakula@gmail.com
61
+ executables: []
62
+
63
+ extensions: []
64
+
65
+ extra_rdoc_files: []
66
+
67
+ files:
68
+ - README.md
69
+ - Rakefile
70
+ - blueprint-rails.gemspec
71
+ - lib/blueprint-rails.rb
72
+ - lib/blueprint-rails/engine.rb
73
+ - lib/blueprint-rails/railtie.rb
74
+ - lib/blueprint-rails/version.rb
75
+ - test/.gitkeep
76
+ - vendor/assets/images/grid.png
77
+ - vendor/assets/stylesheets/forms.css
78
+ - vendor/assets/stylesheets/grid.css
79
+ - vendor/assets/stylesheets/ie.css
80
+ - vendor/assets/stylesheets/print.css
81
+ - vendor/assets/stylesheets/reset.css
82
+ - vendor/assets/stylesheets/typography.css
83
+ homepage: http://github.com/bai/blueprint-rails
84
+ licenses: []
85
+
86
+ post_install_message:
87
+ rdoc_options: []
88
+
89
+ require_paths:
90
+ - lib
91
+ required_ruby_version: !ruby/object:Gem::Requirement
92
+ none: false
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: "0"
97
+ required_rubygems_version: !ruby/object:Gem::Requirement
98
+ none: false
99
+ requirements:
100
+ - - ">="
101
+ - !ruby/object:Gem::Version
102
+ version: 1.3.6
103
+ requirements: []
104
+
105
+ rubyforge_project: "[none]"
106
+ rubygems_version: 1.7.2
107
+ signing_key:
108
+ specification_version: 3
109
+ summary: Use Blueprint CSS framework with Rails 3
110
+ test_files: []
111
+