Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 86b7bb6

Browse files
author
Antonio Scandurra
committed
Merge branch 'master' into ku-review-comment-positioning
2 parents fb8f5c4 + 2bc9a80 commit 86b7bb6

File tree

2 files changed

+15
-7
lines changed

2 files changed

+15
-7
lines changed

lib/github/review-comment/review-comment-component.js

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,8 @@ export default class ReviewCommentComponent {
1717
const comment = this.comment
1818

1919
return (
20-
<div className='pr-comment-component'>
20+
<div className='github-PRComment'>
2121
<div className='github-PRComment-margin'/>
22-
2322
<header className='github-PRComment-header'>
2423
<UserAvatar className='github-PRComment-avatar' size={20} userId={comment.user.id} />
2524
<span className='github-PRComment-login'> {comment.user.login} </span>

styles/github-pr-comment.less

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,25 @@
11
@import "ui-variables";
22
@import "syntax-variables";
33

4-
@PRComment-color: mix(@syntax-text-color, @syntax-background-color, 80%);
5-
@PRComment-color-subtle: mix(@syntax-text-color, @syntax-background-color, 50%);
6-
@PRComment-color-link: mix(@syntax-color-renamed, @PRComment-color-subtle, 20%);
4+
@PRComment-color: @syntax-text-color;
5+
@PRComment-color-subtle: mix(@syntax-text-color, @syntax-background-color, 66%);
6+
@PRComment-color-link: mix(@syntax-color-renamed, @PRComment-color-subtle, 33%);
77
@PRComment-color-border: @syntax-indent-guide-color;
88

99
.github-PRComment {
1010
max-width: 600px;
1111
font-size: 11/12em;
12-
// color: @PRComment-color;
12+
font-family: @font-family;
13+
color: @PRComment-color;
1314
padding: 0 @component-padding;
15+
background-color: @syntax-gutter-background-color;
16+
cursor: default;
17+
opacity: .33;
18+
transition: opacity .2s;
19+
&:hover {
20+
opacity: 1;
21+
transition-duration: .08s;
22+
}
1423

1524
&:nth-child(2) {
1625
border-top: 1px solid @PRComment-color-border;
@@ -27,7 +36,7 @@
2736
&-avatar {
2837
display: inline-block;
2938
border-radius: 50%;
30-
margin-right: 4px;
39+
margin-right: 8px;
3140
}
3241

3342
&-login {}

0 commit comments

Comments
 (0)