compass-bootstrap 0.1.2 → 0.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (38) hide show
  1. data/.gitignore +4 -0
  2. data/README.mkdn +112 -21
  3. data/lib/compass-bootstrap.rb +6 -1
  4. data/lib/compass-bootstrap/rails.rb +7 -0
  5. data/lib/compass-bootstrap/rails/engine.rb +7 -0
  6. data/lib/compass-bootstrap/version.rb +1 -1
  7. data/stylesheets/compass-bootstrap/_compass_bootstrap.scss +5 -2
  8. data/stylesheets/compass-bootstrap/_forms.scss +139 -67
  9. data/stylesheets/compass-bootstrap/_mixins.scss +210 -0
  10. data/stylesheets/compass-bootstrap/_patterns.scss +331 -146
  11. data/stylesheets/compass-bootstrap/_reset.scss +6 -2
  12. data/stylesheets/compass-bootstrap/_scaffolding.scss +89 -62
  13. data/stylesheets/compass-bootstrap/_tables.scss +35 -12
  14. data/stylesheets/compass-bootstrap/_type.scss +7 -8
  15. data/stylesheets/compass-bootstrap/_variables.scss +60 -0
  16. data/vendor/assets/javascripts/bootstrap-alerts.js +104 -0
  17. data/vendor/assets/javascripts/bootstrap-dropdown.js +50 -0
  18. data/vendor/assets/javascripts/bootstrap-modal.js +227 -0
  19. data/vendor/assets/javascripts/bootstrap-popover.js +77 -0
  20. data/vendor/assets/javascripts/bootstrap-scrollspy.js +105 -0
  21. data/vendor/assets/javascripts/bootstrap-tabs.js +62 -0
  22. data/vendor/assets/javascripts/bootstrap-twipsy.js +307 -0
  23. data/vendor/assets/stylesheets/compass-bootstrap/_compass_bootstrap.scss +29 -0
  24. data/{templates → vendor/assets/stylesheets}/compass-bootstrap/_forms.scss +139 -67
  25. data/vendor/assets/stylesheets/compass-bootstrap/_mixins.scss +210 -0
  26. data/{templates → vendor/assets/stylesheets}/compass-bootstrap/_patterns.scss +331 -146
  27. data/{templates → vendor/assets/stylesheets}/compass-bootstrap/_reset.scss +6 -2
  28. data/vendor/assets/stylesheets/compass-bootstrap/_scaffolding.scss +137 -0
  29. data/{templates → vendor/assets/stylesheets}/compass-bootstrap/_tables.scss +35 -12
  30. data/{templates → vendor/assets/stylesheets}/compass-bootstrap/_type.scss +7 -8
  31. data/vendor/assets/stylesheets/compass-bootstrap/_variables.scss +60 -0
  32. data/{templates → vendor/assets/stylesheets}/compass-bootstrap/compass_bootstrap.scss +5 -2
  33. data/vendor/assets/stylesheets/compass-bootstrap/manifest.rb +20 -0
  34. metadata +50 -61
  35. data/stylesheets/compass-bootstrap/_preboot.scss +0 -276
  36. data/templates/compass-bootstrap/_preboot.scss +0 -292
  37. data/templates/compass-bootstrap/_scaffolding.scss +0 -110
  38. data/templates/compass-bootstrap/manifest.rb +0 -12
data/.gitignore CHANGED
@@ -2,3 +2,7 @@
2
2
  .bundle
3
3
  Gemfile.lock
4
4
  pkg/*
5
+ original/*
6
+ *.swp
7
+ *.un~
8
+ .DS_Store
data/README.mkdn CHANGED
@@ -4,57 +4,148 @@ Twitter Bootstrap- Compass Plugin
4
4
  Bootstrap is a toolkit from Twitter designed to kickstart development of webapps and sites.
5
5
  It includes base CSS and HTML for typography, forms, buttons, tables, grids, navigation, and more.: <http://twitter.github.com/bootstrap/>
6
6
 
7
- * This plugin is consistent with 1.2.0 version of Bootstrap
7
+ * This plugin is consistent with 1.3.0 version of Bootstrap
8
8
  ------------------------------------------------------------
9
9
 
10
10
  This plugin adds the Bootstrap to [Compass](http://compass-style.org/).
11
11
 
12
- Install
13
- =======
12
+ Install on Rails 3.0
13
+ ====================
14
14
 
15
15
  gem install compass-bootstrap
16
16
 
17
+ Install on Rails 3.1
18
+ ====================
19
+ Add compass and compass-bootstrap to the assets group in you Gemfile
17
20
 
21
+ gem 'compass'
22
+ gem 'compass-bootstrap'
18
23
 
19
- Adding the Bootstrap plugin to an existing project
20
- ============================================
21
24
 
22
- Add the following to your compass.rb config file:
25
+ Adding the Bootstrap plugin to an existing Rails 3.0 project
26
+ ============================================
27
+ Add the following to your compass.rb
23
28
 
24
29
  # Require any additional compass plugins here.
25
30
  require 'compass-bootstrap'
31
+
32
+ Run the following on your project's directory
33
+
34
+ compass install compass-bootstrap/compass-bootstrap
26
35
 
36
+ this will add the following files to your stylesheets dir:
37
+
38
+ create sass/compass_bootstrap.scss
39
+ create sass/_reset.scss
40
+ create sass/_variables.scss
41
+ create sass/_mixins.scss
42
+ create sass/_scaffolding.scss
43
+ create sass/_type.scss
44
+ create sass/_tables.scss
45
+ create sass/_forms.scss
46
+ create sass/_patterns.scss
47
+ create javascripts/bootstrap-alerts.js
48
+ create javascripts/bootstrap-dropdown.js
49
+ create javascripts/bootstrap-modal.js
50
+ create javascripts/bootstrap-popover.js
51
+ create javascripts/bootstrap-scrollspy.js
52
+ create javascripts/bootstrap-tabs.js
53
+ create javascripts/bootstrap-twipsy.js
54
+ create stylesheets/compass_bootstrap.css
55
+
27
56
  Now you can add the bootstrap style to your .scss/.sass files:
28
57
 
29
58
  @import 'compass_bootstrap';
30
59
 
31
60
  this will make available all the classes and styles from bootstrap
32
61
 
33
- If you only want to add some bootstrap styles to your files, add:
62
+ ### If you only want to add some bootstrap styles to your files, add:
34
63
 
35
- @import 'compass_bootstrap_mixins';
64
+ @import 'preboot.scss';
36
65
 
37
66
  And now you can use the mixins on your own classes:
38
67
 
39
- Using bt-column instead of .spanX
40
- ============================
41
68
 
42
- this plugin includes a mixin called bt-column, that you can use instead of add the spanX class just add in your styles:
43
-
44
- @include bt-column(4);
69
+ ## Changing the theme color:
70
+ -----------------------------
71
+
72
+ Open _preboot.sccs and you will see the entire list of colors, you can change those in order to apply your own color scheme
73
+
74
+ // VARIABLES
75
+ // ---------
76
+
77
+ // / Links
78
+ $linkColor: #0069d6;
79
+ $linkColorHover: darken($linkColor, 10);
80
+
81
+ // Grays
82
+ $black: #000;
83
+ $grayDark: lighten($black, 25%);
84
+ $gray: lighten($black, 50%);
85
+ $grayLight: lighten($black, 75%);
86
+ $grayLighter: lighten($black, 90%);
87
+ $white: #fff;
88
+
89
+ // Accent Colors
90
+ $blue: #049CDB;
91
+ $blueDark: #0064CD;
92
+ $green: #46a546;
93
+ $red: #9d261d;
94
+ $yellow: #ffc40d;
95
+ $orange: #f89406;
96
+ $pink: #c3325f;
97
+ $purple: #7a43b6;
98
+
99
+ // Baseline grid
100
+ $basefont: 13px;
101
+ $baseline: 18px;
102
+
103
+ // Griditude
104
+ $gridColumns: 16;
105
+ $gridColumnWidth: 40px;
106
+ $gridGutterWidth: 20px;
107
+ $extraSpace: ($gridGutterWidth * 2); // For our grid calculations
108
+ $siteWidth: ($gridColumns * $gridColumnWidth) + ($gridGutterWidth * ($gridColumns - 1));
109
+
110
+ // Color Scheme
111
+ $baseColor: $blue; // Set a base color
112
+ $complement: spin($baseColor, 180); // Determine a complementary color
113
+ $split1: spin($baseColor, 158); // Split complements
114
+ $split2: spin($baseColor, -158);
115
+ $triad1: spin($baseColor, 135); // Triads colors
116
+ $triad2: spin($baseColor, -135);
117
+ $tetra1: spin($baseColor, 90); // Tetra colors
118
+ $tetra2: spin($baseColor, -90);
119
+ $analog1: spin($baseColor, 22); // Analogs colors
120
+ $analog2: spin($baseColor, -22);
121
+
122
+ Adding the Bootstrap plugin to an existing Rails 3.1 project
123
+ ============================================
124
+ Open config/application.rb and add the following line after config.assets.enabled = true
125
+
126
+ config.sass.load_paths << Compass::Frameworks['compass-bootstrap'].stylesheets_directory
127
+
128
+ After adding this line rename application.css from app/assets/stylesheets to
129
+ end with scss extension.
130
+
131
+ Open application.css.scss and remove the **require_tree .** directive, in order
132
+ to have access to bootstrap mixins we need to import all our scss files with
133
+ @import sass command like:
134
+
135
+ @import 'compass-bootstrap/compass_bootstrap';
45
136
 
46
- Using btn mixin to your styles
47
- ==============================
137
+ If we have more scss files in our project import them as well to access mixis.
48
138
 
49
- bt-btn($from-color,$to-color,[$txt-color(optional)]);
50
-
51
- this mixin will add the styles from btn bootstrap class, this had 3 params
139
+ ### Bootstrap javascripts
140
+ Version 1.3.0 includes javascript files, they are not necessary but if we want
141
+ to use them, we can rely on Rails 3.1 asset pipeline. Just require them in the
142
+ javascript manifest - ex: in the app/assets/javascript/application.js - like
143
+ this:
52
144
 
53
- $from-color: defines the color where background starts.
54
- $to-color: defines the color where background ends.
55
- $txt-color: default white, this define the text color
145
+ //= require bootstrap-alerts
56
146
 
57
147
  ## TODO
58
148
 
149
+ * make the documentation file for mixins and a example site
59
150
  * port more classes to mixins
60
151
 
@@ -1,4 +1,9 @@
1
1
  require 'compass'
2
+ require "compass-bootstrap/rails"
2
3
  require "compass-bootstrap/version"
3
4
 
4
- Compass::Frameworks.register("compass-bootstrap", :path => "#{File.dirname(__FILE__)}/..")
5
+ plugin_root = File.join(File.dirname(__FILE__), "..")
6
+
7
+ Compass::Frameworks.register("compass-bootstrap",
8
+ :stylesheets_directory => File.join(plugin_root, "stylesheets"),
9
+ :templates_directory => File.join(plugin_root, "vendor/assets/stylesheets"))
@@ -0,0 +1,7 @@
1
+ module CompassBootstrap
2
+ module Rails
3
+ if defined? ::Rails and ::Rails.version >= '3.1'
4
+ require 'compass-bootstrap/rails/engine'
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module CompassBootstrap
2
+ module Rails
3
+ class Engine < ::Rails::Engine
4
+ end
5
+ end
6
+ end
7
+
@@ -1,5 +1,5 @@
1
1
  module Compass
2
2
  module Bootstrap
3
- VERSION = "0.1.2"
3
+ VERSION = "0.1.3"
4
4
  end
5
5
  end
@@ -16,11 +16,14 @@
16
16
  @import "reset.scss";
17
17
 
18
18
  // Core
19
- @import "preboot.scss";
19
+ @import "variables.scss"; // Modify this for custom colors, font-sizes, etc
20
+ @import "mixins.scss";
21
+
22
+ // Grid system and page structure
20
23
  @import "scaffolding.scss";
21
24
 
22
25
  // Styled patterns and elements
23
26
  @import "type.scss";
24
27
  @import "forms.scss";
25
28
  @import "tables.scss";
26
- @import "patterns.scss";
29
+ @import "patterns.scss";
@@ -16,18 +16,19 @@ fieldset {
16
16
  padding-top: $baseline;
17
17
  legend {
18
18
  display: block;
19
- margin-left: 150px;
20
- font-size: 20px;
19
+ padding-left: 150px;
20
+ font-size: $basefont * 1.5;
21
21
  line-height: 1;
22
- *margin: 0 0 5px 145px; /* IE6-7 */
23
- *line-height: 1.5; /* IE6-7 */
24
22
  color: $grayDark;
23
+ *padding: 0 0 5px 145px; /* IE6-7 */
24
+ *line-height: 1.5; /* IE6-7 */
25
25
  }
26
26
  }
27
27
 
28
28
  // Parent element that clears floats and wraps labels and fields together
29
29
  form .clearfix {
30
30
  margin-bottom: $baseline;
31
+ @include clearfix();
31
32
  }
32
33
 
33
34
  // Set font for forms
@@ -35,14 +36,14 @@ label,
35
36
  input,
36
37
  select,
37
38
  textarea {
38
- @include sans-serif(normal,13px,normal);
39
+ @include font-sans-serif(normal,13px,normal);
39
40
  }
40
41
 
41
42
  // Float labels left
42
43
  label {
43
44
  padding-top: 6px;
44
- font-size: 13px;
45
- line-height: 18px;
45
+ font-size: $basefont;
46
+ line-height: $baseline;
46
47
  float: left;
47
48
  width: 130px;
48
49
  text-align: right;
@@ -50,7 +51,7 @@ label {
50
51
  }
51
52
 
52
53
  // Shift over the inside div to align all label's relevant content
53
- div.input {
54
+ form .input {
54
55
  margin-left: 150px;
55
56
  }
56
57
 
@@ -69,7 +70,7 @@ select,
69
70
  width: 210px;
70
71
  height: $baseline;
71
72
  padding: 4px;
72
- font-size: 13px;
73
+ font-size: $basefont;
73
74
  line-height: $baseline;
74
75
  color: $gray;
75
76
  border: 1px solid #ccc;
@@ -89,11 +90,11 @@ input[type=radio] {
89
90
  }
90
91
 
91
92
  input[type=file] {
92
- background-color: #fff;
93
+ background-color: $white;
93
94
  padding: initial;
94
95
  border: initial;
95
96
  line-height: initial;
96
- @include bt-box-shadow(none);
97
+ @include box-shadow(none);
97
98
  }
98
99
 
99
100
  input[type=button],
@@ -105,19 +106,27 @@ input[type=submit] {
105
106
 
106
107
  select,
107
108
  input[type=file] {
108
- height: $baseline * 1.5;
109
+ height: $baseline * 1.5; // In IE7, the height of the select element cannot be changed by height, only font-size
109
110
  line-height: $baseline * 1.5;
111
+ *margin-top: 4px; /* For IE7, add top margin to align select with labels */
112
+ }
113
+
114
+ // Make multiple select elements height not fixed
115
+ select[multiple] {
116
+ height: inherit;
110
117
  }
111
118
 
112
119
  textarea {
113
120
  height: auto;
114
121
  }
115
122
 
123
+ // For text that needs to appear as an input but should not be an input
116
124
  .uneditable-input {
117
- background-color: #eee;
125
+ background-color: $white;
118
126
  display: block;
119
- border-color: #ccc;
120
- @include bt-box-shadow(inset 0 1px 2px rgba(0,0,0,.075));
127
+ border-color: #eee;
128
+ @include box-shadow(inset 0 1px 2px rgba(0,0,0,.025));
129
+ cursor: not-allowed;
121
130
  }
122
131
 
123
132
  // Placeholder text gets special styles; can't be bundled together though for some reason
@@ -130,21 +139,27 @@ textarea {
130
139
 
131
140
  // Focus states
132
141
  input,
133
- select, textarea {
142
+ textarea {
134
143
  $transition: border linear .2s, box-shadow linear .2s;
135
144
  @include transition($transition);
136
- @include bt-box-shadow(inset 0 1px 3px rgba(0,0,0,.1));
145
+ @include box-shadow(inset 0 1px 3px rgba(0,0,0,.1));
137
146
  }
138
147
  input:focus,
139
148
  textarea:focus {
140
- outline: none;
149
+ outline: 0;
141
150
  border-color: rgba(82,168,236,.8);
142
151
  $shadow: inset 0 1px 3px rgba(0,0,0,.1), 0 0 8px rgba(82,168,236,.6);
143
- @include bt-box-shadow($shadow);
152
+ @include box-shadow($shadow);
153
+ }
154
+ input[type=file]:focus,
155
+ input[type=checkbox]:focus,
156
+ select:focus {
157
+ @include box-shadow(none); // override for file inputs
158
+ outline: 1px dotted #666; // Selet elements don't get box-shadow styles, so instead we do outline
144
159
  }
145
160
 
146
161
  // Error styles
147
- form div.error {
162
+ form div.clearfix.error {
148
163
  background: lighten($red, 57%);
149
164
  padding: 10px 0;
150
165
  margin: -10px 0 10px;
@@ -158,10 +173,10 @@ form div.error {
158
173
  input,
159
174
  textarea {
160
175
  border-color: $error-text;
161
- @include bt-box-shadow(0 0 3px rgba(171,41,32,.25));
176
+ @include box-shadow(0 0 3px rgba(171,41,32,.25));
162
177
  &:focus {
163
178
  border-color: darken($error-text, 10%);
164
- @include bt-box-shadow(0 0 6px rgba(171,41,32,.5));
179
+ @include box-shadow(0 0 6px rgba(171,41,32,.5));
165
180
  }
166
181
  }
167
182
  .input-prepend,
@@ -175,35 +190,87 @@ form div.error {
175
190
  }
176
191
 
177
192
  // Form element sizes
178
- .input-mini, input.mini, textarea.mini, select.mini {
193
+ // TODO v2: remove duplication here and just stick to .input-[size] in light of adding .spanN sizes
194
+ .input-mini,
195
+ input.mini,
196
+ textarea.mini,
197
+ select.mini {
179
198
  width: 60px;
180
199
  }
181
- .input-small, input.small, textarea.small, select.small {
200
+ .input-small,
201
+ input.small,
202
+ textarea.small,
203
+ select.small {
182
204
  width: 90px;
183
205
  }
184
- .input-medium, input.medium, textarea.medium, select.medium {
206
+ .input-medium,
207
+ input.medium,
208
+ textarea.medium,
209
+ select.medium {
185
210
  width: 150px;
186
211
  }
187
- .input-large, input.large, textarea.large, select.large {
212
+ .input-large,
213
+ input.large,
214
+ textarea.large,
215
+ select.large {
188
216
  width: 210px;
189
217
  }
190
- .input-xlarge, input.xlarge, textarea.xlarge, select.xlarge {
218
+ .input-xlarge,
219
+ input.xlarge,
220
+ textarea.xlarge,
221
+ select.xlarge {
191
222
  width: 270px;
192
223
  }
193
- .input-xxlarge, input.xxlarge, textarea.xxlarge, select.xxlarge {
224
+ .input-xxlarge,
225
+ input.xxlarge,
226
+ textarea.xxlarge,
227
+ select.xxlarge {
194
228
  width: 530px;
195
229
  }
196
230
  textarea.xxlarge {
197
- overflow-y: scroll;
231
+ overflow-y: auto;
198
232
  }
199
233
 
200
- // Turn off focus for disabled (read-only) form elements
201
- input[readonly]:focus,
202
- textarea[readonly]:focus,
203
- input.disabled {
204
- background: #f5f5f5;
234
+ // Grid style input sizes
235
+ // This is a duplication of the main grid .columns() mixin, but subtracts 10px to account for input padding and border
236
+ @mixin formColumns($columnSpan: 1) {
237
+ display: inline-block;
238
+ float: none;
239
+ width: (($gridColumnWidth - 10) * $columnSpan) + (($gridColumnWidth - 10) * ($columnSpan - 1));
240
+ margin-left: 0;
241
+ }
242
+ input,
243
+ textarea,
244
+ select {
245
+ // Default columns
246
+ &.span1 { @include formColumns(1); }
247
+ &.span2 { @include formColumns(2); }
248
+ &.span3 { @include formColumns(3); }
249
+ &.span4 { @include formColumns(4); }
250
+ &.span5 { @include formColumns(5); }
251
+ &.span6 { @include formColumns(6); }
252
+ &.span7 { @include formColumns(7); }
253
+ &.span8 { @include formColumns(8); }
254
+ &.span9 { @include formColumns(9); }
255
+ &.span10 { @include formColumns(10); }
256
+ &.span11 { @include formColumns(11); }
257
+ &.span12 { @include formColumns(12); }
258
+ &.span13 { @include formColumns(13); }
259
+ &.span14 { @include formColumns(14); }
260
+ &.span15 { @include formColumns(15); }
261
+ &.span16 { @include formColumns(16); }
262
+ }
263
+
264
+ // Disabled and read-only inputs
265
+ input[disabled],
266
+ select[disabled],
267
+ textarea[disabled],
268
+ input[readonly],
269
+ select[readonly],
270
+ textarea[readonly] {
271
+ background-color: #f5f5f5;
205
272
  border-color: #ddd;
206
- @include bt-box-shadow(none);
273
+ cursor: not-allowed;
207
274
  }
208
275
 
209
276
  // Actions (the buttons)
@@ -228,7 +295,7 @@ input.disabled {
228
295
  // Help Text
229
296
  .help-inline,
230
297
  .help-block {
231
- font-size: 12px;
298
+ font-size: $basefont - 2;
232
299
  line-height: $baseline;
233
300
  color: $grayLight;
234
301
  }
@@ -268,20 +335,22 @@ input.disabled {
268
335
  @include border-radius(0 3px 3px 0);
269
336
  }
270
337
  .add-on {
338
+ position: relative;
271
339
  background: #f5f5f5;
340
+ border: 1px solid #ccc;
341
+ z-index: 2;
272
342
  float: left;
273
343
  display: block;
274
344
  width: auto;
275
345
  min-width: 16px;
346
+ height: 18px;
276
347
  padding: 4px 4px 4px 5px;
277
- color: $grayLight;
348
+ margin-right: -1px;
278
349
  font-weight: normal;
279
350
  line-height: 18px;
280
- height: 18px;
351
+ color: $grayLight;
281
352
  text-align: center;
282
- text-shadow: 0 1px 0 #fff;
283
- border: 1px solid #ccc;
284
- border-right-width: 0;
353
+ text-shadow: 0 1px 0 $white;
285
354
  @include border-radius(3px 0 0 3px);
286
355
  }
287
356
  .active {
@@ -301,8 +370,8 @@ input.disabled {
301
370
  }
302
371
  .add-on {
303
372
  @include border-radius(0 3px 3px 0);
304
- border-right-width: 1px;
305
- border-left-width: 0;
373
+ margin-right: 0;
374
+ margin-left: -1px;
306
375
  }
307
376
  }
308
377
 
@@ -314,31 +383,34 @@ input.disabled {
314
383
  display: block;
315
384
  padding: 0;
316
385
  width: 100%;
317
- label {
318
- display: block;
319
- float: none;
320
- width: auto;
321
- padding: 0;
322
- line-height: $baseline;
323
- text-align: left;
324
- white-space: normal;
325
- strong {
326
- color: $gray;
327
- }
328
- small {
329
- font-size: 12px;
330
- font-weight: normal;
331
- }
332
- }
333
- ul.inputs-list {
334
- margin-left: 25px;
335
- margin-bottom: 10px;
336
- padding-top: 0;
386
+ }
387
+ label {
388
+ display: block;
389
+ float: none;
390
+ width: auto;
391
+ padding: 0;
392
+ line-height: $baseline;
393
+ text-align: left;
394
+ white-space: normal;
395
+ strong {
396
+ color: $gray;
337
397
  }
338
- &:first-child {
339
- padding-top: 5px;
398
+ small {
399
+ font-size: $basefont - 2;
400
+ font-weight: normal;
340
401
  }
341
402
  }
403
+ .inputs-list {
404
+ margin-left: 25px;
405
+ margin-bottom: 10px;
406
+ padding-top: 0;
407
+ }
408
+ &:first-child {
409
+ padding-top: 6px;
410
+ }
411
+ li + li {
412
+ padding-top: 2px;
413
+ }
342
414
  input[type=radio],
343
415
  input[type=checkbox] {
344
416
  margin-bottom: 0;
@@ -352,7 +424,7 @@ input.disabled {
352
424
  padding-top: $baseline / 2;
353
425
  }
354
426
  legend {
355
- margin-left: 0;
427
+ padding-left: 0;
356
428
  }
357
429
  label {
358
430
  display: block;
@@ -379,7 +451,7 @@ input.disabled {
379
451
  }
380
452
  }
381
453
  }
382
- div.error {
454
+ div.clearfix.error {
383
455
  padding-top: 10px;
384
456
  padding-bottom: 10px;
385
457
  padding-left: 10px;