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
Léo-Paul Géneau
gitlab-ce
Commits
17830296
Commit
17830296
authored
Sep 19, 2016
by
Alfredo Sumaran
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Styles for discard alert
parent
a3eb39a1
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
6 deletions
+18
-6
app/assets/stylesheets/framework/variables.scss
app/assets/stylesheets/framework/variables.scss
+1
-0
app/assets/stylesheets/pages/merge_conflicts.scss
app/assets/stylesheets/pages/merge_conflicts.scss
+13
-3
app/views/projects/merge_requests/conflicts/_diff_file_editor.html.haml
...ects/merge_requests/conflicts/_diff_file_editor.html.haml
+4
-3
No files found.
app/assets/stylesheets/framework/variables.scss
View file @
17830296
...
...
@@ -56,6 +56,7 @@ $border-gray-light: #dcdcdc;
$border-gray-normal
:
#d7d7d7
;
$border-gray-dark
:
#c6cacf
;
$border-green-extra-light
:
#9adb84
;
$border-green-light
:
#2faa60
;
$border-green-normal
:
#2ca05b
;
$border-green-dark
:
#279654
;
...
...
app/assets/stylesheets/pages/merge_conflicts.scss
View file @
17830296
...
...
@@ -249,13 +249,11 @@ $colors: (
&
.saved
{
.editor
{
border-top
:
solid
1px
green
;
border-top
:
solid
2px
$border-green-extra-light
;
}
}
.editor
{
border-top
:
solid
1px
yellow
;
pre
{
height
:
350px
;
border
:
none
;
...
...
@@ -268,4 +266,16 @@ $colors: (
display
:
none
;
}
}
.discard-changes-alert
{
background-color
:
$background-color
;
text-align
:
right
;
padding
:
$gl-padding-top
$gl-padding
;
color
:
$gl-text-color
;
.discard-actions
{
display
:
inline-block
;
margin-left
:
10px
;
}
}
}
app/views/projects/merge_requests/conflicts/_diff_file_editor.html.haml
View file @
17830296
...
...
@@ -2,8 +2,9 @@
.diff-editor-wrap
{
"v-show"
=>
if_condition
}
.discard-changes-alert-wrap
{
"v-if"
=>
"file.promptDiscardConfirmation"
}
%p
.discard-changes-alert
Are you sure to discard your changes?
%button
.btn.btn-sm.btn-close
{
"@click"
=>
"acceptDiscardConfirmation(file)"
}
Discard changes
%button
.btn.btn-sm
{
"@click"
=>
"cancelDiscardConfirmation(file)"
}
Cancel
.discard-actions
%button
.btn.btn-sm.btn-close
{
"@click"
=>
"acceptDiscardConfirmation(file)"
}
Discard changes
%button
.btn.btn-sm
{
"@click"
=>
"cancelDiscardConfirmation(file)"
}
Cancel
%diff-file-editor
{
":file"
=>
"file"
,
":load-file"
=>
if_condition
}
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