diff --git a/app/helpers/wiki_helper.rb b/app/helpers/wiki_helper.rb
index e88f9765..6a1a2ed2 100644
--- a/app/helpers/wiki_helper.rb
+++ b/app/helpers/wiki_helper.rb
@@ -91,6 +91,9 @@ module WikiHelper
{:class => 'navlink', :id => 'rollback', :rel => 'nofollow'})
end
-
+ def darken(s)
+ n=s.length/3
+ s.scan( %r(\w{#{n},#{n}}) ).collect {|a| (a.hex * 2/3).to_s(16).rjust(n,'0')}.join
+ end
end
diff --git a/app/views/layouts/default.rhtml b/app/views/layouts/default.rhtml
index 8782dbbf..79dba5dc 100644
--- a/app/views/layouts/default.rhtml
+++ b/app/views/layouts/default.rhtml
@@ -16,15 +16,18 @@
<%= javascript_include_tag 'page_helper' %>
+ <%= stylesheet_link_tag 'instiki', :media => 'all' unless @inline_style %>
+ <%= stylesheet_link_tag 'syntax', :media => 'all' unless @inline_style %>
- <%= stylesheet_link_tag 'instiki', :media => 'all' unless @inline_style %>
- <%= stylesheet_link_tag 'syntax', :media => 'all' unless @inline_style %>
<%= "" if @style_additions %>