Skip to content

Commit

Permalink
refactor: 💡 样式优化
Browse files Browse the repository at this point in the history
  • Loading branch information
WeilinerL committed Nov 21, 2024
1 parent 472f1d6 commit e5aaf7c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 7 deletions.
1 change: 0 additions & 1 deletion packages/website/theme/components/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@ const handleResize = throttle(() => {
} else {
mainContentRef.value.style.paddingLeft = '0'
}
mainContentRef.value.style.width=window.innerWidth-15+'px'
}, 300)
onMounted(() => {
handleResize()
Expand Down
8 changes: 2 additions & 6 deletions packages/website/theme/layouts/Layout.vue
Original file line number Diff line number Diff line change
Expand Up @@ -39,19 +39,15 @@ const showPreview = computed(() => {
min-width 100%
background-color #f7f8fa
overflow: auto
@media screen and (max-width: $MQMobile)
flex-direction: column
.preview-container
display: none
.main
flex 1
width: 100%
overflow: auto
padding-top 64px
min-width: 600px
background-color var(--bg-color)
@media screen and (max-width: $MQMobileNarrow)
@media screen and (max-width: 960px)
padding-top: 0
min-width: unset
::v-deep .page-edit
display none
Expand Down
1 change: 1 addition & 0 deletions packages/website/theme/styles/vars.css
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/* 主题色覆盖:https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/styles/vars.css */
:root {
--bg-color: #f7f8fa;
/* 主题色 */
--vp-c-brand-1: #ff7e33;
}

0 comments on commit e5aaf7c

Please sign in to comment.