-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
78 lines (66 loc) · 1.23 KB
/
style.css
File metadata and controls
78 lines (66 loc) · 1.23 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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #f0f4f8;
font-family: 'Arial', sans-serif;
margin: 0;
}
.calculator {
background-color: #fff;
border-radius: 20px;
box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.1);
padding: 20px;
width: 320px;
}
.display {
text-align: right;
margin-bottom: 10px;
}
.display input {
width: 90%;
padding: 15px;
border-radius: 10px;
border: none;
background-color: #f0f4f8;
font-size: 24px;
text-align: right;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
}
button.btn {
padding: 20px;
border-radius: 10px;
border: none;
background-color: #e0e4e8;
font-size: 18px;
cursor: pointer;
transition: background-color 0.3s;
}
button.btn:hover {
background-color: #d0d4d8;
}
button.btn:active {
background-color: #c0c4c8;
}
button.zero {
grid-column: span 2;
}
button.equal {
background-color: #ff8c94;
color: #fff;
font-weight: bold;
}
button.equal:hover {
background-color: #ff6b6b;
}
button.operator {
background-color: #fcd4d3;
}
button.operator:hover {
background-color: #fcd4d3;
}