Skip to content

Commit 4fecfa1

Browse files
committed
Update grade remarks
1 parent 966a879 commit 4fecfa1

1 file changed

Lines changed: 56 additions & 14 deletions

File tree

X_Calculator/CGPA_Calculator/CGPA.html

Lines changed: 56 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -128,18 +128,6 @@
128128
background: rgba(0, 0, 0, 0.5);
129129
box-shadow: 0 0 0 4px var(--secondary-glow);
130130
}
131-
132-
/* Mobile Responsive Grid */
133-
@media (max-width: 768px) {
134-
.course-row {
135-
grid-template-columns: 1fr 1fr;
136-
gap: 0.75rem;
137-
}
138-
.course-input-group:first-child { /* Course Name */
139-
grid-column: 1 / -1;
140-
}
141-
}
142-
143131
.btn-delete {
144132
width: 45px;
145133
height: 45px;
@@ -162,11 +150,65 @@
162150
transform: scale(1.05);
163151
}
164152

153+
/* Tablet & Mobile Layout */
154+
@media (max-width: 900px) {
155+
.back-nav {
156+
position: relative;
157+
top: auto;
158+
left: auto;
159+
margin-bottom: 1rem;
160+
width: 100%;
161+
max-width: 600px;
162+
}
163+
164+
.construction-banner {
165+
position: relative;
166+
top: auto;
167+
right: auto;
168+
margin: 0 auto 2rem;
169+
}
170+
171+
.cgpa-container {
172+
width: 95%;
173+
}
174+
}
175+
165176
@media (max-width: 768px) {
177+
.course-row {
178+
grid-template-columns: 1fr 1fr;
179+
gap: 1rem;
180+
}
181+
.course-input-group:first-child { /* Course Name spans full */
182+
grid-column: 1 / -1;
183+
}
166184
.btn-delete {
167185
margin-top: 0;
168-
grid-column: 2;
169-
justify-self: end;
186+
grid-column: 2; /* Align with last input in 2 col grid */
187+
width: 100%; /* Full width button on mobile */
188+
}
189+
}
190+
191+
@media (max-width: 480px) {
192+
.course-row {
193+
grid-template-columns: 1fr; /* Single column stack */
194+
gap: 1rem;
195+
padding: 1.25rem;
196+
}
197+
.course-input-group, .course-input-group:first-child, .btn-delete {
198+
grid-column: auto;
199+
}
200+
.calculator-card {
201+
padding: 2rem 1.5rem;
202+
border-radius: 24px;
203+
}
204+
header h1 {
205+
font-size: 2.5rem !important;
206+
}
207+
.result-value {
208+
font-size: 2rem;
209+
}
210+
.result-cgpa .result-value {
211+
font-size: 3.5rem;
170212
}
171213
}
172214

0 commit comments

Comments
 (0)