diff --git a/docs/.vuepress/theme/components/Toc.vue b/docs/.vuepress/theme/components/Toc.vue index 7c02b7062465c55fb13fb3d43480b464ca4bc5a3..8b730a816f0cfacef5e97e7729572b95f4a6442c 100644 --- a/docs/.vuepress/theme/components/Toc.vue +++ b/docs/.vuepress/theme/components/Toc.vue @@ -161,8 +161,4 @@ for i in range(3, 6) .vuepress-toc-h{i} a padding-left 1rem * (i - 2) - // for vuepress-toc - @media (min-width: 1300px) - .vuepress-toc - display block diff --git a/docs/.vuepress/theme/styles/index.styl b/docs/.vuepress/theme/styles/index.styl index 73f99c6f5a00a84cca257ae6aa42aca2dda267b1..254332debfc12708d1156638eefe3456801289e5 100644 --- a/docs/.vuepress/theme/styles/index.styl +++ b/docs/.vuepress/theme/styles/index.styl @@ -83,10 +83,14 @@ main.page padding-bottom 0px padding-right 0px - @media (min-width: 1300px) + @media (min-width: $vuepress-display-min-width) & padding-right $vuepress-toc-width +@media (min-width: $vuepress-display-min-width) + .vuepress-toc + display block !important + {$contentClass}:not(.custom) > *:first-child margin-top 0 diff --git a/docs/.vuepress/theme/styles/palette.styl b/docs/.vuepress/theme/styles/palette.styl index eb2970ff54a7b529fce2f9c5723714549b25e393..f8427845a5ab0f7b53964f8b7b3cf419a5c38e9a 100644 --- a/docs/.vuepress/theme/styles/palette.styl +++ b/docs/.vuepress/theme/styles/palette.styl @@ -5,4 +5,5 @@ $navbarHeight = 9rem $navbar-sub-navbar-height = 5rem $navbar-background-color = #f7f7f7 $search-container-color = #f5f6f7 -$vuepress-toc-width = 220px \ No newline at end of file +$vuepress-toc-width = 220px +$vuepress-display-min-width = 1500px \ No newline at end of file