Skip to content

Commit

Permalink
add momentum scrolling and use same height for layer as main window
Browse files Browse the repository at this point in the history
  • Loading branch information
tatermelon committed Apr 21, 2017
1 parent b526164 commit 0ab5112
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions examples/dialog-modal/css/dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ body:not(.toc-inline) {
box-sizing: border-box;
height: 100vh;
width: 100%;
overflow: auto;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
padding: 1.6em 0 2em;
}

Expand Down Expand Up @@ -47,10 +48,11 @@ body:not(.toc-inline) #main_content main, body:not(.toc-inline) #main_content na
#dialog_layer.showing {
position: absolute;
width: 100%;
height: 100%;
height: 100vh;
top: 0;
left: 0;
overflow: auto;
overflow-y: scroll;
-webkit-overflow-scrolling: touch;
background: rgba(0, 0, 0, 0.3);
}

Expand Down

0 comments on commit 0ab5112

Please sign in to comment.