-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstyle.css
More file actions
94 lines (82 loc) · 2.2 KB
/
Copy pathstyle.css
File metadata and controls
94 lines (82 loc) · 2.2 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
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@500&display=swap');
*{
margin: 0;
padding: 0;
box-sizing: border-box;
font-family: 'Poppins', sans-serif;
}
body {
width: 100%;
min-height: 100vh; /* 👈 Changed from height to min-height */
display: flex;
justify-content: center;
align-items: center;
padding: 50px 20px; /* 👈 Added 50px padding to top & bottom, 20px to left & right */
box-sizing: border-box; /* 👈 Prevents padding from breaking the screen width/height */
background: linear-gradient(45deg, #0a0a0a, #3a4452);
}
.calculator {
border: 1px solid #717377;
padding: 20px;
border-radius: 16px;
background: transparent;
box-shadow: 0px 3px 15px rgba(113, 115, 119, 0.5);
width: 100%; /* Takes full available width */
max-width: 400px; /* Stops expanding after 400px */
box-sizing: border-box; /* Keeps padding inside the width */
}
input {
width: 100%;
box-sizing: border-box;
border: none;
padding: 24px;
margin-bottom: 20px;
background: transparent;
box-shadow: -8px -8px 15px rgba(255, 255, 255, 0.1);
font-size: 40px;
text-align: right;
cursor: pointer;
color: #ffffff;
border-radius: 8px;
}
.calculator > div {
display: flex;
justify-content: space-between;
margin-bottom: 10px;
}
input::placeholder{
color: #ffffff;
}
button {
border: none;
width: 60px;
height: 60px;
/* margin: 10px; <-- Remove this, Flexbox handles spacing now */
border-radius: 50%;
background: transparent;
color: #ffffff;
font-size: 20px;
box-shadow: -8px -8px 15px rgba(255, 255, 255, 0.1);
cursor: pointer;
transition: all 0.2s ease-in-out; /* Smooth effect on hover/click */
}
.equalBtn{
background-color: #fb7c14;
}
.operator{
color: #6dee0a;
}
@media screen and (max-width: 400px) {
.calculator {
padding: 15px; /* Reduce container padding */
}
input {
font-size: 30px; /* Smaller text on mobile */
padding: 15px;
}
button {
width: 50px; /* Smaller buttons */
height: 50px;
font-size: 18px;
}
}