diff options
author | Phil Hughes <me@iamphill.com> | 2018-11-20 21:47:59 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-11-22 15:24:45 +0300 |
commit | ce91c326f912eba5093aac30e57dbba96cb862ac (patch) | |
tree | 472bf4e1abdac46d61e78b1ca311307cf2639a1a /app/assets/stylesheets/pages/diff.scss | |
parent | 0e1822801a88461d0ae86ff031bfc4231ec2f02e (diff) |
Made diff file headers sticky
Closes https://gitlab.com/gitlab-org/gitlab-ce/issues/48816
Diffstat (limited to 'app/assets/stylesheets/pages/diff.scss')
-rw-r--r-- | app/assets/stylesheets/pages/diff.scss | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/diff.scss b/app/assets/stylesheets/pages/diff.scss index 0163c795074..715af4aa4ba 100644 --- a/app/assets/stylesheets/pages/diff.scss +++ b/app/assets/stylesheets/pages/diff.scss @@ -6,6 +6,28 @@ .file-title-flex-parent { cursor: pointer; + @media (min-width: map-get($grid-breakpoints, md)) { + position: -webkit-sticky; + position: sticky; + top: 92px; + z-index: 102; + + &::before { + content: ''; + position: absolute; + top: -1px; + left: -10px; + width: 10px; + height: calc(100% + 1px); + background: $white-light; + border-right: 1px solid $border-color; + } + } + + .with-performance-bar & { + top: 127px; + } + a:hover { text-decoration: none; } |