-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
208 lines (159 loc) · 3.53 KB
/
Copy pathstyle.css
File metadata and controls
208 lines (159 loc) · 3.53 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
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
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
margin: 0;
font-family: Arial, Helvetica, sans-serif;
background:
radial-gradient(
circle at 50% 35%,
#263b8f 0%,
#101a45 45%,
#050817 100%
);
perspective: 1000px;
overflow: hidden;
}
/* Cahaya lembut di belakang kalkulator */
body::before {
content: "";
position: fixed;
width: 500px;
height: 500px;
background: rgba(255, 255, 255, 0.04);
border-radius: 50%;
filter: blur(80px);
pointer-events: none;
}
/* Animasi kalkulator muncul */
@keyframes popUp {
0% {
opacity: 0;
transform: scale(0.6) translateY(40px) rotateX(15deg);
}
100% {
opacity: 1;
transform: scale(1) translateY(0) rotateX(0);
}
}
/* CALCULATOR */
.calculator {
width: 260px;
padding: 20px;
background: #0b0b0b;
border-radius: 14px;
/* Efek 3D */
box-shadow:
0 8px 0 #000000,
0 15px 25px rgb(0, 0, 0),
inset 0 1px 1px rgba(255, 255, 255, 0.08);
animation:
popUp 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275)
forwards;
transform-style: preserve-3d;
}
/* DISPLAY */
#display {
width: 100%;
height: 60px;
padding: 10px;
box-sizing: border-box;
font-size: 2rem;
text-align: right;
background: #f6f6f6;
color: #000;
border: none;
border-radius: 7px;
margin-bottom: 15px;
/* Sedikit efek kedalaman */
box-shadow:
inset 0 3px 5px rgba(0, 0, 0, 0.12),
0 2px 0 #cfcfcf;
}
/* GRID TOMBOL */
.button {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
/* TOMBOL */
.btn {
padding: 15px 0;
border: none;
border-radius: 7px;
background: #f0f0f0;
color: #111;
font-size: 1.1rem;
cursor: pointer;
/* Efek tombol 3D */
box-shadow:
0 4px 0 #bdbdbd,
0 6px 8px rgba(0, 0, 0, 0.15);
transition:
transform 0.12s ease,
box-shadow 0.12s ease,
background-color 0.2s ease;
}
/* Hover */
.btn:hover {
transform: translateY(-2px);
box-shadow:
0 6px 0 #bdbdbd,
0 9px 12px rgba(0, 0, 0, 0.18);
}
/* Saat ditekan */
.btn:active {
background: #ddd;
transform: translateY(3px);
box-shadow:
0 1px 0 #aaa,
0 2px 4px rgba(0, 0, 0, 0.15);
}
/* OPERATOR */
.operator {
background: #ff9500;
color: white;
box-shadow:
0 4px 0 #bd6900,
0 6px 8px rgba(0, 0, 0, 0.2);
}
.operator:hover {
box-shadow:
0 6px 0 #bd6900,
0 9px 12px rgba(0, 0, 0, 0.22);
}
.operator:active {
background: #e08900;
box-shadow:
0 1px 0 #a85f00,
0 2px 4px rgba(0, 0, 0, 0.15);
}
/* RESET */
.btn-reset {
background: #ff3b30;
color: white;
grid-column: span 2;
box-shadow:
0 4px 0 #b5221c,
0 6px 8px rgba(0, 0, 0, 0.2);
}
.btn-reset:hover {
box-shadow:
0 6px 0 #b5221c,
0 9px 12px rgba(0, 0, 0, 0.22);
}
/* DELETE */
.btn-delete {
background: #555;
color: white;
grid-column: span 2;
box-shadow:
0 4px 0 #333,
0 6px 8px rgba(0, 0, 0, 0.2);
}
.btn-delete:hover {
box-shadow:
0 6px 0 #333,
0 9px 12px rgba(0, 0, 0, 0.22);
}