Skip to content

Commit e14e19a

Browse files
authored
Update styles.css
1 parent 115f7ab commit e14e19a

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

css/styles.css

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -379,6 +379,22 @@ li.L9 {
379379
}
380380
}
381381

382+
/* On mobile, change the layout to stack the icon on top */
383+
@media (max-width: 991px) { /* Mobile breakpoint */
384+
.flex-column-mobile {
385+
flex-direction: column !important; /* Stack the icon on top of the text */
386+
align-items: center; /* Center-align the text */
387+
}
388+
}
389+
390+
/* On larger screens, the default horizontal layout will be kept */
391+
@media (min-width: 992px) { /* Desktop breakpoint */
392+
.flex-column-mobile {
393+
flex-direction: row !important; /* Keep the icon to the left of the text */
394+
align-items: center; /* Keep text centered vertically */
395+
}
396+
}
397+
382398

383399
@media only screen and (max-width: 640px){
384400

0 commit comments

Comments
 (0)