-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Initial ui components for pull request review
- Loading branch information
Showing
13 changed files
with
293 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,94 @@ | ||
.ui.button.add-code-comment { | ||
font-size: 14px; | ||
height: 16px; | ||
padding: 0; | ||
padding-top: 2px; | ||
position: absolute; | ||
width: 16px; | ||
display: none; | ||
|
||
&:hover { | ||
font-size:16px; | ||
margin-top: -2px; | ||
margin-left: -2px; | ||
height: 20px; | ||
width: 20px; | ||
} | ||
} | ||
|
||
.focus-lines-new .ui.button.add-code-comment.add-code-comment-right, | ||
.focus-lines-old .ui.button.add-code-comment.add-code-comment-left { | ||
display: inline-block; | ||
} | ||
|
||
.comment-code-cloud { | ||
padding: 4px; | ||
margin: 0 auto; | ||
position: relative; | ||
border: 1px solid #f1f1f1; | ||
margin-top: 13px; | ||
margin-right: 10px; | ||
margin-bottom: 5px; | ||
|
||
&:before { | ||
content: " "; | ||
width: 0; | ||
height: 0; | ||
border-left: 13px solid transparent; | ||
border-right: 13px solid transparent; | ||
border-bottom: 13px solid #f1f1f1; | ||
left: 20px; | ||
position: absolute; | ||
top: -13px; | ||
} | ||
|
||
.attached.tab { | ||
border: none; | ||
padding: 0; | ||
margin: 0; | ||
|
||
&.markdown { | ||
padding: 1em; | ||
min-height: 168px; | ||
} | ||
} | ||
|
||
.right.menu.options .item { | ||
padding: 0.85714286em 0.442857em; | ||
cursor: pointer; | ||
} | ||
|
||
.ui.form textarea { | ||
border: 0px; | ||
} | ||
|
||
.ui.attached.tabular.menu { | ||
background: #f7f7f7; | ||
border: 1px solid #d4d4d5; | ||
padding-top: 5px; | ||
padding-left: 5px; | ||
margin-top: 0px; | ||
} | ||
|
||
.footer { | ||
border-top: 1px solid #f1f1f1; | ||
margin-top: 10px; | ||
|
||
.markdown-info { | ||
display: inline-block; | ||
margin: 5px 0; | ||
font-size: 12px; | ||
color: rgba(0,0,0,.6) | ||
} | ||
|
||
.ui.right.floated { | ||
padding-top: 6px; | ||
} | ||
|
||
&:after{ | ||
clear: both; | ||
content: ""; | ||
display: block; | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,3 +12,4 @@ | |
@import "_dashboard"; | ||
@import "_admin"; | ||
@import "_explore"; | ||
@import "_review"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
<div class="field comment-code-cloud"> | ||
<form class="ui form" action="{{.Link}}" method="post"> | ||
{{.CsrfTokenHtml}} | ||
<input type="hidden" name="side"> | ||
<input type="hidden" name="line"> | ||
<input type="hidden" name="path"> | ||
<input type="hidden" name="commit_id"> | ||
<input type="hidden" name="diff_start_cid"> | ||
<input type="hidden" name="diff_end_cid"> | ||
<input type="hidden" name="diff_base_cid"> | ||
<div class="ui top attached tabular menu" data-write="write" data-preview="preview"> | ||
<a class="active item" data-tab="write">{{.i18n.Tr "write"}}</a> | ||
<a class="item" data-tab="preview" data-url="{{AppSubUrl}}/api/v1/markdown" data-context="{{.RepoLink}}">{{.i18n.Tr "preview"}}</a> | ||
</div> | ||
<div class="ui bottom attached active tab segment" data-tab="write"> | ||
<div class="field"> | ||
<textarea name="content" placeholder="{{$.i18n.Tr "repo.diff.comment.placeholder"}}"></textarea> | ||
</div> | ||
</div> | ||
<div class="ui bottom attached tab segment markdown" data-tab="preview"> | ||
{{.i18n.Tr "loading"}} | ||
</div> | ||
<div class="footer"> | ||
<span class="markdown-info"><i class="octicon octicon-markdown"></i> {{$.i18n.Tr "repo.diff.comment.markdown_info"}}</span> | ||
<div class="ui right floated"> | ||
<div class="ui submit tiny basic button btn-cancel">{{$.i18n.Tr "cancel"}}</div> | ||
<div class="ui submit tiny basic button btn-add-single">{{$.i18n.Tr "repo.diff.comment.add_single_comment"}}</div> | ||
<div class="ui submit green tiny button btn-add-comment">{{$.i18n.Tr "repo.diff.comment.add_review_comment"}}</div> | ||
<div class="ui submit green tiny button btn-start-review">{{$.i18n.Tr "repo.diff.comment.start_review"}}</div> | ||
</div> | ||
</div> | ||
</form> | ||
</div> |
Oops, something went wrong.