diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2019-03-08 14:18:06 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2019-03-08 14:18:06 +0300 |
commit | c8116ebda8cfb1176d56ff371062e7564e969022 (patch) | |
tree | af306720c371807c9fc1ce5e4f0b6067920435ed /app/assets/stylesheets/pages/diff.scss | |
parent | b4852ab49a385f3cc900cf0f2584097b8a154ac0 (diff) | |
parent | cf05e49f19a782f3384aba32718d3333e57ad03c (diff) |
Merge branch 'sitcky-prefix-fix' into 'master'
Fixed sticky bar styling in Safari
Closes #58625
See merge request gitlab-org/gitlab-ce!25913
Diffstat (limited to 'app/assets/stylesheets/pages/diff.scss')
-rw-r--r-- | app/assets/stylesheets/pages/diff.scss | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/app/assets/stylesheets/pages/diff.scss b/app/assets/stylesheets/pages/diff.scss index e50db5310a6..c88922ae5ea 100644 --- a/app/assets/stylesheets/pages/diff.scss +++ b/app/assets/stylesheets/pages/diff.scss @@ -9,6 +9,7 @@ @media (min-width: map-get($grid-breakpoints, md)) { $mr-file-header-top: $mr-version-controls-height + $header-height + $mr-tabs-height; + position: -webkit-sticky; position: sticky; top: $mr-file-header-top; z-index: 102; @@ -725,6 +726,7 @@ } @include media-breakpoint-up(sm) { + position: -webkit-sticky; position: sticky; top: $header-height; background-color: $white-light; @@ -1015,6 +1017,7 @@ } .diff-tree-list { + position: -webkit-sticky; position: sticky; $top-pos: $header-height + $mr-tabs-height + $mr-version-controls-height + 10px; top: $header-height + $mr-tabs-height + $mr-version-controls-height + 10px; |