Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
97 lines (85 loc) · 1.46 KB
/
Copy pathstyle.css
File metadata and controls
97 lines (85 loc) · 1.46 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
body {
background: #4c5257;
color: white;
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: Arial, sans-serif;
}
.calculator {
background: #45464b;
padding: 20px;
border-radius: 10px;
box-shadow: 0 0 15px #000;
width: 100%;
max-width: 350px;
}
#display {
width: 100%;
height: 60px;
font-size: 28px;
text-align: right;
padding: 10px;
border: none;
border-radius: 5px;
margin-bottom: 15px;
background: #3b3d42;
color: white;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
.btn {
padding: 20px;
font-size: 18px;
border: none;
border-radius: 5px;
background: #4a4c50;
color: white;
cursor: pointer;
transition: background 0.2s;
}
.btn:hover {
background: #000000;
}
.equal {
grid-column: span 2;
background: #f39c12;
color: #fff;
}
/* ✅ Responsive styles */
@media screen and (max-width: 768px) {
.btn {
padding: 16px;
font-size: 16px;
}
#display {
height: 50px;
font-size: 24px;
}
}
@media screen and (max-width: 480px) {
.calculator {
padding: 15px;
}
.btn {
padding: 14px;
font-size: 14px;
}
#display {
height: 45px;
font-size: 20px;
}
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
/* You can increase to 5 columns for more width:
grid-template-columns: repeat(5, 1fr);
Then adjust layout for wider calculators if needed */