forked from Sulagna-Dutta-Roy/GGExtensions
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpopup.css
113 lines (99 loc) · 2.09 KB
/
popup.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
body {
font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
background: url('background.avif');
margin: 0;
display: flex;
align-items: center;
justify-content: center;
height: 100vh;
}
.calculator-container {
background-color: #fff;
padding: 20px;
border-radius: 12px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
text-align: center;
animation: fadeInUp 0.8s ease-out;
max-width: 400px;
width: 100%;
}
button {
background-color: #4caf50;
color: #fff;
padding: 12px 20px;
/* Smaller button padding */
border: none;
border-radius: 6px;
cursor: pointer;
font-size: 16px;
/* Slightly smaller font size */
margin-top: 15px;
transition: background-color 0.3s ease, transform 0.2s ease-out;
}
button:hover {
background-color: #45a049;
transform: scale(1.05);
}
input {
padding: 10px;
/* Smaller input padding */
margin: 10px 0;
/* Reduced margin */
width: 90%;
/* Adjusted width for responsiveness */
box-sizing: border-box;
font-size: 14px;
/* Slightly smaller font size */
border: 1px solid #ccc;
border-radius: 6px;
transition: border-color 0.3s ease, transform 0.2s ease-out;
}
input:focus {
outline: none;
border-color: #4caf50;
transform: scale(1.02);
}
.result-container {
font-size: 18px;
/* Slightly larger font size for result */
font-weight: bold;
color: #333;
margin-top: 15px;
animation: fadeIn 1s ease-out;
}
/* Media queries for responsiveness */
@media screen and (max-width: 600px) {
.calculator-container {
padding: 15px;
}
button {
padding: 10px 15px;
font-size: 14px;
}
input {
padding: 8px;
font-size: 12px;
}
.result-container {
font-size: 16px;
}
}
/* Animations */
@keyframes fadeInUp {
from {
opacity: 0;
transform: translateY(20px);
}
to {
opacity: 1;
transform: translateY(0);
}
}
@keyframes fadeIn {
from {
opacity: 0;
}
to {
opacity: 1;
}
}