bootstrap-generators 3.0.2.2 → 3.1.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (98) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +2 -2
  3. data/Rakefile +7 -6
  4. data/bootstrap-generators.gemspec +1 -1
  5. data/lib/bootstrap/generators/version.rb +1 -1
  6. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.less +354 -164
  7. data/lib/generators/bootstrap/install/templates/assets/stylesheets/bootstrap-variables.scss +359 -165
  8. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.erb +3 -3
  9. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.haml +3 -3
  10. data/lib/generators/bootstrap/install/templates/form_builders/form_builder/_form.html.slim +3 -3
  11. data/lib/generators/bootstrap/install/templates/layouts/starter.html.erb +1 -0
  12. data/lib/generators/bootstrap/install/templates/layouts/starter.html.haml +1 -0
  13. data/lib/generators/bootstrap/install/templates/layouts/starter.html.slim +2 -0
  14. data/readme-template.md.erb +14 -0
  15. data/vendor/assets/fonts/{glyphicons-halflings-regular.eot → bootstrap/glyphicons-halflings-regular.eot} +0 -0
  16. data/vendor/assets/fonts/{glyphicons-halflings-regular.svg → bootstrap/glyphicons-halflings-regular.svg} +0 -0
  17. data/vendor/assets/fonts/{glyphicons-halflings-regular.ttf → bootstrap/glyphicons-halflings-regular.ttf} +0 -0
  18. data/vendor/assets/fonts/{glyphicons-halflings-regular.woff → bootstrap/glyphicons-halflings-regular.woff} +0 -0
  19. data/vendor/assets/javascripts/bootstrap/affix.js +34 -23
  20. data/vendor/assets/javascripts/bootstrap/alert.js +5 -15
  21. data/vendor/assets/javascripts/bootstrap/button.js +24 -26
  22. data/vendor/assets/javascripts/bootstrap/carousel.js +20 -32
  23. data/vendor/assets/javascripts/bootstrap/collapse.js +7 -16
  24. data/vendor/assets/javascripts/bootstrap/dropdown.js +23 -30
  25. data/vendor/assets/javascripts/bootstrap/modal.js +25 -28
  26. data/vendor/assets/javascripts/bootstrap/popover.js +14 -21
  27. data/vendor/assets/javascripts/bootstrap/scrollspy.js +17 -22
  28. data/vendor/assets/javascripts/bootstrap/tab.js +7 -17
  29. data/vendor/assets/javascripts/bootstrap/tooltip.js +52 -39
  30. data/vendor/assets/javascripts/bootstrap/transition.js +11 -19
  31. data/vendor/assets/stylesheets/bootstrap.css +1209 -2476
  32. data/vendor/twitter/bootstrap/less/badges.less +10 -6
  33. data/vendor/twitter/bootstrap/less/breadcrumbs.less +4 -1
  34. data/vendor/twitter/bootstrap/less/button-groups.less +17 -44
  35. data/vendor/twitter/bootstrap/less/buttons.less +10 -13
  36. data/vendor/twitter/bootstrap/less/carousel.less +1 -0
  37. data/vendor/twitter/bootstrap/less/code.less +10 -0
  38. data/vendor/twitter/bootstrap/less/dropdowns.less +31 -10
  39. data/vendor/twitter/bootstrap/less/forms.less +89 -34
  40. data/vendor/twitter/bootstrap/less/glyphicons.less +5 -9
  41. data/vendor/twitter/bootstrap/less/grid.less +36 -29
  42. data/vendor/twitter/bootstrap/less/input-groups.less +40 -19
  43. data/vendor/twitter/bootstrap/less/jumbotron.less +11 -7
  44. data/vendor/twitter/bootstrap/less/labels.less +6 -0
  45. data/vendor/twitter/bootstrap/less/list-group.less +25 -3
  46. data/vendor/twitter/bootstrap/less/mixins.less +140 -72
  47. data/vendor/twitter/bootstrap/less/modals.less +18 -12
  48. data/vendor/twitter/bootstrap/less/navbar.less +65 -73
  49. data/vendor/twitter/bootstrap/less/navs.less +2 -22
  50. data/vendor/twitter/bootstrap/less/normalize.less +139 -122
  51. data/vendor/twitter/bootstrap/less/pager.less +5 -5
  52. data/vendor/twitter/bootstrap/less/pagination.less +6 -3
  53. data/vendor/twitter/bootstrap/less/panels.less +73 -15
  54. data/vendor/twitter/bootstrap/less/print.less +0 -4
  55. data/vendor/twitter/bootstrap/less/progress-bars.less +0 -12
  56. data/vendor/twitter/bootstrap/less/responsive-utilities.less +13 -129
  57. data/vendor/twitter/bootstrap/less/scaffolding.less +17 -2
  58. data/vendor/twitter/bootstrap/less/tables.less +19 -22
  59. data/vendor/twitter/bootstrap/less/theme.less +1 -1
  60. data/vendor/twitter/bootstrap/less/thumbnails.less +9 -3
  61. data/vendor/twitter/bootstrap/less/tooltip.less +1 -1
  62. data/vendor/twitter/bootstrap/less/type.less +123 -106
  63. data/vendor/twitter/bootstrap/less/variables.less +354 -164
  64. data/vendor/twitter/bootstrap/less/wells.less +1 -1
  65. data/vendor/twitter/bootstrap/sass/_badges.scss +10 -6
  66. data/vendor/twitter/bootstrap/sass/_breadcrumbs.scss +4 -1
  67. data/vendor/twitter/bootstrap/sass/_button-groups.scss +15 -42
  68. data/vendor/twitter/bootstrap/sass/_buttons.scss +10 -13
  69. data/vendor/twitter/bootstrap/sass/_carousel.scss +1 -0
  70. data/vendor/twitter/bootstrap/sass/_code.scss +10 -0
  71. data/vendor/twitter/bootstrap/sass/_dropdowns.scss +31 -11
  72. data/vendor/twitter/bootstrap/sass/_forms.scss +88 -34
  73. data/vendor/twitter/bootstrap/sass/_glyphicons.scss +5 -9
  74. data/vendor/twitter/bootstrap/sass/_grid.scss +36 -29
  75. data/vendor/twitter/bootstrap/sass/_input-groups.scss +40 -19
  76. data/vendor/twitter/bootstrap/sass/_jumbotron.scss +11 -7
  77. data/vendor/twitter/bootstrap/sass/_labels.scss +6 -0
  78. data/vendor/twitter/bootstrap/sass/_list-group.scss +25 -3
  79. data/vendor/twitter/bootstrap/sass/_mixins.scss +135 -65
  80. data/vendor/twitter/bootstrap/sass/_modals.scss +17 -11
  81. data/vendor/twitter/bootstrap/sass/_navbar.scss +62 -70
  82. data/vendor/twitter/bootstrap/sass/_navs.scss +1 -21
  83. data/vendor/twitter/bootstrap/sass/_normalize.scss +139 -122
  84. data/vendor/twitter/bootstrap/sass/_pager.scss +4 -4
  85. data/vendor/twitter/bootstrap/sass/_pagination.scss +6 -3
  86. data/vendor/twitter/bootstrap/sass/_panels.scss +72 -14
  87. data/vendor/twitter/bootstrap/sass/_print.scss +0 -4
  88. data/vendor/twitter/bootstrap/sass/_progress-bars.scss +0 -12
  89. data/vendor/twitter/bootstrap/sass/_responsive-utilities.scss +6 -124
  90. data/vendor/twitter/bootstrap/sass/_scaffolding.scss +17 -2
  91. data/vendor/twitter/bootstrap/sass/_tables.scss +7 -18
  92. data/vendor/twitter/bootstrap/sass/_theme.scss +1 -1
  93. data/vendor/twitter/bootstrap/sass/_thumbnails.scss +13 -7
  94. data/vendor/twitter/bootstrap/sass/_tooltip.scss +1 -1
  95. data/vendor/twitter/bootstrap/sass/_type.scss +122 -105
  96. data/vendor/twitter/bootstrap/sass/_variables.scss +359 -165
  97. data/vendor/twitter/bootstrap/sass/_wells.scss +1 -1
  98. metadata +7 -7
@@ -15,15 +15,15 @@
15
15
  > span {
16
16
  display: inline-block;
17
17
  padding: 5px 14px;
18
- background-color: $pagination-bg;
19
- border: 1px solid $pagination-border;
18
+ background-color: $pager-bg;
19
+ border: 1px solid $pager-border;
20
20
  border-radius: $pager-border-radius;
21
21
  }
22
22
 
23
23
  > a:hover,
24
24
  > a:focus {
25
25
  text-decoration: none;
26
- background-color: $pagination-hover-bg;
26
+ background-color: $pager-hover-bg;
27
27
  }
28
28
  }
29
29
 
@@ -47,7 +47,7 @@
47
47
  > a:focus,
48
48
  > span {
49
49
  color: $pager-disabled-color;
50
- background-color: $pagination-bg;
50
+ background-color: $pager-bg;
51
51
  cursor: not-allowed;
52
52
  }
53
53
  }
@@ -16,6 +16,7 @@
16
16
  padding: $padding-base-vertical $padding-base-horizontal;
17
17
  line-height: $line-height-base;
18
18
  text-decoration: none;
19
+ color: $pagination-color;
19
20
  background-color: $pagination-bg;
20
21
  border: 1px solid $pagination-border;
21
22
  margin-left: -1px;
@@ -39,7 +40,9 @@
39
40
  > li > span {
40
41
  &:hover,
41
42
  &:focus {
43
+ color: $pagination-hover-color;
42
44
  background-color: $pagination-hover-bg;
45
+ border-color: $pagination-hover-border;
43
46
  }
44
47
  }
45
48
 
@@ -51,7 +54,7 @@
51
54
  z-index: 2;
52
55
  color: $pagination-active-color;
53
56
  background-color: $pagination-active-bg;
54
- border-color: $pagination-active-bg;
57
+ border-color: $pagination-active-border;
55
58
  cursor: default;
56
59
  }
57
60
  }
@@ -64,8 +67,8 @@
64
67
  > a:hover,
65
68
  > a:focus {
66
69
  color: $pagination-disabled-color;
67
- background-color: $pagination-bg;
68
- border-color: $pagination-border;
70
+ background-color: $pagination-disabled-bg;
71
+ border-color: $pagination-disabled-border;
69
72
  cursor: not-allowed;
70
73
  }
71
74
  }
@@ -14,7 +14,7 @@
14
14
 
15
15
  // Panel contents
16
16
  .panel-body {
17
- padding: 15px;
17
+ padding: $panel-body-padding;
18
18
  @include clearfix();
19
19
  }
20
20
 
@@ -27,19 +27,28 @@
27
27
  .panel {
28
28
  > .list-group {
29
29
  margin-bottom: 0;
30
-
31
30
  .list-group-item {
32
31
  border-width: 1px 0;
33
-
34
- // Remove border radius for top one
32
+ border-radius: 0;
35
33
  &:first-child {
36
- @include border-top-radius(0);
34
+ border-top: 0;
37
35
  }
38
- // But keep it for the last one
39
36
  &:last-child {
40
37
  border-bottom: 0;
41
38
  }
42
39
  }
40
+ // Add border top radius for first one
41
+ &:first-child {
42
+ .list-group-item:first-child {
43
+ @include border-top-radius(($panel-border-radius - 1));
44
+ }
45
+ }
46
+ // Add border bottom radius for last one
47
+ &:last-child {
48
+ .list-group-item:last-child {
49
+ @include border-bottom-radius(($panel-border-radius - 1));
50
+ }
51
+ }
43
52
  }
44
53
  }
45
54
  // Collapse space between when there's no additional content.
@@ -57,13 +66,51 @@
57
66
 
58
67
  .panel {
59
68
  > .table,
60
- > .table-responsive {
69
+ > .table-responsive > .table {
61
70
  margin-bottom: 0;
62
71
  }
72
+ // Add border top radius for first one
73
+ > .table:first-child,
74
+ > .table-responsive:first-child > .table:first-child {
75
+ > thead:first-child,
76
+ > tbody:first-child {
77
+ > tr:first-child {
78
+ td:first-child,
79
+ th:first-child {
80
+ border-top-left-radius: ($panel-border-radius - 1);
81
+ }
82
+ td:last-child,
83
+ th:last-child {
84
+ border-top-right-radius: ($panel-border-radius - 1);
85
+ }
86
+ }
87
+ }
88
+ }
89
+ // Add border bottom radius for last one
90
+ > .table:last-child,
91
+ > .table-responsive:last-child > .table:last-child {
92
+ > tbody:last-child,
93
+ > tfoot:last-child {
94
+ > tr:last-child {
95
+ td:first-child,
96
+ th:first-child {
97
+ border-bottom-left-radius: ($panel-border-radius - 1);
98
+ }
99
+ td:last-child,
100
+ th:last-child {
101
+ border-bottom-right-radius: ($panel-border-radius - 1);
102
+ }
103
+ }
104
+ }
105
+ }
63
106
  > .panel-body + .table,
64
107
  > .panel-body + .table-responsive {
65
108
  border-top: 1px solid $table-border-color;
66
109
  }
110
+ > .table > tbody:first-child > tr:first-child th,
111
+ > .table > tbody:first-child > tr:first-child td {
112
+ border-top: 0;
113
+ }
67
114
  > .table-bordered,
68
115
  > .table-responsive > .table-bordered {
69
116
  border: 0;
@@ -79,7 +126,10 @@
79
126
  > td:last-child {
80
127
  border-right: 0;
81
128
  }
82
-
129
+ &:first-child > th,
130
+ &:first-child > td {
131
+ border-top: 0;
132
+ }
83
133
  &:last-child > th,
84
134
  &:last-child > td {
85
135
  border-bottom: 0;
@@ -87,6 +137,10 @@
87
137
  }
88
138
  }
89
139
  }
140
+ > .table-responsive {
141
+ border: 0;
142
+ margin-bottom: 0;
143
+ }
90
144
  }
91
145
 
92
146
 
@@ -94,18 +148,20 @@
94
148
  .panel-heading {
95
149
  padding: 10px 15px;
96
150
  border-bottom: 1px solid transparent;
97
- @include border-top-radius($panel-border-radius - 1);
151
+ @include border-top-radius(($panel-border-radius - 1));
98
152
 
99
153
  > .dropdown .dropdown-toggle {
100
154
  color: inherit;
101
155
  }
102
156
  }
103
157
 
104
- // Within heading, strip any `h*` tag of it's default margins for spacing.
158
+ // Within heading, strip any `h*` tag of its default margins for spacing.
105
159
  .panel-title {
106
160
  margin-top: 0;
107
161
  margin-bottom: 0;
108
162
  font-size: ceil(($font-size-base * 1.125));
163
+ color: inherit;
164
+
109
165
  > a {
110
166
  color: inherit;
111
167
  }
@@ -116,7 +172,7 @@
116
172
  padding: 10px 15px;
117
173
  background-color: $panel-footer-bg;
118
174
  border-top: 1px solid $panel-inner-border;
119
- @include border-bottom-radius($panel-border-radius - 1);
175
+ @include border-bottom-radius(($panel-border-radius - 1));
120
176
  }
121
177
 
122
178
 
@@ -126,6 +182,8 @@
126
182
  // the help of our collapse JavaScript plugin.
127
183
 
128
184
  .panel-group {
185
+ margin-bottom: $line-height-computed;
186
+
129
187
  // Tighten up margin so it's only between panels
130
188
  .panel {
131
189
  margin-bottom: 0;
@@ -161,12 +219,12 @@
161
219
  .panel-success {
162
220
  @include panel-variant($panel-success-border, $panel-success-text, $panel-success-heading-bg, $panel-success-border);
163
221
  }
222
+ .panel-info {
223
+ @include panel-variant($panel-info-border, $panel-info-text, $panel-info-heading-bg, $panel-info-border);
224
+ }
164
225
  .panel-warning {
165
226
  @include panel-variant($panel-warning-border, $panel-warning-text, $panel-warning-heading-bg, $panel-warning-border);
166
227
  }
167
228
  .panel-danger {
168
229
  @include panel-variant($panel-danger-border, $panel-danger-text, $panel-danger-heading-bg, $panel-danger-border);
169
230
  }
170
- .panel-info {
171
- @include panel-variant($panel-info-border, $panel-info-text, $panel-info-heading-bg, $panel-info-border);
172
- }
@@ -50,10 +50,6 @@
50
50
  max-width: 100% !important;
51
51
  }
52
52
 
53
- @page {
54
- margin: 2cm .5cm;
55
- }
56
-
57
53
  p,
58
54
  h2,
59
55
  h3 {
@@ -12,18 +12,6 @@
12
12
  to { background-position: 0 0; }
13
13
  }
14
14
 
15
- // Firefox
16
- @-moz-keyframes progress-bar-stripes {
17
- from { background-position: 40px 0; }
18
- to { background-position: 0 0; }
19
- }
20
-
21
- // Opera
22
- @-o-keyframes progress-bar-stripes {
23
- from { background-position: 0 0; }
24
- to { background-position: 40px 0; }
25
- }
26
-
27
15
  // Spec and IE10+
28
16
  @keyframes progress-bar-stripes {
29
17
  from { background-position: 40px 0; }
@@ -25,174 +25,56 @@
25
25
  // Visibility utilities
26
26
 
27
27
  @include responsive-invisibility('.visible-xs');
28
+
28
29
  @media (max-width: $screen-xs-max) {
29
30
  @include responsive-visibility('.visible-xs');
30
31
  }
31
32
 
32
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
33
- @include responsive-visibility('.visible-xs.visible-sm');
34
- }
35
-
36
-
37
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
38
- @include responsive-visibility('.visible-xs.visible-md');
39
- }
40
-
41
-
42
- @media (min-width: $screen-lg-min) {
43
- @include responsive-visibility('.visible-xs.visible-lg');
44
- }
45
-
46
-
47
33
  @include responsive-invisibility('.visible-sm');
48
34
 
49
- @media (max-width: $screen-xs-max) {
50
- @include responsive-visibility('.visible-sm.visible-xs');
51
- }
52
-
53
35
  @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
54
36
  @include responsive-visibility('.visible-sm');
55
37
  }
56
38
 
57
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
58
- @include responsive-visibility('.visible-sm.visible-md');
59
- }
60
-
61
-
62
- @media (min-width: $screen-lg-min) {
63
- @include responsive-visibility('.visible-sm.visible-lg');
64
- }
65
-
66
-
67
39
  @include responsive-invisibility('.visible-md');
68
40
 
69
- @media (max-width: $screen-xs-max) {
70
- @include responsive-visibility('.visible-md.visible-xs');
71
- }
72
-
73
-
74
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
75
- @include responsive-visibility('.visible-md.visible-sm');
76
- }
77
-
78
41
  @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
79
42
  @include responsive-visibility('.visible-md');
80
43
  }
81
44
 
82
- @media (min-width: $screen-lg-min) {
83
- @include responsive-visibility('.visible-md.visible-lg');
84
- }
85
-
86
-
87
45
  @include responsive-invisibility('.visible-lg');
88
46
 
89
- @media (max-width: $screen-xs-max) {
90
- @include responsive-visibility('.visible-lg.visible-xs');
91
- }
92
-
93
-
94
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
95
- @include responsive-visibility('.visible-lg.visible-sm');
96
- }
97
-
98
-
99
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
100
- @include responsive-visibility('.visible-lg.visible-md');
101
- }
102
-
103
47
  @media (min-width: $screen-lg-min) {
104
48
  @include responsive-visibility('.visible-lg');
105
49
  }
106
50
 
107
- @include responsive-visibility('.hidden-xs');
108
51
  @media (max-width: $screen-xs-max) {
109
52
  @include responsive-invisibility('.hidden-xs');
110
53
  }
111
54
 
112
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
113
- @include responsive-invisibility('.hidden-xs.hidden-sm');
114
- }
115
-
116
-
117
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
118
- @include responsive-invisibility('.hidden-xs.hidden-md');
119
- }
120
-
121
-
122
- @media (min-width: $screen-lg-min) {
123
- @include responsive-invisibility('.hidden-xs.hidden-lg');
124
- }
125
-
126
-
127
- @include responsive-visibility('.hidden-sm');
128
-
129
- @media (max-width: $screen-xs-max) {
130
- @include responsive-invisibility('.hidden-sm.hidden-xs');
131
- }
132
-
133
55
  @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
134
56
  @include responsive-invisibility('.hidden-sm');
135
57
  }
136
58
 
137
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
138
- @include responsive-invisibility('.hidden-sm.hidden-md');
139
- }
140
-
141
-
142
- @media (min-width: $screen-lg-min) {
143
- @include responsive-invisibility('.hidden-sm.hidden-lg');
144
- }
145
-
146
-
147
- @include responsive-visibility('.hidden-md');
148
-
149
- @media (max-width: $screen-xs-max) {
150
- @include responsive-invisibility('.hidden-md.hidden-xs');
151
- }
152
-
153
-
154
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
155
- @include responsive-invisibility('.hidden-md.hidden-sm');
156
- }
157
-
158
59
  @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
159
60
  @include responsive-invisibility('.hidden-md');
160
61
  }
161
62
 
162
- @media (min-width: $screen-lg-min) {
163
- @include responsive-invisibility('.hidden-md.hidden-lg');
164
- }
165
-
166
-
167
- @include responsive-visibility('.hidden-lg');
168
-
169
- @media (max-width: $screen-xs-max) {
170
- @include responsive-invisibility('.hidden-lg.hidden-xs');
171
- }
172
-
173
-
174
- @media (min-width: $screen-sm-min) and (max-width: $screen-sm-max) {
175
- @include responsive-invisibility('.hidden-lg.hidden-sm');
176
- }
177
-
178
-
179
- @media (min-width: $screen-md-min) and (max-width: $screen-md-max) {
180
- @include responsive-invisibility('.hidden-lg.hidden-md');
181
- }
182
-
183
63
  @media (min-width: $screen-lg-min) {
184
64
  @include responsive-invisibility('.hidden-lg');
185
65
  }
186
66
 
67
+
187
68
  // Print utilities
69
+ //
70
+ // Media queries are placed on the inside to be mixin-friendly.
188
71
 
189
72
  @include responsive-invisibility('.visible-print');
190
73
 
191
74
  @media print {
192
-
193
75
  @include responsive-visibility('.visible-print');
76
+ }
194
77
 
195
-
78
+ @media print {
196
79
  @include responsive-invisibility('.hidden-print');
197
-
198
80
  }