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
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
gitlab-ce
Commits
acb65516
Commit
acb65516
authored
Apr 30, 2013
by
Dmitriy Zaporozhets
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #3652 from brodock/beautifull-diff
Diff with better colors and some spacing on the corners
parents
9e13160e
a2be7956
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
25 additions
and
3 deletions
+25
-3
app/assets/stylesheets/sections/commits.scss
app/assets/stylesheets/sections/commits.scss
+13
-1
app/assets/stylesheets/sections/notes.scss
app/assets/stylesheets/sections/notes.scss
+11
-1
app/views/commits/_text_file.html.haml
app/views/commits/_text_file.html.haml
+1
-1
No files found.
app/assets/stylesheets/sections/commits.scss
View file @
acb65516
...
@@ -99,12 +99,24 @@
...
@@ -99,12 +99,24 @@
}
}
}
}
}
}
.line_holder
{
&
.old
.old_line
,
&
.old
.new_line
{
background
:
#FCC
;
border-color
:
#E7BABA
;
}
&
.new
.old_line
,
&
.new
.new_line
{
background
:
#CFC
;
border-color
:
#B9ECB9
;
}
}
.line_content
{
.line_content
{
display
:
block
;
display
:
block
;
white-space
:
pre
;
white-space
:
pre
;
height
:
18px
;
height
:
18px
;
margin
:
0px
;
margin
:
0px
;
padding
:
0px
;
padding
:
0px
0
.5em
;
border
:
none
;
border
:
none
;
&
.new
{
&
.new
{
background
:
#CFD
;
background
:
#CFD
;
...
...
app/assets/stylesheets/sections/notes.scss
View file @
acb65516
...
@@ -213,7 +213,17 @@ ul.notes {
...
@@ -213,7 +213,17 @@ ul.notes {
.reply-btn
{
.reply-btn
{
@extend
.btn-primary
;
@extend
.btn-primary
;
}
}
.file
.content
tr
.line_holder
:hover
>
td
{
background
:
$hover
!
important
;
}
.file
.content
tr
.line_holder
:hover
{
&
>
td
.line_content
{
background
:
$hover
!
important
;
border-color
:
darken
(
$hover
,
10%
)
!
important
;
}
&
>
td
.new_line
,
&
>
td
.old_line
{
background
:
darken
(
$hover
,
4%
)
!
important
;
border-color
:
darken
(
$hover
,
10%
)
!
important
;
}
}
.file
.content
tr
.line_holder
:hover
>
td
.line_note_link
{
.file
.content
tr
.line_holder
:hover
>
td
.line_note_link
{
opacity
:
1
.0
;
opacity
:
1
.0
;
filter
:
alpha
(
opacity
=
100
);
filter
:
alpha
(
opacity
=
100
);
...
...
app/views/commits/_text_file.html.haml
View file @
acb65516
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
%table
.text-file
{
class:
"#{'hide' if too_big}"
}
%table
.text-file
{
class:
"#{'hide' if too_big}"
}
-
each_diff_line
(
diff
,
index
)
do
|
line
,
type
,
line_code
,
line_new
,
line_old
|
-
each_diff_line
(
diff
,
index
)
do
|
line
,
type
,
line_code
,
line_new
,
line_old
|
%tr
.line_holder
{
id:
line_code
}
%tr
.line_holder
{
id:
line_code
,
class:
"#{type}"
}
-
if
type
==
"match"
-
if
type
==
"match"
%td
.old_line
=
"..."
%td
.old_line
=
"..."
%td
.new_line
=
"..."
%td
.new_line
=
"..."
...
...
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