Skip to content

Commit

Permalink
fix: remove horizontal scroll on mobile
Browse files Browse the repository at this point in the history
  • Loading branch information
teodragovic committed Sep 11, 2021
1 parent 3a2fda1 commit e2a5ecf
Showing 1 changed file with 22 additions and 19 deletions.
41 changes: 22 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,11 @@
padding: 0;
}

html {
html, body {
height: 100%;
}

body {
main {
padding: 20px;
display: flex;
flex-direction: column;
Expand All @@ -34,6 +34,7 @@
Roboto,
sans-serif;
overflow-x: hidden;
position: relative;
}

section {
Expand Down Expand Up @@ -107,25 +108,27 @@
</style>
</head>
<body>
<header>
<a href="#about">about</a>
</header>
<section>
<div class="char"></div>
<button hidden>copy</button>
</section>
<article id="about">
<main>
<header>
<a href="#">close</a>
<a href="#about">about</a>
</header>
<div>
<p>Curly quotes should be used when writing text that requires quotation marks. Only exceptions are expressing lenght units (foot and inch) or programming.</p>

<p>Since curly quote is not easily available via keyboard I made this little website to make it easier to grab.</p>

<p>See <a href="https://practicaltypography.com/straight-and-curly-quotes.html" rel="noopener noreferrer">Butterkick’s Practical Typography</a> for more information.</p>
</div>
</article>
<section>
<div class="char"></div>
<button hidden>copy</button>
</section>
<article id="about">
<header>
<a href="#">close</a>
</header>
<div>
<p>Curly quotes should be used when writing text that requires quotation marks. Only exceptions are expressing lenght units (foot and inch) or programming.</p>

<p>Since curly quote is not easily available via keyboard I made this little website to make it easier to grab.</p>

<p>See <a href="https://practicaltypography.com/straight-and-curly-quotes.html" rel="noopener noreferrer">Butterkick’s Practical Typography</a> for more information.</p>
</div>
</article>
</main>
<script>
const button = document.querySelector('button');
if (window.navigator.clipboard) {
Expand Down

0 comments on commit e2a5ecf

Please sign in to comment.