mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-11-29 04:44:23 +01:00
snug fits
This commit is contained in:
3 files changed
+67
-10
No files matched your search
@@ -1,6 +1,9 @@
|
|||||||
.consumables {
|
.consumables {
|
||||||
|
width: 0;
|
||||||
|
min-width: 100%;
|
||||||
|
|
||||||
display: grid;
|
display: grid;
|
||||||
grid-template-columns: repeat(3, max-content);
|
grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
|
||||||
gap: var(--space-3);
|
gap: var(--space-3);
|
||||||
|
|
||||||
.wrapper {
|
.wrapper {
|
||||||
|
|||||||
@@ -14,6 +14,13 @@
|
|||||||
padding: var(--space-5);
|
padding: var(--space-5);
|
||||||
box-sizing: border-box;
|
box-sizing: border-box;
|
||||||
|
|
||||||
|
@media (width < 44rem) {
|
||||||
|
background-color: transparent;
|
||||||
|
position: static;
|
||||||
|
max-height: none;
|
||||||
|
overflow-y: visible;
|
||||||
|
}
|
||||||
|
|
||||||
@media (pointer: coarse) {
|
@media (pointer: coarse) {
|
||||||
&[data-tabbed="false"] {
|
&[data-tabbed="false"] {
|
||||||
display: none;
|
display: none;
|
||||||
|
|||||||
@@ -34,22 +34,64 @@ const { id, locale } = Astro.props;
|
|||||||
<style>
|
<style>
|
||||||
.page {
|
.page {
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
display: flex;
|
|
||||||
|
display: grid;
|
||||||
|
grid-template-columns: 1fr auto;
|
||||||
|
grid-template-rows: auto auto 1fr;
|
||||||
|
grid-template-areas:
|
||||||
|
"sandbox loadout"
|
||||||
|
"title loadout"
|
||||||
|
"content loadout";
|
||||||
|
row-gap: var(--space-4);
|
||||||
|
|
||||||
.sandbox {
|
.sandbox {
|
||||||
flex-grow: 1;
|
grid-area: sandbox;
|
||||||
|
}
|
||||||
|
|
||||||
display: flex;
|
.title {
|
||||||
flex-direction: column;
|
grid-area: title;
|
||||||
gap: var(--space-4);
|
padding-inline: var(--page-padding);
|
||||||
|
}
|
||||||
|
|
||||||
|
.loadout {
|
||||||
|
grid-area: loadout;
|
||||||
|
}
|
||||||
|
|
||||||
.content {
|
.content {
|
||||||
|
grid-area: content;
|
||||||
|
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
gap: var(--space-4);
|
gap: var(--space-4);
|
||||||
|
|
||||||
padding-inline: var(--page-padding);
|
padding-inline: var(--page-padding);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@media (width < 74rem) {
|
||||||
|
grid-template-areas:
|
||||||
|
"sandbox sandbox"
|
||||||
|
"title loadout"
|
||||||
|
"content loadout";
|
||||||
|
row-gap: 0;
|
||||||
|
|
||||||
|
.title {
|
||||||
|
padding-block: var(--space-4);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
|
@media (width < 44rem) {
|
||||||
|
grid-template-columns: 1fr;
|
||||||
|
grid-template-rows: auto auto auto 1fr;
|
||||||
|
grid-template-areas:
|
||||||
|
"sandbox"
|
||||||
|
"title"
|
||||||
|
"loadout"
|
||||||
|
"content";
|
||||||
|
row-gap: var(--space-4);
|
||||||
|
|
||||||
|
.title {
|
||||||
|
padding-block: 0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
@@ -58,16 +100,21 @@ const { id, locale } = Astro.props;
|
|||||||
<div class="page">
|
<div class="page">
|
||||||
<div class="sandbox">
|
<div class="sandbox">
|
||||||
<TankopediaSandbox {id} {locale} client:load />
|
<TankopediaSandbox {id} {locale} client:load />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="title">
|
||||||
|
<TankopediaTitle {id} {locale} />
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<div class="loadout">
|
||||||
|
<TankopediaLoadout {id} {locale} client:load />
|
||||||
|
</div>
|
||||||
|
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<TankopediaTitle {id} {locale} />
|
|
||||||
<TankopediaCharacteristics {id} {locale} client:load />
|
<TankopediaCharacteristics {id} {locale} client:load />
|
||||||
<TankopediaGameModeAbilities {id} {locale} />
|
<TankopediaGameModeAbilities {id} {locale} />
|
||||||
<TankopediaVideos {id} {locale} />
|
<TankopediaVideos {id} {locale} />
|
||||||
<TankopediaTabs {id} {locale} client:load />
|
<TankopediaTabs {id} {locale} client:load />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<TankopediaLoadout {id} {locale} client:load />
|
|
||||||
</div>
|
|
||||||
</BaseLayout>
|
</BaseLayout>
|
||||||
Reference in new issue
Block a user