-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
264 lines (226 loc) · 4.68 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
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
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
/* Developed by Siddharth Pandey */
@import url('https://fonts.googleapis.com/css?family=Nova+Round&display=swap');
* {
margin: 0;
padding: 1px;
box-sizing: border-box;
}
body {
height: 100vh;
display: flex;
flex-direction: column;
justify-content: center;
align-items: center;
background: linear-gradient(-45deg, #FA8BFF, #2BD2FF, #FFE53B, #FF2525, #FBDA61);
background-size: 800% 800%;
animation: gradient 40s ease infinite;
}
@keyframes gradient {
0% {
background-position: 0% 50%;
}
50% {
background-position: 100% 50%;
}
100% {
background-position: 0% 50%;
}
}
#calculator {
min-width: 273px;
min-height: 48px;
background: #EBECF1;
box-shadow: 0px 10px 50px rgba(0, 0, 0, 0.15);
border-radius: 24px;
font-family: Nova Round;
font-style: normal;
font-weight: normal;
font-size: 24px;
line-height: 29px;
transition: background-color .5s ease-in-out, box-shadow .5s ease-in-out;
}
#result {
width: 233px;
height: 91px;
background-color: #EBECF1;
box-shadow: inset 1.5px 1.5px 3px #CBCBCB, inset -1.5px -1.5px 3px #FFFFFF;
border-radius: 24px 24px 10px 10px;
margin: 20px 20px 20px 20px;
transition: background-color .5s ease-in-out, box-shadow .5s ease-in-out;
}
#history {
font-size: 30px;
line-height: 36px;
margin-bottom: 5px;
overflow: auto;
user-select: all;
}
#history-value {
transition: color .5s ease-in-out;
}
#output {
font-size: 22px;
line-height: 24px;
color: rgb(153, 153, 153);
overflow: auto;
transition: color .5s ease-in-out;
}
#output-text {
text-align: end;
padding: 17px;
font-size: 30px;
}
#microphone {
height: 30px;
width: 30px;
float: right;
background-image: url(mic.png);
background-size: 100% 100%;
border-radius: 50%;
margin: 20px;
margin-top: 60px;
}
.record {
animation: microphone-animation 1.5s infinite;
}
@Keyframes microphone-animation {
0% {
transform: scale(0.9);
}
70% {
transform: scale(1);
box-shadow: 0 0 0 10px rgba(0, 148, 255, 0.4);
}
100% {
transform: scale(0.9);
box-shadow: 0 0 0 0 rgba(0, 148, 255, 0);
}
}
.tooltip {
width: 200px;
font-size: 9px;
position: absolute;
background-color: #dddddd;
color: #636363;
padding: 10px;
top: 216px;
transform: translateX(255px);
border-radius: 5px;
visibility: hidden;
}
.tooltip::before {
content: '';
position: absolute;
border-width: 5px;
border-style: solid;
border-color: transparent #dddddd transparent transparent;
left: 0;
margin-left: -10px;
}
#output-microphone:hover .tooltip {
visibility: visible;
}
#keyboard {
width: 233px;
height: 296px;
margin: 20px 20px 20px 20px;
display: grid;
grid-template-columns: repeat(4, 1fr);
grid-template-rows: repeat(5, 1fr);
grid-column-gap: 19px;
grid-row-gap: 19px;
}
.style {
box-shadow: 4.5px 4.5px 9px #CBCBCB, -4.5px -4.5px 9px #FFFFFF;
border-radius: 500px;
display: flex;
justify-content: center;
align-items: center;
cursor: pointer;
transition: background-color .5s ease-in-out, box-shadow .5s ease-in-out, color .5s ease-in-out;
}
.styleOnClick {
box-shadow: inset 2px 2px 4px #CBCBCB, inset -2px -2px 4px #FFFFFF;
font-size: 20px;
opacity: 0.8;
}
.circle {
width: 44px;
height: 44px;
}
.numColor {
color: #373737;
font-size: 20px;
}
.trashCan {
width: 15px;
height: 15px;
}
.ariOpeColor {
color: rgb(1, 7, 12);
}
.zero {
width: 107px;
height: 44px;
font-size: 20px;
grid-area: 5 / 1 / 6 / 3;
}
.operator,
.number,
.empty {
border-width: 0;
font-weight: bold;
}
.number,
.empty {
background-color: #eaedef;
}
.number,
.operator {
cursor: pointer;
}
.operator:active,
.number:active {
font-size: 13px;
}
.operator:focus,
.number:focus,
.empty:focus {
outline: 0;
}
button:nth-child(4) {
font-size: 20px;
background-color: #20b2aa;
}
button:nth-child(8) {
font-size: 20px;
background-color: #ffa500;
}
button:nth-child(12) {
font-size: 20px;
background-color: #f08080;
}
button:nth-child(16) {
font-size: 20px;
background-color: #7d93e0;
}
button:nth-child(18) {
font-size: 20px;
background-color: #77af83;
}
button:nth-child(3) {
font-size: 20px;
background-color: #9477af;
}
button:nth-child(2) {
font-size: 20px;
background-color: #aeb829;
}
.equal {
width: 44px;
height: 100px;
font-size: 200px;
color: rgb(1, 22, 11);
grid-area: 4 / 4 / span 2 / span 1;
}
/* Developed by Siddharth Pandey */