Commit 46e77db0991283e54398c5214e25c48ae8708ec2
1 parent
6686834c
Exists in
master
and in
4 other branches
some fixes to black colorscheme
Showing
2 changed files
with
5 additions
and
4 deletions
Show diff stats
app/assets/stylesheets/highlight.black.css.scss
... | ... | @@ -33,11 +33,11 @@ |
33 | 33 | .s { color: #dd2200; background-color: transparent } /* Literal.String */ |
34 | 34 | .highlight .na{color:#008080;} /* Name.Attribute */ |
35 | 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 | 37 | .highlight .no{color:turquoise;} /* Name.Constant */ |
38 | 38 | .highlight .ni{color:#800080;} |
39 | 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 | 41 | .highlight .nn{color:#79C3E0;font-weight:bold;} /* Name.Namespace */ |
42 | 42 | .highlight .nt{color:#fc5;} /* Name.Tag */ |
43 | 43 | .highlight .nv{color:#008080;} /* Name.Variable */ | ... | ... |
app/helpers/projects_helper.rb
... | ... | @@ -16,11 +16,12 @@ module ProjectsHelper |
16 | 16 | nil |
17 | 17 | end |
18 | 18 | |
19 | + # expires in 360 days | |
19 | 20 | def switch_colorscheme_link(opts) |
20 | 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 | 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 | 25 | end |
25 | 26 | end |
26 | 27 | end | ... | ... |