Skip to content

Commit

Permalink
style(docs): optimize mobile responsiveness of documents
Browse files Browse the repository at this point in the history
  • Loading branch information
WRXinYue committed Jul 24, 2024
1 parent d94b1ae commit 4d8f079
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 5 deletions.
1 change: 0 additions & 1 deletion demo/valaxy.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,6 @@ export default defineConfig<ThemeConfig>({
vite: {
optimizeDeps: {
include: [
'typewriter-effect/dist/core',
'd3',
'@pixi/graphics',
'@pixi/settings',
Expand Down
20 changes: 18 additions & 2 deletions docs/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ const isHome = useLayout('home')
</script>

<template>
<SakuraMultiColumnsLayout>
<SakuraMultiColumnsLayout class="article-grid-layout">
<template #left>
<SakuraAsideLayout>
<SidebarThemeDynamic />
</SakuraAsideLayout>
</template>
<template #content>
<div class="content">
<div class="content grid">
<RouterView v-slot="{ Component }">
<component :is="Component">
<template #main-content-after>
Expand All @@ -36,3 +36,19 @@ const isHome = useLayout('home')
</template>
</SakuraMultiColumnsLayout>
</template>

<style lang="scss">
@use 'valaxy/client/styles/mixins/index.scss' as *;
.article-grid-layout {
transition: grid-template-columns 0.3s ease;
@include screen('md') {
grid-template-columns: 150px 1fr 0;
}
@include screen('lg') {
grid-template-columns: 250px 1fr 250px;
}
}
</style>
3 changes: 1 addition & 2 deletions docs/valaxy.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,7 @@ export default defineValaxyConfig<ThemeConfig>({
],
vite: {
optimizeDeps: {
include: ['typewriter-effect/dist/core', 'd3', 'monaco-editor'],
include: ['d3', 'monaco-editor'],
},
},

})

0 comments on commit 4d8f079

Please sign in to comment.