diff options
author | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-18 22:18:16 +0300 |
---|---|---|
committer | Clement Ho <ClemMakesApps@gmail.com> | 2018-04-18 22:18:16 +0300 |
commit | 2cd9542e3c50d4c6cfd33fb2604844b53145621c (patch) | |
tree | 4eed61e1f712d182dcb6892f635fbf3715256388 /app/assets/stylesheets | |
parent | ed385e4b42bc67d47953d84528d02e1ca65d2103 (diff) |
Fix diff stats sticky bar
Diffstat (limited to 'app/assets/stylesheets')
-rw-r--r-- | app/assets/stylesheets/pages/diff.scss | 16 |
1 files changed, 10 insertions, 6 deletions
diff --git a/app/assets/stylesheets/pages/diff.scss b/app/assets/stylesheets/pages/diff.scss index 4304f362401..4ba76fa1512 100644 --- a/app/assets/stylesheets/pages/diff.scss +++ b/app/assets/stylesheets/pages/diff.scss @@ -604,19 +604,23 @@ top: 76px; } - &:not(.is-stuck) .diff-stats-additions-deletions-collapsed { - display: none; - } - &.is-stuck { padding-top: 0; padding-bottom: 0; border-bottom: 1px solid $white-dark; - transform: translateY(16px); + transform: translateY(52px); .diff-stats-additions-deletions-expanded, .inline-parallel-buttons { - display: none; + display: none !important; + } + } + } + + @include media-breakpoint-up(lg) { + &.is-stuck { + .diff-stats-additions-deletions-collapsed { + display: block !important; } } } |