diff --git a/README b/README index 5b1d3e5..5c09753 100644 --- a/README +++ b/README @@ -38,6 +38,13 @@ Or, if you prefer, add something like the following to environment.rb: Thoughtbot::MileMarker.environments = %w(development staging production) +You can also change some of the styling options (as of right now, just the z-index and background color) by modifying the options hash: + +Thoughtbot::MileMarker.options.update( + :z_index => 100, + :background_color => "purple" +) + == Requirements The overlay functionality requires javascript, and uses the prototype library. So, any page that is using this functionality must also include prototype. diff --git a/lib/mile_marker.rb b/lib/mile_marker.rb index fb03594..2e9a83c 100644 --- a/lib/mile_marker.rb +++ b/lib/mile_marker.rb @@ -52,7 +52,7 @@ def self.initialize_mile_marker() } function init_miles() { $$('*[mile]').each(function(block, index) { - html = '' + html = '' new Insertion.Before($(block), html); Position.clone($(block), $('mile_'+index)); if($('mile_'+index).getHeight() <= 25) { $('mile_'+index).setStyle({fontSize: '10px'}); }