-
Notifications
You must be signed in to change notification settings - Fork 0
/
style.css
128 lines (110 loc) · 1.98 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
/* Rest Page Style */
* {
margin: 0;
padding: 0;
box-sizing: border-box;
}
body {
display: flex;
justify-content: center;
align-items: center;
height: 100vh;
background-color: #111722;
font-family: "Manrope", sans-serif;
}
/* Calculator Container Style */
.calc-container {
background-color: #1e2232;
padding: 20px;
border-radius: 12px;
box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
width: 90vw;
max-width: 320px;
}
/* Calculator Input Screen Style */
.calc-screen {
width: 100%;
height: 60px;
background-color: #344465;
border: none;
color: #fff;
font-size: 2rem;
text-align: right;
padding: 10px;
margin-bottom: 20px;
border-radius: 8px;
}
/* Calculator Buttons Style */
.calc-btns {
display: grid;
grid-template-columns: repeat(4, 1fr);
gap: 10px;
}
button:active {
transform: scale(0.95);
transition: transform 0.1s ease-in-out;
}
button {
width: 100%;
padding: 20px;
font-size: 1.5rem;
border: none;
border-radius: 8px;
background-color: #243047;
color: #fff;
cursor: pointer;
transition: background-color 0.3s, transform 0.1s ease-in-out;
}
button:hover {
background-color: #195de6;
}
button[value="C"] {
background-color: #ff5c5c;
}
button[value="="] {
background-color: #195de6;
}
/* Media Queries for Responsive Desgin */
/* for MobileScreen */
@media screen and (max-width: 600px) {
.calc-container {
width: 95vw;
max-width: 400px;
}
.calc-screen {
font-size: 1.75rem;
height: 50px;
}
button {
padding: 15px;
font-size: 1.25rem;
}
}
/* for Tablets Screen */
@media screen and (max-width: 768px) {
.calc-container {
width: 80vw;
max-width: 450px;
}
.calc-screen {
font-size: 1.85rem;
height: 55px;
}
button {
padding: 18px;
font-size: 1.3rem;
}
}
/* for Desktops Screen */
@media screen and (max-width: 1024px) {
.calc-container {
width: 320px;
}
.calc-screen {
height: 60px;
}
button {
font-size: 1.5rem;
padding: 20px;
}
}