Skip to content

Commit 9bff15c

Browse files
committed
isaiahthedev: added a calculator activity
1 parent fd22f9c commit 9bff15c

File tree

1 file changed

+104
-0
lines changed

1 file changed

+104
-0
lines changed
Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
#calc-root {
2+
display: flex;
3+
justify-content: center;
4+
align-items: center;
5+
padding-top: 100px;
6+
}
7+
#calc-background {
8+
height: 450px;
9+
width: 300px;
10+
border-radius: 15px;
11+
background-color: black;
12+
display: flex;
13+
flex-wrap: wrap;
14+
}
15+
#calc-screen {
16+
position: relative;
17+
margin: 0 auto;
18+
margin-top: 15px;
19+
height: 70px;
20+
width: 270px;
21+
border-radius: 15px;
22+
background-color: #2b3025;
23+
}
24+
#display {
25+
color: white;
26+
font-family: arial;
27+
position: absolute;
28+
top: 35px;
29+
right: 10px;
30+
font-size: 30px;
31+
z-index: 1;
32+
}
33+
#calc-buttons {
34+
position: relative;
35+
height: 340px;
36+
width: 270px;
37+
margin: 0 auto;
38+
display: flex;
39+
flex-wrap: wrap;
40+
align-content: flex-start;
41+
}
42+
.lg-buttons {
43+
height: 60px;
44+
width: 130px;
45+
border-radius: 50px;
46+
display: flex;
47+
}
48+
.lg-button-vert {
49+
height: 130px;
50+
width: 60px;
51+
border-radius: 50px;
52+
display: flex;
53+
}
54+
.sm-buttons {
55+
height: 60px;
56+
width: 60px;
57+
border-radius: 50%;
58+
display: flex;
59+
}
60+
.grey-buttons {
61+
background-color: #c6c6c6;
62+
}
63+
.orange-buttons {
64+
background-color: #ed9700;
65+
}
66+
.margin-left {
67+
margin-left: 10px;
68+
}
69+
.margin-top {
70+
margin-top: 10px;
71+
}
72+
#zero {
73+
position: absolute;
74+
top: 280px;
75+
}
76+
#decimal {
77+
position: absolute;
78+
top: 280px;
79+
left: 130px;
80+
}
81+
.calc-btn.lg-buttons p{
82+
font-family: arial;
83+
font-weight: bold;
84+
font-size: 25px;
85+
margin: auto;
86+
}
87+
.calc-btn.sm-buttons p{
88+
font-family: arial;
89+
font-weight: bold;
90+
font-size: 25px;
91+
margin: auto;
92+
}
93+
.calc-btn.lg-button-vert p{
94+
font-family: arial;
95+
font-weight: bold;
96+
font-size: 25px;
97+
margin: auto;
98+
}
99+
p {
100+
user-select: none;
101+
}
102+
.calc-btn:hover {
103+
border: 3px solid white;
104+
}

0 commit comments

Comments
 (0)