css_toolkit 1.3 → 1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/modules/yui_compressor.rb +4 -1
  2. metadata +4 -4
@@ -55,7 +55,7 @@ module YuiCompressor
55
55
  css.gsub!(/:(?:0 )+0(;|\})/, ':0\1')
56
56
 
57
57
  # Restore background-position:0 0; if required
58
- css.gsub!(/background-position:0(;|\})/i, 'background-position:0 0\1')
58
+ css.gsub!(/(background-position|transform-origin|webkit-transform-origin|moz-transform-origin|o-transform-origin|ms-transform-origin):0(;|\})/i){ "#{$1.downcase}:0 0#{$2}" }
59
59
 
60
60
  # Replace 0.6 with .6, but only when preceded by : or a space.
61
61
  css.gsub!(/(:|\s)0+\.(\d+)/, '\1.\2')
@@ -74,6 +74,9 @@ module YuiCompressor
74
74
  # which makes the filter break in IE.
75
75
  css.gsub!(/([^"'=\s])(\s?)\s*#([0-9a-f])\3([0-9a-f])\4([0-9a-f])\5/i, '\1\2#\3\4\5')
76
76
 
77
+ # border: none -> border:0
78
+ css.gsub!(/(border|border-top|border-right|border-bottom|border-right|outline|background):none(;|\})/i){ "#{$1.downcase}:0#{$2}" }
79
+
77
80
  # shorter opacity IE filter
78
81
  css.gsub!(/progid:DXImageTransform\.Microsoft\.Alpha\(Opacity=/i, "alpha(opacity=")
79
82
 
metadata CHANGED
@@ -1,12 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: css_toolkit
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
- - 3
9
- version: "1.3"
8
+ - 4
9
+ version: "1.4"
10
10
  platform: ruby
11
11
  authors:
12
12
  - Richard Hulse
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-11 00:00:00 +12:00
17
+ date: 2011-04-27 00:00:00 +12:00
18
18
  default_executable:
19
19
  dependencies: []
20
20