-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcalculator.css
More file actions
53 lines (45 loc) · 886 Bytes
/
calculator.css
File metadata and controls
53 lines (45 loc) · 886 Bytes
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
.calc-container {
max-width: 300px;
margin: 2rem auto;
background: white;
border-radius: 12px;
box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
overflow: hidden;
}
.calc-screen {
background: #222;
color: #0f0;
font-size: 2rem;
padding: 1rem;
text-align: right;
}
.calc-buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
}
.calc-buttons button {
padding: 1.2rem;
font-size: 1.1rem;
border: 1px solid #ddd;
background: #f9f9f9;
cursor: pointer;
transition: background 0.2s;
}
.calc-buttons button:hover {
background: #eee;
}
.calc-buttons button:nth-child(4n) {
background: #4f46e5;
color: white;
}
.calc-buttons button:nth-child(4n):hover {
background: #4338ca;
}
.calc-buttons button:last-child {
grid-column: span 2;
background: #10b981;
color: white;
}
.calc-buttons button:last-child:hover {
background: #059669;
}