Skip to content

Commit b03826e

Browse files
committed
feat(JS): create sliding-part container
1 parent 7be7558 commit b03826e

File tree

2 files changed

+27
-3
lines changed

2 files changed

+27
-3
lines changed

index.css

Lines changed: 20 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,31 @@ body {
2323
border-radius: 15px;
2424
overflow: hidden;
2525
display: grid;
26+
/* grid-template-columns: repeat(4, 1fr); */
27+
/* column-gap: 10px; */
28+
row-gap: 10px;
29+
padding: 10px;
30+
padding-top: 0;
31+
background-color: rgb(27 22 22 / 39%);
32+
justify-content: center;
33+
34+
}
35+
36+
.sliding-part {
37+
height: 550px;
38+
width: 400px;
39+
border: black 1px solid;
40+
border-radius: 15px;
41+
overflow: hidden;
42+
display: grid;
2643
grid-template-columns: repeat(4, 1fr);
2744
column-gap: 10px;
2845
row-gap: 10px;
2946
padding: 10px;
3047
background-color: rgb(27 22 22 / 39%);
31-
}
48+
3249

50+
}
3351
.history,
3452
.child {
3553
border: 1px black solid;
@@ -40,6 +58,7 @@ body {
4058
}
4159

4260
.screen {
61+
height: 50px;
4362
grid-column-start: 1;
4463
grid-column-end: 5;
4564
border-radius: 15px;

index.html

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
<body>
1010
<div class="parent">
1111
<div data-screen class="screen">0</div>
12-
12+
<div class="sliding-part">
1313
<div data-value="AC" class="child symbol">AC</div>
1414
<div data-value="minus" class="child symbol">+/-</div>
1515
<div data-value="%" data-operator class="child symbol">%</div>
@@ -30,9 +30,14 @@
3030
<div data-value="DE" class="child DE">DE</div>
3131
<div data-value="." class="child">.</div>
3232
<div data-value="=" data-operator class="child operator">=</div>
33+
<div data-value="history" class="history">history</div>
3334
<div data-value="(" data-operator class="child operator">(</div>
3435
<div data-value=")" data-operator class="child operator">)</div>
35-
<div data-value="history" class="history">history</div>
36+
37+
38+
</div>
39+
40+
3641

3742

3843

0 commit comments

Comments
 (0)