Skip to content

Commit

Permalink
issue: better better fix for #598 fixes #598
Browse files Browse the repository at this point in the history
  • Loading branch information
the-j0k3r authored and silverwind committed Aug 15, 2018
1 parent 19aaa04 commit 8736122
Showing 1 changed file with 19 additions and 9 deletions.
28 changes: 19 additions & 9 deletions github-dark.css
Original file line number Diff line number Diff line change
Expand Up @@ -1197,20 +1197,30 @@
.pull-request-tab-content .diff-view .file-header {
position: sticky !important;
position: -webkit-sticky !important;
top: 40px !important;
top: 39px !important;
z-index: 6 !important;
}
.pull-request-tab-content .file-header {
padding: 1px 10px !important;
[id^=diff-].selected-line {
position: relative !important;
top: -120px !important;
left: -10000px !important;
}
.pull-request-tab-content .diff-view .file-actions,
.pull-request-tab-content .diff-view .file-info {
margin-top: -1px !important;
[id^=diff-].selected-line:before {
content: attr(data-line-number) !important;
position: absolute !important;
top: 120px !important;
left: 10000px !important;
background-color: inherit !important;
color: inherit !important;
box-sizing: border-box !important;
display: block !important;
padding: .04em 10px !important;
width: 100% !important;
}
/* below element is queried from GitHub's js for the scroll offset */
/* see https://github.com/StylishThemes/GitHub-Dark/issues/598 */
/* Queried from GitHub's js for the scroll offset - keep at 60px not more */
/* see https://github.com/StylishThemes/GitHub-Dark/issues/598 */
.js-sticky-offset-scroll {
height: 72px !important;
height: 60px !important;
}
}
/* User time line firsts */
Expand Down

0 comments on commit 8736122

Please sign in to comment.