home page on phones

This commit is contained in:
tresabhi committed 2026-11-28 17:30:21 -06:00
1 parent 33de8a1390
commit 9b85a95e45
2 files changed
+22 -2

No files matched your search

@@ -7,7 +7,7 @@ const { major } = Astro.props;
--- ---
<style> <style>
.tool-card-layout-root { .tool-card-layout-column {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
@@ -18,9 +18,20 @@ const { major } = Astro.props;
&[data-major="true"] { &[data-major="true"] {
flex: 2; flex: 2;
} }
@media (width < 58rem) {
flex-direction: row;
flex: none;
height: 20rem;
&[data-major="true"] {
flex: none;
height: 30rem;
}
}
} }
</style> </style>
<div class="tool-card-layout-root" data-major={major}> <div class="tool-card-layout-column" data-major={major}>
<slot /> <slot />
</div> </div>
@@ -17,6 +17,15 @@ const { minor } = Astro.props;
&[data-minor="true"] { &[data-minor="true"] {
height: 20rem; height: 20rem;
} }
@media (width < 58rem) {
flex-direction: column;
height: auto;
&[data-minor="true"] {
height: auto;
}
}
} }
</style> </style>