-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyles.css
More file actions
74 lines (59 loc) · 1.36 KB
/
styles.css
File metadata and controls
74 lines (59 loc) · 1.36 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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #282c34;
font-family: "Arial", sans-serif;
}
h1 {
text-align: center;
font-size: 24px;
margin-bottom: 20px;
color: #007bff;
}
/*
fix: remove sensitive styles from CSS for improved security
*/
footer {
margin-top: 10px;
text-align: center;
font-size: 14px;
color: #555;
}
/* Media Queries for Responsiveness */
@media (max-width: 768px) {
h1 {
font-size: 20px; /* Adjust heading size */
}
#display {
height: 50px; /* Smaller display height */
font-size: 28px; /* Smaller font size */
}
button {
padding: 15px; /* Adjust button padding */
font-size: 18px; /* Smaller font size */
}
.calculator {
padding: 20px; /* Smaller padding */
}
}
@media (max-width: 480px) {
h1 {
font-size: 18px; /* Adjust heading size for small screens */
}
#display {
height: 40px; /* Even smaller display height */
font-size: 24px; /* Even smaller font size */
}
button {
padding: 10px; /* Adjust button padding */
font-size: 16px; /* Smaller font size */
}
.buttons {
grid-template-columns: repeat(2, 1fr); /* Two buttons per row */
}
.equal {
grid-column: span 2; /* Equal button spans two columns */
}
}