bootstrap-generators 2.3.1.2 → 2.3.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (38) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +24 -623
  3. data/Rakefile +106 -0
  4. data/lib/bootstrap/generators/version.rb +1 -1
  5. data/lib/generators/bootstrap/install/install_generator.rb +5 -2
  6. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.css.scss +3 -3
  7. data/lib/generators/bootstrap/install/templates/lib/templates/erb/scaffold/index.html.erb +1 -1
  8. data/lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml +1 -1
  9. data/readme-template.md.erb +179 -0
  10. data/test/lib/generators/bootstrap/install_generator_test.rb +9 -1
  11. data/vendor/assets/javascripts/bootstrap-affix.js +3 -3
  12. data/vendor/assets/javascripts/bootstrap-alert.js +3 -3
  13. data/vendor/assets/javascripts/bootstrap-button.js +3 -3
  14. data/vendor/assets/javascripts/bootstrap-carousel.js +3 -3
  15. data/vendor/assets/javascripts/bootstrap-collapse.js +3 -3
  16. data/vendor/assets/javascripts/bootstrap-dropdown.js +8 -4
  17. data/vendor/assets/javascripts/bootstrap-modal.js +3 -3
  18. data/vendor/assets/javascripts/bootstrap-popover.js +3 -3
  19. data/vendor/assets/javascripts/bootstrap-scrollspy.js +3 -3
  20. data/vendor/assets/javascripts/bootstrap-tab.js +3 -3
  21. data/vendor/assets/javascripts/bootstrap-tooltip.js +3 -3
  22. data/vendor/assets/javascripts/bootstrap-transition.js +3 -3
  23. data/vendor/assets/javascripts/bootstrap-typeahead.js +3 -3
  24. data/vendor/assets/javascripts/bootstrap.js +6 -6
  25. data/vendor/assets/stylesheets/bootstrap-responsive.css +1 -1
  26. data/vendor/assets/stylesheets/bootstrap.css +12 -3
  27. data/vendor/twitter/bootstrap/less/bootstrap.less +3 -3
  28. data/vendor/twitter/bootstrap/less/dropdowns.less +11 -0
  29. data/vendor/twitter/bootstrap/less/mixins.less +2 -2
  30. data/vendor/twitter/bootstrap/less/responsive.less +3 -3
  31. data/vendor/twitter/bootstrap/less/type.less +1 -1
  32. data/vendor/twitter/bootstrap/less/variables.less +2 -2
  33. data/vendor/twitter/bootstrap/sass/_dropdowns.scss +11 -0
  34. data/vendor/twitter/bootstrap/sass/_mixins.scss +25 -19
  35. data/vendor/twitter/bootstrap/sass/_variables.scss +5 -5
  36. data/vendor/twitter/bootstrap/sass/bootstrap.scss +1 -1
  37. data/vendor/twitter/bootstrap/sass/responsive.scss +1 -1
  38. metadata +3 -2
@@ -1,8 +1,8 @@
1
1
  /* =========================================================
2
- * bootstrap-modal.js v2.3.1
3
- * http://twitter.github.com/bootstrap/javascript.html#modals
2
+ * bootstrap-modal.js v2.3.2
3
+ * http://getbootstrap.com/2.3.2/javascript.html#modals
4
4
  * =========================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* ===========================================================
2
- * bootstrap-popover.js v2.3.1
3
- * http://twitter.github.com/bootstrap/javascript.html#popovers
2
+ * bootstrap-popover.js v2.3.2
3
+ * http://getbootstrap.com/2.3.2/javascript.html#popovers
4
4
  * ===========================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* =============================================================
2
- * bootstrap-scrollspy.js v2.3.1
3
- * http://twitter.github.com/bootstrap/javascript.html#scrollspy
2
+ * bootstrap-scrollspy.js v2.3.2
3
+ * http://getbootstrap.com/2.3.2/javascript.html#scrollspy
4
4
  * =============================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* ========================================================
2
- * bootstrap-tab.js v2.3.1
3
- * http://twitter.github.com/bootstrap/javascript.html#tabs
2
+ * bootstrap-tab.js v2.3.2
3
+ * http://getbootstrap.com/2.3.2/javascript.html#tabs
4
4
  * ========================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,9 +1,9 @@
1
1
  /* ===========================================================
2
- * bootstrap-tooltip.js v2.3.1
3
- * http://twitter.github.com/bootstrap/javascript.html#tooltips
2
+ * bootstrap-tooltip.js v2.3.2
3
+ * http://getbootstrap.com/2.3.2/javascript.html#tooltips
4
4
  * Inspired by the original jQuery.tipsy by Jason Frame
5
5
  * ===========================================================
6
- * Copyright 2012 Twitter, Inc.
6
+ * Copyright 2013 Twitter, Inc.
7
7
  *
8
8
  * Licensed under the Apache License, Version 2.0 (the "License");
9
9
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* ===================================================
2
- * bootstrap-transition.js v2.3.1
3
- * http://twitter.github.com/bootstrap/javascript.html#transitions
2
+ * bootstrap-transition.js v2.3.2
3
+ * http://getbootstrap.com/2.3.2/javascript.html#transitions
4
4
  * ===================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,8 +1,8 @@
1
1
  /* =============================================================
2
- * bootstrap-typeahead.js v2.3.1
3
- * http://twitter.github.com/bootstrap/javascript.html#typeahead
2
+ * bootstrap-typeahead.js v2.3.2
3
+ * http://getbootstrap.com/2.3.2/javascript.html#typeahead
4
4
  * =============================================================
5
- * Copyright 2012 Twitter, Inc.
5
+ * Copyright 2013 Twitter, Inc.
6
6
  *
7
7
  * Licensed under the Apache License, Version 2.0 (the "License");
8
8
  * you may not use this file except in compliance with the License.
@@ -1,13 +1,13 @@
1
1
  //= require bootstrap-transition
2
- //= require bootstrap-alert
3
2
  //= require bootstrap-modal
4
- //= require bootstrap-dropdown
5
- //= require bootstrap-scrollspy
6
- //= require bootstrap-tab
7
3
  //= require bootstrap-tooltip
8
4
  //= require bootstrap-popover
9
- //= require bootstrap-button
5
+ //= require bootstrap-alert
10
6
  //= require bootstrap-collapse
11
- //= require bootstrap-carousel
7
+ //= require bootstrap-tab
8
+ //= require bootstrap-dropdown
12
9
  //= require bootstrap-typeahead
10
+ //= require bootstrap-scrollspy
11
+ //= require bootstrap-button
13
12
  //= require bootstrap-affix
13
+ //= require bootstrap-carousel
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.3.1
2
+ * Bootstrap Responsive v2.3.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v2.3.1
2
+ * Bootstrap v2.3.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -2282,7 +2282,7 @@ table th[class*="span"],
2282
2282
  *margin-right: .3em;
2283
2283
  line-height: 14px;
2284
2284
  vertical-align: text-top;
2285
- background-image: url("../img/glyphicons-halflings.png");
2285
+ background-image: url("glyphicons-halflings.png");
2286
2286
  background-position: 14px 14px;
2287
2287
  background-repeat: no-repeat;
2288
2288
  }
@@ -2306,7 +2306,7 @@ table th[class*="span"],
2306
2306
  .dropdown-submenu:focus > a > [class^="icon-"],
2307
2307
  .dropdown-submenu:hover > a > [class*=" icon-"],
2308
2308
  .dropdown-submenu:focus > a > [class*=" icon-"] {
2309
- background-image: url("../img/glyphicons-halflings-white.png");
2309
+ background-image: url("glyphicons-halflings-white.png");
2310
2310
  }
2311
2311
 
2312
2312
  .icon-glass {
@@ -3009,6 +3009,15 @@ table th[class*="span"],
3009
3009
  display: block;
3010
3010
  }
3011
3011
 
3012
+ .dropdown-backdrop {
3013
+ position: fixed;
3014
+ top: 0;
3015
+ right: 0;
3016
+ bottom: 0;
3017
+ left: 0;
3018
+ z-index: 990;
3019
+ }
3020
+
3012
3021
  .pull-right > .dropdown-menu {
3013
3022
  right: 0;
3014
3023
  left: auto;
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * Bootstrap v2.3.1
2
+ * Bootstrap v2.3.2
3
3
  *
4
- * Copyright 2012 Twitter, Inc
4
+ * Copyright 2013 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
6
6
  * http://www.apache.org/licenses/LICENSE-2.0
7
7
  *
8
- * Designed and built with all the love in the world @twitter by @mdo and @fat.
8
+ * Designed and built with all the love in the world by @mdo and @fat.
9
9
  */
10
10
 
11
11
  // Core variables and mixins
@@ -135,6 +135,17 @@
135
135
  }
136
136
  }
137
137
 
138
+ // Backdrop to catch body clicks on mobile, etc.
139
+ // ---------------------------
140
+ .dropdown-backdrop {
141
+ position: fixed;
142
+ left: 0;
143
+ right: 0;
144
+ bottom: 0;
145
+ top: 0;
146
+ z-index: @zindexDropdown - 10;
147
+ }
148
+
138
149
  // Right aligned dropdowns
139
150
  // ---------------------------
140
151
  .pull-right > .dropdown-menu {
@@ -300,10 +300,10 @@
300
300
  .skew(@x, @y) {
301
301
  -webkit-transform: skew(@x, @y);
302
302
  -moz-transform: skew(@x, @y);
303
- -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twitter/bootstrap/issues/4885
303
+ -ms-transform: skewX(@x) skewY(@y); // See https://github.com/twbs/bootstrap/issues/4885
304
304
  -o-transform: skew(@x, @y);
305
305
  transform: skew(@x, @y);
306
- -webkit-backface-visibility: hidden; // See https://github.com/twitter/bootstrap/issues/5319
306
+ -webkit-backface-visibility: hidden; // See https://github.com/twbs/bootstrap/issues/5319
307
307
  }
308
308
  .translate3d(@x, @y, @z) {
309
309
  -webkit-transform: translate3d(@x, @y, @z);
@@ -1,11 +1,11 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.3.1
2
+ * Bootstrap Responsive v2.3.2
3
3
  *
4
- * Copyright 2012 Twitter, Inc
4
+ * Copyright 2013 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
6
6
  * http://www.apache.org/licenses/LICENSE-2.0
7
7
  *
8
- * Designed and built with all the love in the world @twitter by @mdo and @fat.
8
+ * Designed and built with all the love in the world by @mdo and @fat.
9
9
  */
10
10
 
11
11
 
@@ -178,7 +178,7 @@ hr {
178
178
 
179
179
  // Abbreviations and acronyms
180
180
  abbr[title],
181
- // Added data-* attribute to help out our tooltip plugin, per https://github.com/twitter/bootstrap/issues/5257
181
+ // Added data-* attribute to help out our tooltip plugin, per https://github.com/twbs/bootstrap/issues/5257
182
182
  abbr[data-original-title] {
183
183
  cursor: help;
184
184
  border-bottom: 1px dotted @grayLight;
@@ -151,8 +151,8 @@
151
151
 
152
152
  // Sprite icons path
153
153
  // -------------------------
154
- @iconSpritePath: "glyphicons-halflings.png";
155
- @iconWhiteSpritePath: "glyphicons-halflings-white.png";
154
+ @iconSpritePath: "../img/glyphicons-halflings.png";
155
+ @iconWhiteSpritePath: "../img/glyphicons-halflings-white.png";
156
156
 
157
157
 
158
158
  // Input placeholder text color
@@ -135,6 +135,17 @@
135
135
  }
136
136
  }
137
137
 
138
+ // Backdrop to catch body clicks on mobile, etc.
139
+ // ---------------------------
140
+ .dropdown-backdrop {
141
+ position: fixed;
142
+ left: 0;
143
+ right: 0;
144
+ bottom: 0;
145
+ top: 0;
146
+ z-index: $zindexDropdown - 10;
147
+ }
148
+
138
149
  // Right aligned dropdowns
139
150
  // ---------------------------
140
151
  .pull-right > .dropdown-menu {
@@ -436,6 +436,17 @@
436
436
  background-image: -o-linear-gradient($deg, $startColor, $endColor); // Opera 11.10
437
437
  background-image: linear-gradient($deg, $startColor, $endColor); // Standard, IE10
438
438
  }
439
+ @mixin gradient-horizontal-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
440
+ background-color: mix($midColor, $endColor, 80%);
441
+ background-image: -webkit-gradient(left, linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
442
+ background-image: -webkit-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
443
+ background-image: -moz-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
444
+ background-image: -o-linear-gradient(left, $startColor, $midColor $colorStop, $endColor);
445
+ background-image: linear-gradient(to right, $startColor, $midColor $colorStop, $endColor);
446
+ background-repeat: no-repeat;
447
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie-hex-str($startColor)}', endColorstr='#{ie-hex-str($endColor)}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
448
+ }
449
+
439
450
  @mixin gradient-vertical-three-colors($startColor: #00b3ee, $midColor: #7a43b6, $colorStop: 50%, $endColor: #c3325f) {
440
451
  background-color: mix($midColor, $endColor, 80%);
441
452
  background-image: -webkit-gradient(linear, 0 0, 0 100%, from($startColor), color-stop($colorStop, $midColor), to($endColor));
@@ -578,16 +589,14 @@
578
589
  }
579
590
 
580
591
  @mixin grid-core-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
581
- @while $gridColumns > 0 {
582
- .span#{$gridColumns} { @include grid-core-span($gridColumns, $gridColumnWidth, $gridGutterWidth)}
583
- $gridColumns: $gridColumns - 1;
592
+ @for $i from 1 through $gridColumns {
593
+ .span#{$i} { @include grid-core-span($i, $gridColumnWidth, $gridGutterWidth); }
584
594
  }
585
595
  }
586
596
 
587
597
  @mixin grid-core-offset-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
588
- @while $gridColumns > 0 {
589
- .offset#{$gridColumns} { @include grid-core-offset($gridColumns, $gridColumnWidth, $gridGutterWidth); }
590
- $gridColumns: $gridColumns - 1;
598
+ @for $i from 1 through $gridColumns {
599
+ .offset#{$i} { @include grid-core-offset($i, $gridColumnWidth, $gridGutterWidth); }
591
600
  }
592
601
  }
593
602
 
@@ -627,17 +636,15 @@
627
636
  }
628
637
 
629
638
  @mixin grid-fluid-span-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
630
- @while $gridColumns > 0 {
631
- .span#{$gridColumns} { @include grid-fluid-span($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth); }
632
- $gridColumns: $gridColumns - 1;
639
+ @for $i from 1 through $gridColumns {
640
+ .span#{$i} { @include grid-fluid-span($i, $fluidGridColumnWidth, $fluidGridGutterWidth); }
633
641
  }
634
642
  }
635
643
 
636
644
  @mixin grid-fluid-offset-x($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth) {
637
- @while $gridColumns > 0 {
638
- .offset#{$gridColumns} { @include grid-fluid-offset($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth); }
639
- .offset#{$gridColumns}:first-child { @include grid-fluid-offset-first-child($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth); }
640
- $gridColumns: $gridColumns - 1;
645
+ @for $i from 1 through $gridColumns {
646
+ .offset#{$i} { @include grid-fluid-offset($i, $fluidGridColumnWidth, $fluidGridGutterWidth); }
647
+ .offset#{$i}:first-child { @include grid-fluid-offset-first-child($i, $fluidGridColumnWidth, $fluidGridGutterWidth); }
641
648
  }
642
649
  }
643
650
 
@@ -675,13 +682,12 @@
675
682
  }
676
683
 
677
684
  @mixin grid-input-span-x($gridColumns, $gridColumnWidth, $gridGutterWidth) {
678
- @while $gridColumns > 0 {
679
- input.span#{$gridColumns},
680
- textarea.span#{$gridColumns},
681
- .uneditable-input.span#{$gridColumns} {
682
- @include grid-input-span($gridColumns, $gridColumnWidth, $gridGutterWidth);
685
+ @for $i from 1 through $gridColumns {
686
+ input.span#{$i},
687
+ textarea.span#{$i},
688
+ .uneditable-input.span#{$i} {
689
+ @include grid-input-span($i, $gridColumnWidth, $gridGutterWidth);
683
690
  }
684
- $gridColumns: $gridColumns - 1;
685
691
  }
686
692
  }
687
693
 
@@ -62,9 +62,9 @@ $headingsColor: inherit !default; // empty to use BS default, $textColor
62
62
  // -------------------------
63
63
  // Based on 14px font-size and 20px line-height
64
64
 
65
- $fontSizeLarge: $baseFontSize * 1.25; // ~18px
66
- $fontSizeSmall: $baseFontSize * 0.85; // ~12px
67
- $fontSizeMini: $baseFontSize * 0.75; // ~11px
65
+ $fontSizeLarge: $baseFontSize * 1.25 !default; // ~18px
66
+ $fontSizeSmall: $baseFontSize * 0.85 !default; // ~12px
67
+ $fontSizeMini: $baseFontSize * 0.75 !default; // ~11px
68
68
 
69
69
  $paddingLarge: 11px 19px !default; // 44px
70
70
  $paddingSmall: 2px 10px !default; // 26px
@@ -151,8 +151,8 @@ $zindexModal: 1050 !default;
151
151
 
152
152
  // Sprite icons path
153
153
  // -------------------------
154
- $iconSpritePath: "glyphicons-halflings.png" !default;
155
- $iconWhiteSpritePath: "glyphicons-halflings-white.png" !default;
154
+ $iconSpritePath: "../img/glyphicons-halflings.png" !default;
155
+ $iconWhiteSpritePath: "../img/glyphicons-halflings-white.png" !default;
156
156
 
157
157
 
158
158
  // Input placeholder text color
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap v2.3.1
2
+ * Bootstrap v2.3.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
@@ -1,5 +1,5 @@
1
1
  /*!
2
- * Bootstrap Responsive v2.3.1
2
+ * Bootstrap Responsive v2.3.2
3
3
  *
4
4
  * Copyright 2012 Twitter, Inc
5
5
  * Licensed under the Apache License v2.0
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-generators
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.3.1.2
4
+ version: 2.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Décio Ferreira
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-07-10 00:00:00.000000000 Z
11
+ date: 2013-08-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -113,6 +113,7 @@ files:
113
113
  - lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/index.html.haml
114
114
  - lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/new.html.haml
115
115
  - lib/generators/bootstrap/install/templates/lib/templates/haml/scaffold/show.html.haml
116
+ - readme-template.md.erb
116
117
  - test/fixtures/application.js
117
118
  - test/fixtures/routes.rb
118
119
  - test/lib/generators/bootstrap/install_generator_test.rb