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
Kazuhiko Shiozaki
gitlab-ce
Commits
b2c071fa
Commit
b2c071fa
authored
Jan 21, 2016
by
Douwe Maan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Pretty highlighted diffs for every theme
parent
21facf53
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
37 additions
and
20 deletions
+37
-20
app/assets/stylesheets/highlight/dark.scss
app/assets/stylesheets/highlight/dark.scss
+7
-2
app/assets/stylesheets/highlight/monokai.scss
app/assets/stylesheets/highlight/monokai.scss
+8
-3
app/assets/stylesheets/highlight/solarized_dark.scss
app/assets/stylesheets/highlight/solarized_dark.scss
+8
-3
app/assets/stylesheets/highlight/solarized_light.scss
app/assets/stylesheets/highlight/solarized_light.scss
+8
-3
app/assets/stylesheets/pages/diff.scss
app/assets/stylesheets/pages/diff.scss
+6
-9
No files found.
app/assets/stylesheets/highlight/dark.scss
View file @
b2c071fa
...
@@ -22,11 +22,16 @@
...
@@ -22,11 +22,16 @@
// Diff line
// Diff line
.line_holder
{
.line_holder
{
.diff-line-num.new
,
.line_content.new
{
.diff-line-num.new
,
.line_content.new
{
@include
diff_background
(
51
,
255
,
51
,
#808080
);
@include
diff_background
(
rgba
(
51
,
255
,
51
,
0
.1
)
,
rgba
(
51
,
255
,
51
,
0
.2
)
,
#808080
);
}
}
.diff-line-num.old
,
.line_content.old
{
.diff-line-num.old
,
.line_content.old
{
@include
diff_background
(
255
,
51
,
51
,
#808080
);
@include
diff_background
(
rgba
(
255
,
51
,
51
,
0
.2
)
,
rgba
(
255
,
51
,
51
,
0
.2
)
,
#808080
);
}
.line_content.match
{
color
:
rgba
(
255
,
255
,
255
,
0
.3
);
background
:
rgba
(
255
,
255
,
255
,
0
.1
);
}
}
}
}
...
...
app/assets/stylesheets/highlight/monokai.scss
View file @
b2c071fa
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
}
}
.diff-line-num
,
.diff-line-num
a
{
.diff-line-num
,
.diff-line-num
a
{
color
:
#f8f8f2
;
color
:
rgba
(
255
,
255
,
255
,
0
.3
)
;
}
}
// Code itself
// Code itself
...
@@ -22,11 +22,16 @@
...
@@ -22,11 +22,16 @@
// Diff line
// Diff line
.line_holder
{
.line_holder
{
.diff-line-num.new
,
.line_content.new
{
.diff-line-num.new
,
.line_content.new
{
@include
diff_background
(
156
,
175
,
183
,
#808080
);
@include
diff_background
(
rgba
(
166
,
226
,
46
,
0
.2
)
,
rgba
(
166
,
226
,
46
,
0
.3
)
,
#808080
);
}
}
.diff-line-num.old
,
.line_content.old
{
.diff-line-num.old
,
.line_content.old
{
@include
diff_background
(
254
,
147
,
140
,
#808080
);
@include
diff_background
(
rgba
(
254
,
147
,
140
,
0
.2
)
,
rgba
(
254
,
147
,
140
,
0
.3
)
,
#808080
);
}
.line_content.match
{
color
:
rgba
(
255
,
255
,
255
,
0
.3
);
background
:
rgba
(
255
,
255
,
255
,
0
.1
);
}
}
}
}
...
...
app/assets/stylesheets/highlight/solarized_dark.scss
View file @
b2c071fa
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
}
}
.diff-line-num
,
.diff-line-num
a
{
.diff-line-num
,
.diff-line-num
a
{
color
:
#93a1a1
;
color
:
rgba
(
255
,
255
,
255
,
0
.3
)
;
}
}
// Code itself
// Code itself
...
@@ -22,11 +22,16 @@
...
@@ -22,11 +22,16 @@
// Diff line
// Diff line
.line_holder
{
.line_holder
{
.diff-line-num.new
,
.line_content.new
{
.diff-line-num.new
,
.line_content.new
{
@include
diff_background
(
255
,
255
,
255
,
#808080
);
@include
diff_background
(
rgba
(
133
,
153
,
0
,
0
.2
)
,
rgba
(
133
,
153
,
0
,
0
.3
)
,
#808080
);
}
}
.diff-line-num.old
,
.line_content.old
{
.diff-line-num.old
,
.line_content.old
{
@include
diff_background
(
255
,
51
,
51
,
#808080
);
@include
diff_background
(
rgba
(
220
,
50
,
47
,
0
.2
)
,
rgba
(
220
,
50
,
47
,
0
.3
)
,
#808080
);
}
.line_content.match
{
color
:
rgba
(
255
,
255
,
255
,
0
.3
);
background
:
rgba
(
255
,
255
,
255
,
0
.1
);
}
}
}
}
...
...
app/assets/stylesheets/highlight/solarized_light.scss
View file @
b2c071fa
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
}
}
.diff-line-num
,
.diff-line-num
a
{
.diff-line-num
,
.diff-line-num
a
{
color
:
#586e75
;
color
:
rgba
(
0
,
0
,
0
,
0
.3
)
;
}
}
// Code itself
// Code itself
...
@@ -22,11 +22,16 @@
...
@@ -22,11 +22,16 @@
// Diff line
// Diff line
.line_holder
{
.line_holder
{
.diff-line-num.new
,
.line_content.new
{
.diff-line-num.new
,
.line_content.new
{
@include
diff_background
(
92
,
164
,
169
,
#FAF3DD
);
@include
diff_background
(
rgba
(
133
,
153
,
0
,
0
.2
)
,
rgba
(
133
,
153
,
0
,
0
.3
)
,
#FAF3DD
);
}
}
.diff-line-num.old
,
.line_content.old
{
.diff-line-num.old
,
.line_content.old
{
@include
diff_background
(
237
,
106
,
90
,
#FAF3DD
);
@include
diff_background
(
rgba
(
220
,
50
,
47
,
0
.2
)
,
rgba
(
220
,
50
,
47
,
0
.3
)
,
#FAF3DD
);
}
.line_content.match
{
color
:
rgba
(
0
,
0
,
0
,
0
.3
);
background
:
rgba
(
255
,
255
,
255
,
0
.4
);
}
}
}
}
...
...
app/assets/stylesheets/pages/diff.scss
View file @
b2c071fa
...
@@ -353,17 +353,14 @@
...
@@ -353,17 +353,14 @@
}
}
}
}
@mixin
diff_background
(
$r
,
$g
,
$b
,
$custom-border
)
{
@mixin
diff_background
(
$background
,
$idiff
,
$border
)
{
/* Fallback for web browsers that doesn't support RGBa */
background
:
$background
;
background
:
rgb
(
$r
,
$g
,
$b
);
/* RGBa with 0.3 opacity */
background
:
rgba
(
$r
,
$g
,
$b
,
0
.3
);
&
.
diff-line-num
{
&
.
line_content
span
.idiff
{
b
order-right-color
:
$custom-border
!
important
;
b
ackground
:
$idiff
;
}
}
&
.
line_content
span
.idiff
{
&
.
diff-line-num
{
b
ackground
:
rgb
(
$r
,
$g
,
$b
)
;
b
order-color
:
$border
;
}
}
}
}
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