-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
111 lines (96 loc) · 2.42 KB
/
style.css
File metadata and controls
111 lines (96 loc) · 2.42 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
* {
margin: 0;
padding: 0;
font-family: 'Poppins', sans-serif;
box-sizing: border-box;
}
body, html {
width: 100%;
height: 100%;
display: flex;
justify-content: center;
align-items: center;
background-color: #f4f4f9; /* Light grey background */
}
.container {
display: flex;
justify-content: center;
align-items: center;
min-height: 100vh;
}
.calculator {
background: #333333; /* White background for the calculator */
padding: 20px;
border-radius: 10px;
box-shadow: 0 4px 8px rgba(0,0,0,0.1); /* Subtle shadow for 3D effect */
width: 100%;
max-width: 360px;
}
.calculator form .display input {
width: 100%;
height: 60px;
font-size: 2rem;
text-align: right;
margin-bottom: 20px;
background: #e8e8e8; /* Light gray for input display */
color: #333; /* Darker text for better readability */
border: none;
outline: none;
border-radius: 5px; /* Rounded corners for the display */
}
.calculator form .button-row {
display: flex;
justify-content: space-between;
}
.calculator form .button {
flex: 1 0 21%;
margin: 3px;
font-size: 1.5rem;
height: 60px;
border: none;
outline: none;
cursor: pointer;
border-radius: 10px;
color: white;
box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.2);
}
/* Style for number buttons */
.calculator form .number {
background: #7dbcf9; /* Light blue */
}
/* Style for operator buttons */
.calculator form .operator {
background: #ff927b; /* Soft coral */
}
/* Style for function buttons like clear, memory */
.calculator form .memory, .clear, .delete, .trig {
background: #facc6b; /* Yellow for visibility */
}
/* Equal button should stand out */
.calculator form .equal {
background: #4caf50; /* Green */
color: white;
}
/* Change color for sin, cos, tan buttons */
.calculator form .trig {
background: #facc6b; /* Yellow */
}
/* Change color for dot button */
.calculator form .decimal {
background: #7dbcf9; /* Light blue */
}
/* Responsive adjustments */
@media (max-width: 600px) {
.calculator {
max-width: 95%;
padding: 15px;
}
.calculator form .button {
font-size: 1.2rem;
height: 50px;
}
.calculator form .display input {
font-size: 1.5rem;
height: 50px;
}
}