Skip to content

Commit 9163d69

Browse files
committed
feat(JS): style button
1 parent 25dbecf commit 9163d69

File tree

2 files changed

+16
-5
lines changed

2 files changed

+16
-5
lines changed

index.css

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,18 +45,26 @@ body {
4545
}
4646

4747
.computation-history {
48-
height: 530px;
48+
height: 490px;
4949
width: 400px;
5050
display: flex;
5151
flex-direction: column;
5252
visibility: hidden;
53-
padding-left: 10px;
53+
margin-left: 10px;
5454
padding-top: 10px;
5555
}
5656

5757
.computation-history.visility {
5858
visibility: visible;
5959
}
60+
61+
.clear-history-btn {
62+
width: 100px;
63+
margin-left: 10px;
64+
border-radius: 15px;
65+
66+
}
67+
6068

6169

6270
.history-btn,

index.html

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,13 @@
3434
<div data-value="(" data-operator class="child operator">(</div>
3535
<div data-value=")" data-operator class="child operator">)</div>
3636
</div>
37-
<ul class="computation-history">
37+
38+
<div>
39+
<ul class="computation-history"></ul>
3840
<button class="clear-history-btn">clear history</button>
39-
40-
</ul>
41+
42+
</div>
43+
4144

4245

4346

0 commit comments

Comments
 (0)