Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Remove timestamps from generated image urls, Fixes #5

  • Loading branch information...
commit 982cb6d9affb04f3dd418bcdcd697db757ad1559 1 parent 7ce545a
@iain authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  Rakefile
  2. +3 −3 vendor/assets/stylesheets/formalize.css.scss
View
2  Rakefile
@@ -50,7 +50,7 @@ task :update do
File.open(path, 'w') do |t|
open url do |f|
f.each_line do |line|
- t << line.gsub(%r|url\(.+/([^/]+)\)|, "image-url('formalize/\\1)")
+ t << line.gsub(%r|url\(.+/([^/]+)\)|) { |m| "image-url('formalize/#{$1.split("?",2).first}')" }
end
end
end
View
6 vendor/assets/stylesheets/formalize.css.scss
@@ -81,7 +81,7 @@ input[type="button"] {
-ms-background-clip: padding-box;
-o-background-clip: padding-box;
background-clip: padding-box;
- background: #dddddd image-url('formalize/button.png?1298351022') repeat-x;
+ background: #dddddd image-url('formalize/button.png') repeat-x;
background-image: -webkit-gradient(linear, 50% 0%, 50% 100%, color-stop(0%, #ffffff), color-stop(100%, #dddddd));
background-image: -webkit-linear-gradient(#ffffff, #dddddd);
background-image: -moz-linear-gradient(#ffffff, #dddddd);
@@ -263,7 +263,7 @@ select[size="1"] {
select,
select[size="0"],
select[size="1"] {
- background-image: image-url('formalize/select_arrow.gif?1298351050');
+ background-image: image-url('formalize/select_arrow.gif');
background-repeat: no-repeat;
background-position: right center;
padding-right: 20px;
@@ -312,7 +312,7 @@ optgroup::-moz-focus-inner {
.ie6_button,
* html button {
- background: #dddddd image-url('formalize/button.png?1298351022') repeat-x;
+ background: #dddddd image-url('formalize/button.png') repeat-x;
border: 1px solid;
border-color: #dddddd #bbbbbb #999999;
cursor: pointer;
Please sign in to comment.
Something went wrong with that request. Please try again.