bootstrap-generators 2.1.1 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (84) hide show
  1. data/README.md +48 -3
  2. data/lib/bootstrap/generators/version.rb +1 -1
  3. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +25 -2
  4. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +23 -1
  5. data/lib/generators/bootstrap/install/templates/assets/stylesheets/fluid.css.scss +1 -1
  6. data/lib/generators/bootstrap/install/templates/assets/stylesheets/hero.css.scss +1 -1
  7. data/vendor/assets/javascripts/bootstrap-affix.js +4 -2
  8. data/vendor/assets/javascripts/bootstrap-alert.js +2 -4
  9. data/vendor/assets/javascripts/bootstrap-button.js +5 -7
  10. data/vendor/assets/javascripts/bootstrap-carousel.js +12 -12
  11. data/vendor/assets/javascripts/bootstrap-collapse.js +9 -11
  12. data/vendor/assets/javascripts/bootstrap-dropdown.js +9 -11
  13. data/vendor/assets/javascripts/bootstrap-modal.js +20 -25
  14. data/vendor/assets/javascripts/bootstrap-popover.js +1 -1
  15. data/vendor/assets/javascripts/bootstrap-scrollspy.js +1 -1
  16. data/vendor/assets/javascripts/bootstrap-tab.js +5 -7
  17. data/vendor/assets/javascripts/bootstrap-tooltip.js +12 -11
  18. data/vendor/assets/javascripts/bootstrap-transition.js +5 -5
  19. data/vendor/assets/javascripts/bootstrap-typeahead.js +19 -9
  20. data/vendor/twitter/bootstrap/less/accordion.less +1 -1
  21. data/vendor/twitter/bootstrap/less/alerts.less +1 -1
  22. data/vendor/twitter/bootstrap/less/bootstrap.less +2 -1
  23. data/vendor/twitter/bootstrap/less/breadcrumbs.less +1 -1
  24. data/vendor/twitter/bootstrap/less/button-groups.less +5 -8
  25. data/vendor/twitter/bootstrap/less/buttons.less +17 -16
  26. data/vendor/twitter/bootstrap/less/code.less +1 -1
  27. data/vendor/twitter/bootstrap/less/dropdowns.less +32 -5
  28. data/vendor/twitter/bootstrap/less/forms.less +47 -14
  29. data/vendor/twitter/bootstrap/less/hero-unit.less +6 -5
  30. data/vendor/twitter/bootstrap/less/labels-badges.less +4 -2
  31. data/vendor/twitter/bootstrap/less/media.less +55 -0
  32. data/vendor/twitter/bootstrap/less/mixins.less +15 -10
  33. data/vendor/twitter/bootstrap/less/modals.less +7 -11
  34. data/vendor/twitter/bootstrap/less/navbar.less +6 -6
  35. data/vendor/twitter/bootstrap/less/navs.less +3 -2
  36. data/vendor/twitter/bootstrap/less/pager.less +10 -9
  37. data/vendor/twitter/bootstrap/less/pagination.less +69 -12
  38. data/vendor/twitter/bootstrap/less/popovers.less +2 -2
  39. data/vendor/twitter/bootstrap/less/progress-bars.less +2 -2
  40. data/vendor/twitter/bootstrap/less/reset.less +5 -4
  41. data/vendor/twitter/bootstrap/less/responsive-767px-max.less +20 -1
  42. data/vendor/twitter/bootstrap/less/responsive-navbar.less +12 -4
  43. data/vendor/twitter/bootstrap/less/responsive.less +1 -1
  44. data/vendor/twitter/bootstrap/less/sprites.less +3 -3
  45. data/vendor/twitter/bootstrap/less/tables.less +20 -29
  46. data/vendor/twitter/bootstrap/less/thumbnails.less +1 -1
  47. data/vendor/twitter/bootstrap/less/tooltip.less +1 -1
  48. data/vendor/twitter/bootstrap/less/type.less +30 -24
  49. data/vendor/twitter/bootstrap/less/variables.less +23 -1
  50. data/vendor/twitter/bootstrap/less/wells.less +3 -3
  51. data/vendor/twitter/bootstrap/sass/_accordion.scss +1 -1
  52. data/vendor/twitter/bootstrap/sass/_alerts.scss +1 -1
  53. data/vendor/twitter/bootstrap/sass/_breadcrumbs.scss +1 -1
  54. data/vendor/twitter/bootstrap/sass/_button-groups.scss +5 -8
  55. data/vendor/twitter/bootstrap/sass/_buttons.scss +18 -17
  56. data/vendor/twitter/bootstrap/sass/_code.scss +1 -1
  57. data/vendor/twitter/bootstrap/sass/_component-animations.scss +2 -2
  58. data/vendor/twitter/bootstrap/sass/_dropdowns.scss +32 -5
  59. data/vendor/twitter/bootstrap/sass/_forms.scss +46 -14
  60. data/vendor/twitter/bootstrap/sass/_hero-unit.scss +6 -5
  61. data/vendor/twitter/bootstrap/sass/_labels-badges.scss +4 -2
  62. data/vendor/twitter/bootstrap/sass/_media.scss +55 -0
  63. data/vendor/twitter/bootstrap/sass/_mixins.scss +12 -7
  64. data/vendor/twitter/bootstrap/sass/_modals.scss +8 -11
  65. data/vendor/twitter/bootstrap/sass/_navbar.scss +8 -10
  66. data/vendor/twitter/bootstrap/sass/_navs.scss +5 -4
  67. data/vendor/twitter/bootstrap/sass/_pager.scss +10 -9
  68. data/vendor/twitter/bootstrap/sass/_pagination.scss +69 -12
  69. data/vendor/twitter/bootstrap/sass/_popovers.scss +2 -2
  70. data/vendor/twitter/bootstrap/sass/_progress-bars.scss +2 -2
  71. data/vendor/twitter/bootstrap/sass/_reset.scss +6 -4
  72. data/vendor/twitter/bootstrap/sass/_responsive-767px-max.scss +20 -1
  73. data/vendor/twitter/bootstrap/sass/_responsive-navbar.scss +12 -4
  74. data/vendor/twitter/bootstrap/sass/_scaffolding.scss +1 -3
  75. data/vendor/twitter/bootstrap/sass/_sprites.scss +3 -3
  76. data/vendor/twitter/bootstrap/sass/_tables.scss +12 -8
  77. data/vendor/twitter/bootstrap/sass/_thumbnails.scss +1 -1
  78. data/vendor/twitter/bootstrap/sass/_tooltip.scss +1 -1
  79. data/vendor/twitter/bootstrap/sass/_type.scss +30 -24
  80. data/vendor/twitter/bootstrap/sass/_variables.scss +25 -2
  81. data/vendor/twitter/bootstrap/sass/_wells.scss +3 -3
  82. data/vendor/twitter/bootstrap/sass/bootstrap.scss +2 -1
  83. data/vendor/twitter/bootstrap/sass/responsive.scss +1 -1
  84. metadata +12 -10
@@ -30,8 +30,6 @@
30
30
 
31
31
  /* White icons with optional class, or on hover/active states of certain elements */
32
32
  .icon-white,
33
- .nav-tabs > .active > a > [class^="icon-"],
34
- .nav-tabs > .active > a > [class*=" icon-"],
35
33
  .nav-pills > .active > a > [class^="icon-"],
36
34
  .nav-pills > .active > a > [class*=" icon-"],
37
35
  .nav-list > .active > a > [class^="icon-"],
@@ -41,7 +39,9 @@
41
39
  .dropdown-menu > li > a:hover > [class^="icon-"],
42
40
  .dropdown-menu > li > a:hover > [class*=" icon-"],
43
41
  .dropdown-menu > .active > a > [class^="icon-"],
44
- .dropdown-menu > .active > a > [class*=" icon-"] {
42
+ .dropdown-menu > .active > a > [class*=" icon-"],
43
+ .dropdown-submenu:hover > a > [class^="icon-"],
44
+ .dropdown-submenu:hover > a > [class*=" icon-"] {
45
45
  background-image: url($iconWhiteSpritePath);
46
46
  }
47
47
 
@@ -71,7 +71,7 @@ table {
71
71
  border-collapse: separate; // Done so we can round those corners!
72
72
  *border-collapse: collapse; // IE7 can't round corners anyway
73
73
  border-left: 0;
74
- @include border-radius(4px);
74
+ @include border-radius($baseBorderRadius);
75
75
  th,
76
76
  td {
77
77
  border-left: 1px solid $tableBorder;
@@ -133,12 +133,14 @@ table {
133
133
  colgroup + tbody tr:first-child td:last-child {
134
134
  -webkit-border-top-right-radius: 4px;
135
135
  border-top-right-radius: 4px;
136
- -moz-border-radius-topleft: 4px;
136
+ -moz-border-radius-topright: 4px;
137
137
  }
138
138
 
139
139
  }
140
140
 
141
141
 
142
+
143
+
142
144
  // ZEBRA-STRIPING
143
145
  // --------------
144
146
 
@@ -170,17 +172,20 @@ table {
170
172
  // -----------------
171
173
 
172
174
  // Reset default grid behavior
173
- table [class*=span],
174
- .row-fluid table [class*=span] {
175
+ table td[class*="span"],
176
+ table th[class*="span"],
177
+ .row-fluid table td[class*="span"],
178
+ .row-fluid table th[class*="span"] {
175
179
  display: table-cell;
176
180
  float: none; // undo default grid column styles
177
181
  margin-left: 0; // undo default grid column styles
178
182
  }
179
183
 
180
184
  // Change the column widths to account for td/th padding
181
- .table {
182
- @for $i from 1 through 24 {
183
- .span#{$i} { @include tableColumns($i); }
185
+ .table td,
186
+ .table th {
187
+ @for $i from 1 through 12 {
188
+ &.span#{$i} { @include tableColumns($i); }
184
189
  }
185
190
  }
186
191
 
@@ -205,7 +210,6 @@ table [class*=span],
205
210
  }
206
211
  }
207
212
 
208
-
209
213
  // Hover states for .table-hover
210
214
  .table-hover tbody tr {
211
215
  &.success:hover td {
@@ -29,7 +29,7 @@
29
29
  padding: 4px;
30
30
  line-height: $baseLineHeight;
31
31
  border: 1px solid #ddd;
32
- @include border-radius(4px);
32
+ @include border-radius($baseBorderRadius);
33
33
  @include box-shadow(0 1px 3px rgba(0,0,0,.055));
34
34
  @include transition(all .2s ease-in-out);
35
35
  }
@@ -27,7 +27,7 @@
27
27
  text-align: center;
28
28
  text-decoration: none;
29
29
  background-color: $tooltipBackground;
30
- @include border-radius(4px);
30
+ @include border-radius($baseBorderRadius);
31
31
  }
32
32
 
33
33
  // Arrows
@@ -37,18 +37,17 @@ cite {
37
37
  .muted {
38
38
  color: $grayLight;
39
39
  }
40
- .text-warning {
41
- color: $warningText;
42
- }
43
- .text-error {
44
- color: $errorText;
45
- }
46
- .text-info {
47
- color: $infoText;
48
- }
49
- .text-success {
50
- color: $successText;
51
- }
40
+ .text-warning { color: $warningText; }
41
+ a.text-warning:hover { color: darken($warningText, 10%); }
42
+
43
+ .text-error { color: $errorText; }
44
+ a.text-error:hover { color: darken($errorText, 10%); }
45
+
46
+ .text-info { color: $infoText; }
47
+ a.text-info:hover { color: darken($infoText, 10%); }
48
+
49
+ .text-success { color: $successText; }
50
+ a.text-success:hover { color: darken($successText, 10%); }
52
51
 
53
52
 
54
53
  // Headings
@@ -58,7 +57,7 @@ h1, h2, h3, h4, h5, h6 {
58
57
  margin: ($baseLineHeight / 2) 0;
59
58
  font-family: $headingsFontFamily;
60
59
  font-weight: $headingsFontWeight;
61
- line-height: 1;
60
+ line-height: $baseLineHeight;
62
61
  color: $headingsColor;
63
62
  text-rendering: optimizelegibility; // Fix the character spacing for headings
64
63
  small {
@@ -67,17 +66,22 @@ h1, h2, h3, h4, h5, h6 {
67
66
  color: $grayLight;
68
67
  }
69
68
  }
70
- h1 { font-size: 36px; line-height: 40px; }
71
- h2 { font-size: 30px; line-height: 40px; }
72
- h3 { font-size: 24px; line-height: 40px; }
73
- h4 { font-size: 18px; line-height: 20px; }
74
- h5 { font-size: 14px; line-height: 20px; }
75
- h6 { font-size: 12px; line-height: 20px; }
76
69
 
77
- h1 small { font-size: 24px; }
78
- h2 small { font-size: 18px; }
79
- h3 small { font-size: 14px; }
80
- h4 small { font-size: 14px; }
70
+ h1,
71
+ h2,
72
+ h3 { line-height: $baseLineHeight * 2; }
73
+
74
+ h1 { font-size: $baseFontSize * 2.75; } // ~38px
75
+ h2 { font-size: $baseFontSize * 2.25; } // ~32px
76
+ h3 { font-size: $baseFontSize * 1.75; } // ~24px
77
+ h4 { font-size: $baseFontSize * 1.25; } // ~18px
78
+ h5 { font-size: $baseFontSize; }
79
+ h6 { font-size: $baseFontSize * 0.85; } // ~12px
80
+
81
+ h1 small { font-size: $baseFontSize * 1.75; } // ~24px
82
+ h2 small { font-size: $baseFontSize * 1.25; } // ~18px
83
+ h3 small { font-size: $baseFontSize; }
84
+ h4 small { font-size: $baseFontSize; }
81
85
 
82
86
 
83
87
  // Page header
@@ -155,7 +159,9 @@ hr {
155
159
  }
156
160
 
157
161
  // Abbreviations and acronyms
158
- abbr[title] {
162
+ abbr[title],
163
+ // Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257
164
+ abbr[data-original-title] {
159
165
  cursor: help;
160
166
  border-bottom: 1px dotted $grayLight;
161
167
  }
@@ -57,6 +57,24 @@ $headingsFontFamily: inherit !default; // empty to use BS default, $baseFontF
57
57
  $headingsFontWeight: bold !default; // instead of browser default, bold
58
58
  $headingsColor: inherit !default; // empty to use BS default, $textColor
59
59
 
60
+
61
+ // Component sizing
62
+ // -------------------------
63
+ // Based on 14px font-size and 20px line-height
64
+
65
+ $fontSizeLarge: $baseFontSize * 1.25; // ~18px
66
+ $fontSizeSmall: $baseFontSize * 0.85; // ~12px
67
+ $fontSizeMini: $baseFontSize * 0.75; // ~11px
68
+
69
+ $paddingLarge: 11px 19px; // 44px
70
+ $paddingSmall: 2px 10px; // 26px
71
+ $paddingMini: 1px 6px; // 24px
72
+
73
+ $baseBorderRadius: 4px;
74
+ $borderRadiusLarge: 6px;
75
+ $borderRadiusSmall: 3px;
76
+
77
+
60
78
  // Tables
61
79
  // -------------------------
62
80
  $tableBackground: transparent !default; // overall background-color
@@ -93,9 +111,11 @@ $btnInverseBackgroundHighlight: $grayDarker !default;
93
111
  // -------------------------
94
112
  $inputBackground: $white !default;
95
113
  $inputBorder: #ccc !default;
96
- $inputBorderRadius: 3px !default;
114
+ $inputBorderRadius: $baseBorderRadius !default;
97
115
  $inputDisabledBackground: $grayLighter !default;
98
116
  $formActionsBackground: #f5f5f5 !default;
117
+ $inputHeight: $baseLineHeight + 10px; // base line-height + 8px vertical padding + 2px top/bottom border
118
+
99
119
 
100
120
  // Dropdowns
101
121
  // -------------------------
@@ -116,6 +136,7 @@ $dropdownLinkBackgroundHover: $dropdownLinkBackgroundActive !default;
116
136
  // COMPONENT VARIABLES
117
137
  // --------------------------------------------------
118
138
 
139
+
119
140
  // Z-index master list
120
141
  // -------------------------
121
142
  // Used for a bird's eye view of components dependent on the z-axis
@@ -157,6 +178,7 @@ $wellBackground: #f5f5f5 !default;
157
178
  // Navbar
158
179
  // -------------------------
159
180
  $navbarCollapseWidth: 979px !default;
181
+ $navbarCollapseDesktopWidth: $navbarCollapseWidth + 1;
160
182
 
161
183
  $navbarHeight: 40px !default;
162
184
  $navbarBackgroundHighlight: #ffffff !default;
@@ -168,7 +190,7 @@ $navbarLinkColor: #777 !default;
168
190
  $navbarLinkColorHover: $grayDark !default;
169
191
  $navbarLinkColorActive: $gray !default;
170
192
  $navbarLinkBackgroundHover: transparent !default;
171
- $navbarLinkBackgroundActive: darken($navbarBackground, 5.25%) !default;
193
+ $navbarLinkBackgroundActive: darken($navbarBackground, 5%) !default;
172
194
 
173
195
  $navbarBrandColor: $navbarLinkColor !default;
174
196
 
@@ -246,6 +268,7 @@ $popoverArrowOuterColor: rgba(0,0,0,.25) !default;
246
268
  // GRID
247
269
  // --------------------------------------------------
248
270
 
271
+
249
272
  // Default 940px grid
250
273
  // -------------------------
251
274
  $gridColumns: 12 !default;
@@ -10,7 +10,7 @@
10
10
  margin-bottom: 20px;
11
11
  background-color: $wellBackground;
12
12
  border: 1px solid darken($wellBackground, 7%);
13
- @include border-radius(4px);
13
+ @include border-radius($baseBorderRadius);
14
14
  @include box-shadow(inset 0 1px 1px rgba(0,0,0,.05));
15
15
  blockquote {
16
16
  border-color: #ddd;
@@ -21,9 +21,9 @@
21
21
  // Sizes
22
22
  .well-large {
23
23
  padding: 24px;
24
- @include border-radius(6px);
24
+ @include border-radius($borderRadiusLarge);
25
25
  }
26
26
  .well-small {
27
27
  padding: 9px;
28
- @include border-radius(3px);
28
+ @include border-radius($borderRadiusSmall);
29
29
  }
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v2.1.1
2
+ * Bootstrap v2.2.1
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -52,6 +52,7 @@
52
52
 
53
53
  // Components: Misc
54
54
  @import "thumbnails";
55
+ @import "media";
55
56
  @import "labels-badges";
56
57
  @import "progress-bars";
57
58
  @import "accordion";
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.1.1
2
+ * Bootstrap Responsive v2.2.1
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 2.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-10 00:00:00.000000000 Z
12
+ date: 2012-11-12 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
16
- requirement: &80500130 !ruby/object:Gem::Requirement
16
+ requirement: &71633580 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 1.0.0
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *80500130
24
+ version_requirements: *71633580
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: test-unit
27
- requirement: &80499520 !ruby/object:Gem::Requirement
27
+ requirement: &71633220 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *80499520
35
+ version_requirements: *71633220
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rails
38
- requirement: &80498910 !ruby/object:Gem::Requirement
38
+ requirement: &71632120 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '3.1'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *80498910
46
+ version_requirements: *71632120
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: railties
49
- requirement: &80498230 !ruby/object:Gem::Requirement
49
+ requirement: &71631550 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '3.1'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *80498230
57
+ version_requirements: *71631550
58
58
  description: Bootstrap-generators provides Twitter Bootstrap generators for Rails
59
59
  3.1. Checkout http://twitter.github.com/bootstrap.
60
60
  email:
@@ -142,6 +142,7 @@ files:
142
142
  - vendor/twitter/bootstrap/less/hero-unit.less
143
143
  - vendor/twitter/bootstrap/less/labels-badges.less
144
144
  - vendor/twitter/bootstrap/less/layouts.less
145
+ - vendor/twitter/bootstrap/less/media.less
145
146
  - vendor/twitter/bootstrap/less/mixins.less
146
147
  - vendor/twitter/bootstrap/less/modals.less
147
148
  - vendor/twitter/bootstrap/less/navbar.less
@@ -181,6 +182,7 @@ files:
181
182
  - vendor/twitter/bootstrap/sass/_hero-unit.scss
182
183
  - vendor/twitter/bootstrap/sass/_labels-badges.scss
183
184
  - vendor/twitter/bootstrap/sass/_layouts.scss
185
+ - vendor/twitter/bootstrap/sass/_media.scss
184
186
  - vendor/twitter/bootstrap/sass/_mixins.scss
185
187
  - vendor/twitter/bootstrap/sass/_modals.scss
186
188
  - vendor/twitter/bootstrap/sass/_navbar.scss