-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
92 lines (79 loc) · 1.76 KB
/
style.css
File metadata and controls
92 lines (79 loc) · 1.76 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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background: linear-gradient(135deg, #edec98, #f6a994);
font-family: 'Poppins', sans-serif;
}
.calculator {
background: linear-gradient(100deg, #ecece0, #f0c5b9);
padding: 25px;
border-radius: 20px;
box-shadow: 0 8px 25px rgba(0,0,0,0.3);
width: 320px;
transition: transform 0.2s;
}
.calculator:hover {
transform: scale(1.02);
}
.display {
width: 90%;
height: 70px;
margin-bottom: 20px;
text-align: right;
font-size: 28px;
padding: 15px;
border: none;
background: #f3f3f3;
border-radius: 12px;
box-shadow: inset 0 3px 6px rgba(0,0,0,0.15);
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}
button {
padding: 20px;
font-size: 20px;
font-weight: 600;
border: none;
border-radius: 12px;
cursor: pointer;
transition: 0.2s;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/* Numbers */
button:not(.operator):not(.equal):not(.clear) {
background: #e0e0e0;
color: #333;
}
button:not(.operator):not(.equal):not(.clear):hover {
background: #d6d6d6;
}
/* Operators */
.operator {
background: #ff9800;
color: #fff;
}
.operator:hover {
background: #e68900;
}
/* Equal button */
.equal {
grid-column: span 2;
background: #4CAF50;
color: white;
}
.equal:hover {
background: #45a049;
}
/* Clear button */
.clear {
background: #f44336;
color: white;
}
.clear:hover {
background: #d32f2f;
}