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
89875aff
Commit
89875aff
authored
Jul 31, 2016
by
Fatih Acet
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Refactor on diff themes for merge conflicts UI.
parent
c439be58
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
43 additions
and
11 deletions
+43
-11
app/assets/stylesheets/framework/mixins.scss
app/assets/stylesheets/framework/mixins.scss
+6
-1
app/assets/stylesheets/highlight/dark.scss
app/assets/stylesheets/highlight/dark.scss
+5
-2
app/assets/stylesheets/highlight/monokai.scss
app/assets/stylesheets/highlight/monokai.scss
+5
-2
app/assets/stylesheets/highlight/solarized_dark.scss
app/assets/stylesheets/highlight/solarized_dark.scss
+5
-2
app/assets/stylesheets/highlight/solarized_light.scss
app/assets/stylesheets/highlight/solarized_light.scss
+11
-2
app/assets/stylesheets/highlight/white.scss
app/assets/stylesheets/highlight/white.scss
+11
-2
No files found.
app/assets/stylesheets/framework/mixins.scss
View file @
89875aff
...
...
@@ -123,4 +123,9 @@
}
}
}
}
\ No newline at end of file
}
@mixin
dark-diff-match-line
{
color
:
rgba
(
255
,
255
,
255
,
0
.3
);
background
:
rgba
(
255
,
255
,
255
,
0
.1
);
}
app/assets/stylesheets/highlight/dark.scss
View file @
89875aff
...
...
@@ -21,6 +21,10 @@
// Diff line
.line_holder
{
&
.match
.line_content
{
@include
dark-diff-match-line
;
}
td
.diff-line-num.hll
:not
(
.empty-cell
),
td
.line_content.hll
:not
(
.empty-cell
)
{
background-color
:
#557
;
...
...
@@ -36,8 +40,7 @@
}
.line_content.match
{
color
:
rgba
(
255
,
255
,
255
,
0
.3
);
background
:
rgba
(
255
,
255
,
255
,
0
.1
);
@include
dark-diff-match-line
;
}
}
...
...
app/assets/stylesheets/highlight/monokai.scss
View file @
89875aff
...
...
@@ -21,6 +21,10 @@
// Diff line
.line_holder
{
&
.match
.line_content
{
@include
dark-diff-match-line
;
}
td
.diff-line-num.hll
:not
(
.empty-cell
),
td
.line_content.hll
:not
(
.empty-cell
)
{
background-color
:
#49483e
;
...
...
@@ -36,8 +40,7 @@
}
.line_content.match
{
color
:
rgba
(
255
,
255
,
255
,
0
.3
);
background
:
rgba
(
255
,
255
,
255
,
0
.1
);
@include
dark-diff-match-line
;
}
}
...
...
app/assets/stylesheets/highlight/solarized_dark.scss
View file @
89875aff
...
...
@@ -21,6 +21,10 @@
// Diff line
.line_holder
{
&
.match
.line_content
{
@include
dark-diff-match-line
;
}
td
.diff-line-num.hll
:not
(
.empty-cell
),
td
.line_content.hll
:not
(
.empty-cell
)
{
background-color
:
#174652
;
...
...
@@ -36,8 +40,7 @@
}
.line_content.match
{
color
:
rgba
(
255
,
255
,
255
,
0
.3
);
background
:
rgba
(
255
,
255
,
255
,
0
.1
);
@include
dark-diff-match-line
;
}
}
...
...
app/assets/stylesheets/highlight/solarized_light.scss
View file @
89875aff
/* https://gist.github.com/qguv/7936275 */
@mixin
matchLine
{
color
:
$black-transparent
;
background
:
rgba
(
255
,
255
,
255
,
0
.4
);
}
.code.solarized-light
{
// Line numbers
.line-numbers
,
.diff-line-num
{
...
...
@@ -21,6 +27,10 @@
// Diff line
.line_holder
{
&
.match
.line_content
{
@include
matchLine
;
}
td
.diff-line-num.hll
:not
(
.empty-cell
),
td
.line_content.hll
:not
(
.empty-cell
)
{
background-color
:
#ddd8c5
;
...
...
@@ -36,8 +46,7 @@
}
.line_content.match
{
color
:
$black-transparent
;
background
:
rgba
(
255
,
255
,
255
,
0
.4
);
@include
matchLine
;
}
}
...
...
app/assets/stylesheets/highlight/white.scss
View file @
89875aff
/* https://github.com/aahan/pygments-github-style */
@mixin
matchLine
{
color
:
$black-transparent
;
background-color
:
$match-line
;
}
.code.white
{
// Line numbers
.line-numbers
,
.diff-line-num
{
...
...
@@ -22,6 +28,10 @@
// Diff line
.line_holder
{
&
.match
.line_content
{
@include
matchLine
;
}
.diff-line-num
{
&
.old
{
background-color
:
$line-number-old
;
...
...
@@ -57,8 +67,7 @@
}
&
.match
{
color
:
$black-transparent
;
background-color
:
$match-line
;
@include
matchLine
;
}
&
.hll
:not
(
.empty-cell
)
{
...
...
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