-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
85 lines (74 loc) · 1.43 KB
/
style.css
File metadata and controls
85 lines (74 loc) · 1.43 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
body {
margin: 0;
padding: 0;
background-color: #020202;
color: #e65e1a;
text-align: center;
padding: 15px;
}
h1 {
font-size: 2.5rem;
margin-bottom: 20px;
}
.calculator-container {
display: inline-block;
padding: 20px;
border: 3px solid #e65e1a; /* Border around the calculator */
border-radius: 15px; /* Rounded corners */
background-color: #333; /* Background for the calculator */
}
.display {
width: 100%;
max-width: 370px;
height: 70px;
background-color: #4c555c;
color: white;
font-size: 2rem;
text-align: right;
padding: 10px;
margin-bottom: 10px;
}
input[type="button"] {
width: 20%;
max-width: 75px;
height: 50px;
font-size: 2rem;
border-radius: 10px;
margin: 5px;
background-color: white;
color: black;
border: 1px solid yellow;
}
.btn:hover {
background-color: chartreuse;
cursor: pointer;
}
/* Responsive adjustments */
@media (max-width: 768px) {
h1 {
font-size: 2rem;
}
.display {
height: 60px;
font-size: 1.5rem;
}
input[type="button"] {
width: 22%;
height: 45px;
font-size: 1.5rem;
}
}
@media (max-width: 480px) {
h1 {
font-size: 1.8rem;
}
.display {
height: 50px;
font-size: 1.2rem;
}
input[type="button"] {
width: 23%;
height: 40px;
font-size: 1.2rem;
}
}