-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyle.css
53 lines (47 loc) · 1.04 KB
/
style.css
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
body {
font-family: sans-serif;
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
margin: 0;
background: linear-gradient(to bottom, #87CEEB, #ADD8E6); /* Sky Blue gradient */
}
.calculator {
background-color: #f0f0f0;
border-radius: 10px;
padding: 20px;
box-shadow: 0 4px 8px rgba(0,0,0,0.2);
width: 90%; /* Responsive width */
max-width: 350px; /* Limit max width */
}
#display {
width: calc(100% - 20px); /* Adjust width with padding */
margin-bottom: 15px;
padding: 10px;
text-align: right;
font-size: 2em;
border: 1px solid #ccc;
border-radius: 5px;
outline: none;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
button {
padding: 15px;
font-size: 1.5em;
border: none;
background-color: #e0e0e0;
border-radius: 5px;
cursor: pointer;
transition: background-color 0.3s;
}
button:hover {
background-color: #d0d0d0;
}
button:active {
background-color: #c0c0c0;
}