From 979ea7eca007901ad29538a0655d79f09e48dc3d Mon Sep 17 00:00:00 2001 From: Jacques Distler Date: Sat, 23 Jan 2010 00:21:14 -0600 Subject: [PATCH] CSS Improvements Fixed a few aesthetic matters. --- app/helpers/wiki_helper.rb | 5 ++++- app/views/layouts/default.rhtml | 7 +++++-- app/views/svg_logo.html.erb | 2 +- public/stylesheets/instiki.css | 25 +++++++++++++++++++------ 4 files changed, 29 insertions(+), 10 deletions(-) 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 %>