Skip to content

Commit 16fe5e6

Browse files
committed
Make a textbox with the function definition
1 parent 737ac0d commit 16fe5e6

File tree

2 files changed

+19
-2
lines changed

2 files changed

+19
-2
lines changed

packages/site/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,10 +30,10 @@
3030
></a>
3131
</div>
3232
<div class="example">
33+
<input class="textbox" value="x^y" readonly />
3334
<canvas width="300" height="300" id="canvas"></canvas>
3435
</div>
3536
<div></div>
36-
<div></div>
3737
<div class="bottom">
3838
<a href="https://github.com/rose-lang/rose-icons">icons</a> by
3939
<a href="https://github.com/aatxe">Aaron Weiss</a> /

packages/site/style.css

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,24 @@ body {
5151

5252
.example {
5353
display: flex;
54-
justify-content: center;
54+
flex-direction: column;
55+
align-items: center;
56+
gap: 25px;
57+
}
58+
59+
.textbox {
60+
border: none;
61+
background-color: #111;
62+
padding: 5px;
63+
border-radius: 10px;
64+
color: grey;
65+
font-family: monospace;
66+
font-size: 20px;
67+
text-align: center;
68+
}
69+
70+
.textbox:focus {
71+
outline: 2px solid var(--color-link-dark-hover);
5572
}
5673

5774
.bottom {

0 commit comments

Comments
 (0)