forked from PitPik/CalcSS3
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathCalcSS3.css
315 lines (302 loc) · 7.37 KB
/
CalcSS3.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
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
/* ------- calculator housing ------- */
.calc-main {
display: block;
/* width: 480px; */ /* only needed in Chrome extension */
padding: 16px 10px 18px;
font: bold 15px/28px Arial, Helvetica, sans-serif;
border-radius: 12px;
box-shadow:
inset 0px -38px 5px rgba( 0, 0, 0, 0.8),
inset 0px 6px 4px rgba(255, 255, 255, 0.25),
inset 0px 2px 1px rgba(255, 255, 255, 0.25),
inset 3px 0px 3px rgba(255, 255, 255, 0.25),
inset -4px 0px 4px rgba( 0, 0, 0, 0.75);
background: #141414; /* Old browsers */
background: -moz-linear-gradient(top, #141414 45%, #282828 80%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(45%,#141414), color-stop(80%,#282828)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #141414 45%,#282828 80%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #141414 45%,#282828 80%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #141414 45%,#282828 80%); /* IE10+ */
background: linear-gradient(to bottom, #141414 45%,#282828 80%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#141414', endColorstr='#282828',GradientType=0 ); /* IE6-9 */
}
.calc-main:after {
content: "";
display: block;
clear: both;
}
.calc-small {
/* width: 240px; */ /* only needed in Chrome extension */
}
/* --------- display --------- */
.calc-display {
position: relative;
height: 60px;
margin: 0 5px 6px 5px;
padding: 0 8px;
border-radius: 5px;
box-shadow:
inset 0 30px 1px rgba(255, 255, 255, 0.25),
inset 0 -1px 2px rgba(255, 255, 255, 0.5),
inset 0 2px 3px rgba( 0, 0, 0, 0.40);
font-size: 45px;
line-height: 61px;
text-align: right;
white-space: nowrap;
color: #333;
cursor: default;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.01); /* for nicer/smoother rendering */
background: #edefe0; /* Old browsers */
background: -moz-linear-gradient(top, #edefe0 45%, #babea2 80%); /* FF3.6+ */
background: -webkit-gradient(linear, left top, left bottom, color-stop(45%,#edefe0), color-stop(80%,#babea2)); /* Chrome,Safari4+ */
background: -webkit-linear-gradient(top, #edefe0 45%,#babea2 80%); /* Chrome10+,Safari5.1+ */
background: -o-linear-gradient(top, #edefe0 45%,#babea2 80%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, #edefe0 45%,#babea2 80%); /* IE10+ */
background: linear-gradient(to bottom, #edefe0 45%,#babea2 80%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#edefe0', endColorstr='#babea2',GradientType=0 ); /* IE6-9 */
}
.calc-rad {
position: absolute;
bottom: 2px;
font-size: 14px;
line-height: 14px;
left: 11px;
}
.calc-small .calc-rad {
display: none;
}
.calc-hold {
position: absolute;
right: 5px;
bottom: 1px;
font-size: 8px;
line-height: 13px;
color: #666;
height: 12px;
}
/* ----- display helper buttons ----- */
.calc-buttons {
position: absolute;
top: 2px;
left: 2px;
opacity: .35;
height: 14px;
width: 14px;
transition:
opacity 0.15s ease-in;
}
.calc-buttons:hover {
opacity: 0.75;
height: 100%;
width: 17px;
}
.calc-buttons div {
position: absolute;
top: 1px;
height: 11px;
width: 11px;
font-size: 8px;
text-align: center;
text-decoration: none;
line-height: 12px;
text-indent: 1px;
color: #333;
cursor: default;
border-radius: 50%;
border: 1px solid #444;
}
.calc-buttons .calc-smaller {
opacity: 0;
}
.calc-buttons .calc-ln {
font-size: 17px;
line-height: 2px;
overflow: hidden;
opacity: 0;
}
.calc-buttons:hover div {
transition:
opacity 0.15s ease-in,
top 0.25s ease-out;
}
.calc-buttons:hover .calc-smaller {
top: 15px;
opacity: 0.75;
}
.calc-buttons:hover .calc-ln {
top: 29px;
opacity: 0.75;
}
.calc-buttons .calc-info:hover, .calc-buttons .calc-smaller:hover, .calc-buttons .calc-ln:hover {
opacity: 1;
}
/* -------- key board -------- */
.calc-left, .calc-right {
position: relative;
float: left;
width: 240px;
}
.calc-small .calc-left {
display: none;
}
.calc-f17 {
font-size: 17px;
}
.calc-f18 {
font-size: 18px;
}
.calc-f19 {
font-size: 19px;
}
.calc-f21 {
font-size: 21px;
}
.calc-main textarea {
position: absolute;
width: 1px;
height: 1px;
left: 4px;
top: 4px;
border: 0;
background-color: transparent;
}
/* -------- key board keys -------- */
.calc-left > div, .calc-right > div {
margin: 5px 4px;
position: relative;
width: 50px;
height: 28px;
background-color: #4c5356;
border: 1px solid black;
box-shadow: 0 1px rgba(255, 255, 255, 0.1);
border-radius: 6px;
overflow: hidden;
float: left;
cursor: default;
}
.calc-left > div > div, .calc-right > div > div {
position: absolute;
top: 0px;
right: 0px;
height: 28px;
left: 0px;
width: 100%;
border: 1px solid #000;
border-radius: 6px;
color: #eee;
text-shadow: 0 -1px 0 rgba(0, 0, 0, 0.5);
text-align: center;
background: #656e72;
border-top-left-radius: 6px;
border-top-right-radius: 6px;
border-bottom-left-radius: 26px 6px;
border-bottom-right-radius: 26px 6px;
box-shadow:
inset 0 -15px 1px rgba( 0, 0, 0, 0.25),
inset 0 1px 1px rgba(255, 255, 255, 0.4),
inset 0 6px 6px rgba(255, 255, 255, 0.25);
border: none;
}
.calc-left > div > div:hover, .calc-right > div > div:hover {
text-shadow:
0px 0px 8px rgb(255, 230, 186),
0px 0px 22px rgb(255, 255, 255),
0px -1px 0px rgba( 0, 0, 0, 0.5);
}
.calc-right .calc-eq {
height: 68px;
position: absolute;
bottom: 0;
right: 0;
background-color: #EA6811;
}
.calc-down {
padding-top: 40px;
}
.calc-radxy sup {
padding-bottom: 4px;
display: block;
position: absolute;
left: 14px;
top: 6px;
}
.calc-radxy em {
font-weight: normal;
font-size: 16px;
padding-right: 2px;
}
.calc-right .calc-zero {
width: 110px;
}
.calc-right .calc-zero div {
text-align: left;
}
.calc-right .calc-zero span {
padding-left: 22px;
}
.calc-blank {
border-color: transparent;
background: none;
background-image: none;
box-shadow: none;
clear: right;
}
.calc-right .calc-brown > div {
background-color: #635045;
}
.calc-right .calc-brown {
background-color: #4b3c34;
}
.calc-right .calc-black > div {
background-color: #000;
box-shadow:
inset 0 -13px 1px rgba(50, 50, 50, 0.5),
inset 0 1px 1px rgba(255, 255, 255, 0.25),
inset 0 8px 6px rgba(255, 255, 255, 0.2);
}
.calc-right .calc-black {
background-color: #181818;
}
.calc-right .calc-orange > div {
background-color: #FF7113;
box-shadow:
inset 0 -13px 1px rgba(148, 77, 18, 0.20),
inset 0 7px 6px rgba(255, 255, 255, 0.3),
inset 0 6px 6px rgba(255, 255, 255, 0.1);
}
.calc-left > div:active, .calc-right > div:active,
.calc-left .calc-press, .calc-right .calc-press {
box-shadow:
inset 0 -9px 6px rgba(255, 255, 255, 0.35),
0 1px rgba(255, 255, 255, 0.15);
}
.calc-left > div:active > div, .calc-right > div:active > div,
.calc-left .calc-press > div, .calc-right .calc-press > div {
background: none;
box-shadow:
inset 0 1px 1px rgba(255, 255, 255, 0.3);
}
.calc-left .calc-active, .calc-right .calc-active {
box-shadow:
1px 1px rgb(220, 220, 240),
-1px -1px rgb(220, 220, 240),
1px -1px rgb(220, 220, 240),
-1px 1px rgb(220, 220, 240),
2px 2px 2px rgb(220, 220, 240),
-2px -2px 2px rgb(220, 220, 240),
2px -2px 2px rgb(220, 220, 240),
-2px 2px 2px rgb(220, 220, 240);
border-color: #333;
}
.calc-left .calc-second {
background-color: #222;
}
.calc-left .calc-second div {
text-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
color: #EA6811;
}
sup, sub {
font-size: 10px;
line-height: 0;
padding-left: 1px;
}