Introduces three new layout primitives (no consumers yet). Adds --page-pad-x/y/collapse CSS tokens to :root and .dark. Updates PageHeader to read padding from tokens. Removes ignored size="large" props from welcome and series pages. Fixes stray markdown in SidebarLayout.
43 lines
776 B
Vue
43 lines
776 B
Vue
<template>
|
|
<div class="sidebar-layout">
|
|
<div class="sidebar-layout-main">
|
|
<slot />
|
|
</div>
|
|
<EventsMiniSidebar :events="upcomingEvents" />
|
|
</div>
|
|
</template>
|
|
|
|
<script setup>
|
|
const props = defineProps({
|
|
limit: { type: Number, default: 3 },
|
|
})
|
|
|
|
const { data: upcomingEvents } = await useFetch('/api/events', {
|
|
query: { limit: props.limit, upcoming: true },
|
|
default: () => [],
|
|
})
|
|
</script>
|
|
|
|
<style scoped>
|
|
.sidebar-layout {
|
|
flex: 1;
|
|
display: grid;
|
|
grid-template-columns: 1fr 200px;
|
|
align-items: stretch;
|
|
min-height: 0;
|
|
}
|
|
|
|
.sidebar-layout-main {
|
|
min-width: 0;
|
|
align-self: stretch;
|
|
display: flex;
|
|
flex-direction: column;
|
|
min-height: 0;
|
|
}
|
|
|
|
@media (max-width: 1024px) {
|
|
.sidebar-layout {
|
|
grid-template-columns: 1fr;
|
|
}
|
|
}
|
|
</style>
|