Skip to content

Commit db0ba1d

Browse files
committed
some more changes in the css
some more changes in the css
1 parent 27fe366 commit db0ba1d

File tree

3 files changed

+142
-85
lines changed

3 files changed

+142
-85
lines changed

screenshots/himasnhu018.png

-285 KB
Binary file not shown.

styles/compare.css

Lines changed: 101 additions & 68 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
*{
1+
* {
22
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+
46
body {
5-
67
background-color: #f4f4f9;
78
color: #333;
89
margin: 0;
@@ -17,23 +18,24 @@ body {
1718
min-height: 41vh !important;
1819
}
1920

20-
#result-container{
21+
#result-container {
2122
margin-top: 20px;
2223
height: 400px;
2324
}
2425

25-
h1 {
26+
h1, h2 {
2627
text-align: center;
2728
color: #333;
28-
margin-bottom: 20px;
2929
}
30-
h2{
31-
text-align: center;
32-
color: #333;
30+
31+
h1 {
32+
margin-bottom: 20px;
3333
}
34-
label{
34+
35+
label {
3536
font-size: 20px;
3637
}
38+
3739
.form-group {
3840
margin-bottom: 15px;
3941
}
@@ -55,7 +57,7 @@ label{
5557
.button {
5658
display: block;
5759
width: 100%;
58-
padding: 10px;
60+
padding: 12px;
5961
background-color: #4CAF50;
6062
color: white;
6163
border: none;
@@ -73,11 +75,6 @@ label{
7375
margin-top: 20px;
7476
}
7577

76-
.comparison h2 {
77-
text-align: center;
78-
margin-bottom: 15px;
79-
}
80-
8178
table {
8279
width: 100%;
8380
border-collapse: collapse;
@@ -98,72 +95,107 @@ th {
9895
tr:nth-child(even) {
9996
background-color: #f9f9f9;
10097
}
98+
10199
.dark-mode tr:nth-child(even) {
102100
background-color: #1a1717;
103101
}
104-
.hidden {
105-
display: none;
106-
}
107102

108103
/* 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+
109123
@media (max-width: 768px) {
110124
.container {
111125
padding: 10px;
112126
}
113127

114128
.button {
115129
font-size: 14px;
130+
padding: 8px;
116131
}
117-
118-
#result-container{
132+
133+
#result-container {
119134
height: 300px;
120135
}
136+
137+
th, td {
138+
padding: 8px;
139+
font-size: 14px;
140+
}
141+
142+
select, .select {
143+
font-size: 14px;
144+
}
121145
}
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+
}
133174
}
134-
#avatarImg1{
175+
176+
/* Avatar Styles */
177+
#avatarImg1, #avatarImg2 {
135178
--s: 10px;
136179
padding: var(--s);
137-
border: calc(2*var(--s)) solid #ffffff00;
180+
border: calc(2 * var(--s)) solid #ffffff00;
138181
outline: 1px solid #ffffff;
139-
outline-offset: calc(-1*var(--s));
182+
outline-offset: calc(-1 * var(--s));
140183
background: conic-gradient(from 90deg at 1px 1px, #ffffff00 25%, #ffffff 0);
141-
/* border-radius: 50%; */
142184
-webkit-user-drag: none;
143-
-moz-user-drag: none;
144-
-o-user-drag: none;
145-
user-drag: none;
185+
user-drag: none;
146186
width: 200px;
147187
height: 200px;
188+
margin: 0 auto;
148189
}
149190

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+
}
164196
}
165197

166-
/* CSS for spinner */
198+
/* Spinner Styles */
167199
.spinner {
168200
border: 4px solid rgba(0, 0, 0, 0.1);
169201
border-radius: 50%;
@@ -172,26 +204,23 @@ select{
172204
height: 40px;
173205
animation: spin 1s linear infinite;
174206
margin: 10px auto;
175-
}
176-
177-
@keyframes spin {
207+
}
208+
209+
@keyframes spin {
178210
0% {
179-
transform: rotate(0deg);
211+
transform: rotate(0deg);
180212
}
181213
100% {
182-
transform: rotate(360deg);
214+
transform: rotate(360deg);
183215
}
184-
}
185-
186-
.hidden {
187-
display: none;
188-
}
189-
190-
#progressBarContainer {
216+
}
191217

218+
.hidden {
219+
display: none;
220+
}
192221

222+
/* Progress Bar */
193223
#progressBarContainer {
194-
195224
position: fixed;
196225
top: 0;
197226
left: 0;
@@ -206,6 +235,10 @@ select{
206235
width: 0%;
207236
background: white;
208237
transition: width 0.2s ease;
209-
210238
}
211239

240+
/* Dark Mode */
241+
.dark-mode select {
242+
color: white;
243+
background-color: black;
244+
}

styles/construction.css

Lines changed: 41 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,68 @@
1-
*{
1+
* {
22
font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
3+
box-sizing: border-box;
4+
margin: 0;
5+
padding: 0;
36
}
7+
8+
body {
9+
background-color: #f4f4f9;
10+
color: #333;
11+
margin: 0;
12+
padding: 0;
13+
}
14+
415
.fixed-heading {
5-
font-size: 6rem; /* Big heading size */
6-
color: #242322; /* Orange color */
7-
position: fixed; /* Fixed position */
8-
top:30vh;
16+
font-size: 6rem; /* Large heading size */
17+
color: #242322; /* Dark color for text */
18+
position: fixed; /* Keep heading fixed */
19+
top: 30vh; /* Adjusted height for better centering */
920
text-align: center;
10-
animation: fadeIn 3s ease-in-out infinite alternate;
11-
z-index: 5; /* Animation */
21+
animation: fadeIn 3s ease-in-out infinite alternate; /* Smooth animation */
22+
z-index: 5; /* Ensure visibility */
1223
}
13-
.fixed-div{
24+
25+
.fixed-div {
1426
display: flex;
1527
align-items: center;
1628
justify-content: center;
29+
height: 100vh; /* Full-height to vertically center content */
30+
width: 100vw; /* Full-width container */
1731
}
18-
/* Animation keyframes */
32+
33+
/* Fade-in animation */
1934
@keyframes fadeIn {
2035
0% {
21-
opacity: 0;
22-
transform: translateY(-20px);
36+
opacity: 0;
37+
transform: translateY(-20px);
2338
}
2439
50% {
25-
opacity: 1;
26-
transform: translateY(0);
40+
opacity: 1;
41+
transform: translateY(0);
2742
}
2843
100% {
29-
opacity: 0;
30-
transform: translateY(20px);
44+
opacity: 0;
45+
transform: translateY(20px);
46+
}
47+
}
48+
49+
/* Responsive Styles */
50+
@media (max-width: 768px) {
51+
.fixed-heading {
52+
font-size: 4rem; /* Responsive font size for tablet */
3153
}
3254
}
3355

3456
@media (max-width: 600px) {
3557
.fixed-heading {
36-
font-size: 8vw; /* Smaller font size for smaller screens */
58+
font-size: 8vw; /* Adapt font size for small screens */
59+
top: 25vh; /* Adjust top for smaller screens */
3760
}
3861
}
3962

4063
@media (max-width: 400px) {
4164
.fixed-heading {
42-
font-size: 6vw; /* Even smaller font size for very small screens */
65+
font-size: 6vw; /* Further adjustment for very small screens */
66+
top: 20vh; /* Adjust top for better centering */
4367
}
4468
}

0 commit comments

Comments
 (0)