-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathstyles.css
166 lines (141 loc) · 3.02 KB
/
styles.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
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
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: Arial, sans-serif;
background-color: #f2f4f1; /* Light beige background */
margin: 0;
}
.calculator {
border: 1px solid #d5c8b1; /* Light brown border */
width: 360px;
border-radius: 5px;
overflow: hidden;
box-shadow: 0px 0px 15px rgba(0, 0, 0, 0.2); /* Subtle shadow */
background-color: #e1d7c6; /* Light earthy background */
}
.display {
background-color: #3e3e3e; /* Dark gray for display */
color: #fff;
padding: 20px;
font-size: 2em;
text-align: right;
border-bottom: 1px solid #444;
border-top-left-radius: 10px;
border-top-right-radius: 10px;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: auto auto auto auto auto;
gap: 5px;
border-radius: 10px;
}
.operatorButtons {
grid-column: span 4;
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 5px;
padding-top: 5px;
}
.operatorButtons .btn {
background-color: #a6c0a0; /* Soft green for operator buttons */
color: #fff;
}
.numberButtons {
grid-column: span 4;
display: grid;
grid-template-columns: repeat(3, 1fr);
grid-gap: 1px;
gap: 5px;
}
.numberButtons .btn {
background-color: #c4b8a2; /* Light tan for number buttons */
}
.decimalZeroButtons {
grid-column: span 4; /* Ensure it spans all columns */
display: flex;
gap: 5px;
}
.decimalZeroButtons .btn {
flex: 1; /* Allow buttons to grow and fill available space */
background-color: #c4b8a2; /* Light tan for decimal and zero buttons */
border: 1px solid #ddd;
font-size: 18px;
padding: 20px;
cursor: pointer;
transition: background-color 0.2s;
border-radius: 5px;
}
.decimalZeroButtons .btn:hover {
background-color: #d4b6a5;
}
.equalsClearButtons {
grid-column: span 4; /* Ensure it spans all columns */
display: flex;
gap: 5px;
}
.equalsClearButtons .btn {
flex: 1; /* Allow buttons to grow and fill available space */
background-color: #c4b8a2; /* Light tan for decimal and zero buttons */
border: 1px solid #ddd;
font-size: 18px;
padding: 20px;
cursor: pointer;
transition: background-color 0.2s;
border-radius: 5px;
}
.equalsClearButtons .btn:hover {
background-color: #d4b6a5;
}
#equals {
background-color: #a6c0a0;
color: #0f0c0c;
}
#clear {
background-color: #292929;
color: #fff;
}
.btn {
background-color: #eee;
border: 1px solid #ddd;
font-size: 18px;
padding: 20px;
cursor: pointer;
transition: background-color 0.2s;
border-radius: 10px;
}
.btn:hover {
background-color: #d4b6a5;
}
.operator {
background-color: #f9a825;
color: white;
}
.operator:hover {
background-color: #f57f17;
}
.equals {
grid-column: span 4;
background-color: #4caf50;
color: white;
height: 100%;
}
.equals:hover {
background-color: #388e3c;
}
#clear {
grid-column: span 4;
background-color: #e53935;
color: white;
}
#clear:hover {
background-color: #c62828;
}
.btn[data-value="0"] {
grid-column: span 2;
}
.btn[data-value="."] {
grid-column: span 2;
}