Commit 46e77db0991283e54398c5214e25c48ae8708ec2

Authored by Dmitriy Zaporozhets
1 parent 6686834c

some fixes to black colorscheme

app/assets/stylesheets/highlight.black.css.scss
@@ -33,11 +33,11 @@ @@ -33,11 +33,11 @@
33 .s { color: #dd2200; background-color: transparent } /* Literal.String */ 33 .s { color: #dd2200; background-color: transparent } /* Literal.String */
34 .highlight .na{color:#008080;} /* Name.Attribute */ 34 .highlight .na{color:#008080;} /* Name.Attribute */
35 .highlight .nb{color:#0086B3;} /* Name.Builtin */ 35 .highlight .nb{color:#0086B3;} /* Name.Builtin */
36 - .highlight .nc{color:#4d3;font-weight:bold;} /* Name.Class */ 36 + .highlight .nc{color:#ccc;font-weight:bold;} /* Name.Class */
37 .highlight .no{color:turquoise;} /* Name.Constant */ 37 .highlight .no{color:turquoise;} /* Name.Constant */
38 .highlight .ni{color:#800080;} 38 .highlight .ni{color:#800080;}
39 .highlight .ne{color:#900;font-weight:bold;} /* Name.Exception */ 39 .highlight .ne{color:#900;font-weight:bold;} /* Name.Exception */
40 - .highlight .nf{color:aqua;font-weight:bold;} /* Name.Function */ 40 + .highlight .nf{color:#ccc;font-weight:bold;} /* Name.Function */
41 .highlight .nn{color:#79C3E0;font-weight:bold;} /* Name.Namespace */ 41 .highlight .nn{color:#79C3E0;font-weight:bold;} /* Name.Namespace */
42 .highlight .nt{color:#fc5;} /* Name.Tag */ 42 .highlight .nt{color:#fc5;} /* Name.Tag */
43 .highlight .nv{color:#008080;} /* Name.Variable */ 43 .highlight .nv{color:#008080;} /* Name.Variable */
app/helpers/projects_helper.rb
@@ -16,11 +16,12 @@ module ProjectsHelper @@ -16,11 +16,12 @@ module ProjectsHelper
16 nil 16 nil
17 end 17 end
18 18
  19 + # expires in 360 days
19 def switch_colorscheme_link(opts) 20 def switch_colorscheme_link(opts)
20 if cookies[:colorschema].blank? 21 if cookies[:colorschema].blank?
21 - link_to_function "paint it black!", "$.cookie('colorschema','black'); window.location.reload()", opts 22 + link_to_function "paint it black!", "$.cookie('colorschema','black', {expires:360}); window.location.reload()", opts
22 else 23 else
23 - link_to_function "paint it white!", "$.cookie('colorschema',''); window.location.reload()", opts 24 + link_to_function "paint it white!", "$.cookie('colorschema','', {expires:360}); window.location.reload()", opts
24 end 25 end
25 end 26 end
26 end 27 end