some fixes to black colorscheme

This commit is contained in:
Dmitriy Zaporozhets 2011-11-30 23:25:39 +02:00
parent 6686834c8d
commit 46e77db099
2 changed files with 5 additions and 4 deletions

View file

@ -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 */

View file

@ -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