-
Notifications
You must be signed in to change notification settings - Fork 0
/
stil.css
73 lines (64 loc) · 1.17 KB
/
stil.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
72
73
body {
font-family: 'Helvetica', sans-serif;
background-color: #f4f4f4;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
}
.calculator {
width: 300px;
height: 500px;
background-color: #333;
border-radius: 30px;
padding: 20px;
box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}
.display {
width: 100%;
height: 80px;
background-color: #222;
border-radius: 15px;
margin-bottom: 20px;
display: flex;
justify-content: center;
align-items: center;
}
.display input {
width: 90%;
height: 50px;
background-color: transparent;
border: none;
color: white;
font-size: 2em;
text-align: right;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-gap: 10px;
}
button {
width: 100%;
height: 60px;
font-size: 1.5em;
background-color: #999;
color: white;
border: none;
border-radius: 15px;
cursor: pointer;
transition: all 0.2s;
}
button:active {
background-color: #666;
}
.operator {
background-color: #fe9500;
}
button.zero {
grid-column: span 2;
}
button:hover {
opacity: 0.8;
}