Skip to content

Commit

Permalink
Changed dialog to use absolute positioning; made dialogs fullscreen o…
Browse files Browse the repository at this point in the history
…n mobile
  • Loading branch information
tatermelon committed Apr 21, 2017
1 parent faad012 commit fc666fe
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
11 changes: 10 additions & 1 deletion examples/dialog-modal/css/dialog.css
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ body:not(.toc-inline) #main_content main, body:not(.toc-inline) #main_content na
}

#dialog_layer.showing {
position: fixed;
position: absolute;
width: 100%;
height: 100%;
top: 0;
Expand All @@ -68,6 +68,15 @@ div.default_dialog {
left: 25%;
}

@media screen and (max-width: 640px) {
div.default_dialog {
box-sizing: border-box;
top: 1%;
left: 2%;
width: 96%;
}
}

.default_dialog h2:first-of-type {
text-align:center;
}
Expand Down
2 changes: 2 additions & 0 deletions examples/dialog-modal/dialog.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@
<meta charset="utf-8" />
<title>Modal Dialog Example | WAI-ARIA Authoring Practices 1.1</title>

<meta name="viewport" content="width=device-width, initial-scale=1.0">

<!-- Core js and css shared by all examples; do not modify when using this template. -->
<link rel="stylesheet" href="https://www.w3.org/StyleSheets/TR/2016/base.css">
<link href="../css/core.css" rel="stylesheet">
Expand Down

0 comments on commit fc666fe

Please sign in to comment.