-
Notifications
You must be signed in to change notification settings - Fork 1
/
style.css
110 lines (94 loc) · 2 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
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
font-family: Arial, sans-serif;
background-color: #0e0e0e;
}
.calculator {
width: 380px;
padding: 15px;
border-radius: 20px;
background: linear-gradient(145deg, #1a1a1a, #2e2e2e);
box-shadow: 10px 10px 15px #0b0b0b, -10px -10px 15px #373737;
border: 1px solid #03e9f4;
}
input#result {
width: 100%;
padding: 10px;
font-size: 24px;
text-align: right;
background-color: #111;
color: #03e9f4;
border: none;
border-radius: 10px;
margin-bottom: 10px;
}
.buttons {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 12px;
}
button {
padding: 15px;
font-size: 16px;
border-radius: 8px;
border: none;
box-shadow: 5px 5px 10px #0b0b0b, -5px -5px 10px #373737;
transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
cursor: pointer;
}
/* Different Colors for Different Buttons */
button.clear {
background-color: #ff3e3e;
color: #fff;
}
button.delete {
background-color: #ff993e;
color: #fff;
}
button.operator {
background-color: #03e9f4;
color: #000;
}
button.function {
background-color: #ffae42;
color: #000;
}
button.bracket {
background-color: #ffcc00;
color: #000;
}
button.number {
background-color: #6aff6a;
color: #000;
}
button.equal {
background-color: #03e9f4;
color: #000;
}
/* Hover effect with glow */
button:hover {
transform: translateY(-3px);
background: #fff;
box-shadow: 0 0 10px #03e9f4, 0 0 20px #03e9f4, 0 0 30px #03e9f4;
}
button:active {
transform: translateY(2px);
}
@media (max-width: 400px) {
.calculator {
width: 100%;
padding: 10px;
}
button {
padding: 12px;
font-size: 14px;
}
}