mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-29 04:44:23 +01:00
home page on phones
This commit is contained in:
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>
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user