Skip to content

Commit bd52dd0

Browse files
committed
Add flex style to support small displays
1 parent dcf7ca1 commit bd52dd0

1 file changed

Lines changed: 23 additions & 0 deletions

File tree

assets/css/style.scss

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
---
2+
---
3+
// https://github.com/jekyll/minima/blob/master/assets/css/style.scss
4+
@import
5+
"minima/skins/{{ site.minima.skin | default: 'classic' }}",
6+
"minima/initialize";
7+
8+
.flex-container {
9+
display: flex;
10+
flex-direction: column; /* Vertical by default (for small screens) */
11+
gap: 20px; /* Optional: adds space between items */
12+
}
13+
14+
/* For large screens (992px and up) */
15+
@media screen and (min-width: 992px) {
16+
.flex-container {
17+
flex-direction: row; /* Switches to horizontal left-right */
18+
}
19+
20+
.flex-col {
21+
flex: 1; /* Makes both columns take up equal width */
22+
}
23+
}

0 commit comments

Comments
 (0)