Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 4ba52c9

Browse files
committed
updated grid layout
1 parent df39dcd commit 4ba52c9

1 file changed

Lines changed: 54 additions & 16 deletions

File tree

styles.css

Lines changed: 54 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -123,10 +123,10 @@ header p {
123123

124124
.loading-container {
125125
display: grid;
126-
grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
126+
grid-template-columns: repeat(5, 1fr); /* Exactly 5 columns */
127127
gap: 2rem;
128128
padding: 2rem;
129-
max-width: 1200px;
129+
max-width: 1400px; /* Increased to accommodate 5 boxes */
130130
margin: 0 auto;
131131
}
132132

@@ -170,6 +170,58 @@ header p {
170170
position: relative;
171171
}
172172

173+
/* Responsive Grid */
174+
@media (max-width: 1400px) {
175+
.loading-container {
176+
grid-template-columns: repeat(4, 1fr);
177+
max-width: 1200px;
178+
}
179+
}
180+
181+
@media (max-width: 1100px) {
182+
.loading-container {
183+
grid-template-columns: repeat(3, 1fr);
184+
max-width: 900px;
185+
}
186+
}
187+
188+
@media (max-width: 768px) {
189+
.loading-container {
190+
grid-template-columns: repeat(2, 1fr);
191+
gap: 1rem;
192+
padding: 1rem;
193+
max-width: 600px;
194+
}
195+
196+
.loader-card {
197+
min-height: 150px;
198+
}
199+
200+
.animation-item {
201+
transform: scale(0.9);
202+
}
203+
}
204+
205+
@media (max-width: 480px) {
206+
.loading-container {
207+
grid-template-columns: repeat(2, 1fr);
208+
gap: 0.8rem;
209+
padding: 0.8rem;
210+
}
211+
212+
.loader-card {
213+
min-height: 130px;
214+
}
215+
216+
.animation-item {
217+
transform: scale(0.85);
218+
}
219+
220+
.animation-label {
221+
font-size: 0.9rem;
222+
}
223+
}
224+
173225
/* Spinner Animation */
174226
.spinner {
175227
width: 60px;
@@ -1477,20 +1529,6 @@ footer a:hover {
14771529
header p {
14781530
font-size: 1rem;
14791531
}
1480-
1481-
.loading-container {
1482-
grid-template-columns: repeat(2, 1fr);
1483-
gap: 1rem;
1484-
padding: 1rem;
1485-
}
1486-
1487-
.loader-card {
1488-
min-height: 150px;
1489-
}
1490-
1491-
.animation-item {
1492-
transform: scale(0.9);
1493-
}
14941532
}
14951533

14961534
@media (max-width: 480px) {

0 commit comments

Comments
 (0)