From 46e77db0991283e54398c5214e25c48ae8708ec2 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Wed, 30 Nov 2011 23:25:39 +0200 Subject: [PATCH] some fixes to black colorscheme --- app/assets/stylesheets/highlight.black.css.scss | 4 ++-- app/helpers/projects_helper.rb | 5 +++-- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/app/assets/stylesheets/highlight.black.css.scss b/app/assets/stylesheets/highlight.black.css.scss index 55e13b2a..e094e48f 100644 --- a/app/assets/stylesheets/highlight.black.css.scss +++ b/app/assets/stylesheets/highlight.black.css.scss @@ -33,11 +33,11 @@ .s { color: #dd2200; background-color: transparent } /* Literal.String */ .highlight .na{color:#008080;} /* Name.Attribute */ .highlight .nb{color:#0086B3;} /* Name.Builtin */ - .highlight .nc{color:#4d3;font-weight:bold;} /* Name.Class */ + .highlight .nc{color:#ccc;font-weight:bold;} /* Name.Class */ .highlight .no{color:turquoise;} /* Name.Constant */ .highlight .ni{color:#800080;} .highlight .ne{color:#900;font-weight:bold;} /* Name.Exception */ - .highlight .nf{color:aqua;font-weight:bold;} /* Name.Function */ + .highlight .nf{color:#ccc;font-weight:bold;} /* Name.Function */ .highlight .nn{color:#79C3E0;font-weight:bold;} /* Name.Namespace */ .highlight .nt{color:#fc5;} /* Name.Tag */ .highlight .nv{color:#008080;} /* Name.Variable */ diff --git a/app/helpers/projects_helper.rb b/app/helpers/projects_helper.rb index 6dc3f944..5acda509 100644 --- a/app/helpers/projects_helper.rb +++ b/app/helpers/projects_helper.rb @@ -16,11 +16,12 @@ module ProjectsHelper nil end + # expires in 360 days def switch_colorscheme_link(opts) if cookies[:colorschema].blank? - link_to_function "paint it black!", "$.cookie('colorschema','black'); window.location.reload()", opts + link_to_function "paint it black!", "$.cookie('colorschema','black', {expires:360}); window.location.reload()", opts else - link_to_function "paint it white!", "$.cookie('colorschema',''); window.location.reload()", opts + link_to_function "paint it white!", "$.cookie('colorschema','', {expires:360}); window.location.reload()", opts end end end