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
+74
-17
No files matched your search
@@ -1,6 +1,9 @@
|
||||
.consumables {
|
||||
width: 0;
|
||||
min-width: 100%;
|
||||
|
||||
display: grid;
|
||||
grid-template-columns: repeat(3, max-content);
|
||||
grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
|
||||
gap: var(--space-3);
|
||||
|
||||
.wrapper {
|
||||
|
||||
@@ -14,6 +14,13 @@
|
||||
padding: var(--space-5);
|
||||
box-sizing: border-box;
|
||||
|
||||
@media (width < 44rem) {
|
||||
background-color: transparent;
|
||||
position: static;
|
||||
max-height: none;
|
||||
overflow-y: visible;
|
||||
}
|
||||
|
||||
@media (pointer: coarse) {
|
||||
&[data-tabbed="false"] {
|
||||
display: none;
|
||||
|
||||
+63
-16
@@ -34,21 +34,63 @@ const { id, locale } = Astro.props;
|
||||
<style>
|
||||
.page {
|
||||
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 {
|
||||
flex-grow: 1;
|
||||
grid-area: sandbox;
|
||||
}
|
||||
|
||||
.title {
|
||||
grid-area: title;
|
||||
padding-inline: var(--page-padding);
|
||||
}
|
||||
|
||||
.loadout {
|
||||
grid-area: loadout;
|
||||
}
|
||||
|
||||
.content {
|
||||
grid-area: content;
|
||||
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
gap: var(--space-4);
|
||||
|
||||
.content {
|
||||
display: flex;
|
||||
flex-direction: column;
|
||||
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;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -58,16 +100,21 @@ const { id, locale } = Astro.props;
|
||||
<div class="page">
|
||||
<div class="sandbox">
|
||||
<TankopediaSandbox {id} {locale} client:load />
|
||||
|
||||
<div class="content">
|
||||
<TankopediaTitle {id} {locale} />
|
||||
<TankopediaCharacteristics {id} {locale} client:load />
|
||||
<TankopediaGameModeAbilities {id} {locale} />
|
||||
<TankopediaVideos {id} {locale} />
|
||||
<TankopediaTabs {id} {locale} client:load />
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<TankopediaLoadout {id} {locale} client:load />
|
||||
<div class="title">
|
||||
<TankopediaTitle {id} {locale} />
|
||||
</div>
|
||||
|
||||
<div class="loadout">
|
||||
<TankopediaLoadout {id} {locale} client:load />
|
||||
</div>
|
||||
|
||||
<div class="content">
|
||||
<TankopediaCharacteristics {id} {locale} client:load />
|
||||
<TankopediaGameModeAbilities {id} {locale} />
|
||||
<TankopediaVideos {id} {locale} />
|
||||
<TankopediaTabs {id} {locale} client:load />
|
||||
</div>
|
||||
</div>
|
||||
</BaseLayout>
|
||||
Reference in new issue
Block a user