less-rails-bootstrap 3.2.0 → 3.3.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +8 -0
  3. data/app/assets/fonts/twitter/bootstrap/glyphicons-halflings-regular.svg +1 -1
  4. data/app/assets/javascripts/twitter/bootstrap/affix.js +43 -23
  5. data/app/assets/javascripts/twitter/bootstrap/alert.js +6 -4
  6. data/app/assets/javascripts/twitter/bootstrap/button.js +16 -10
  7. data/app/assets/javascripts/twitter/bootstrap/carousel.js +26 -10
  8. data/app/assets/javascripts/twitter/bootstrap/collapse.js +69 -28
  9. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +20 -10
  10. data/app/assets/javascripts/twitter/bootstrap/modal.js +22 -21
  11. data/app/assets/javascripts/twitter/bootstrap/popover.js +13 -7
  12. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +12 -7
  13. data/app/assets/javascripts/twitter/bootstrap/tab.js +41 -16
  14. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +60 -39
  15. data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -1
  16. data/app/frameworks/twitter/bootstrap/button-groups.less +16 -9
  17. data/app/frameworks/twitter/bootstrap/buttons.less +7 -4
  18. data/app/frameworks/twitter/bootstrap/carousel.less +24 -0
  19. data/app/frameworks/twitter/bootstrap/code.less +1 -0
  20. data/app/frameworks/twitter/bootstrap/component-animations.less +5 -2
  21. data/app/frameworks/twitter/bootstrap/dropdowns.less +3 -5
  22. data/app/frameworks/twitter/bootstrap/forms.less +44 -25
  23. data/app/frameworks/twitter/bootstrap/glyphicons.less +2 -1
  24. data/app/frameworks/twitter/bootstrap/jumbotron.less +4 -4
  25. data/app/frameworks/twitter/bootstrap/list-group.less +1 -0
  26. data/app/frameworks/twitter/bootstrap/media.less +27 -36
  27. data/app/frameworks/twitter/bootstrap/mixins/buttons.less +2 -0
  28. data/app/frameworks/twitter/bootstrap/mixins/forms.less +5 -1
  29. data/app/frameworks/twitter/bootstrap/mixins/image.less +0 -1
  30. data/app/frameworks/twitter/bootstrap/mixins/labels.less +1 -1
  31. data/app/frameworks/twitter/bootstrap/mixins/vendor-prefixes.less +6 -3
  32. data/app/frameworks/twitter/bootstrap/modals.less +2 -3
  33. data/app/frameworks/twitter/bootstrap/navbar.less +29 -25
  34. data/app/frameworks/twitter/bootstrap/navs.less +3 -1
  35. data/app/frameworks/twitter/bootstrap/normalize.less +5 -3
  36. data/app/frameworks/twitter/bootstrap/pager.less +1 -2
  37. data/app/frameworks/twitter/bootstrap/pagination.less +1 -1
  38. data/app/frameworks/twitter/bootstrap/panels.less +21 -3
  39. data/app/frameworks/twitter/bootstrap/popovers.less +5 -4
  40. data/app/frameworks/twitter/bootstrap/print.less +102 -96
  41. data/app/frameworks/twitter/bootstrap/progress-bars.less +1 -19
  42. data/app/frameworks/twitter/bootstrap/responsive-embed.less +2 -1
  43. data/app/frameworks/twitter/bootstrap/scaffolding.less +1 -1
  44. data/app/frameworks/twitter/bootstrap/tables.less +11 -10
  45. data/app/frameworks/twitter/bootstrap/theme.less +12 -10
  46. data/app/frameworks/twitter/bootstrap/thumbnails.less +1 -1
  47. data/app/frameworks/twitter/bootstrap/type.less +0 -11
  48. data/app/frameworks/twitter/bootstrap/utilities.less +0 -1
  49. data/app/frameworks/twitter/bootstrap/variables.less +29 -19
  50. data/lib/less/rails/bootstrap/version.rb +1 -1
  51. metadata +19 -19
@@ -19,7 +19,6 @@
19
19
  }
20
20
 
21
21
 
22
-
23
22
  // Bar itself
24
23
  // -------------------------
25
24
 
@@ -29,7 +28,7 @@
29
28
  height: @line-height-computed;
30
29
  margin-bottom: @line-height-computed;
31
30
  background-color: @progress-bg;
32
- border-radius: @border-radius-base;
31
+ border-radius: @progress-border-radius;
33
32
  .box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
34
33
  }
35
34
 
@@ -67,23 +66,6 @@
67
66
  .animation(progress-bar-stripes 2s linear infinite);
68
67
  }
69
68
 
70
- // Account for lower percentages
71
- .progress-bar {
72
- &[aria-valuenow="1"],
73
- &[aria-valuenow="2"] {
74
- min-width: 30px;
75
- }
76
-
77
- &[aria-valuenow="0"] {
78
- color: @gray-light;
79
- min-width: 30px;
80
- background-color: transparent;
81
- background-image: none;
82
- box-shadow: none;
83
- }
84
- }
85
-
86
-
87
69
 
88
70
  // Variations
89
71
  // -------------------------
@@ -12,7 +12,8 @@
12
12
  .embed-responsive-item,
13
13
  iframe,
14
14
  embed,
15
- object {
15
+ object,
16
+ video {
16
17
  position: absolute;
17
18
  top: 0;
18
19
  left: 0;
@@ -52,7 +52,7 @@ a {
52
52
  &:hover,
53
53
  &:focus {
54
54
  color: @link-hover-color;
55
- text-decoration: underline;
55
+ text-decoration: @link-hover-decoration;
56
56
  }
57
57
 
58
58
  &:focus {
@@ -6,6 +6,12 @@
6
6
  table {
7
7
  background-color: @table-bg;
8
8
  }
9
+ caption {
10
+ padding-top: @table-cell-padding;
11
+ padding-bottom: @table-cell-padding;
12
+ color: @text-muted;
13
+ text-align: left;
14
+ }
9
15
  th {
10
16
  text-align: left;
11
17
  }
@@ -106,10 +112,7 @@ th {
106
112
 
107
113
  .table-striped {
108
114
  > tbody > tr:nth-child(odd) {
109
- > td,
110
- > th {
111
- background-color: @table-bg-accent;
112
- }
115
+ background-color: @table-bg-accent;
113
116
  }
114
117
  }
115
118
 
@@ -120,10 +123,7 @@ th {
120
123
 
121
124
  .table-hover {
122
125
  > tbody > tr:hover {
123
- > td,
124
- > th {
125
- background-color: @table-bg-hover;
126
- }
126
+ background-color: @table-bg-hover;
127
127
  }
128
128
  }
129
129
 
@@ -169,14 +169,15 @@ table {
169
169
  // will display normally.
170
170
 
171
171
  .table-responsive {
172
+ overflow-x: auto;
173
+ min-height: 0.01%; // Workaround for IE9 bug (see https://github.com/twbs/bootstrap/issues/14837)
174
+
172
175
  @media screen and (max-width: @screen-xs-max) {
173
176
  width: 100%;
174
177
  margin-bottom: (@line-height-computed * 0.75);
175
178
  overflow-y: hidden;
176
- overflow-x: auto;
177
179
  -ms-overflow-style: -ms-autohiding-scrollbar;
178
180
  border: 1px solid @table-border-color;
179
- -webkit-overflow-scrolling: touch;
180
181
 
181
182
  // Tighten up spacing
182
183
  > .table {
@@ -7,7 +7,6 @@
7
7
  @import "mixins.less";
8
8
 
9
9
 
10
-
11
10
  //
12
11
  // Buttons
13
12
  // --------------------------------------------------
@@ -28,6 +27,10 @@
28
27
  &.active {
29
28
  .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
30
29
  }
30
+
31
+ .badge {
32
+ text-shadow: none;
33
+ }
31
34
  }
32
35
 
33
36
  // Mixin for generating new styles
@@ -74,7 +77,6 @@
74
77
  .btn-danger { .btn-styles(@btn-danger-bg); }
75
78
 
76
79
 
77
-
78
80
  //
79
81
  // Images
80
82
  // --------------------------------------------------
@@ -85,7 +87,6 @@
85
87
  }
86
88
 
87
89
 
88
-
89
90
  //
90
91
  // Dropdowns
91
92
  // --------------------------------------------------
@@ -103,7 +104,6 @@
103
104
  }
104
105
 
105
106
 
106
-
107
107
  //
108
108
  // Navbar
109
109
  // --------------------------------------------------
@@ -116,8 +116,9 @@
116
116
  @shadow: inset 0 1px 0 rgba(255,255,255,.15), 0 1px 5px rgba(0,0,0,.075);
117
117
  .box-shadow(@shadow);
118
118
 
119
+ .navbar-nav > .open > a,
119
120
  .navbar-nav > .active > a {
120
- #gradient > .vertical(@start-color: darken(@navbar-default-bg, 5%); @end-color: darken(@navbar-default-bg, 2%));
121
+ #gradient > .vertical(@start-color: darken(@navbar-default-link-active-bg, 5%); @end-color: darken(@navbar-default-link-active-bg, 2%));
121
122
  .box-shadow(inset 0 3px 9px rgba(0,0,0,.075));
122
123
  }
123
124
  }
@@ -131,8 +132,9 @@
131
132
  #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
132
133
  .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered
133
134
 
135
+ .navbar-nav > .open > a,
134
136
  .navbar-nav > .active > a {
135
- #gradient > .vertical(@start-color: @navbar-inverse-bg; @end-color: lighten(@navbar-inverse-bg, 2.5%));
137
+ #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));
136
138
  .box-shadow(inset 0 3px 9px rgba(0,0,0,.25));
137
139
  }
138
140
 
@@ -150,7 +152,6 @@
150
152
  }
151
153
 
152
154
 
153
-
154
155
  //
155
156
  // Alerts
156
157
  // --------------------------------------------------
@@ -175,7 +176,6 @@
175
176
  .alert-danger { .alert-styles(@alert-danger-bg); }
176
177
 
177
178
 
178
-
179
179
  //
180
180
  // Progress bars
181
181
  // --------------------------------------------------
@@ -218,8 +218,11 @@
218
218
  text-shadow: 0 -1px 0 darken(@list-group-active-bg, 10%);
219
219
  #gradient > .vertical(@start-color: @list-group-active-bg; @end-color: darken(@list-group-active-bg, 7.5%));
220
220
  border-color: darken(@list-group-active-border, 7.5%);
221
- }
222
221
 
222
+ .badge {
223
+ text-shadow: none;
224
+ }
225
+ }
223
226
 
224
227
 
225
228
  //
@@ -245,7 +248,6 @@
245
248
  .panel-danger > .panel-heading { .panel-heading-styles(@panel-danger-heading-bg); }
246
249
 
247
250
 
248
-
249
251
  //
250
252
  // Wells
251
253
  // --------------------------------------------------
@@ -12,7 +12,7 @@
12
12
  background-color: @thumbnail-bg;
13
13
  border: 1px solid @thumbnail-border;
14
14
  border-radius: @thumbnail-border-radius;
15
- .transition(all .2s ease-in-out);
15
+ .transition(border .2s ease-in-out);
16
16
 
17
17
  > img,
18
18
  a > img {
@@ -80,11 +80,6 @@ small,
80
80
  font-size: floor((100% * @font-size-small / @font-size-base));
81
81
  }
82
82
 
83
- // Undo browser default styling
84
- cite {
85
- font-style: normal;
86
- }
87
-
88
83
  mark,
89
84
  .mark {
90
85
  background-color: @state-warning-bg;
@@ -299,12 +294,6 @@ blockquote.pull-right {
299
294
  }
300
295
  }
301
296
 
302
- // Quotes
303
- blockquote:before,
304
- blockquote:after {
305
- content: "";
306
- }
307
-
308
297
  // Addresses
309
298
  address {
310
299
  margin-bottom: @line-height-computed;
@@ -53,5 +53,4 @@
53
53
 
54
54
  .affix {
55
55
  position: fixed;
56
- .translate3d(0, 0, 0);
57
56
  }
@@ -7,11 +7,12 @@
7
7
  //
8
8
  //## Gray and brand colors for use across Bootstrap.
9
9
 
10
- @gray-darker: lighten(#000, 13.5%); // #222
11
- @gray-dark: lighten(#000, 20%); // #333
12
- @gray: lighten(#000, 33.5%); // #555
13
- @gray-light: lighten(#000, 46.7%); // #777
14
- @gray-lighter: lighten(#000, 93.5%); // #eee
10
+ @gray-base: #000;
11
+ @gray-darker: lighten(@gray-base, 13.5%); // #222
12
+ @gray-dark: lighten(@gray-base, 20%); // #333
13
+ @gray: lighten(@gray-base, 33.5%); // #555
14
+ @gray-light: lighten(@gray-base, 46.7%); // #777
15
+ @gray-lighter: lighten(@gray-base, 93.5%); // #eee
15
16
 
16
17
  @brand-primary: #428bca;
17
18
  @brand-success: #5cb85c;
@@ -33,6 +34,8 @@
33
34
  @link-color: @brand-primary;
34
35
  //** Link hover color set via `darken()` function.
35
36
  @link-hover-color: darken(@link-color, 15%);
37
+ //** Link hover decoration.
38
+ @link-hover-decoration: underline;
36
39
 
37
40
 
38
41
  //== Typography
@@ -181,13 +184,20 @@
181
184
  @input-color: @gray;
182
185
  //** `<input>` border color
183
186
  @input-border: #ccc;
184
- //** `<input>` border radius
187
+
188
+ // TODO: Rename `@input-border-radius` to `@input-border-radius-base` in v4
189
+ //** Default `.form-control` border radius
185
190
  @input-border-radius: @border-radius-base;
191
+ //** Large `.form-control` border radius
192
+ @input-border-radius-large: @border-radius-large;
193
+ //** Small `.form-control` border radius
194
+ @input-border-radius-small: @border-radius-small;
195
+
186
196
  //** Border color for inputs on focus
187
197
  @input-border-focus: #66afe9;
188
198
 
189
199
  //** Placeholder text color
190
- @input-color-placeholder: @gray-light;
200
+ @input-color-placeholder: #999;
191
201
 
192
202
  //** Default `.form-control` height
193
203
  @input-height-base: (@line-height-computed + (@padding-base-vertical * 2) + 2);
@@ -204,6 +214,9 @@
204
214
  //** Border color for textual input addons
205
215
  @input-group-addon-border-color: @input-border;
206
216
 
217
+ //** Disabled cursor for form controls and buttons.
218
+ @cursor-disabled: not-allowed;
219
+
207
220
 
208
221
  //== Dropdowns
209
222
  //
@@ -252,8 +265,7 @@
252
265
  @zindex-popover: 1060;
253
266
  @zindex-tooltip: 1070;
254
267
  @zindex-navbar-fixed: 1030;
255
- @zindex-modal-background: 1040;
256
- @zindex-modal: 1050;
268
+ @zindex-modal: 1040;
257
269
 
258
270
 
259
271
  //== Media queries breakpoints
@@ -315,17 +327,17 @@
315
327
  //## Define the maximum width of `.container` for different screen sizes.
316
328
 
317
329
  // Small screen / tablet
318
- @container-tablet: ((720px + @grid-gutter-width));
330
+ @container-tablet: (720px + @grid-gutter-width);
319
331
  //** For `@screen-sm-min` and up.
320
332
  @container-sm: @container-tablet;
321
333
 
322
334
  // Medium screen / desktop
323
- @container-desktop: ((940px + @grid-gutter-width));
335
+ @container-desktop: (940px + @grid-gutter-width);
324
336
  //** For `@screen-md-min` and up.
325
337
  @container-md: @container-desktop;
326
338
 
327
339
  // Large screen / wide desktop
328
- @container-large-desktop: ((1140px + @grid-gutter-width));
340
+ @container-large-desktop: (1140px + @grid-gutter-width);
329
341
  //** For `@screen-lg-min` and up.
330
342
  @container-lg: @container-large-desktop;
331
343
 
@@ -368,12 +380,12 @@
368
380
 
369
381
  // Inverted navbar
370
382
  // Reset inverted navbar basics
371
- @navbar-inverse-color: @gray-light;
383
+ @navbar-inverse-color: lighten(@gray-light, 15%);
372
384
  @navbar-inverse-bg: #222;
373
385
  @navbar-inverse-border: darken(@navbar-inverse-bg, 10%);
374
386
 
375
387
  // Inverted navbar links
376
- @navbar-inverse-link-color: @gray-light;
388
+ @navbar-inverse-link-color: lighten(@gray-light, 15%);
377
389
  @navbar-inverse-link-hover-color: #fff;
378
390
  @navbar-inverse-link-hover-bg: transparent;
379
391
  @navbar-inverse-link-active-color: @navbar-inverse-link-hover-color;
@@ -403,8 +415,6 @@
403
415
  @nav-disabled-link-color: @gray-light;
404
416
  @nav-disabled-link-hover-color: @gray-light;
405
417
 
406
- @nav-open-link-hover-color: #fff;
407
-
408
418
  //== Tabs
409
419
  @nav-tabs-border-color: #ddd;
410
420
 
@@ -529,7 +539,7 @@
529
539
  //** Popover arrow width
530
540
  @popover-arrow-width: 10px;
531
541
  //** Popover arrow color
532
- @popover-arrow-color: #fff;
542
+ @popover-arrow-color: @popover-bg;
533
543
 
534
544
  //** Popover outer arrow width
535
545
  @popover-arrow-outer-width: (@popover-arrow-width + 1);
@@ -628,6 +638,8 @@
628
638
  @progress-bg: #f5f5f5;
629
639
  //** Progress bar text color
630
640
  @progress-bar-color: #fff;
641
+ //** Variable for setting rounded corners on progress bar.
642
+ @progress-border-radius: @border-radius-base;
631
643
 
632
644
  //** Default progress bar color
633
645
  @progress-bar-bg: @brand-primary;
@@ -842,5 +854,3 @@
842
854
  @dl-horizontal-offset: @component-offset-horizontal;
843
855
  //** Horizontal line color.
844
856
  @hr-border: @gray-lighter;
845
-
846
-
@@ -1,7 +1,7 @@
1
1
  module Less
2
2
  module Rails
3
3
  module Bootstrap
4
- VERSION = "3.2.0"
4
+ VERSION = "3.3.0.0"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,89 +1,89 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less-rails-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.0
4
+ version: 3.3.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Collins
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-03 00:00:00.000000000 Z
11
+ date: 2014-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: less-rails
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: 2.5.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: 2.5.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: minitest
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '4.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '4.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: guard-minitest
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rails
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '3.1'
62
- - - <=
62
+ - - "<="
63
63
  - !ruby/object:Gem::Version
64
64
  version: '4.1'
65
65
  type: :development
66
66
  prerelease: false
67
67
  version_requirements: !ruby/object:Gem::Requirement
68
68
  requirements:
69
- - - '>='
69
+ - - ">="
70
70
  - !ruby/object:Gem::Version
71
71
  version: '3.1'
72
- - - <=
72
+ - - "<="
73
73
  - !ruby/object:Gem::Version
74
74
  version: '4.1'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: appraisal
77
77
  requirement: !ruby/object:Gem::Requirement
78
78
  requirements:
79
- - - '>='
79
+ - - ">="
80
80
  - !ruby/object:Gem::Version
81
81
  version: '0'
82
82
  type: :development
83
83
  prerelease: false
84
84
  version_requirements: !ruby/object:Gem::Requirement
85
85
  requirements:
86
- - - '>='
86
+ - - ">="
87
87
  - !ruby/object:Gem::Version
88
88
  version: '0'
89
89
  description: CSS toolkit from Twitter For Rails 3.1 Asset Pipeline. Best one of all!
@@ -93,8 +93,8 @@ executables: []
93
93
  extensions: []
94
94
  extra_rdoc_files: []
95
95
  files:
96
- - .gitignore
97
- - .travis.yml
96
+ - ".gitignore"
97
+ - ".travis.yml"
98
98
  - Appraisals
99
99
  - CHANGELOG.md
100
100
  - CONTRIBUTING.md
@@ -220,17 +220,17 @@ require_paths:
220
220
  - lib
221
221
  required_ruby_version: !ruby/object:Gem::Requirement
222
222
  requirements:
223
- - - '>='
223
+ - - ">="
224
224
  - !ruby/object:Gem::Version
225
225
  version: '0'
226
226
  required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  requirements:
228
- - - '>='
228
+ - - ">="
229
229
  - !ruby/object:Gem::Version
230
230
  version: '0'
231
231
  requirements: []
232
232
  rubyforge_project:
233
- rubygems_version: 2.2.2
233
+ rubygems_version: 2.4.2
234
234
  signing_key:
235
235
  specification_version: 4
236
236
  summary: CSS toolkit from Twitter For Rails 3.1 Asset Pipeline