-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
71 lines (61 loc) · 1.21 KB
/
style.css
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
body {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
background-color: #2f3640;
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
.calculator {
width: 340px;
background-color: #353b48;
border-radius: 8px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
color: white;
overflow: hidden;
}
.display {
background-color: #414b5a;
border-radius: 8px 8px 0 0;
padding: 15px 20px;
text-align: right;
font-size: 32px;
}
.display input {
width: 100%;
background-color: transparent;
border: none;
color: white;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
padding: 20px;
}
button {
background-color: #596275;
border: none;
border-radius: 4px;
padding: 15px 0;
font-size: 24px;
color: white;
cursor: pointer;
transition: background-color 0.2s, color 0.2s;
}
button:hover {
background-color: #4a5463;
}
button.operator {
background-color: #e74c3c;
}
button.operator:hover {
background-color: #c0392b;
}
button.equal {
background-color: #27ae60;
}
button.equal:hover {
background-color: #219651;
}