-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcopy.html
More file actions
130 lines (115 loc) · 2.89 KB
/
Copy pathcopy.html
File metadata and controls
130 lines (115 loc) · 2.89 KB
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
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Document</title>
<style>
.calculator{
max-width: 400px;
margin: 0 auto;
height: 100vh;
border-radius: 10px;
overflow: hidden;
}
.output{
background-color: rgba(51, 128, 51, 0.741);
padding: 5px;
position: relative;
/* border-radius: 8px; */
}
.calculator p{
color: orange;
font-size: 32px;
}
.display{
text-align: right;
font-size: 18px;
color: rgba(0, 0, 0, 0.668);
}
.display-3{
position: absolute;
bottom: 0;
left: 10px;
}
.display-1{
font-size: 24px;
}
.input{
background-color: rgb(36, 43, 43);
display: grid;
grid-template-columns: repeat(4,1fr);
grid-template-rows: repeat(4,1fr);
}
.button{
width: 100%;
height: 80px;
background-color: #242220d1;
border: 1px solid black;
color: #fff;
display: flex;
align-items: center;
justify-content: center;
font-size: 24px;
border-radius: 31px;
transition: all 0.3s;
}
.button:hover{
background-color: rgba(0, 0, 0, 0.509);
}
.button-0{
grid-column: 1/3;
grid-row: 5;
}
.button-c{
background-color: dodgerblue;
}
.button-c:hover{
background-color: rgba(30, 143, 255, 0.701);
}
.equal{
background-color: rgba(255, 166, 0, 0.971);
}
.equal:hover{
background-color: rgba(255, 166, 0, 0.545);
}
.symbol{
background-color: rgba(0, 0, 0, 0.524);
}
.symbol:hover{
background-color: rgba(0, 0, 0, 0.345);
}
</style>
</head>
<body>
<div class="calculator">
<div class="output">
<p>bishar</p>
<div class="display display-1">0</div>
<div class="display display-2">0</div>
<div class="display display-3">0</div>
</div>
<div class="input">
<div class="button button-c">C</div>
<div class="button button-c">CE</div>
<div class="button symbol">%</div>
<div class="button symbol">/</div>
<div class="button">7</div>
<div class="button">8</div>
<div class="button">9</div>
<div class="button symbol">X</div>
<div class="button">4</div>
<div class="button">5</div>
<div class="button">6</div>
<div class="button symbol">-</div>
<div class="button">1</div>
<div class="button">2</div>
<div class="button">3</div>
<div class="button symbol">+</div>
<div class="button button-0">0</div>
<div class="button">.</div>
<div class="button equal">=</div>
</div>
</div>
</body>
</html>