Skip to content

make the content container wider when there is no sidebar #1709

Closed Locked Answered by xu4wang
xu4wang asked this question in Q&A
Discussion options

You must be logged in to vote

Digging into the code, there is hard coded max-width inside:

https://github.com/vuejs/vitepress/blob/main/src/client/theme-default/components/VPDoc.vue

@media (min-width: 1440px) {
  .VPDoc:not(.has-sidebar) .content {
    max-width: 784px;
  }
  .VPDoc:not(.has-sidebar) .container {
    max-width: 1104px;
  }
}

Is there an easy way I can override the two max-width? thanks..

Replies: 2 comments 4 replies

Comment options

You must be logged in to vote
4 replies
@brc-dd
Comment options

@xu4wang
Comment options

@brc-dd
Comment options

@xu4wang
Comment options

Answer selected by xu4wang
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants