bootstrap-sass 1.4.3 → 1.4.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of bootstrap-sass might be problematic. Click here for more details.

data/README.md CHANGED
@@ -8,7 +8,7 @@ Enjoy.
8
8
 
9
9
  In your gemfile:
10
10
 
11
- gem 'bootstrap-sass', '~> 1.4.2'
11
+ gem 'bootstrap-sass', '~> 1.4.4'
12
12
 
13
13
  ### CSS
14
14
 
@@ -4,6 +4,8 @@ module Bootstrap
4
4
  module Rails
5
5
  class Engine < ::Rails::Engine
6
6
  # Rails, will you please look in our vendor? kthx
7
+
8
+ paths["config/initializers"] << 'lib/bootstrap-sass/config'
7
9
  end
8
10
  end
9
11
  end
@@ -0,0 +1,14 @@
1
+ require 'sass'
2
+
3
+ module Sass::Script::Functions
4
+ # LARS: Snatched from compass - 2011-11-29 - used for gradients in IE6-9
5
+ # returns an IE hex string for a color with an alpha channel
6
+ # suitable for passing to IE filters.
7
+ def ie_hex_str(color)
8
+ assert_type color, :Color
9
+ alpha = (color.alpha * 255).round
10
+ alphastr = alpha.to_s(16).rjust(2, '0')
11
+ Sass::Script::String.new("##{alphastr}#{color.send(:hex_str)[1..-1]}".upcase)
12
+ end
13
+ declare :ie_hex_str, [:color]
14
+ end
@@ -166,7 +166,7 @@
166
166
  background-image: -webkit-linear-gradient(left, $startColor, $endColor); // Safari 5.1+, Chrome 10+
167
167
  background-image: -o-linear-gradient(left, $startColor, $endColor); // Opera 11.10
168
168
  background-image: linear-gradient(left, $startColor, $endColor); // Le standard
169
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=1); // IE9 and down
169
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie_hex_str($startColor)}', endColorstr='#{ie_hex_str($endColor)}', GradientType=1); // IE9 and down
170
170
  }
171
171
  @mixin vertical-gradient($startColor: #555, $endColor: #333) {
172
172
  background-color: $endColor;
@@ -178,7 +178,7 @@
178
178
  background-image: -webkit-linear-gradient(top, $startColor, $endColor); // Safari 5.1+, Chrome 10+
179
179
  background-image: -o-linear-gradient(top, $startColor, $endColor); // Opera 11.10
180
180
  background-image: linear-gradient(top, $startColor, $endColor); // The standard
181
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0); // IE9 and down
181
+ filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{ie_hex_str($startColor)}', endColorstr='#{ie_hex_str($endColor)}', GradientType=0); // IE9 and down
182
182
  }
183
183
  @mixin directional-gradient($startColor: #555, $endColor: #333, $deg: 45deg) {
184
184
  background-color: $endColor;
@@ -198,7 +198,7 @@
198
198
  background-image: -ms-linear-gradient($startColor, $midColor $colorStop, $endColor);
199
199
  background-image: -o-linear-gradient($startColor, $midColor $colorStop, $endColor);
200
200
  background-image: linear-gradient($startColor, $midColor $colorStop, $endColor);
201
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#{$startColor}', endColorstr='#{$endColor}', GradientType=0); // IE9 and down, gets no color-stop at all for proper fallback
201
+ 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
202
202
  }
203
203
 
204
204
  // Reset filters for IE
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.4.3
4
+ version: 1.4.4
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: 2011-12-24 00:00:00.000000000 Z
12
+ date: 2012-01-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass-rails
16
- requirement: &70244615115640 !ruby/object:Gem::Requirement
16
+ requirement: &70140394982440 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ~>
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '3.1'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70244615115640
24
+ version_requirements: *70140394982440
25
25
  description:
26
26
  email: tom@conceptcoding.co.uk
27
27
  executables: []
@@ -49,6 +49,7 @@ files:
49
49
  - README.md
50
50
  - LICENSE
51
51
  - lib/bootstrap-sass.rb
52
+ - lib/bootstrap-sass/config/sass-ie_hex_str.rb
52
53
  homepage: http://github.com/thomas-mcdonald/bootstrap-sass
53
54
  licenses: []
54
55
  post_install_message: