Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Boxiang Sun
gitlab-ce
Commits
46e77db0
Commit
46e77db0
authored
Nov 30, 2011
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
some fixes to black colorscheme
parent
6686834c
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
5 additions
and
4 deletions
+5
-4
app/assets/stylesheets/highlight.black.css.scss
app/assets/stylesheets/highlight.black.css.scss
+2
-2
app/helpers/projects_helper.rb
app/helpers/projects_helper.rb
+3
-2
No files found.
app/assets/stylesheets/highlight.black.css.scss
View file @
46e77db0
...
...
@@ -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 */
...
...
app/helpers/projects_helper.rb
View file @
46e77db0
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment