Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSam Bigelow <sbigelow@gitlab.com>2019-01-22 11:29:41 +0300
committerPhil Hughes <me@iamphill.com>2019-01-22 11:29:41 +0300
commita0146dceb633ca459889fef80f72c5e2dd4db476 (patch)
tree71c58f033db652fbe1251b1ed4cf1ec1fcf0c20b /app/assets/stylesheets/pages/diff.scss
parentce171674b60f5888aa3802e9f6b843762faabd3a (diff)
Resolve "Merge request file browser should always be possible show/hide"
Diffstat (limited to 'app/assets/stylesheets/pages/diff.scss')
-rw-r--r--app/assets/stylesheets/pages/diff.scss15
1 files changed, 9 insertions, 6 deletions
diff --git a/app/assets/stylesheets/pages/diff.scss b/app/assets/stylesheets/pages/diff.scss
index b78f11aadf1..4f804866886 100644
--- a/app/assets/stylesheets/pages/diff.scss
+++ b/app/assets/stylesheets/pages/diff.scss
@@ -9,7 +9,7 @@
@media (min-width: map-get($grid-breakpoints, md)) {
position: -webkit-sticky;
position: sticky;
- top: $header-height + 51px;
+ top: $mr-version-controls-height + $header-height + $mr-tabs-height;
margin-left: -1px;
border-left: 1px solid $border-color;
z-index: 102;
@@ -19,6 +19,7 @@
.with-performance-bar & {
top: $header-height + 36px + $performance-bar-height;
+
}
}
@@ -34,7 +35,7 @@
}
.with-performance-bar & {
- top: 127px;
+ top: $header-height + $performance-bar-height + $mr-version-controls-height + $mr-tabs-height;
}
}
@@ -1026,8 +1027,9 @@
.tree-list-holder {
position: -webkit-sticky;
position: sticky;
- top: 100px;
- max-height: calc(100vh - 100px);
+ $top-pos: $header-height + $mr-tabs-height + $mr-version-controls-height + 10px;
+ top: $header-height + $mr-tabs-height + $mr-version-controls-height + 10px;
+ max-height: calc(100vh - $top-pos);
padding-right: $gl-padding;
.file-row {
@@ -1036,8 +1038,9 @@
}
.with-performance-bar & {
- top: 135px;
- max-height: calc(100vh - 135px);
+ $performance-bar-top-pos: $performance-bar-height + $top-pos;
+ top: $performance-bar-top-pos;
+ max-height: calc(100vh - $performance-bar-top-pos);
}
}