diff options
author | Tim Zallmann <tzallmann@gitlab.com> | 2017-11-02 12:48:47 +0300 |
---|---|---|
committer | Tim Zallmann <tzallmann@gitlab.com> | 2017-11-02 12:48:47 +0300 |
commit | 9b27d754a7f4c11a84954d1811da00458a295ed8 (patch) | |
tree | c860ea74f422411b641b3f620f9f3f2b56331013 /app/assets/stylesheets/pages | |
parent | 78dc77781612fe31f3506fd6a9bf537ed8c7dc9f (diff) | |
parent | 734faae6e6dc0b64ead4f8e6d14db1d61b27e267 (diff) |
Merge branch '35955-searchable-settings-puts-expand-collapse-toggle-in-an-invalid-state' into 'master'
Resolve "Searchable settings puts expand/collapse toggle in an invalid state."
Closes #35955, #37520, and #39207
See merge request gitlab-org/gitlab-ce!13363
Diffstat (limited to 'app/assets/stylesheets/pages')
-rw-r--r-- | app/assets/stylesheets/pages/settings.scss | 13 |
1 files changed, 8 insertions, 5 deletions
diff --git a/app/assets/stylesheets/pages/settings.scss b/app/assets/stylesheets/pages/settings.scss index 41a6ba2023a..968a94c68cf 100644 --- a/app/assets/stylesheets/pages/settings.scss +++ b/app/assets/stylesheets/pages/settings.scss @@ -23,15 +23,14 @@ } .settings { - overflow: hidden; border-bottom: 1px solid $gray-darker; &:first-of-type { margin-top: 10px; } - &.expanded { - overflow: visible; + &.animating { + overflow: hidden; } } @@ -56,14 +55,18 @@ overflow-y: scroll; padding-right: 110px; animation: collapseMaxHeight 300ms ease-out; + // Keep the section from expanding when we scroll over it + pointer-events: none; - &.expanded { + .settings.expanded & { max-height: none; overflow-y: visible; animation: expandMaxHeight 300ms ease-in; + // Reset and allow clicks again when expanded + pointer-events: auto; } - &.no-animate { + .settings.no-animate & { animation: none; } |