Merge pull request #1453 from Human-Connection/dont-scroll-the-background

Disable scrolling behind popover
This commit is contained in:
Robert Schäfer 2019-09-03 18:02:24 +02:00 committed by GitHub
commit 1098d5d37d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 0 deletions

View File

@ -83,6 +83,8 @@
border-radius: $border-radius-base;
padding: $space-x-small $space-small;
box-shadow: $box-shadow-large;
overflow: auto;
max-height: 73.5vh; // magic! fully visible on mobile, no scrolling on wide screen
}
@include arrow(5px, "tooltip", $background-color-inverse-soft);

View File

@ -50,6 +50,11 @@ $easeOut: cubic-bezier(0.19, 1, 0.22, 1);
background: #fff;
}
body.dropdown-open {
height: 100vh;
overflow: hidden;
}
blockquote {
display: block;
padding: 15px 20px 15px 45px;