Skip to content

Commit 398e489

Browse files
committed
feat(CSS): remove following declaration: display:grid & justify-content: center
1 parent d29b235 commit 398e489

File tree

3 files changed

+15
-5
lines changed

3 files changed

+15
-5
lines changed

index.css

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,7 @@ body {
2222
border: black 1px solid;
2323
border-radius: 15px;
2424
overflow: hidden;
25-
display: grid;
2625
background-color: rgb(27 22 22 / 39%);
27-
justify-content: center;
28-
2926
}
3027

3128
.sliding-part {
@@ -42,9 +39,15 @@ body {
4239
background-color: rgb(27 22 22 / 39%);
4340
transform: translateX(0px);
4441
transition: transform 2s;
45-
42+
}
43+
44+
.computation-history {
45+
height: 530px;
46+
width: 400px;
4647

4748
}
49+
50+
4851
.history-btn,
4952
.child {
5053
border: 1px black solid;
@@ -88,3 +91,5 @@ body {
8891
grid-column-end: 2;
8992
}
9093

94+
95+

index.html

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,7 @@
3535
<div data-value=")" data-operator class="child operator">)</div>
3636
</div>
3737
<div class="computation-history">
38+
hello
3839

3940
</div>
4041

index.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
const btns = document.querySelectorAll("[data-value]");
2+
const computationHistory = document.querySelector(".computation-history");
23
let screen = document.querySelector("[data-screen]");
34
const historyBtn = document.querySelector(".history-btn");
45
const slidingPart = document.querySelector(".sliding-part");
56
const operators = document.querySelectorAll("[data-operator]");
67

8+
79
const operatorRegex = /[\/*\-+]/;
810
const ZERO = 0;
911
const ZERO_DOT = '0.';
@@ -14,10 +16,12 @@ console.log(slidingPart)
1416

1517
historyBtn.addEventListener("click", () => {
1618
slidingPart.classList.toggle("slide")
17-
console.log("history btn")
1819
})
1920

2021

22+
console.log(computationHistory )
23+
24+
2125

2226

2327
let data = [];

0 commit comments

Comments
 (0)