16 lines
618 B
Vue
16 lines
618 B
Vue
|
|
<!--
|
||
|
|
A building's page: what the building is for on the left (the construction list,
|
||
|
|
recruiting, commands), the building itself on the right (its close-up and stats),
|
||
|
|
staying in view while the left side scrolls. Narrow screens stack the building first.
|
||
|
|
-->
|
||
|
|
<template>
|
||
|
|
<div class="grid items-start gap-3 p-2.5 @5xl:grid-cols-[minmax(0,1fr)_minmax(22rem,30rem)]">
|
||
|
|
<div class="@container order-2 min-w-0 space-y-3 @5xl:order-1">
|
||
|
|
<slot />
|
||
|
|
</div>
|
||
|
|
<aside class="@container order-1 min-w-0 space-y-3 @5xl:sticky @5xl:top-2 @5xl:order-2">
|
||
|
|
<slot name="side" />
|
||
|
|
</aside>
|
||
|
|
</div>
|
||
|
|
</template>
|