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
Jérome Perrin
gitlab-ce
Commits
561ac355
Commit
561ac355
authored
Apr 30, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3692 from szechyjs/master
Add monokai highlighting theme
parents
f58d55da
d4688af3
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
93 additions
and
0 deletions
+93
-0
app/assets/images/monokai.png
app/assets/images/monokai.png
+0
-0
app/assets/stylesheets/application.scss
app/assets/stylesheets/application.scss
+1
-0
app/assets/stylesheets/highlight/monokai.scss
app/assets/stylesheets/highlight/monokai.scss
+86
-0
app/helpers/application_helper.rb
app/helpers/application_helper.rb
+1
-0
app/views/profiles/design.html.haml
app/views/profiles/design.html.haml
+5
-0
No files found.
app/assets/images/monokai.png
0 → 100644
View file @
561ac355
6.5 KB
app/assets/stylesheets/application.scss
View file @
561ac355
...
@@ -41,6 +41,7 @@
...
@@ -41,6 +41,7 @@
@import
"highlight/white.scss"
;
@import
"highlight/white.scss"
;
@import
"highlight/dark.scss"
;
@import
"highlight/dark.scss"
;
@import
"highlight/solarized_dark.scss"
;
@import
"highlight/solarized_dark.scss"
;
@import
"highlight/monokai.scss"
;
/**
/**
* UI themes:
* UI themes:
...
...
app/assets/stylesheets/highlight/monokai.scss
0 → 100644
View file @
561ac355
$monokai-fg
:
#f8f8f2
;
$monokai-comment
:
#75715e
;
$monokai-pink
:
#f92672
;
$monokai-blue
:
#66d9ef
;
$monokai-green
:
#a6e22e
;
$monokai-gold
:
#e6db74
;
$monokai-dark
:
#3b3a32
;
$monokai-purple
:
#ae81ff
;
.monokai
.highlight
{
pre
{
background-color
:
#272822
;
color
:
$monokai-fg
;
}
.hll
{
background-color
:
#ffffcc
}
.c
{
color
:
$monokai-comment
}
/* Comment */
.err
{
color
:
$monokai-fg
}
/* Error */
.g
{
color
:
$monokai-fg
}
/* Generic */
.k
{
color
:
$monokai-pink
}
/* Keyword */
.l
{
color
:
$monokai-fg
}
/* Literal */
.n
{
color
:
$monokai-blue
}
/* Name */
.o
{
color
:
$monokai-fg
}
/* Operator */
.x
{
color
:
$monokai-fg
}
/* Other */
.p
{
color
:
$monokai-fg
}
/* Punctuation */
.cm
{
color
:
$monokai-comment
}
/* Comment.Multiline */
.cp
{
color
:
$monokai-comment
}
/* Comment.Preproc */
.c1
{
color
:
$monokai-comment
}
/* Comment.Single */
.cs
{
color
:
$monokai-comment
}
/* Comment.Special */
.gd
{
color
:
#8b0807
}
/* Generic.Deleted */
.ge
{
color
:
$monokai-fg
;
text-decoration
:
underline
}
/* Generic.Emph */
.gr
{
color
:
$monokai-fg
}
/* Generic.Error */
.gh
{
color
:
$monokai-fg
;
font-weight
:
bold
}
/* Generic.Heading */
.gi
{
color
:
$monokai-fg
;
font-weight
:
bold
;
background-color
:
#46830c
}
/* Generic.Inserted */
.go
{
color
:
$monokai-dark
;
background-color
:
#31322c
}
/* Generic.Output */
.gp
{
color
:
$monokai-fg
}
/* Generic.Prompt */
.gs
{
color
:
$monokai-fg
}
/* Generic.Strong */
.gu
{
color
:
$monokai-fg
;
font-weight
:
bold
}
/* Generic.Subheading */
.gt
{
color
:
#f8f8f0
;
background-color
:
$monokai-pink
}
/* Generic.Traceback */
.kc
{
color
:
$monokai-purple
}
/* Keyword.Constant */
.kd
{
color
:
$monokai-pink
}
/* Keyword.Declaration */
.kn
{
color
:
$monokai-pink
}
/* Keyword.Namespace */
.kp
{
color
:
$monokai-pink
}
/* Keyword.Pseudo */
.kr
{
color
:
$monokai-pink
}
/* Keyword.Reserved */
.kt
{
color
:
$monokai-fg
}
/* Keyword.Type */
.ld
{
color
:
$monokai-fg
}
/* Literal.Date */
.m
{
color
:
$monokai-purple
}
/* Literal.Number */
.s
{
color
:
$monokai-gold
}
/* Literal.String */
.na
{
color
:
$monokai-purple
}
/* Name.Attribute */
.nb
{
color
:
$monokai-blue
}
/* Name.Builtin */
.nc
{
color
:
$monokai-fg
}
/* Name.Class */
.no
{
color
:
$monokai-fg
}
/* Name.Constant */
.nd
{
color
:
$monokai-fg
}
/* Name.Decorator */
.ni
{
color
:
$monokai-fg
}
/* Name.Entity */
.ne
{
color
:
$monokai-fg
}
/* Name.Exception */
.nf
{
color
:
$monokai-green
}
/* Name.Function */
.nl
{
color
:
$monokai-gold
}
/* Name.Label */
.nn
{
color
:
$monokai-fg
}
/* Name.Namespace */
.nx
{
color
:
$monokai-fg
}
/* Name.Other */
.nt
{
color
:
$monokai-pink
}
/* Name.Tag */
.nv
{
color
:
$monokai-blue
;
font-style
:
italic
}
/* Name.Variable */
.py
{
color
:
$monokai-fg
}
/* Name.Property */
.ow
{
color
:
$monokai-pink
}
/* Operator.Word */
.w
{
color
:
$monokai-fg
}
/* Text.Whitespace */
.mf
{
color
:
$monokai-purple
}
/* Literal.Number.Float */
.mh
{
color
:
$monokai-purple
}
/* Literal.Number.Hex */
.mi
{
color
:
$monokai-purple
}
/* Literal.Number.Integer */
.mo
{
color
:
$monokai-purple
}
/* Literal.Number.Oct */
.sb
{
color
:
$monokai-gold
}
/* Literal.String.Backtick */
.sc
{
color
:
$monokai-gold
}
/* Literal.String.Char */
.sd
{
color
:
$monokai-gold
}
/* Literal.String.Doc */
.s2
{
color
:
$monokai-gold
}
/* Literal.String.Double */
.se
{
color
:
$monokai-gold
}
/* Literal.String.Escape */
.sh
{
color
:
$monokai-gold
}
/* Literal.String.Heredoc */
.si
{
color
:
$monokai-gold
}
/* Literal.String.Interpol */
.sx
{
color
:
$monokai-gold
}
/* Literal.String.Other */
.sr
{
color
:
$monokai-gold
}
/* Literal.String.Regex */
.s1
{
color
:
$monokai-gold
}
/* Literal.String.Single */
.ss
{
color
:
$monokai-gold
}
/* Literal.String.Symbol */
.bp
{
color
:
$monokai-fg
}
/* Name.Builtin.Pseudo */
.vc
{
color
:
$monokai-blue
;
font-style
:
italic
}
/* Name.Variable.Class */
.vg
{
color
:
$monokai-blue
;
font-style
:
italic
}
/* Name.Variable.Global */
.vi
{
color
:
$monokai-blue
;
font-style
:
italic
}
/* Name.Variable.Instance */
.il
{
color
:
$monokai-purple
}
/* Literal.Number.Integer.Long */
}
app/helpers/application_helper.rb
View file @
561ac355
...
@@ -132,6 +132,7 @@ module ApplicationHelper
...
@@ -132,6 +132,7 @@ module ApplicationHelper
when
1
then
'white'
when
1
then
'white'
when
2
then
'black'
when
2
then
'black'
when
3
then
'solarized-dark'
when
3
then
'solarized-dark'
when
4
then
'monokai'
else
else
'white'
'white'
end
end
...
...
app/views/profiles/design.html.haml
View file @
561ac355
...
@@ -55,3 +55,8 @@
...
@@ -55,3 +55,8 @@
=
image_tag
"solarized_dark.png"
=
image_tag
"solarized_dark.png"
=
f
.
radio_button
:color_scheme_id
,
3
=
f
.
radio_button
:color_scheme_id
,
3
Solarized Dark
Solarized Dark
=
label_tag
do
.prev
=
image_tag
"monokai.png"
=
f
.
radio_button
:color_scheme_id
,
4
Monokai
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