Skip to content

Commit

Permalink
Optimizes the page for mobile screen sizes (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
xfq committed Jun 17, 2022
1 parent f275235 commit 9fb67fe
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
3 changes: 2 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@

<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1">
<title>Document Review</title>
<script src="toc.js"> </script>
<link rel="stylesheet" href="https://www.w3.org/Guide/assets/main.css">
Expand Down Expand Up @@ -277,6 +278,6 @@ <h2><a href="#enhancement_requests">Enhancement Requests</a></h2>
<script>
createtoc(3)
</script>
<script type="text/javascript" src="createGitHubIssue.js"></script>
<script src="createGitHubIssue.js"></script>
</body>
</html>
14 changes: 13 additions & 1 deletion style.css
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,20 @@
body {
font-family: RalewayWF;
line-height: 1.6;
padding: 2em 4em;
margin-inline: 3em;
margin-block: 0;
padding-inline: 4em;
padding-block: 2em;
}

@media (max-width: 600px) {
body {
margin-inline: auto;
width: clamp(16rem, 95vw, 85rem);
padding-inline: clamp(1.4rem, 1.5rem, 2rem);
}
}

h2 {
margin-top: 3em;
}
Expand Down

0 comments on commit 9fb67fe

Please sign in to comment.