-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.html
99 lines (89 loc) · 2.43 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Calculator</title>
<style>
@font-face {
font-family: "DS-Digital Normal";
font-style: normal;
font-weight: normal;
src: local("DS-Digital Normal"), url("DS-DIGI.woff") format("woff");
}
.calculator-body {
height: 300px;
width: 250px;
background-color: #3d3d5c;
margin: 20px auto;
border-radius: 10px;
padding: 20px;
padding-top: 40px;
}
.screen {
background-color: #a1af77;
text-align: right;
width: 220px;
display: block;
margin: 0 auto;
font-size: 25px;
padding: 5px 10px;
margin-bottom: 20px;
font-family: "DS-Digital Normal";
}
.buttons-container {
height: 200px;
display: flex;
flex-direction: column;
flex-wrap: wrap;
justify-content: space-between;
align-items: center;
}
.btn {
width: 50px;
text-align: center;
padding: 2px 0;
font-size: 20px;
margin: 3px;
border: 0.5px solid black;
border-radius: 5px;
cursor: pointer;
}
.btn:hover {
box-shadow: 0 0 5px 0 #fff;
transition: 0.5s;
}
.btn-equals {
background-color: #ff6348;
height: 70px;
color: #fff;
}
</style>
</head>
<body>
<div class="calculator-body">
<input type="text" value="0" class="screen" />
<div class="buttons-container">
<button class="btn">AC</button>
<button class="btn">7</button>
<button class="btn">4</button>
<button class="btn">1</button>
<button class="btn">0</button>
<button class="btn">M+</button>
<button class="btn">8</button>
<button class="btn">2</button>
<button class="btn">5</button>
<button class="btn">.</button>
<button class="btn">/</button>
<button class="btn">9</button>
<button class="btn">6</button>
<button class="btn">3</button>
<button class="btn">%</button>
<button class="btn">X</button>
<button class="btn">-</button>
<button class="btn">+</button>
<button class="btn btn-equals">=</button>
</div>
</div>
</body>
</html>