-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
113 lines (89 loc) · 1.44 KB
/
style.css
File metadata and controls
113 lines (89 loc) · 1.44 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
* {
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: "Segoe UI", sans-serif;
}
body {
height: 100vh;
background: #111;
display: flex;
justify-content: center;
align-items: center;
}
/* Calculator Body */
.calculator {
width: 330px;
background: black;
padding: 20px;
border-radius: 30px;
box-shadow: 0 0 25px rgba(0,0,0,0.8);
}
/* Display */
.display {
height: 120px;
display: flex;
justify-content: flex-end;
align-items: flex-end;
padding: 10px;
}
.display input {
width: 100%;
background: transparent;
border: none;
color: white;
font-size: 60px;
text-align: right;
outline: none;
}
/* Buttons Grid */
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}
/* Common Button */
.btn {
height: 65px;
border-radius: 50%;
border: none;
font-size: 22px;
background: #2f3a4a;
color: white;
cursor: pointer;
transition: 0.2s ease;
}
/* Hover Effect */
.btn:hover {
filter: brightness(1.2);
transform: scale(1.05);
}
/* Active Press */
.btn:active {
transform: scale(0.95);
}
/* Light Buttons */
.light {
background: #a5a5a5;
color: black;
}
/* Operator Buttons */
.operator {
background: #f5a623;
color: white;
}
/* Equal Button Glow */
.equal {
box-shadow: 0 0 12px #f5a623;
}
/* Zero Button */
.zero {
grid-column: span 2;
border-radius: 40px;
}
/* Responsive */
@media (max-width: 400px) {
.calculator {
width: 95%;
}
}