1
- * {
1
+ * {
2
2
font-family : system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI' , Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans' , 'Helvetica Neue' , sans-serif;
3
- }
3
+ box-sizing : border-box;
4
+ }
5
+
4
6
body {
5
-
6
7
background-color : # f4f4f9 ;
7
8
color : # 333 ;
8
9
margin : 0 ;
@@ -17,23 +18,24 @@ body {
17
18
min-height : 41vh !important ;
18
19
}
19
20
20
- # result-container {
21
+ # result-container {
21
22
margin-top : 20px ;
22
23
height : 400px ;
23
24
}
24
25
25
- h1 {
26
+ h1 , h2 {
26
27
text-align : center;
27
28
color : # 333 ;
28
- margin-bottom : 20px ;
29
29
}
30
- h2 {
31
- text-align : center;
32
- color : # 333 ;
30
+
31
+ h1 {
32
+ margin-bottom : 20 px ;
33
33
}
34
- label {
34
+
35
+ label {
35
36
font-size : 20px ;
36
37
}
38
+
37
39
.form-group {
38
40
margin-bottom : 15px ;
39
41
}
55
57
.button {
56
58
display : block;
57
59
width : 100% ;
58
- padding : 10 px ;
60
+ padding : 12 px ;
59
61
background-color : # 4CAF50 ;
60
62
color : white;
61
63
border : none;
@@ -73,11 +75,6 @@ label{
73
75
margin-top : 20px ;
74
76
}
75
77
76
- .comparison h2 {
77
- text-align : center;
78
- margin-bottom : 15px ;
79
- }
80
-
81
78
table {
82
79
width : 100% ;
83
80
border-collapse : collapse;
@@ -98,72 +95,107 @@ th {
98
95
tr : nth-child (even) {
99
96
background-color : # f9f9f9 ;
100
97
}
98
+
101
99
.dark-mode tr : nth-child (even) {
102
100
background-color : # 1a1717 ;
103
101
}
104
- .hidden {
105
- display : none;
106
- }
107
102
108
103
/* Responsive Design */
104
+ @media (max-width : 1024px ) {
105
+ .container {
106
+ padding : 15px ;
107
+ }
108
+
109
+ .button {
110
+ font-size : 14px ;
111
+ padding : 10px ;
112
+ }
113
+
114
+ select , .select {
115
+ font-size : 16px ;
116
+ }
117
+
118
+ # result-container {
119
+ height : 350px ;
120
+ }
121
+ }
122
+
109
123
@media (max-width : 768px ) {
110
124
.container {
111
125
padding : 10px ;
112
126
}
113
127
114
128
.button {
115
129
font-size : 14px ;
130
+ padding : 8px ;
116
131
}
117
-
118
- # result-container {
132
+
133
+ # result-container {
119
134
height : 300px ;
120
135
}
136
+
137
+ th , td {
138
+ padding : 8px ;
139
+ font-size : 14px ;
140
+ }
141
+
142
+ select , .select {
143
+ font-size : 14px ;
144
+ }
121
145
}
122
- select {
123
- background : transparent;
124
- outline : none;
125
- border : none;
126
- border : solid 1px gray;
127
- padding : 10px ;
128
- font-size : 20px ;
129
- }
130
- .dark-mode select {
131
- color : white;
132
- background-color : black;
146
+
147
+ @media (max-width : 480px ) {
148
+ h1 , h2 {
149
+ font-size : 22px ;
150
+ }
151
+
152
+ label {
153
+ font-size : 18px ;
154
+ }
155
+
156
+ select , .select {
157
+ font-size : 12px ;
158
+ padding : 8px ;
159
+ }
160
+
161
+ .button {
162
+ font-size : 12px ;
163
+ padding : 6px ;
164
+ }
165
+
166
+ th , td {
167
+ padding : 6px ;
168
+ font-size : 12px ;
169
+ }
170
+
171
+ # result-container {
172
+ height : 250px ;
173
+ }
133
174
}
134
- # avatarImg1 {
175
+
176
+ /* Avatar Styles */
177
+ # avatarImg1 , # avatarImg2 {
135
178
--s : 10px ;
136
179
padding : var (--s );
137
- border : calc (2 * var (--s )) solid # ffffff00 ;
180
+ border : calc (2 * var (--s )) solid # ffffff00 ;
138
181
outline : 1px solid # ffffff ;
139
- outline-offset : calc (-1 * var (--s ));
182
+ outline-offset : calc (-1 * var (--s ));
140
183
background : conic-gradient (from 90deg at 1px 1px , # ffffff00 25% , # ffffff 0 );
141
- /* border-radius: 50%; */
142
184
-webkit-user-drag : none;
143
- -moz-user-drag : none;
144
- -o-user-drag : none;
145
- user-drag : none;
185
+ user-drag : none;
146
186
width : 200px ;
147
187
height : 200px ;
188
+ margin : 0 auto;
148
189
}
149
190
150
- # avatarImg2 {
151
- --s : 10px ;
152
- padding : var (--s );
153
- border : calc (2 * var (--s )) solid # ffffff00 ;
154
- outline : 1px solid # ffffff ;
155
- outline-offset : calc (-1 * var (--s ));
156
- background : conic-gradient (from 90deg at 1px 1px , # ffffff00 25% , # ffffff 0 );
157
- /* border-radius: 50%; */
158
- -webkit-user-drag : none;
159
- -moz-user-drag : none;
160
- -o-user-drag : none;
161
- user-drag : none;
162
- width : 200px ;
163
- height : 200px ;
191
+ @media (max-width : 768px ) {
192
+ # avatarImg1 , # avatarImg2 {
193
+ width : 150px ;
194
+ height : 150px ;
195
+ }
164
196
}
165
197
166
- /* CSS for spinner */
198
+ /* Spinner Styles */
167
199
.spinner {
168
200
border : 4px solid rgba (0 , 0 , 0 , 0.1 );
169
201
border-radius : 50% ;
@@ -172,26 +204,23 @@ select{
172
204
height : 40px ;
173
205
animation : spin 1s linear infinite;
174
206
margin : 10px auto;
175
- }
176
-
177
- @keyframes spin {
207
+ }
208
+
209
+ @keyframes spin {
178
210
0% {
179
- transform : rotate (0deg );
211
+ transform : rotate (0deg );
180
212
}
181
213
100% {
182
- transform : rotate (360deg );
214
+ transform : rotate (360deg );
183
215
}
184
- }
185
-
186
- .hidden {
187
- display : none;
188
- }
189
-
190
- # progressBarContainer {
216
+ }
191
217
218
+ .hidden {
219
+ display : none;
220
+ }
192
221
222
+ /* Progress Bar */
193
223
# progressBarContainer {
194
-
195
224
position : fixed;
196
225
top : 0 ;
197
226
left : 0 ;
@@ -206,6 +235,10 @@ select{
206
235
width : 0% ;
207
236
background : white;
208
237
transition : width 0.2s ease;
209
-
210
238
}
211
239
240
+ /* Dark Mode */
241
+ .dark-mode select {
242
+ color : white;
243
+ background-color : black;
244
+ }
0 commit comments