Skip to content

Commit

Permalink
Merge pull request #5 from Rainbow-Tree19/main
Browse files Browse the repository at this point in the history
Made it so that dim-input is number only
  • Loading branch information
RanvirChoudhary authored Nov 16, 2023
2 parents 2661e13 + e087c14 commit ddec481
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
3 changes: 2 additions & 1 deletion home.html
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,8 @@
</div>
<div class = "form" :class="{ notActive: !showDimInput }">
<h1 class="form-instructions">Enter the dimensions for the grid</h1>
<input v-model="dim" class="dim-input" type="text">
<h2>Ideal range is 20-40</h2>
<input v-model="dim" class="dim-input" type="number">
<button @click=redirect class="submit-dim">Generate!</button>
</div>
</div>
Expand Down
6 changes: 6 additions & 0 deletions styles.css
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,12 @@ body,html {
box-sizing: border-box;
}

input::-webkit-outer-spin-button,
input::-webkit-inner-spin-button {
-webkit-appearance: none;
margin: 0;
}

body {
font-family: 'Montserrat', sans-serif;
font-weight: 500;
Expand Down

0 comments on commit ddec481

Please sign in to comment.