Repository navigation
Expand file tree
/
Copy pathstyle.css
More file actions
89 lines (78 loc) · 1.8 KB
/
Copy pathstyle.css
File metadata and controls
89 lines (78 loc) · 1.8 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
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
font-family: 'Segoe UI', system-ui, sans-serif;
display: flex;
align-items: center;
justify-content: center;
min-height: 100vh;
background: linear-gradient(135deg, #1e3a8a, #312e81, #4c1d95);
padding: 1rem;
}
.calculator {
width: 100%;
max-width: 340px;
background: #1c1c1c;
border-radius: 24px;
padding: 1.5rem;
box-shadow: 0 20px 60px rgba(0,0,0,0.5);
animation: slideIn 0.5s ease;
}
@keyframes slideIn {
from { opacity: 0; transform: translateY(30px); }
to { opacity: 1; transform: translateY(0); }
}
.display {
background: #2a2a2a;
border-radius: 16px;
padding: 1.5rem 1.25rem;
margin-bottom: 1.25rem;
text-align: right;
min-height: 110px;
display: flex;
flex-direction: column;
justify-content: flex-end;
}
.previous {
color: #888;
font-size: 1rem;
min-height: 1.2rem;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.current {
color: #fff;
font-size: 2.5rem;
font-weight: 600;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
.keys {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 0.65rem;
}
.key {
padding: 1rem;
border: none;
border-radius: 14px;
font-size: 1.25rem;
font-weight: 600;
cursor: pointer;
background: #333;
color: #fff;
transition: all 0.15s ease;
font-family: inherit;
}
.key:hover { filter: brightness(1.3); transform: translateY(-2px); }
.key:active { transform: translateY(0) scale(0.95); }
.key.clear { background: #ef4444; }
.key.operator { background: #f59e0b; color: #1c1c1c; }
.key.equals { background: #10b981; }
.key.zero { grid-column: span 2; }
@media (max-width: 360px) {
.calculator { padding: 1rem; }
.key { padding: 0.85rem; font-size: 1.1rem; }
.current { font-size: 2rem; }
}