Skip to content

Commit

Permalink
Make a textbox with the function definition
Browse files Browse the repository at this point in the history
  • Loading branch information
samestep committed Nov 16, 2023
1 parent 737ac0d commit 16fe5e6
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/site/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -30,10 +30,10 @@
></a>
</div>
<div class="example">
<input class="textbox" value="x^y" readonly />
<canvas width="300" height="300" id="canvas"></canvas>
</div>
<div></div>
<div></div>
<div class="bottom">
<a href="https://github.com/rose-lang/rose-icons">icons</a> by
<a href="https://github.com/aatxe">Aaron Weiss</a> /
Expand Down
19 changes: 18 additions & 1 deletion packages/site/style.css
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,24 @@ body {

.example {
display: flex;
justify-content: center;
flex-direction: column;
align-items: center;
gap: 25px;
}

.textbox {
border: none;
background-color: #111;
padding: 5px;
border-radius: 10px;
color: grey;
font-family: monospace;
font-size: 20px;
text-align: center;
}

.textbox:focus {
outline: 2px solid var(--color-link-dark-hover);
}

.bottom {
Expand Down

0 comments on commit 16fe5e6

Please sign in to comment.