-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
172 lines (151 loc) · 3.74 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@500&display=swap');
@font-face {
font-family: 'Digital7Italic';
src:url('https://prwt888.github.io/calc-2023B5PS0968G/fonts/Digital7Italic.ttf') format('truetype');
}
/* For tablets */
@media (max-width: 768px) {
input {
width: 280px;
font-size: 48px;
}
button {
width: 55px;
height: 55px;
font-size: 20px;
}
.calculator {
margin-left: -150px;
transform: scale(0.67);
}
}
/* For mobile devices */
@media (max-width: 430px) {
body {
background-size: cover;
}
input {
width: 200px;
padding: 13px;
font-size: 35px;
}
button {
width: 35px;
height: 10px;
font-size: 18px;
}
.calculator {
margin-left: 0;
margin-top: 40px;
transform: scale(0.67);
}
}
/* Adding custom property for rotation */
@property --rotate {
syntax: "<angle>";
initial-value: 132deg;
inherits: false;
}
body {
width: 100%;
height: 100vh;
display: flex;
justify-content: center;
align-items: center;
background: url('https://i.postimg.cc/6p90RcQR/night-background.png') no-repeat center center fixed;
background-size: 100% 100%;
}
.calculator {
border: 3px solid transparent; /* Added for border glow effect */
padding: 20px;
border-radius: 25px;
background: transparent;
margin-left: 150px;
margin-right:150px;
margin-top: 20px;
position: relative;
box-shadow: 0px 3px 15px rgba(113, 115, 119, 0.5);
transform: scale(0.75);
}
input {
font-family: 'Digital7Italic', sans-serif;
width: 350px;
border: none;
padding: 0px;
margin: 10px;
background: transparent;
box-shadow: 0px 3px 15px rgba(84, 84, 84, 0.1);
font-size: 55px;
text-align: right;
cursor: pointer;
color: #ffffff;
}
input::placeholder {
color: #ffffff;
}
button {
font-family: 'Orbitron', sans-serif;
border: none;
width: 70px;
height: 70px;
margin: 10px;
border-radius: 100%;
background: transparent;
color: #ffffff;
font-size: 25px;
box-shadow: -10px -10px 20px rgba(255, 255, 255, 0.1);
cursor: pointer;
}
.equalBtn {
background-color: #FF6B91; /* Cherry tree pink */
position: relative;
overflow: hidden;
transition: all 0.3s ease;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
border: 2px solid transparent; /* Prepare for glowing effect */
}
.equalBtn:hover {
box-shadow: 0 10px 20px rgba(255, 107, 145, 0.6); /* Matching shadow color with button */
}
/* Glowing circular border */
.equalBtn::before {
content: "";
position: absolute;
top: -8%;
left: -8%;
width: 116%;
height: 116%;
border-radius: 50%;
background: rgba(255, 107, 145, 0.3); /* Glow effect */
pointer-events: none; /* Ensures the button remains clickable */
z-index: -1;
}
.equalBtn:hover::before {
opacity: 0.7;
background: rgba(255, 107, 145, 0.5); /* Enhanced glow effect on hover */
}
.operator {
color: #6dee0a;
}
/* Spinning light effect */
.calculator::before {
content: "";
width: calc(100% + 6px); /* Extended by the border width */
height: calc(100% + 6px); /* Extended by the border width */
border-radius: 19px;
background-image: linear-gradient(var(--rotate), #5ddcff, #3c67e3 43%, #4e00c2);
position: absolute;
z-index: -1;
top: -3px; /* Offset by border width */
left: -3px; /* Offset by border width */
animation: spin 3s linear infinite;
}
@keyframes spin {
0% {
--rotate: 0deg;
}
100% {
--rotate: 360deg;
}
}