diff --git a/index.html b/index.html index 3fbf128..ef8cd50 100644 --- a/index.html +++ b/index.html @@ -3,7 +3,7 @@ - + diff --git a/scripts.js b/scripts.js index 9f845e3..dc932e8 100644 --- a/scripts.js +++ b/scripts.js @@ -115,5 +115,14 @@ function modifyCard(cardDiv) { } } -document.addEventListener('DOMContentLoaded', renderFlashcards); +// Prevent zoom on double tap +let lastTouchEnd = 0; +document.addEventListener('touchend', function (event) { + let now = (new Date()).getTime(); + if (now - lastTouchEnd <= 300) { + event.preventDefault(); + } + lastTouchEnd = now; +}, false); +document.addEventListener('DOMContentLoaded', renderFlashcards); diff --git a/styles.css b/styles.css index 5cb23ba..20248fa 100644 --- a/styles.css +++ b/styles.css @@ -18,6 +18,7 @@ body { color: var(--light); background-color: var(--dark); + -webkit-text-size-adjust: 100%; } .container { @@ -94,7 +95,7 @@ button { .edit, .delete { background-color: transparent; - margin: 10px 4px; + margin: 10px 8px; font-size: 20px; } @@ -122,7 +123,7 @@ button { .modal h2 { font-size: 36px; text-align: center; - margin-bottom: 50px; + margin-bottom: 15px; } .wrapper {