less-rails-bootstrap 3.3.4.0 → 3.3.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +4 -4
  2. data/app/assets/javascripts/twitter/bootstrap/affix.js +3 -3
  3. data/app/assets/javascripts/twitter/bootstrap/alert.js +2 -2
  4. data/app/assets/javascripts/twitter/bootstrap/button.js +13 -9
  5. data/app/assets/javascripts/twitter/bootstrap/carousel.js +2 -2
  6. data/app/assets/javascripts/twitter/bootstrap/collapse.js +2 -2
  7. data/app/assets/javascripts/twitter/bootstrap/dropdown.js +46 -42
  8. data/app/assets/javascripts/twitter/bootstrap/modal.js +5 -7
  9. data/app/assets/javascripts/twitter/bootstrap/popover.js +2 -2
  10. data/app/assets/javascripts/twitter/bootstrap/scrollspy.js +2 -2
  11. data/app/assets/javascripts/twitter/bootstrap/tab.js +5 -3
  12. data/app/assets/javascripts/twitter/bootstrap/tooltip.js +58 -20
  13. data/app/assets/javascripts/twitter/bootstrap/transition.js +1 -1
  14. data/app/frameworks/twitter/bootstrap/badges.less +1 -1
  15. data/app/frameworks/twitter/bootstrap/bootstrap.less +6 -0
  16. data/app/frameworks/twitter/bootstrap/button-groups.less +3 -2
  17. data/app/frameworks/twitter/bootstrap/buttons.less +11 -5
  18. data/app/frameworks/twitter/bootstrap/carousel.less +2 -2
  19. data/app/frameworks/twitter/bootstrap/dropdowns.less +3 -1
  20. data/app/frameworks/twitter/bootstrap/forms.less +44 -11
  21. data/app/frameworks/twitter/bootstrap/input-groups.less +1 -0
  22. data/app/frameworks/twitter/bootstrap/jumbotron.less +5 -3
  23. data/app/frameworks/twitter/bootstrap/list-group.less +9 -3
  24. data/app/frameworks/twitter/bootstrap/media.less +5 -0
  25. data/app/frameworks/twitter/bootstrap/mixins.less +1 -0
  26. data/app/frameworks/twitter/bootstrap/mixins/background-variant.less +2 -1
  27. data/app/frameworks/twitter/bootstrap/mixins/buttons.less +18 -2
  28. data/app/frameworks/twitter/bootstrap/mixins/grid-framework.less +2 -2
  29. data/app/frameworks/twitter/bootstrap/mixins/grid.less +2 -2
  30. data/app/frameworks/twitter/bootstrap/mixins/hide-text.less +1 -1
  31. data/app/frameworks/twitter/bootstrap/mixins/list-group.less +2 -1
  32. data/app/frameworks/twitter/bootstrap/mixins/pagination.less +2 -1
  33. data/app/frameworks/twitter/bootstrap/mixins/reset-text.less +18 -0
  34. data/app/frameworks/twitter/bootstrap/mixins/responsive-visibility.less +1 -1
  35. data/app/frameworks/twitter/bootstrap/mixins/text-emphasis.less +2 -1
  36. data/app/frameworks/twitter/bootstrap/normalize.less +8 -11
  37. data/app/frameworks/twitter/bootstrap/pagination.less +3 -2
  38. data/app/frameworks/twitter/bootstrap/panels.less +6 -0
  39. data/app/frameworks/twitter/bootstrap/popovers.less +4 -8
  40. data/app/frameworks/twitter/bootstrap/print.less +0 -6
  41. data/app/frameworks/twitter/bootstrap/scaffolding.less +0 -1
  42. data/app/frameworks/twitter/bootstrap/theme.less +23 -5
  43. data/app/frameworks/twitter/bootstrap/tooltip.less +4 -5
  44. data/app/frameworks/twitter/bootstrap/variables.less +7 -1
  45. data/less-rails-bootstrap.gemspec +2 -2
  46. data/lib/less/rails/bootstrap/version.rb +1 -1
  47. data/test/cases/generators/custom_bootstrap_generator_test.rb +1 -1
  48. metadata +5 -4
@@ -0,0 +1,18 @@
1
+ .reset-text() {
2
+ font-family: @font-family-base;
3
+ // We deliberately do NOT reset font-size.
4
+ font-style: normal;
5
+ font-weight: normal;
6
+ letter-spacing: normal;
7
+ line-break: auto;
8
+ line-height: @line-height-base;
9
+ text-align: left; // Fallback for where `start` is not supported
10
+ text-align: start;
11
+ text-decoration: none;
12
+ text-shadow: none;
13
+ text-transform: none;
14
+ white-space: normal;
15
+ word-break: normal;
16
+ word-spacing: normal;
17
+ word-wrap: normal;
18
+ }
@@ -4,7 +4,7 @@
4
4
  // More easily include all the states for responsive-utilities.less.
5
5
  .responsive-visibility() {
6
6
  display: block !important;
7
- table& { display: table; }
7
+ table& { display: table !important; }
8
8
  tr& { display: table-row !important; }
9
9
  th&,
10
10
  td& { display: table-cell !important; }
@@ -2,7 +2,8 @@
2
2
 
3
3
  .text-emphasis-variant(@color) {
4
4
  color: @color;
5
- a&:hover {
5
+ a&:hover,
6
+ a&:focus {
6
7
  color: darken(@color, 10%);
7
8
  }
8
9
  }
@@ -1,9 +1,9 @@
1
- /*! normalize.css v3.0.2 | MIT License | git.io/normalize */
1
+ /*! normalize.css v3.0.3 | MIT License | github.com/necolas/normalize.css */
2
2
 
3
3
  //
4
4
  // 1. Set default font family to sans-serif.
5
- // 2. Prevent iOS text size adjust after orientation change, without disabling
6
- // user zoom.
5
+ // 2. Prevent iOS and IE text size adjust after device orientation change,
6
+ // without disabling user zoom.
7
7
  //
8
8
 
9
9
  html {
@@ -71,7 +71,7 @@ audio:not([controls]) {
71
71
 
72
72
  //
73
73
  // Address `[hidden]` styling not present in IE 8/9/10.
74
- // Hide the `template` element in IE 8/9/11, Safari, and Firefox < 22.
74
+ // Hide the `template` element in IE 8/9/10/11, Safari, and Firefox < 22.
75
75
  //
76
76
 
77
77
  [hidden],
@@ -91,7 +91,8 @@ a {
91
91
  }
92
92
 
93
93
  //
94
- // Improve readability when focused and also mouse hovered in all browsers.
94
+ // Improve readability of focused elements when they are also in an
95
+ // active/hover state.
95
96
  //
96
97
 
97
98
  a:active,
@@ -209,7 +210,6 @@ figure {
209
210
  //
210
211
 
211
212
  hr {
212
- -moz-box-sizing: content-box;
213
213
  box-sizing: content-box;
214
214
  height: 0;
215
215
  }
@@ -350,15 +350,12 @@ input[type="number"]::-webkit-outer-spin-button {
350
350
 
351
351
  //
352
352
  // 1. Address `appearance` set to `searchfield` in Safari and Chrome.
353
- // 2. Address `box-sizing` set to `border-box` in Safari and Chrome
354
- // (include `-moz` to future-proof).
353
+ // 2. Address `box-sizing` set to `border-box` in Safari and Chrome.
355
354
  //
356
355
 
357
356
  input[type="search"] {
358
357
  -webkit-appearance: textfield; // 1
359
- -moz-box-sizing: content-box;
360
- -webkit-box-sizing: content-box; // 2
361
- box-sizing: content-box;
358
+ box-sizing: content-box; //2
362
359
  }
363
360
 
364
361
  //
@@ -40,6 +40,7 @@
40
40
  > li > span {
41
41
  &:hover,
42
42
  &:focus {
43
+ z-index: 3;
43
44
  color: @pagination-hover-color;
44
45
  background-color: @pagination-hover-bg;
45
46
  border-color: @pagination-hover-border;
@@ -79,10 +80,10 @@
79
80
 
80
81
  // Large
81
82
  .pagination-lg {
82
- .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @border-radius-large);
83
+ .pagination-size(@padding-large-vertical; @padding-large-horizontal; @font-size-large; @line-height-large; @border-radius-large);
83
84
  }
84
85
 
85
86
  // Small
86
87
  .pagination-sm {
87
- .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @border-radius-small);
88
+ .pagination-size(@padding-small-vertical; @padding-small-horizontal; @font-size-small; @line-height-small; @border-radius-small);
88
89
  }
@@ -76,6 +76,7 @@
76
76
  .border-top-radius((@panel-border-radius - 1));
77
77
  }
78
78
  }
79
+
79
80
  // Add border bottom radius for last one
80
81
  &:last-child {
81
82
  .list-group-item:last-child {
@@ -84,6 +85,11 @@
84
85
  }
85
86
  }
86
87
  }
88
+ > .panel-heading + .panel-collapse > .list-group {
89
+ .list-group-item:first-child {
90
+ .border-top-radius(0);
91
+ }
92
+ }
87
93
  }
88
94
  // Collapse space between when there's no additional content.
89
95
  .panel-heading + .list-group {
@@ -11,12 +11,11 @@
11
11
  display: none;
12
12
  max-width: @popover-max-width;
13
13
  padding: 1px;
14
- // Reset font and text properties given new insertion method
15
- font-family: @font-family-base;
14
+ // Our parent element can be arbitrary since popovers are by default inserted as a sibling of their target element.
15
+ // So reset our font and text properties to avoid inheriting weird values.
16
+ .reset-text();
16
17
  font-size: @font-size-base;
17
- font-weight: normal;
18
- line-height: @line-height-base;
19
- text-align: left;
18
+
20
19
  background-color: @popover-bg;
21
20
  background-clip: padding-box;
22
21
  border: 1px solid @popover-fallback-border-color;
@@ -24,9 +23,6 @@
24
23
  border-radius: @border-radius-large;
25
24
  .box-shadow(0 5px 10px rgba(0,0,0,.2));
26
25
 
27
- // Overrides for proper insertion
28
- white-space: normal;
29
-
30
26
  // Offset the popover to account for the popover arrow
31
27
  &.top { margin-top: -@popover-arrow-width; }
32
28
  &.right { margin-left: @popover-arrow-width; }
@@ -67,12 +67,6 @@
67
67
  }
68
68
 
69
69
  // Bootstrap specific changes start
70
- //
71
- // Chrome (OSX) fix for https://github.com/twbs/bootstrap/issues/11245
72
- // Once fixed, we can just straight up remove this.
73
- select {
74
- background: #fff !important;
75
- }
76
70
 
77
71
  // Bootstrap components
78
72
  .navbar {
@@ -155,7 +155,6 @@ hr {
155
155
  // Fixes "clickability" issue (and more generally, the firing of events such as focus as well)
156
156
  // for traditionally non-focusable elements with role="button"
157
157
  // see https://developer.mozilla.org/en-US/docs/Web/Events/click#Safari_Mobile
158
- // Upstream patch for normalize.css submitted: https://github.com/necolas/normalize.css/pull/379 - remove this fix once that is merged
159
158
 
160
159
  [role="button"] {
161
160
  cursor: pointer;
@@ -1,3 +1,8 @@
1
+ /*!
2
+ * Bootstrap v3.3.5 (http://getbootstrap.com)
3
+ * Copyright 2011-2015 Twitter, Inc.
4
+ * Licensed under MIT (https://github.com/twbs/bootstrap/blob/master/LICENSE)
5
+ */
1
6
 
2
7
  //
3
8
  // Load core variables and mixins
@@ -28,6 +33,12 @@
28
33
  .box-shadow(inset 0 3px 5px rgba(0,0,0,.125));
29
34
  }
30
35
 
36
+ &.disabled,
37
+ &[disabled],
38
+ fieldset[disabled] & {
39
+ .box-shadow(none);
40
+ }
41
+
31
42
  .badge {
32
43
  text-shadow: none;
33
44
  }
@@ -53,10 +64,17 @@
53
64
  }
54
65
 
55
66
  &.disabled,
56
- &:disabled,
57
- &[disabled] {
58
- background-color: darken(@btn-color, 12%);
59
- background-image: none;
67
+ &[disabled],
68
+ fieldset[disabled] & {
69
+ &,
70
+ &:hover,
71
+ &:focus,
72
+ &.focus,
73
+ &:active,
74
+ &.active {
75
+ background-color: darken(@btn-color, 12%);
76
+ background-image: none;
77
+ }
60
78
  }
61
79
  }
62
80
 
@@ -132,7 +150,7 @@
132
150
  .navbar-inverse {
133
151
  #gradient > .vertical(@start-color: lighten(@navbar-inverse-bg, 10%); @end-color: @navbar-inverse-bg);
134
152
  .reset-filter(); // Remove gradient in IE<10 to fix bug where dropdowns don't get triggered; see https://github.com/twbs/bootstrap/issues/10257
135
-
153
+ border-radius: @navbar-border-radius;
136
154
  .navbar-nav > .open > a,
137
155
  .navbar-nav > .active > a {
138
156
  #gradient > .vertical(@start-color: @navbar-inverse-link-active-bg; @end-color: lighten(@navbar-inverse-link-active-bg, 2.5%));
@@ -8,11 +8,11 @@
8
8
  position: absolute;
9
9
  z-index: @zindex-tooltip;
10
10
  display: block;
11
- // Reset font and text properties given new insertion method
12
- font-family: @font-family-base;
11
+ // Our parent element can be arbitrary since tooltips are by default inserted as a sibling of their target element.
12
+ // So reset our font and text properties to avoid inheriting weird values.
13
+ .reset-text();
13
14
  font-size: @font-size-small;
14
- font-weight: normal;
15
- line-height: 1.4;
15
+
16
16
  .opacity(0);
17
17
 
18
18
  &.in { .opacity(@tooltip-opacity); }
@@ -28,7 +28,6 @@
28
28
  padding: 3px 8px;
29
29
  color: @tooltip-color;
30
30
  text-align: center;
31
- text-decoration: none;
32
31
  background-color: @tooltip-bg;
33
32
  border-radius: @border-radius-base;
34
33
  }
@@ -170,6 +170,11 @@
170
170
 
171
171
  @btn-link-disabled-color: @gray-light;
172
172
 
173
+ // Allows for customizing button radius independently from global border radius
174
+ @btn-border-radius-base: @border-radius-base;
175
+ @btn-border-radius-large: @border-radius-large;
176
+ @btn-border-radius-small: @border-radius-small;
177
+
173
178
 
174
179
  //== Forms
175
180
  //
@@ -383,7 +388,7 @@
383
388
  @navbar-default-toggle-border-color: #ddd;
384
389
 
385
390
 
386
- // Inverted navbar
391
+ //=== Inverted navbar
387
392
  // Reset inverted navbar basics
388
393
  @navbar-inverse-color: lighten(@gray-light, 15%);
389
394
  @navbar-inverse-bg: #222;
@@ -484,6 +489,7 @@
484
489
  @jumbotron-bg: @gray-lighter;
485
490
  @jumbotron-heading-color: inherit;
486
491
  @jumbotron-font-size: ceil((@font-size-base * 1.5));
492
+ @jumbotron-heading-font-size: ceil((@font-size-base * 4.5));
487
493
 
488
494
 
489
495
  //== Form states and alerts
@@ -8,8 +8,8 @@ Gem::Specification.new do |gem|
8
8
  gem.authors = ['Ken Collins']
9
9
  gem.email = ['ken@metaskills.net']
10
10
  gem.homepage = 'http://github.com/metaskills/less-rails-bootstrap'
11
- gem.summary = 'CSS toolkit from Twitter For Rails 3.1 Asset Pipeline'
12
- gem.description = 'CSS toolkit from Twitter For Rails 3.1 Asset Pipeline. Best one of all!'
11
+ gem.summary = 'CSS toolkit from Twitter For Rails 3.1+ Asset Pipeline'
12
+ gem.description = 'CSS toolkit from Twitter For Rails 3.1+ Asset Pipeline. Best one of all!'
13
13
  gem.license = 'MIT'
14
14
  gem.files = `git ls-files`.split("\n")
15
15
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
@@ -1,7 +1,7 @@
1
1
  module Less
2
2
  module Rails
3
3
  module Bootstrap
4
- VERSION = '3.3.4.0'
4
+ VERSION = '3.3.5.0'
5
5
  end
6
6
  end
7
7
  end
@@ -14,7 +14,7 @@ class CustomBootstrapGeneratorTest < Rails::Generators::TestCase
14
14
 
15
15
  test "content of custom_bootstrap.less was changed" do
16
16
  md5 = Digest::MD5.file(destination_root.join("app/assets/stylesheets/custom_bootstrap/custom_bootstrap.less")).hexdigest
17
- assert_equal '337291aa6cd4515c56d686f16c641930', md5,
17
+ assert_equal '5df8ad55b43c4880aeda200e78285948', md5,
18
18
  'Looks like content of custom_bootstrap.less was changed. Please, investigate the reason of this and fix test if these changes are appropriate.'
19
19
  end
20
20
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: less-rails-bootstrap
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.4.0
4
+ version: 3.3.5.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: 2015-04-26 00:00:00.000000000 Z
11
+ date: 2015-06-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: less-rails
@@ -106,7 +106,7 @@ dependencies:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
- description: CSS toolkit from Twitter For Rails 3.1 Asset Pipeline. Best one of all!
109
+ description: CSS toolkit from Twitter For Rails 3.1+ Asset Pipeline. Best one of all!
110
110
  email:
111
111
  - ken@metaskills.net
112
112
  executables: []
@@ -183,6 +183,7 @@ files:
183
183
  - app/frameworks/twitter/bootstrap/mixins/panels.less
184
184
  - app/frameworks/twitter/bootstrap/mixins/progress-bar.less
185
185
  - app/frameworks/twitter/bootstrap/mixins/reset-filter.less
186
+ - app/frameworks/twitter/bootstrap/mixins/reset-text.less
186
187
  - app/frameworks/twitter/bootstrap/mixins/resize.less
187
188
  - app/frameworks/twitter/bootstrap/mixins/responsive-visibility.less
188
189
  - app/frameworks/twitter/bootstrap/mixins/size.less
@@ -254,7 +255,7 @@ rubyforge_project:
254
255
  rubygems_version: 2.4.3
255
256
  signing_key:
256
257
  specification_version: 4
257
- summary: CSS toolkit from Twitter For Rails 3.1 Asset Pipeline
258
+ summary: CSS toolkit from Twitter For Rails 3.1+ Asset Pipeline
258
259
  test_files:
259
260
  - test/cases/engine_spec.rb
260
261
  - test/cases/generators/custom_bootstrap_generator_test.rb